/* =========================
   Front Page Styles
========================= */

/* =========================
   Hero Section
========================= */
.hero-section {
  background: linear-gradient(135deg, #1a73e8, #0b3d91);
  color: #fff;
  padding: 120px 20px;
  text-align: center;
}

.hero-section h1 {
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-section p {
  font-size: 20px;
  opacity: 0.9;
  margin-bottom: 30px;
}

.hero-section .btn-primary {
  padding: 16px 32px;
  font-size: 18px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.hero-section .btn-primary:hover {
  background-color: #ff6b00;
  transform: translateY(-2px);
}

/* =========================
   Summary Section
========================= */
.summary-section {
  padding: 80px 20px;
  background-color: #fff;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.summary-section h2 {
  text-align: center;
  font-size: 32px;
  color: #1a73e8;
  margin-bottom: 30px;
}

.summary-section p {
  font-size: 18px;
  margin-bottom: 15px;
  line-height: 1.6;
}

.summary-section ul {
  list-style: disc inside;
  margin-top: 20px;
}

/* =========================
   Table of Contents
========================= */
.toc-section {
  padding: 50px 20px;
  background-color: #f9fafc;
}

.toc-section h2 {
  text-align: center;
  font-size: 28px;
  color: #1a73e8;
  margin-bottom: 25px;
}

.toc-section ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  list-style: none;
  padding: 0;
}

.toc-section ul li a {
  background: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500;
  border: 1px solid #ddd;
  transition: all 0.3s ease;
}

.toc-section ul li a:hover {
  background: #1a73e8;
  color: #fff;
  border-color: #1a73e8;
}

/* =========================
   Definition Section
========================= */
.definition-section {
  padding: 80px 20px;
  background-color: #fff;
}

.definition-section h2 {
  text-align: center;
  font-size: 32px;
  color: #1a73e8;
  margin-bottom: 30px;
}

.definition-section p {
  font-size: 18px;
  margin-bottom: 15px;
  line-height: 1.6;
}

.definition-section table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.definition-section th,
.definition-section td {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.definition-section th {
  background-color: #1a73e8;
  color: #fff;
  font-weight: 600;
}

/* =========================
   Platforms Section
========================= */
.platforms-section {
  padding: 80px 20px;
  background-color: #f9fafc;
}

.platforms-section h2 {
  text-align: center;
  font-size: 32px;
  color: #1a73e8;
  margin-bottom: 30px;
}

.platform-summary {
  font-size: 18px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.rebate-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"PingFang SC","Microsoft YaHei",sans-serif;
}

.rebate-table th,
.rebate-table td {
  padding: 16px 14px;
  border-bottom: 1px solid #eee;
  text-align: center;
  vertical-align: middle;
}

.rebate-table th {
  background: #f7f8fb;
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.rebate-table tr:hover {
  background: #fafafa;
}

/* 平台列 */

.broker-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
}

.broker-logo {
  width: 120px;
  height: 40px;
  object-fit: contain;
}

/* 平台名称 */

.broker-cell a {
  color: #1a73e8;
  font-weight: 600;
  text-decoration: none;
}

.broker-cell a:hover {
  text-decoration: underline;
}

/* CTA按钮 */

.btn-cta {
  display: inline-block;
  padding: 10px 18px;
  background: #1a73e8;
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: all .25s ease;
}

.btn-cta:hover {
  background: #0d5ed7;
  color: #fff;
  text-decoration: none;
}

/* 平台简介文字 */
.platform-summary {
  text-align: center;
  font-size: 16px;
  color: #555;
  margin-bottom: 24px;
}

/* ===========================
   移动端优化
=========================== */
@media (max-width:768px){

  .rebate-table thead{
    display:none;
  }

  /* 表格转卡片 */
  .rebate-table,
  .rebate-table tbody,
  .rebate-table tr,
  .rebate-table td{
    display:block;
    width:100%;
  }

  .rebate-table tr{
    background:#fff;
    border-radius:10px;
    box-shadow:0 4px 12px rgba(0,0,0,0.06);
    margin-bottom:20px;
    padding:16px;
  }

  .rebate-table td{
    border:none;
    padding:10px 0;
    text-align:center;
  }

  .rebate-table td::before{
    content:attr(data-label);
    display:block;
    font-size:13px;
    color:#666;
    margin-bottom:3px;
  }

  /* 平台logo + 名称垂直居中 */
  .broker-cell{
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:8px;
    margin-bottom:8px;
    text-align:center;
  }

  .broker-logo{
    display:none;
  }

  .btn-cta{
    display:block;
    width:80%;
    margin:12px auto 0 auto;
    padding:12px;
    font-size:15px;
  }

  /* 返佣数字更突出 */
  .rebate-table td:nth-child(2),
  .rebate-table td:nth-child(3),
  .rebate-table td:nth-child(4){
    font-weight:700;
    font-size:18px;
    color:#111;
  }

  /* H2 标题在移动端也居中 */
  .platforms-section h2 {
    font-size: 22px;
    text-align: center;
  }

  .platform-summary {
    font-size: 15px;
    text-align: center;
    margin-bottom: 20px;
    padding: 0 10px;
  }
}

/* =========================
   Ranking Section
========================= */
.ranking-section {
  padding: 80px 20px;
  background-color: #fff;
}

.ranking-section h2 {
  text-align: center;
  font-size: 32px;
  color: #1a73e8;
  margin-bottom: 25px;
}

.ranking-section p {
  text-align: center;
  font-size: 18px;
  color: #555;
  margin-bottom: 30px;
}

.ranking-section ol {
  max-width: 1200px;
  margin: 0 auto;
  background-color: #f9fafc;
  padding: 25px 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.ranking-section li {
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 18px;
  color: #333;
}

/* =========================
   Academy Section
========================= */
.academy-section {
  padding: 80px 20px;
  background-color: #f9fafc;
}

.academy-section h2 {
  text-align: center;
  font-size: 32px;
  color: #1a73e8;
  margin-bottom: 25px;
}

.academy-summary {
  font-size: 18px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.academy-section ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
}

.academy-section li {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #eee;
  text-align: center;
  transition: all 0.3s ease;
}

.academy-section li:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

.academy-section li a {
  font-weight: 600;
  color: #1a73e8;
}

/* =========================
   Tools Section
========================= */
.tools-section {
  padding: 80px 20px;
  background-color: #fff;
}

.tools-section h2 {
  text-align: center;
  font-size: 32px;
  color: #1a73e8;
  margin-bottom: 25px;
}

.tools-summary {
  font-size: 18px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.tools-section ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  padding: 0;
}

.tools-section li {
  min-width: 200px;
  background-color: #f7f8fb;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #eee;
  text-align: center;
  transition: all 0.3s ease;
}

.tools-section li:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

.tools-section li a {
  font-weight: 600;
  color: #1a73e8;
}

/* =========================
   FAQ Section
========================= */
.faq-section {
  padding: 80px 20px;
  background-color: #f9fafc;
}

.faq-section h2 {
  text-align: center;
  font-size: 32px;
  color: #1a73e8;
  margin-bottom: 25px;
}

.faq-summary {
  font-size: 18px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.faq-section dl {
  max-width: 1200px;
  margin: 0 auto;
}

.faq-section dt {
  font-weight: 700;
  margin-top: 25px;
  font-size: 20px;
}

.faq-section dd {
  margin-top: 8px;
  color: #555;
  font-size: 16px;
  line-height: 1.6;
}

/* =========================
   Responsive
========================= */
@media (max-width: 992px) {
  .academy-section ul {
    grid-template-columns: 1fr;
  }

  .tools-section ul {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 576px) {
  .hero-section h1 { font-size: 28px; }
  .hero-section p { font-size: 16px; }
  .btn-primary { width: 100%; text-align: center; }
}

/* ==========================
   Author Section (E-E-A-T)
   ========================== */
.author-section {
  background-color: #f4f6fa; /* 柔和背景，区分内容块 */
  padding: 60px 0;
  border-top: 1px solid #e1e4eb;
  border-bottom: 1px solid #e1e4eb;
}

.author-section h2 {
  font-size: 28px;
  font-weight: 700;
  color: #111;
  text-align: center;
  margin-bottom: 24px;
}

.author-box {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  padding: 30px 25px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.author-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.author-box p {
  font-size: 16px;
  color: #444;
  line-height: 1.8;
  margin-bottom: 16px;
}

.author-box strong {
  font-size: 18px;
  color: #1a73e8;
}

.author-box a {
  color: #1a73e8;
  text-decoration: none;
  font-weight: 600;
}

.author-box a:hover {
  text-decoration: underline;
}

/* ==========================
   References Section
   ========================== */
.references-section {
  background-color: #fff;
  padding: 60px 0;
}

.references-section h2 {
  font-size: 28px;
  font-weight: 700;
  color: #111;
  text-align: center;
  margin-bottom: 24px;
}

.references-section ol {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  list-style: decimal inside;
  color: #444;
  font-size: 16px;
  line-height: 1.8;
}

.references-section ol li {
  margin-bottom: 12px;
}

.references-section ol li a {
  color: #1a73e8;
  text-decoration: none;
}

.references-section ol li a:hover {
  text-decoration: underline;
}

/* ==========================
   Responsive Adjustments
   ========================== */
@media (max-width: 768px) {
  .author-section, .references-section {
    padding: 40px 16px;
  }

  .author-section h2,
  .references-section h2 {
    font-size: 24px;
  }

  .author-box p,
  .references-section ol li {
    font-size: 15px;
  }
}

/* ==========================
   Home Content Section
   ========================== */

.home-content-section{
  padding:60px 0;
  background:#ffffff;
  border-top:1px solid #eaecef;
  border-bottom:1px solid #eaecef;
}


/* 内容主体 */

.home-content-section .container{
  max-width:1200px;
  margin:0 auto;
}


/* 段落 */

.home-content-section p{
  font-size:16px;
  line-height:1.8;
  color:#444;
  margin-bottom:18px;
}


/* 标题 */

.home-content-section h2,
.home-content-section h3,
.home-content-section h4{
  margin-top:36px;
  margin-bottom:14px;
  font-weight:700;
  color:#111;
}

.home-content-section h2{
  font-size:26px;
}

.home-content-section h3{
  font-size:22px;
}

.home-content-section h4{
  font-size:18px;
}


/* 列表 */

.home-content-section ul,
.home-content-section ol{
  margin-bottom:20px;
  padding-left:22px;
}

.home-content-section li{
  margin-bottom:8px;
  line-height:1.7;
}


/* 引用 */

.home-content-section blockquote{
  margin:24px 0;
  padding:16px 20px;
  background:#f6f8fb;
  border-left:4px solid #1a73e8;
  color:#333;
  font-style:italic;
}


/* 表格 */

.home-content-section table{
  width:100%;
  border-collapse:collapse;
  margin:24px 0;
}

.home-content-section th,
.home-content-section td{
  border:1px solid #e6e6e6;
  padding:12px;
  text-align:left;
}

.home-content-section th{
  background:#f3f4f6;
  font-weight:600;
}


/* 图片 */

.home-content-section img{
  max-width:100%;
  height:auto;
  border-radius:6px;
  margin:20px 0;
}


/* 链接 */

.home-content-section a{
  color:#1a73e8;
  text-decoration:none;
}

.home-content-section a:hover{
  text-decoration:underline;
}


/* Shortcode / 工具模块 */

.home-content-section .card,
.home-content-section .tool-box{
  background:#f8f9fb;
  padding:22px;
  border-radius:8px;
  margin:24px 0;
  border:1px solid #eaecef;
}


/* ==========================
   Mobile
   ========================== */

@media (max-width:768px){

.home-content-section{
  padding:40px 0;
}

.home-content-section h2{
  font-size:22px;
}

.home-content-section h3{
  font-size:20px;
}

.home-content-section p{
  font-size:15px;
}

}

/* ==========================
   相关文章模块：custom-links-section
========================== */
.custom-links-section {
  padding: 60px 0;
  background-color: #f7f8fb; /* 柔和背景色，突出模块 */
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.custom-links-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.custom-links-section h2 {
  font-size: 28px;
  font-weight: 700;
  color: #222;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.custom-links-section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #1a73e8; /* 蓝色下划线 */
  margin: 12px auto 0;
  border-radius: 2px;
}

.custom-links-section .flexible-sorting {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.custom-links-section .flexible-sorting ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.custom-links-section .flexible-sorting li {
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.6;
}

.custom-links-section .flexible-sorting a {
  color: #1a73e8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.custom-links-section .flexible-sorting a:hover {
  color: #0b4da0;
  text-decoration: underline;
}

/* 响应式：三栏布局 */
@media(min-width: 768px){
  .custom-links-section .flexible-sorting {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .custom-links-section .flexible-sorting ul {
    width: auto;
  }
}