/* 通用布局 */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f8f9fa;
  color: #333;
}

img {
  max-width: 100%;
  display: block;
}
.colored-quote {
  /* 竖线宽度、样式、颜色 */
  border-left: 4px solid #d3d3d3;
  /* 让文字别贴在边框上 */
  padding-left: 12px;
  /* （可选）调整整体内边距或字体样式 */
  margin: 1em 0;
  color: #333;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;
  text-align: left;
}

/* 目录美化 */
.toc {
    background: #f9f9f9;
    padding: 20px;
    margin: 20px auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
}

.toc h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.toc ul {
    list-style: none;
    padding-left: 0;
}

.toc ul li {
    margin-bottom: 10px;
}

.toc a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
}

.toc a:hover {
    text-decoration: underline;
    color: #D4AF37; /* 金色悬浮 */
}

/* ✅ Banner */
.banner img {
  width: 100%;
  height: auto;
}

/* ✅ 导航栏 */
.navbar {
  background: #0073e6;
  color: white;
  padding: 10px 0;
}

.nav-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 20px;
  font-weight: bold;
}

.menu-toggle {
  display: none;
  background: none;
  font-size: 24px;
  color: white;
  border: none;
  cursor: pointer;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: white;
  padding: 10px 15px;
  text-decoration: none;
  transition: background 0.3s;
}

.nav-links li a:hover {
  background-color: #005bb5;
}

/* ✅ 移动端导航折叠 */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #0073e6;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    text-align: left;
    padding-left: 15px;
  }
}
/* ✅ 主内容区域整体居中 + 最大宽度限制 */
.main.container {
    max-width: 900px;          /* 控制内容最大宽度 */
    margin: 0 auto;            /* 左右自动居中 */
    padding: 40px 20px;        /* 上下留白 & 移动端边距 */
    text-align: left;          /* 保持内容左对齐排版 */
}


/* ✅ 主内容区 */
.main {
    padding: 40px 0;
}

.main h1 {
    font-size: 26px;
    color: #0073e6;
    text-align: left;
}
.share-section {
  margin: 40px auto;
  text-align: left;
}

.share-section p {
  font-size: 18px;
  margin-bottom: 15px;
  color: #333;
}

.share-section .share-btn {
  display: inline-block;
  margin: 0 8px;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  color: white;
  transition: background 0.3s ease;
}


.share-section p {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.share-btn {
    display: inline-block;
    margin: 0 8px;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    color: white;
    transition: background 0.3s ease;
}

.share-btn.facebook { background-color: #3b5998; }
.share-btn.twitter { background-color: #1da1f2; }
.share-btn.whatsapp { background-color: #25d366; }

.share-btn:hover {
    opacity: 0.85;
}


/* ✅ 折扣码表格 */
.coupon-table {
    width: 100%;
    max-width: 800px;
    border-collapse: collapse;
    margin-top: 20px;
    border: 2px solid #ddd;
    background: #f8f9fa;
}

/* ✅ 表头 */
.table-header {
    background: #0073e6;
    color: white;
    font-size: 18px;
    text-align: center;
    padding: 10px;
}
/* ✅ 默认状态：无下划线，颜色与普通文本一致 */
.affiliate-link {
    text-decoration: none; /* 去掉下划线 */
    color: inherit; /* 继承父元素颜色 */
    font-weight: inherit; /* 继承字体样式 */
    transition: color 0.3s ease-in-out; /* 平滑颜色变化 */
}

/* ✅ 鼠标悬停时变金色 */
.affiliate-link:hover {
    color: #FFD700; /* 金色 */
    text-decoration: none; /* 依然不显示下划线 */
}

/* ✅ 折扣信息 */
.discount-percent {
    font-size: 22px;
    font-weight: bold;
    color: #28a745;
    text-align: center;
    padding: 10px;
    border-right: 2px solid #ddd;
}

/* ✅ 认证信息 */
.verified,
.users {
    font-size: 14px;
    padding: 10px;
    border-right: 2px solid #ddd;
    text-align: center;
}
/* ✅ 价格信息 */
.price-info {
    font-size: 16px;
    padding: 10px;
    border-top: 2px solid #ddd;
    text-align: center;
}

.original-price {
    text-decoration: line-through;
    color: #ff4d4d;
}

.discounted-price {
    color: #0073e6;
    font-weight: bold;
}

.savings {
    color: #28a745;
    font-weight: bold;
}

/* ✅ 折扣码输入框自适应 */
.copy-code {
    text-align: center;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
}

/* ✅ 让折扣码自适应，不会被截断 */
.code-container {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 5px;
}

.copy-code input {
    border: none;
    font-size: 16px;
    text-align: center;
    font-weight: bold;
    background: #fff;
    padding: 5px;
    width: 100%;
    overflow-x: auto;  /* 允许水平滚动 */
    white-space: nowrap;  /* 避免换行 */
    border-radius: 5px;
}

/* ✅ 复制按钮 */
.copy-code button {
    background: #ffcc00;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    white-space: nowrap;  /* 确保按钮不换行 */
}

/* ✅ 折扣描述 */
.coupon-description {
    font-size: 14px;
    padding: 10px;
    border-top: 2px solid #ddd;
}

/* ✅ 代码有效状态 */
.code-status {
    font-size: 14px;
    padding: 10px;
    background: #d4edda;
    color: #155724;
    font-weight: bold;
    text-align: center;
}

/* ✅ 详细说明 */
.coupon-details {
    font-size: 14px;
    padding: 10px;
    text-align: center;
}

/* ✅ 截图区域 */
.screenshot {
    text-align: center;
    padding: 10px;
}


.screenshot img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}
/* ✅ 课程关键词提示文本样式 */
.course-keyword-note {
  margin-top: 10px;
  font-size: 15px;
  font-style: italic;
  color: #444;
  line-height: 1.6;
  max-width: 800px;
}
.course-description {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  margin-top: 5px;
  margin-bottom: 30px;
  max-width: 800px;
}

/* ✅ 响应式优化（手机端） */
@media (max-width: 768px) {
    .discount-percent {
        font-size: 18px;
    }
.share-section {
    flex-direction: column;
    gap: 10px;
  }

  .share-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    padding: 12px 16px;
    font-size: 16px;
  }
    
  
  .verified,
    .users {
        font-size: 12px;
    }

    .coupon-description {
        font-size: 12px;
    }

   .copy-code {
        flex-direction: column; /* 让按钮在手机端折叠到下面 */
        gap: 8px;
    }

    .copy-code input {
        font-size: 14px;
        padding: 8px;
    }

    .copy-code button {
        width: 100%; /* 让按钮铺满 */
    }
   .course-keyword-note {
    font-size: 14px;
    padding: 0 10px;
  }
    .course-explainer {
    font-size: 14px;
    padding: 0 10px;
    line-height: 1.6;
  }

}


/* ✅ Footer */
.footer {
  background: #0073e6;
  color: white;
  padding: 20px 0;
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 10px;
}

.footer-links a {
  color: white;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}
