/* Sendu 内容页排版系统 — 文章 / 产品详情共用
   规范见 docs/UI-STYLE-GUIDE.md */

/* 统一字号阶梯（内容页最小 14px，正文 17px） */
.content-page,
.product-page.content-page {
  --type-caption: 0.875rem;   /* 14px 标签/表头 */
  --type-body: 1.0625rem;     /* 17px 正文 */
  --type-lead: 1.125rem;      /* 18px 摘要/要点正文 */
  --type-h3: 1.25rem;         /* 20px 三级标题 */
  --type-h2: clamp(1.35rem, 2.5vw, 1.65rem);
  --type-h1: clamp(1.75rem, 3.2vw, 2.35rem);
  font-size: var(--type-body);
  line-height: 1.75;
}

.content-page {
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 4.5rem);
}

/* 与全站 container 同宽，内容区占满可用宽度 */
.content-page > .container {
  width: min(1100px, 92vw);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(0.75rem, 2vw, 1.25rem);
  padding-right: clamp(0.75rem, 2vw, 1.25rem);
  box-sizing: border-box;
}

.content-article {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.5rem, 4vw, 2.5rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
  box-sizing: border-box;
}

.content-header {
  padding-bottom: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
  border-bottom: 1px solid var(--line);
}

.content-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand);
  font-weight: 700;
  font-size: var(--type-caption);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.85rem;
}

.content-kicker-sep {
  opacity: 0.45;
  font-weight: 400;
}

.content-breadcrumb {
  font-size: var(--type-caption);
  color: var(--text-soft);
  margin: 0 0 0.85rem;
}

.content-breadcrumb a {
  color: var(--text-soft);
  transition: color 0.2s;
}

.content-breadcrumb a:hover {
  color: var(--brand);
}

.content-title {
  font-size: var(--type-h1);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.content-lead,
.content-specs {
  margin: 0;
  font-size: var(--type-lead);
  line-height: 1.7;
  color: var(--text);
  opacity: 0.88;
  max-width: none;
}

.content-price {
  margin: 1rem 0 0;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: var(--brand);
}

.content-hero {
  margin: 0 0 clamp(1.5rem, 3vw, 2rem);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0e151c;
}

.content-hero img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── 正文排版 ── */
.content-prose {
  color: var(--text);
  font-size: var(--type-body);
  line-height: 1.8;
  letter-spacing: 0.01em;
}

.content-prose p,
.content-prose li,
.content-prose dd {
  color: var(--text-soft);
}

.content-prose > *:first-child {
  margin-top: 0;
}

.content-prose > *:last-child {
  margin-bottom: 0;
}

.content-prose h2 {
  color: var(--text);
  font-size: var(--type-h2);
  font-weight: 700;
  line-height: 1.35;
  margin: 2.5rem 0 0.85rem;
  padding-top: 0.25rem;
}

.content-prose h2:first-child,
.content-prose .geo-summary + h2 {
  margin-top: 1.75rem;
}

.content-prose h3 {
  color: var(--text);
  font-size: var(--type-h3);
  margin: 1.75rem 0 0.65rem;
}

.content-prose p {
  margin: 0 0 1.1rem;
  max-width: none;
}

.content-prose a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(53, 208, 127, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s, color 0.2s;
}

.content-prose a:hover {
  color: #5ee99a;
  text-decoration-color: currentColor;
}

.content-prose ul,
.content-prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
  max-width: none;
}

.content-prose li {
  margin-bottom: 0.55rem;
  padding-left: 0.15rem;
}

.content-prose li::marker {
  color: var(--brand);
}

.content-prose strong {
  color: var(--text);
  font-weight: 700;
}

/* ── 表格 ── */
.content-table-scroll {
  margin: 1.25rem 0 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.15);
}

.content-prose table,
.content-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: var(--type-body);
  line-height: 1.55;
  margin: 0;
}

.content-prose > table {
  display: table;
  margin: 1.25rem 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.content-table-scroll table {
  margin: 0;
  border: none;
  border-radius: 0;
}

.content-prose th,
.content-prose td,
.content-table th,
.content-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.content-prose tr:last-child td,
.content-table tr:last-child td {
  border-bottom: none;
}

.content-prose th,
.content-table th {
  color: var(--text);
  font-weight: 700;
  font-size: var(--type-caption);
  letter-spacing: 0.03em;
  text-transform: none;
  background: rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}

.content-prose tbody tr:nth-child(even) td,
.content-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

.content-prose tbody tr:hover td,
.content-table tbody tr:hover td {
  background: rgba(53, 208, 127, 0.04);
}

.content-prose td:first-child,
.content-table td:first-child {
  font-weight: 600;
  color: var(--text);
}

/* ── GEO 组件 ── */
.geo-summary {
  position: relative;
  background: linear-gradient(135deg, rgba(53, 208, 127, 0.1) 0%, rgba(53, 208, 127, 0.03) 100%);
  border: 1px solid rgba(53, 208, 127, 0.28);
  border-left: 4px solid var(--brand);
  border-radius: 12px;
  padding: 1.15rem 1.25rem 1.15rem 1.35rem;
  margin: 0 0 1.75rem;
}

.geo-summary::before {
  content: "要点";
  display: block;
  font-size: var(--type-caption);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.65rem;
}

html[lang="en"] .geo-summary::before {
  content: "Key takeaway";
}

.geo-summary p {
  margin: 0;
  font-size: var(--type-lead);
  color: var(--text);
  line-height: 1.75;
  max-width: none;
}

.geo-facts {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: grid;
  gap: 0.65rem;
  max-width: none;
}

.geo-facts li {
  margin: 0;
  padding: 0.85rem 1rem;
  font-size: var(--type-body);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  line-height: 1.7;
}

.geo-faq-list {
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  max-width: none;
}

.geo-faq-list dt {
  margin: 0;
  padding: 0.85rem 1rem 0.5rem;
  color: var(--text);
  font-weight: 700;
  font-size: var(--type-body);
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
}

.geo-faq-list dd {
  margin: 0 0 0.25rem;
  padding: 0 1rem 0.95rem;
  font-size: var(--type-body);
  color: var(--text-soft);
  line-height: 1.75;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 10px 10px;
}

.geo-faq-list dd + dt {
  margin-top: 0.35rem;
}

/* ── 页脚 CTA ── */
.content-footer {
  width: 100%;
  max-width: none;
  margin: clamp(1.75rem, 4vw, 2.5rem) 0 0;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.content-footer-text {
  margin: 0;
  color: var(--text-soft);
  font-size: var(--type-body);
  line-height: 1.65;
  max-width: none;
}

.content-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* ── 产品页扩展（与文章同宽） ── */
.product-page > .container {
  width: min(1100px, 92vw);
}

.product-spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.25rem 0 0;
  max-width: 100%;
}

.product-spec-item {
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
}

.product-spec-item span {
  display: block;
  font-size: var(--type-caption);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.35rem;
}

.product-spec-item strong {
  display: block;
  color: var(--text);
  font-size: var(--type-body);
  font-weight: 700;
}

.related-section {
  width: 100%;
  max-width: none;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
}

.related-section h2 {
  font-size: var(--type-h2);
  margin-bottom: 1rem;
}

@media (max-width: 680px) {
  .content-page > .container,
  .product-page > .container {
    width: 94vw;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .content-article {
    padding: 1.35rem 1.15rem;
    border-radius: 16px;
  }

  .product-spec-grid {
    grid-template-columns: 1fr;
  }

  .content-footer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .content-footer-actions {
    justify-content: center;
  }
}
