/* ============================================================
   GEO 优化补丁 — 2026-10-09
   1) 首页 H1 唯一化后，为轮播产品标题补齐原 H1 视觉
   2) 首页常见问题区块（原生 details，服务端直出，AI 可直接抽取）
   视觉基调：跟随站点浅蓝底 + 白色圆角卡片 + 蓝色点缀
   ============================================================ */

/* ---------- 1. 轮播标题样式补齐 ----------
   层叠链（按 index.html 加载顺序）：
     #22 v4-overrides.css         → 48px / lh 1.1 / margin 0 0 13px；850px→42px；560px→35px
     #23 typography-links-final   → font-weight:500 !important（覆盖 v4 的 800）
     #25 本文件                    → 为产品标题复刻上述最终值
   字重必须用 500 !important，否则会被 v4 的 800 生效而出现视觉偏差。 */
.hero-copy .hero-title {
  margin: 0 0 13px;
  font-family: var(--ama-font-sans);
  font-size: 48px;
  line-height: 1.1;
  font-weight: 500 !important;
  letter-spacing: 0;
  color: #17181b;
  opacity: 1;
  max-width: none;
  white-space: normal;
  overflow-wrap: break-word;
}

.hero-copy .hero-subtitle {
  margin: 0 0 29px;
  font-family: var(--ama-font-sans);
  font-size: 20px;
  line-height: 1.8;
  font-weight: 400 !important;
  color: #30343b;
  opacity: .76;
  max-width: 460px;
}

/* 中屏 —— v4-overrides.css @850px */
@media (max-width: 850px) {
  .hero-copy .hero-title {
    font-size: 42px;
  }

  .hero-copy .hero-subtitle {
    font-size: 17px;
    max-width: 300px;
  }
}

/* 小屏 —— v4-overrides.css @560px */
@media (max-width: 560px) {
  .hero-copy .hero-title {
    font-size: 35px;
    line-height: 1.1;
    white-space: normal;
  }

  .hero-copy .hero-subtitle {
    font-size: 15px;
    line-height: 1.6;
    max-width: 235px;
  }
}

/* ---------- 2. 常见问题区块 ---------- */
.faq-section {
  padding: 78px 0;
  background: #f5f7fa;
}

.faq-section .section-heading {
  margin-bottom: 40px;
}

.faq-section .section-heading h2 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.35;
}

.faq-section .section-heading p {
  margin: 0;
  color: #66717f;
  line-height: 1.9;
}

.faq-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 900px;
  margin-inline: auto;
}

/* 用 details 而非 JS 折叠：内容在 HTML 源码中，AI 引擎可直接抽取 */
.faq-item-static {
  background: #fff;
  border: 1px solid #e5e9ef;
  border-left: 2px solid #0874ed;
  border-radius: 4px;
  overflow: hidden;
}

.faq-item-static summary {
  padding: 20px 56px 20px 24px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: #17181b;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: background .2s ease;
}

.faq-item-static summary::-webkit-details-marker {
  display: none;
}

.faq-item-static summary:hover {
  background: #f8fbff;
}

/* 右侧 chevron，纯 CSS 绘制 */
.faq-item-static summary::after {
  content: "";
  position: absolute;
  right: 26px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -6px;
  border-right: 2px solid #0874ed;
  border-bottom: 2px solid #0874ed;
  transform: rotate(45deg);
  transition: transform .2s ease;
}

.faq-item-static[open] summary::after {
  margin-top: -3px;
  transform: rotate(-135deg);
}

.faq-body {
  padding: 0 24px 22px;
}

.faq-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: #4a5560;
}

/* 移动端字号放大，保证可读性 */
@media (max-width: 850px) {
  .faq-section {
    padding: 58px 0;
  }

  .faq-section .section-heading h2 {
    font-size: 26px;
  }

  .faq-item-static summary {
    padding: 16px 48px 16px 18px;
    font-size: 16px;
  }

  .faq-body {
    padding: 0 18px 18px;
  }

  .faq-body p {
    font-size: 14px;
    line-height: 1.8;
  }
}
