/* ==========================================================================
 * style.css —— 爱悦域官网手写设计系统（无 CDN / 无构建工具）
 *
 * 设计令牌与视觉规范（方案 sec06）：
 *   暖白底 + 深檀文字 + 勃艮第酒红强调 + 暖金点缀；低饱和暖色系，
 *   禁高饱和大色块与花哨动效。组件参数：卡片圆角 12px、主按钮胶囊 48px、
 *   证书墙暖金描边、步骤条 32px 节点、FAQ 手风琴 details/summary 实现。
 *
 * 组件类清单（后续工程师直接复用）：
 *   布局：.container .section .grid .grid-2 .grid-3 .grid-4
 *   按钮：.btn .btn-primary .btn-outline .btn-sm .btn-block
 *   内容：.hero .hero-bg .card .cert-wall .logo-wall .steps .faq-item
 *         .risk-bar .tag .lead .text-muted .table-wrap
 *   表单：.form-lead .form-field .form-agree .form-msg
 * ========================================================================== */

/* ---------- 设计令牌 ---------- */
:root {
  --bg:      #FAF7F2;  /* 页面背景·暖白 */
  --bg-soft: #F1EAE1;  /* 次背景·米灰 */
  --ink:     #3B2F2A;  /* 主色·深檀（标题/重点） */
  --ink-soft:#6B5E56;  /* 正文灰·檀灰 */
  --accent:  #7A2E3E;  /* 品牌强调·勃艮第酒红 */
  --accent-hover:#63242F;
  --gold:    #C6A36B;  /* 点缀·暖金（仅线条/小图标） */
  --card:    #FFFFFF;  /* 卡片底 */
  --line:    #E8DFD3;  /* 分割线·浅檀线 */
  --ok:      #5F7A61;  /* 功能成功色·苔绿 */
  --warn:    #B56B3A;  /* 功能警示色·赭橙（风险提示专用） */
  --radius-card: 12px;
  --radius-btn:  24px;
  --shadow-card: 0 4px 16px rgba(59,47,42,0.06);
  --shadow-card-hover: 0 8px 24px rgba(59,47,42,0.10);
  --font-main: "PingFang SC","Microsoft YaHei","Noto Sans SC",sans-serif;
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  background: var(--bg);
}

h1, h2, h3, h4 { color: var(--ink); font-weight: 600; line-height: 1.4; margin: 0 0 16px; }
h1 { font-size: 40px; line-height: 56px; }
h2 { font-size: 30px; line-height: 42px; }
h3 { font-size: 22px; line-height: 32px; }
h4 { font-size: 18px; line-height: 28px; }
p  { margin: 0 0 16px; }
a  { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 22px; margin: 0 0 16px; }
li { margin-bottom: 6px; }
strong { color: var(--ink); }
table { border-collapse: collapse; width: 100%; }
th, td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; font-size: 15px; }
th { background: var(--bg-soft); color: var(--ink); font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section.alt { background: var(--bg-soft); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: 18px; line-height: 32px; color: var(--ink); }
.text-muted { color: var(--ink-soft); font-size: 14px; line-height: 22px; }
.table-wrap { overflow-x: auto; } /* 移动端表格横向滚动 */

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  min-height: 48px;
  line-height: 46px;
  padding: 0 32px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-align: center;
  transition: background 200ms, color 200ms, border-color 200ms;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-outline { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-sm { min-height: 38px; line-height: 36px; padding: 0 20px; font-size: 14px; }
.btn-block { display: block; width: 100%; }

/* ---------- 标签 ---------- */
.tag {
  display: inline-block;
  padding: 2px 12px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  font-size: 13px;
  line-height: 22px;
  margin-right: 8px;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,247,242,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-right: 58px; } /* 58px + 容器 gap 20px = LOGO 与首个菜单项共 78px 留白 */
.brand:hover { text-decoration: none; }
.brand-logo { height: 34px; width: auto; }
.site-nav { flex: 1; }
.site-nav ul { display: flex; align-items: center; gap: 11px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav li { margin: 0; }
.site-nav a {
  display: block;
  padding: 6px 10px;
  color: var(--ink);
  font-size: 15px;
  border-radius: 8px;
}
.site-nav a:hover { color: var(--accent); text-decoration: none; background: var(--bg-soft); }
.site-nav a.on { color: var(--accent); font-weight: 600; }
.nav-cta { margin-left: 10px; } /* 与"常见问题"之间额外留出 10px */
.nav-cta a { color: #fff !important; min-height: 28px; line-height: 26px; } /* 高度较 .btn-sm 减 10px，宽度不变 */
.nav-cta a:hover { background: var(--accent-hover) !important; }
.nav-tel { flex-shrink: 0; font-size: 14px; color: var(--ink-soft); }
.nav-tel strong { color: var(--accent); font-size: 17px; }
.nav-tel:hover { text-decoration: none; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- Hero 首屏 ---------- */
.hero {
  position: relative;
  padding: 120px 0 96px;
  height: 460px; /* 全站横幅固定高度（含首页），内容增多不会撑高，超出部分裁切 */
  display: flex;
  align-items: center;
  color: #fff;
  background: var(--ink);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45; /* 暖光低明度氛围，文字压暗角保证可读 */
}
.hero .container { position: relative; z-index: 2; width: 100%; }
.hero h1 { color: #fff; max-width: 720px; }
.hero .hero-sub { font-size: 18px; line-height: 32px; color: rgba(255,255,255,0.88); max-width: 680px; margin-bottom: 32px; }
.hero .btn-outline { border-color: #fff; color: #fff; margin-left: 12px; }
.hero .btn-outline:hover { background: #fff; color: var(--ink); }
/* 内页简化 hero（无背景图） */
.hero-page { padding: 72px 0 56px; background: var(--bg-soft); color: inherit; }
.hero-page h1 { color: var(--ink); }
.hero-page .hero-sub { color: var(--ink-soft); }

/* ---------- 卡片与网格 ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px;
  transition: box-shadow 200ms, transform 200ms;
}
.card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.card h3, .card h4 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }

/* 功能图标带（首页五项功能等）：文字/SVG 图标占位，禁 emoji */
.feature-band { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.feature-item { text-align: center; padding: 20px 12px; }
.feature-icon {
  width: 56px; height: 56px;
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--accent);
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-item h4 { margin-bottom: 6px; }
.feature-item p { font-size: 14px; line-height: 22px; margin: 0; }

/* ---------- 证书墙 / logo 墙 ---------- */
.cert-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cert-item {
  background: var(--card);
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}
.cert-item img { height: 200px; width: 100%; object-fit: contain; margin-bottom: 10px; }
.cert-item figcaption, .cert-item .cert-name { font-size: 14px; color: var(--ink); }
.logo-wall { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
.logo-wall img { height: 40px; opacity: 0.7; filter: grayscale(100%); transition: opacity 200ms, filter 200ms; }
.logo-wall img:hover { opacity: 1; filter: none; }

/* ---------- 步骤条（合作流程 7 步） ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; counter-reset: step; }
.steps li { position: relative; margin: 0; padding-top: 44px; text-align: center; counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 32px; height: 32px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  font-size: 16px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; /* 数字在圆圈内水平垂直居中，不受文字对齐影响 */
}
.steps li::after { /* 连接线 */
  content: "";
  position: absolute; top: 16px; left: calc(50% + 20px); right: calc(-50% + 20px);
  border-top: 1px solid var(--line);
}
.steps li:last-child::after { display: none; }
.steps .step-name { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.steps .step-desc { display: block; font-size: 13px; line-height: 20px; color: var(--ink-soft); margin-top: 4px; }
/* 纵向步骤条（窄屏/详情页） */
.steps.vertical { grid-template-columns: 1fr; gap: 0; }
.steps.vertical li { text-align: left; padding: 0 0 24px 52px; }
.steps.vertical li::before { left: 0; transform: none; }
.steps.vertical li::after { left: 16px; right: auto; top: 36px; bottom: 0; border-top: 0; border-left: 1px solid var(--line); }

/* ---------- 风险提示条（赭橙专用，招商合规显著位） ---------- */
.risk-bar {
  border: 1px solid var(--warn);
  border-left: 4px solid var(--warn);
  border-radius: 8px;
  background: #FBF3EC;
  color: var(--ink);
  padding: 16px 20px;
  font-size: 15px;
  line-height: 26px;
}
.risk-bar strong { color: var(--warn); }

/* ---------- FAQ 手风琴（details/summary 原生实现，JS 做单开增强） ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 20px;
  color: var(--gold);
  transition: transform 250ms ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 4px 24px; font-size: 16px; line-height: 28px; }
.faq-item .faq-a p:last-child { margin-bottom: 0; }
/* FAQ 页大类分组：前一组列表与后一组标题之间拉开间距并加分隔线，方便区分类目 */
.faq-list + h2 { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }

/* ---------- 新闻卡片 ---------- */
.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card .news-meta { font-size: 13px; color: var(--ink-soft); margin-bottom: 8px; }
.news-card .news-cat { color: var(--gold); margin-right: 10px; }
.news-card h3 { font-size: 18px; line-height: 28px; }
.news-card h3 a { color: var(--ink); }
.news-card h3 a:hover { color: var(--accent); text-decoration: none; }
.news-card p { font-size: 14px; line-height: 24px; }
/* 新闻详情正文 */
.article-body { max-width: 760px; }
.article-body p { margin-bottom: 20px; }
.article-meta { font-size: 14px; color: var(--ink-soft); border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 32px; }

/* ---------- 留资表单 ---------- */
.form-lead { max-width: 560px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.form-field input[type="text"],
.form-field input[type="tel"],
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background: var(--card);
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(122,46,62,0.12);
}
.form-agree { font-size: 14px; line-height: 22px; margin-bottom: 12px; display: flex; gap: 8px; align-items: flex-start; }
.form-agree input { margin-top: 5px; flex-shrink: 0; }
.form-msg { display: none; padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.form-msg.ok { display: block; background: #EFF4EF; border: 1px solid var(--ok); color: var(--ok); }
.form-msg.err { display: block; background: #FBF3EC; border: 1px solid var(--warn); color: var(--warn); }
.pipl-note { font-size: 13px; line-height: 22px; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 8px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.75); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.2fr; gap: 32px; padding: 56px 20px 40px; }
.footer-logo { height: 30px; width: auto; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: 0.9; }
.f-slogan { font-size: 14px; }
.f-col h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.f-col ul { list-style: none; padding: 0; margin: 0 0 14px; }
.f-col li { margin-bottom: 8px; }
.f-col a { color: rgba(255,255,255,0.75); font-size: 14px; }
.f-col a:hover { color: #fff; }
.f-contact { font-size: 13px; line-height: 22px; }
.footer-bar { border-top: 1px solid rgba(255,255,255,0.15); padding: 16px 0; font-size: 13px; }
.footer-bar p { margin: 0; }
.footer-bar a { color: rgba(255,255,255,0.75); }
.footer-bar a:hover { color: #fff; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  h1 { font-size: 28px; line-height: 40px; }
  h2 { font-size: 24px; line-height: 34px; }
  h3 { font-size: 20px; line-height: 28px; }
  body { font-size: 15px; }

  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .feature-band { grid-template-columns: repeat(2, 1fr); }
  .cert-wall { grid-template-columns: repeat(2, 1fr); }
  .news-list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { text-align: left; padding: 0 0 24px 52px; }
  .steps li::before { left: 0; transform: none; }
  .steps li::after { left: 16px; right: auto; top: 36px; bottom: 0; border-top: 0; border-left: 1px solid var(--line); }

  /* 移动端菜单：汉堡按钮展开 */
  .nav-toggle { display: flex; margin-left: auto; }
  .nav-tel { display: none; }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a { padding: 10px 12px; }
  .nav-cta { margin-top: 8px; margin-left: 0; } /* 移动端纵向菜单不需要左侧额外间距 */
  .nav-cta a { text-align: center; }

  .hero { padding: 72px 0 56px; height: 400px; }
  .hero .btn-outline { margin-left: 0; margin-top: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
 * 视觉增强层（后置覆盖：同优先级靠层叠顺序生效，不改动上方基础规则）
 * 目标：图标化点缀 + 暖金/酒红双色对比，提升高级感与大气感，
 *       全部沿用既有设计令牌（暖金 --gold / 酒红 --accent / 檀色系）
 * ========================================================================== */

/* 区块标题：暖金 → 酒红渐变竖线标识 */
.section h2 { position: relative; padding-left: 18px; }
.section h2::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 4px; border-radius: 2px;
  background: linear-gradient(180deg, var(--gold), var(--accent));
}

/* 引言段落：金色左边线，杂志式强调 */
.lead { border-left: 3px solid var(--gold); padding-left: 16px; }

/* 卡片：hover 时顶部显现 金 → 红 渐变描边 */
.card { position: relative; overflow: hidden; }
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--accent));
  opacity: 0; transition: opacity 250ms ease;
}
.card:hover::before { opacity: 1; }

/* 功能图标：暖金渐变底圆片 + 酒红图标，hover 轻微上浮 */
.feature-icon {
  border: 0;
  background: linear-gradient(135deg, #F7F0E2, #EFE2CE);
  box-shadow: inset 0 0 0 1px rgba(198,163,107,0.55), 0 4px 10px rgba(59,47,42,0.06);
}
.feature-item { transition: transform 200ms ease; }
.feature-item:hover { transform: translateY(-3px); }

/* 步骤圆点：柔和投影，增强层次 */
.steps li::before { box-shadow: 0 3px 8px rgba(59,47,42,0.10); }

/* 风险提示条：左侧警示圆标 */
.risk-bar { position: relative; padding-left: 52px; }
.risk-bar::before {
  content: "!"; position: absolute; left: 18px; top: 16px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--warn); color: #fff;
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* FAQ 手风琴：+ 号收入描边圆片，展开时填充酒红反白 */
.faq-item summary::after {
  width: 26px; height: 26px;
  border: 1px solid var(--gold); border-radius: 50%;
  font-size: 15px; color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.faq-item[open] summary::after { background: var(--accent); border-color: var(--accent); color: #fff; }

/* 主按钮：酒红微渐变 + 柔和投影 */
.btn-primary { background: linear-gradient(135deg, #8B3A4C, var(--accent)); box-shadow: 0 4px 12px rgba(122,46,62,0.22); }
.btn-primary:hover { background: linear-gradient(135deg, #7A2E3E, var(--accent-hover)); box-shadow: 0 6px 16px rgba(122,46,62,0.30); }

/* 表头：金色下划线，增强表格精致度 */
th { border-bottom: 2px solid var(--gold); }

/* Hero 横幅：左深右浅渐变叠层，提升文字对比与空间层次 */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(59,47,42,0.55) 0%, rgba(59,47,42,0.25) 55%, rgba(59,47,42,0.10) 100%);
}

/* 联系信息卡图标（contact.php / about.php #contact） */
.contact-icon {
  width: 44px; height: 44px; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #F7F0E2, #EFE2CE);
  box-shadow: inset 0 0 0 1px rgba(198,163,107,0.55);
  color: var(--accent);
}
.contact-icon svg { width: 22px; height: 22px; }

/* ==========================================================================
 * 视觉增强层·第二轮微调（同样靠层叠顺序后置覆盖）
 * ========================================================================== */

/* 联系卡：图标与标题同一行居中对齐，间距 12px */
.contact-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.contact-head h3 { margin: 0; }
.contact-head .contact-icon { margin-bottom: 0; width: 40px; height: 40px; flex-shrink: 0; }

/* 卡片底色：极浅暖白渐变；hover 时标题转酒红，与顶部渐变描边呼应 */
.card h3 { transition: color 200ms ease; }
.card { background: linear-gradient(180deg, #FFFFFF 0%, #FCFAF6 100%); }
.card:hover h3 { color: var(--accent); }

/* ==========================================================================
 * 视觉增强层·第三轮（吸收参考站 home1 优点：居中节标题+金色分割线、
 * FAQ 分类胶囊导航、发展历程时间轴、卡片图标章；后置覆盖生效）
 * ========================================================================== */

/* 区块标题：居中 + 下方 48px 金色分割线（覆盖第一轮的左侧竖线方案） */
.section h2 { padding-left: 0; text-align: center; }
.section h2::before { display: none; }
.section h2::after {
  content: ""; display: block; width: 48px; height: 2px;
  background: var(--gold); border-radius: 2px; margin: 14px auto 0;
}

/* FAQ 分类标题：恢复左对齐，inline-block + 金色下划线（参考站处理方式） */
.section h2.faq-cat {
  text-align: left; display: inline-block;
  font-size: 24px; line-height: 34px;
  padding: 0 2px 10px; margin-bottom: 20px;
  border-bottom: 2px solid var(--gold);
}
.section h2.faq-cat::after { display: none; }

/* FAQ 分组：组与组之间拉开间距 */
.faq-group + .faq-group { margin-top: 56px; }

/* FAQ 分类胶囊导航 */
.faq-nav { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 48px; }

/* 发展历程时间轴（金色节点纵轴，参考站 timeline） */
.timeline { position: relative; padding-left: 40px; max-width: 680px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 12px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding-bottom: 28px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -34px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold); border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--gold);
}
.timeline-year { font-size: 18px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.timeline-text { color: var(--ink-soft); font-size: 15px; line-height: 26px; }

/* 卡片内图标章：左对齐（feature-icon 默认居中仅用于首页图标带） */
.card .feature-icon { margin: 0 0 14px; }

/* 卡片 hover：描边转金色（参考站 feature-card 效果） */
.card:hover { border-color: var(--gold); }

/* ==========================================================================
 * 视觉增强层·第四轮微调
 * ========================================================================== */

/* 卡片图标章与标题同一行：图标在左、标题在右，间距 12px；
   覆盖第三轮"图标独占一行"的规则，全站所有带图标卡片统一生效；
   图标与标题均用 inline-block + vertical-align: middle，保证严格同一水平线 */
.card .feature-icon {
  display: inline-flex; vertical-align: middle;
  width: 44px; height: 44px; margin: 0 12px 10px 0;
}
.card .feature-icon + h3 { display: inline-block; vertical-align: middle; margin: 0 0 10px; }

/* 表格可读性增强：斑马纹区分单双行 + hover 行高亮 + 参数表首列定型 */
tbody tr:nth-child(even) { background: #F7F2EA; }
tbody tr:hover { background: var(--bg-soft); }
tbody th { background: #F7F2EA; white-space: nowrap; } /* 参数表首列（如技术参数表）：不换行、与数据列区分 */

/* --------------------------------------------------------------------------
 * 案例卡片多图展示（cases.image JSON 数组，前台 cases.php）
 * 单图占满卡宽；多图两列网格，统一 4:3 裁切，保持卡片整齐。
 * ------------------------------------------------------------------------ */
.case-imgs { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 14px; }
.case-imgs.case-imgs-multi { grid-template-columns: 1fr 1fr; }
.case-imgs img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 8px; display: block; margin: 0;
  background: var(--bg-soft);
  transition: transform .3s ease, box-shadow .3s ease;
}
.case-imgs img:hover { transform: scale(1.02); box-shadow: 0 6px 18px rgba(60, 42, 30, .14); }

/* --------------------------------------------------------------------------
 * 素材库内嵌图片（新闻正文 .article-body / 案例简述 .case-summary）
 * 后台素材面板插入的 <img> 自带 width/height，此处保证小屏自适应不溢出。
 * ------------------------------------------------------------------------ */
.article-body img, .case-summary img {
  max-width: 100%; height: auto; border-radius: 8px;
}
.case-summary { margin-top: 8px; }
.case-summary img { display: block; margin: 10px 0; }

/* --------------------------------------------------------------------------
 * 案例卡片（列表页）与详情页元素
 * 卡片顺序：标题 → 城市/规模/时间 → 封面图 → 摘要 → 查看完整案例；
 * 右上角「✓ 信息经核实」角标强化可核对承诺。
 * ------------------------------------------------------------------------ */
.case-card { position: relative; }
.case-card h3 a { color: inherit; text-decoration: none; }
.case-card h3 a:hover { color: var(--accent, #B3543A); }
.case-meta { margin: 6px 0 12px; }
.case-cover {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 8px; display: block; margin: 0 0 12px;
  background: var(--bg-soft);
  transition: transform .3s ease, box-shadow .3s ease;
}
.case-cover:hover { transform: scale(1.02); box-shadow: 0 6px 18px rgba(60, 42, 30, .14); }
.case-more { margin: 10px 0 0; }
.case-more a { font-weight: 600; text-decoration: none; }
.case-more a:hover { text-decoration: underline; }

/* 「已核实」角标：卡片右上角 / 详情页标题上方 */
.case-verified {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  display: inline-block; padding: 3px 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .5px;
  color: #fff; background: #5F7A61; border-radius: 999px;
  box-shadow: 0 2px 6px rgba(60, 42, 30, .18);
}
.case-verified-inline { position: static; }

/* 详情页：事实元素行 + 摘要导语；详情正文与导航同宽（解除 .article-body 的 760px 阅读限宽） */
.case-detail-body { max-width: none; }
/* 详情页分块间距：摘要 / 示意图 / 正文 之间保持清晰分隔 */
.case-detail-body .case-lead { margin-bottom: 44px; }
.case-detail-body .case-imgs { margin: 0 0 44px; }
.case-detail-meta { margin: 10px 0 0; }
.case-lead {
  font-size: 17px; line-height: 1.9; color: var(--text, #3A322A);
  padding: 16px 20px; margin: 0 0 24px;
  background: var(--bg-soft, #F7F2EA); border-left: 4px solid #C6A36B; border-radius: 0 8px 8px 0;
}
.article-nav {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 36px; padding-top: 20px; border-top: 1px solid #E3DACB;
}
.article-nav a { text-decoration: none; font-weight: 600; }
.article-nav a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
 * 区块配图 figure：与上方内容网格同宽
 * 浏览器对 figure 默认有 40px 左右外边距，导致配图比网格卡片窄，此处清除。
 * ------------------------------------------------------------------------ */
figure { margin: 28px 0 0; }
figure img { width: 100%; border-radius: 12px; }
figure figcaption { margin-top: 8px; font-size: 13px; color: var(--muted, #8A7E6D); text-align: center; }

/* 素材库内嵌视频（新闻正文 / 案例摘要与详情）：与图片同样自适应不溢出 */
.article-body video, .case-summary video, .case-detail-body video {
  max-width: 100%; border-radius: 8px; display: block; margin: 10px 0;
  background: #2A241E;
}
