/* 帝江智跃官网样式
   设计原则：
   1. 正文行高宽松、段间距大 —— AI 摘取时每个段落是独立完整单元
   2. 不使用花哨装饰，降低爬虫解析噪声
   3. 移动端优先，窄屏可读
   4. 全站无 JavaScript 依赖
*/

:root {
  --ink: #1a1a1a;
  --ink-2: #3d3d3d;
  --ink-3: #666;
  --line: #e3e0d8;
  --line-2: #d3d1c7;
  --bg: #ffffff;
  --bg-soft: #f7f5f0;
  --accent: #b8501f;
  --accent-soft: #fdf3ee;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- 头部 ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
}

/* 头部：品牌与导航分两行。
   原因：导航有 9 项，与品牌名并排放一行时宽度不够，会挤成两行且首屏高度翻倍。
   改成品牌在上、导航独占下一行，导航本身不换行，首屏高度可控。 */
.header-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 10px 0 8px;
}

.brand { display: flex; flex-direction: column; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-cn { font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: 0.02em; }
.brand-sub { font-size: 12px; color: var(--ink-3); letter-spacing: 0.08em; }

/* 导航：横向不换行，窄屏时允许横向滚动而不是撑高页面 */
.nav {
  display: flex;
  gap: 2px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: var(--ink-2);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  flex: 0 0 auto;
}
.nav a:hover { background: var(--bg-soft); text-decoration: none; }
.nav a.nav-active { color: var(--accent); background: var(--accent-soft); }

/* ---------- 首屏 ---------- */

/* 首屏：2026-11-26 起取消产品图（原图为 AI 生成），改为左文右「关键事实」两栏 */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 60px 24px 52px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 56px;
  align-items: start;
}

.hero h1 {
  font-size: 42px;
  line-height: 1.28;
  margin: 0 0 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

/* 关键事实卡：替代原首屏图片，放最容易被 AI 摘取的事实 */
.hero-facts {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 24px 20px;
  background: var(--bg-soft);
}
.hero-facts-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 14px;
}
.hero-facts-list {
  margin: 0;
  font-size: 14px;
}
.hero-facts-list dt {
  font-weight: 600;
  color: var(--ink);
  margin-top: 13px;
  line-height: 1.5;
}
.hero-facts-list dt:first-child { margin-top: 0; }
.hero-facts-list dd {
  margin: 2px 0 0;
  color: var(--ink-2);
  line-height: 1.6;
}

.hero-intro {
  font-size: 17px;
  color: var(--ink-2);
  margin: 0 0 28px;
  max-width: 34em;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 8px;
  font-size: 15px;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #9c4219; }
.btn-ghost { border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: var(--bg-soft); }

.hero-note {
  font-size: 14px;
  color: var(--ink-3);
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.hero-date {
  font-size: 12px;
  color: var(--ink-3);
  margin: 12px 0 0;
  opacity: 0.75;
}

.hero-figure { border-radius: 12px; overflow: hidden; background: var(--bg-soft); }
.hero-figure img { width: 100%; }

/* ---------- 正文 ---------- */

.page-intro { padding: 48px 0 8px; border-bottom: 1px solid var(--line); margin-bottom: 40px; }

/* 首页首屏已有主标题与导语，此处只保留更新时间，避免重复 */
.page-intro-slim {
  padding: 0 0 8px;
  border-bottom: 0;
  margin-bottom: 28px;
}
.page-intro-slim .page-date { margin: 0; padding-bottom: 0; font-size: 12px; }

.page-h1 {
  font-size: 32px;
  line-height: 1.35;
  margin: 0 0 18px;
  font-weight: 600;
}

.lead {
  font-size: 18px;
  color: var(--ink-2);
  margin: 0 0 14px;
  max-width: 40em;
}

.page-date {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0 0 28px;
  padding-bottom: 24px;
}

.prose { max-width: 40em; padding-bottom: 56px; }

/* 首页定义段：紧跟信任条，是 AI 首要摘取区，视觉上也要够分量 */
.prose-lead {
  padding: 52px 0 8px;
  max-width: 42em;
}
.prose-lead h2 {
  font-size: 26px;
  margin-top: 36px;
}
.prose-lead h2:first-child { margin-top: 0; }
.prose-lead p { font-size: 17px; }
.prose-lead p:first-of-type {
  font-size: 18px;
  color: var(--ink);
  line-height: 1.85;
}

.prose h2 {
  font-size: 23px;
  line-height: 1.5;
  margin: 44px 0 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.prose h2:first-child { margin-top: 0; }

.prose h3 { font-size: 19px; margin: 32px 0 12px; font-weight: 600; }

.prose p {
  margin: 0 0 20px;
  color: var(--ink-2);
}

.prose ul { margin: 0 0 22px; padding-left: 22px; }
.prose li { margin: 0 0 10px; color: var(--ink-2); }
.prose li::marker { color: var(--line-2); }

.prose strong { color: var(--ink); font-weight: 600; }

/* ---------- FAQ ---------- */

.faq-list { max-width: 40em; padding-bottom: 56px; }

.faq-item {
  border-top: 1px solid var(--line);
  padding: 26px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }

.faq-q {
  font-size: 19px;
  line-height: 1.5;
  margin: 0 0 12px;
  font-weight: 600;
  color: var(--ink);
}

.faq-a p { margin: 0; color: var(--ink-2); }

/* ---------- 页脚 ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 44px 0 0;
  margin-top: 20px;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  padding-bottom: 36px;
}

.footer-col h2 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.footer-col p {
  font-size: 14px;
  color: var(--ink-3);
  margin: 0 0 6px;
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid var(--line-2);
  padding-top: 18px;
  padding-bottom: 24px;
}
.footer-bottom p { font-size: 13px; color: var(--ink-3); margin: 0; }

/* ---------- 视觉区块（band 系列） ---------- */

.band { padding: 56px 0; }
.band-h {
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.band-lead {
  font-size: 17px;
  color: var(--ink-2);
  margin: 0 0 32px;
  max-width: 42em;
  line-height: 1.8;
}

/* 信任要素条：底色分隔 + 四栏 */
.band-trust {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}
.trust-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 18px;
  border-left: 2px solid var(--accent);
}
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.trust-item span {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.6;
}

/* 服务卡片网格 */
.band-services { padding: 60px 0 12px; }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.svc-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 24px 20px;
  background: var(--bg);
  transition: border-color .18s ease, transform .18s ease;
}
.svc-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.svc-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--ink);
}
.svc-desc {
  font-size: 15px;
  color: var(--ink-2);
  margin: 0 0 14px;
  line-height: 1.75;
}
.svc-link {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
}
.svc-link::after { content: " →"; }

/* 双品类入口卡片 */
.band-cats { padding: 52px 0 8px; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.cat-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 26px 24px;
  background: var(--bg);
  transition: border-color .18s ease;
}
.cat-card:hover { border-color: var(--accent); }
.cat-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px;
}
.cat-card h3 a { color: var(--ink); }
.cat-card h3 a:hover { color: var(--accent); text-decoration: none; }
.cat-card p {
  font-size: 15px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.75;
}

/* 真实实拍图组 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
.gallery-two {
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
}
.gallery-item {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.gallery-item img {
  width: 100%;
  /* 不强制裁切：实拍图比例各不相同（方图/竖图/横图），
     硬裁会切掉主体。按原图比例显示，容器用底色补齐。 */
  height: auto;
  display: block;
  background: var(--bg-soft);
}
.gallery-item figcaption {
  font-size: 13px;
  color: var(--ink-3);
  padding: 14px 16px 16px;
  line-height: 1.65;
  background: var(--bg);
}

/* FAQ 页尾说明正文（说明文字放在问答列表之后，需要上间距分隔） */
.prose-tail { margin-top: 44px; }

/* FAQ 分类目录与分组（2026-11-27 新增，52 条问题按主题分组） */
.faq-toc {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 32px;
  background: var(--bg-soft);
}
.faq-toc-h {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0 0 12px;
  letter-spacing: 0.04em;
}
.faq-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.faq-toc li { margin: 0; }
.faq-toc a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 14px;
  text-decoration: none;
  transition: border-color .16s ease, color .16s ease;
}
.faq-toc a:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}
.faq-toc a span {
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

/* 单条问答的直达锚点链接（悬停时显示，方便复制分享某一条） */
.faq-item { position: relative; }
.faq-anchor-link {
  position: absolute;
  top: 4px;
  right: 0;
  font-size: 15px;
  color: var(--ink-3);
  opacity: 0;
  text-decoration: none;
  padding: 2px 6px;
  border-radius: 4px;
  transition: opacity .15s ease, color .15s ease;
}
.faq-item:hover .faq-anchor-link { opacity: 1; }
.faq-anchor-link:hover { color: var(--accent); text-decoration: none; background: var(--bg-soft); }

.faq-group { margin-bottom: 40px; }
.faq-group-h {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.faq-group-n {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-3);
}

/* 设备构成说明（2026-11-26 替代原产品图组） */
.band-parts {
  padding: 20px 0 64px;
}
.part-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.part-item {
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 0 0 12px 12px;
  padding: 20px 22px 22px;
  background: var(--bg);
}
.part-item h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--ink);
}
.part-item p {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.75;
}

/* 正文内图片 */
.prose .fig {
  margin: 32px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.prose .fig img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}
.prose .fig figcaption {
  font-size: 13px;
  color: var(--ink-3);
  padding: 13px 16px 15px;
  line-height: 1.65;
  background: var(--bg);
}

/* 引用块 */
.prose blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 8px 8px 0;
}
.prose blockquote p {
  margin: 0;
  color: var(--ink-2);
  font-size: 16px;
}

/* 首屏 kicker */
.hero-kicker {
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  font-weight: 500;
}

/* ---------- 响应式 ---------- */

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 30px; padding: 40px 24px 36px; }
  .hero h1 { font-size: 31px; }
  .hero-facts { padding: 20px 22px 18px; }
  .page-h1 { font-size: 26px; }
  .prose h2 { font-size: 21px; }
  body { font-size: 16px; }
  .band { padding: 40px 0; }
  .band-h { font-size: 22px; }
  .band-lead { font-size: 16px; margin-bottom: 24px; }
  .svc-grid { grid-template-columns: 1fr; gap: 14px; }
  .svc-card { padding: 20px; }
  .part-grid { grid-template-columns: 1fr; gap: 14px; }
  .cat-grid { grid-template-columns: 1fr; gap: 14px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 14px; }
  .gallery-two { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 14px 8px; }
  .trust-item { padding: 4px 12px; }
  .trust-item:first-child { padding-left: 12px; }
  .prose .fig { margin: 24px 0; }
  .prose .fig img { max-height: 380px; }
}

@media (max-width: 520px) {
  .header-inner { min-height: 60px; }
  .nav a { padding: 6px 10px; font-size: 14px; }
  .wrap { padding: 0 18px; }
  .hero h1 { font-size: 27px; }
  .btn { padding: 11px 20px; }
  .trust-grid { grid-template-columns: 1fr; }
}
