/* Article Page Styles */

.site-footer {
  background: rgba(248, 249, 250, 0.98);
  border-top: 1px solid var(--border-color);
}
.site-footer .banner-footer {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: var(--spacing-lg);
  box-sizing: border-box;
}

.article-page {
  padding-top: var(--header-height);
  min-height: 80vh;
  background: #f8f9fa;
}

/* ── Layout ── */
.article-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 200px 1fr 220px;
  gap: 1.5rem;
  align-items: start;
}

.article-main { min-width: 0; }

/* ── Outline Sidebar (left) ── */
.article-outline {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  height: fit-content;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.article-outline h4 {
  font-size: 0.72rem;
  font-weight: 700;
  color: #4a5568;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.outline-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.outline-list li a {
  display: block;
  padding: 0.35rem 0.6rem;
  font-size: 0.82rem;
  color: #2d3748;
  text-decoration: none;
  border-left: 2px solid #e2e8f0;
  transition: all 0.2s ease;
  line-height: 1.4;
}
.outline-list li a:hover { color: #1a202c; border-left-color: #508C66; }
.outline-list li a.active { color: #508C66; border-left-color: #508C66; font-weight: 600; }
.outline-list li.sub a { padding-left: 1.2rem; font-size: 0.79rem; color: #4a5568; }

/* ── Lead Paragraph ── */
.article-lead {
  font-size: 1rem;
  color: #1a202c;
  line-height: 1.85;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: #edf7f2;
  border-left: 4px solid #508C66;
  border-radius: 0 8px 8px 0;
}

/* ── Breadcrumb ── */
.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: #a0aec0;
  margin-bottom: 1.25rem;
}
.article-breadcrumb a {
  color: #718096;
  text-decoration: none;
  transition: color 0.2s;
}
.article-breadcrumb a:hover { color: #508C66; }
.article-breadcrumb span { color: #a0aec0; }

/* ── Hero ── */
.article-hero {
  background: linear-gradient(135deg, rgba(80,140,102,0.82) 0%, rgba(58,107,79,0.75) 100%),
              url('https://intofine.mongacloud.com/54.jpg') center/cover no-repeat;
  color: #fff;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  margin-bottom: 1.5rem;
}
.article-hero .hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}
.article-hero h1 {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: #fff;
}
.article-hero .hero-sub {
  font-size: 0.95rem;
  opacity: 0.85;
  line-height: 1.6;
  margin: 0;
}

/* ── Sections ── */
.article-section {
  background: #fff;
  border-radius: 10px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  scroll-margin-top: 90px;
}
.article-section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #d4e8df;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.article-section h2 .section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  background: #508C66;
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.article-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #2d3748;
  margin: 1.25rem 0 0.5rem;
}
.article-section p {
  font-size: 0.92rem;
  color: #2d3748;
  line-height: 1.8;
  margin-bottom: 0.75rem;
}
.article-section ul,
.article-section ol {
  margin: 0.5rem 0 0.75rem 1.25rem;
}
.article-section li {
  font-size: 0.92rem;
  color: #2d3748;
  line-height: 1.8;
  margin-bottom: 0.3rem;
}

/* ── Q&A Cards ── */
.qa-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}
.qa-question {
  background: #f7fafc;
  padding: 0.9rem 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #2d3748;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
}
.qa-question:hover { background: #edf7f2; }
.qa-toggle {
  font-size: 1rem;
  color: #a0aec0;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.qa-card.open .qa-toggle { transform: rotate(180deg); }
.qa-answer {
  display: none;
  padding: 1rem;
  font-size: 0.9rem;
  color: #2d3748;
  line-height: 1.8;
  border-top: 1px solid #e2e8f0;
}
.qa-card.open .qa-answer { display: block; }

/* ── Callout ── */
.callout {
  background: #edf7f2;
  border-left: 4px solid #508C66;
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: #2d5a3d;
  line-height: 1.7;
}
.callout.green { background: #edf7f2; border-left-color: #508C66; color: #2d5a3d; }
.callout.amber { background: #fffbeb; border-left-color: #d97706; color: #92400e; }

/* ── Stats Row ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.stat-card {
  background: linear-gradient(135deg, #edf7f2, #d4e8df);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}
.stat-card .stat-val {
  font-size: 1.4rem;
  font-weight: 700;
  color: #508C66;
  line-height: 1.2;
}
.stat-card .stat-label {
  font-size: 0.78rem;
  color: #3a6b4f;
  margin-top: 0.25rem;
}

/* ── Timeline ── */
.timeline { margin: 1rem 0; }
.timeline-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.timeline-dot {
  flex-shrink: 0;
  width: 32px; height: 32px;
  background: #508C66;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 2px;
}
.timeline-body h4 {
  font-size: 0.92rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.25rem;
}
.timeline-body p {
  font-size: 0.87rem;
  color: #2d3748;
  margin: 0;
  line-height: 1.6;
}

/* ── Matrix Grid ── */
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.matrix-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
}
.matrix-card .matrix-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.matrix-card h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 0.4rem;
}
.matrix-card p {
  font-size: 0.82rem;
  color: #2d3748;
  margin: 0;
  line-height: 1.6;
}

/* ── Sidebar (猜你想看) ── */
.article-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
}
.article-sidebar-box {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.07);
  padding: 1rem 0.75rem;
}
.article-sidebar-box h4 {
  font-size: 0.7rem;
  font-weight: 700;
  color: #4a5568;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f0f4f8;
}
.article-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.article-sidebar-link {
  display: block;
  padding: 0.55rem 0.65rem;
  font-size: 0.82rem;
  color: #2d3748;
  text-decoration: none;
  border-radius: 7px;
  border-left: 3px solid transparent;
  line-height: 1.4;
  transition: all 0.18s ease;
}
.article-sidebar-link:hover {
  background: #edf7f2;
  color: #508C66;
  border-left-color: #a8d5be;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .article-outline { display: none; }
  .article-container { grid-template-columns: 1fr 220px; }
}
@media (max-width: 900px) {
  .article-container { grid-template-columns: 1fr; padding: 1.25rem 1rem; }
  .article-sidebar { display: none; }
}
@media (max-width: 600px) {
  .article-hero { padding: 1.5rem 1.25rem; }
  .article-hero h1 { font-size: 1.25rem; }
  .article-section { padding: 1.25rem; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* ── Compare Table ── */
.compare-table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 600px;
}
.compare-table thead tr {
  background: linear-gradient(135deg, #3a6b4f, #508C66);
  color: #fff;
}
.compare-table th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.82rem;
  line-height: 1.4;
}
.compare-table th small {
  display: block;
  font-weight: 400;
  opacity: 0.75;
  font-size: 0.75rem;
  margin-top: 0.15rem;
}
.compare-table td {
  padding: 0.8rem 1rem;
  color: #4a5568;
  line-height: 1.6;
  border-bottom: 1px solid #f0f4f8;
  vertical-align: top;
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:nth-child(even) td { background: #f8fafc; }
.compare-table td:first-child {
  font-weight: 600;
  color: #2d3748;
  white-space: nowrap;
}
.compare-table td.highlight-col {
  color: #508C66;
  font-weight: 500;
}
.compare-table th.highlight-col {
  color: #fff;
}

/* ── Bilingual content switching ── */
.lang-en { display: none; }
html[lang="en"] .lang-zh { display: none; }
html[lang="en"] .lang-en { display: block; }
html[lang="en"] .lang-en.inline { display: inline; }
html[lang="en"] span.lang-en { display: inline; }
html[lang="en"] li.lang-en { display: list-item; }
