/* ============================================================
   爱果儿装饰 · 案例资讯站设计系统 v4「工程档案·品牌统一版」(www.igooo.com.cn)
   2026-09-01 案例站浅色化（与主站/报价站统一品牌青绿）
   ────────────────────────────────────────────
   设计概念：工程档案库 / 专业工程刊物（保留档案质感）
   - 浅灰白底 #FAFAFA（与主站/报价站统一）
   - 品牌绿 #3AA3AE / #3AA3AE（与主站 VI 统一：黑#1A1A1A+荧光绿#3AA3AE）
   - 品牌深绿 #2A8A96（浅底文字/链接/hover）
   - 品牌青绿 #3AA3AE（编号/徽章/kicker，统一 VI 色，已去除沙金）
   - 浅色 hero 渐变（青绿光斑+几何装饰，告别深绿压迫感）
   - 刊头式双栏 header、mono kicker、超大标题
   - 卡片细边框+hover 青绿反转（而非墨青反转）
   ============================================================ */

:root {
  /* 档案色板 · 全站统一青绿品牌 */
  --ink-teal: #3AA3AE;            /* 青绿：主结构色（与主站/报价站统一） */
  --ink-teal-deep: #2A8A96;
  --ink-teal-soft: #D2E9EE;
  --accent: #3AA3AE;              /* 深青绿：链接/CTA/hover */
  --accent-deep: #2A8A96;
  --gold: #3AA3AE;                /* 品牌青绿：编号/点缀（VI 统一，原沙金已移除） */
  --gold-soft: #3AA3AE;
  --gold-pale: #E6FBF0;
  /* ===== VI 统一层 · 文字专用（2026-09-26） ===== */
  --brand-text:    #0F766E;   /* 浅底品牌文字：白底 5.47:1 / 米色底 4.56:1 ✓ */
  --brand-on-dark: #3AA3AE;   /* 深底品牌文字 */
  --gold-text:     #0F766E;   /* 浅底品牌文字：白底 5.47:1 ✓（原沙金文字已改为品牌色） */
  --ink-faint:     #666666;   /* 弱化文字：白底 5.74:1 / 米色底 4.79:1 ✓ */
  --dark:          #0F3038;   /* 品牌深色（页脚） */

  /* 纸面 · 与主站统一 */
  --paper: #FAFAFA;               /* 浅灰白：全站底色 */
  --paper-alt: #FAFAFA;           /* 交替区 */
  --paper-card: #FFFFFF;
  --ink: #1A1A1A;
  --ink-1: #1A1A1A;               /* 显式定义：全站 18 处 var(--ink-1, #1A1A1A) 的契约，避免日后被误改导致配色漂移 */
  --ink-2: #2D2D2D;
  --ink-3: #666666;
  --ink-4: #666666;
  --line: #EEEEEE;                /* 浅灰细线 */
  --line-strong: #EEEEEE;
  --line-teal: rgba(82,227,151,.18);

  --font-cn: -apple-system, BlinkMacSystemFont, 'SF Pro SC', 'PingFang SC', 'Noto Sans SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-mono: 'SF Mono', 'JetBrains Mono', 'Menlo', 'Consolas', 'Courier New', monospace;
  --container: 1160px;

  --space-xs: 8px; --space-sm: 16px; --space-md: 24px;
  --space-lg: 40px; --space-xl: 64px; --space-2xl: 96px;

  --r-sm: 3px; --r-md: 5px;       /* 档案风：小圆角近方角 */
  --r-lg: 8px; --r-full: 999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.18s var(--ease);
  --t: 0.35s var(--ease);

  /* 补齐：以下 5 个 token 此前被 var() 引用却从未定义，
     会导致对应声明整条静默失效（var 无 fallback）。此处补齐。 */
  --ink-dim: var(--ink-3);        /* index.html 185 处 var(--ink-dim) 曾全部失效（弱化文字落回正文色） */
  --mono: var(--font-mono);
  --muted: var(--ink-3);
  --card: var(--paper-card);
  --serif: 'Noto Serif SC', 'Songti SC', 'STSong', serif;
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-cn);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
strong { font-weight: 700; }
::selection { background: var(--ink-teal); color: var(--ink-1, #1A1A1A); }
.num, .stat b, .cta-phone { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ===== 通用 kicker（mono 小写字距标签） ===== */
.section-kicker, .hero-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold-text);
  font-weight: 600;
}

/* ============================================================
   HEADER · 刊头式双栏
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);   /* 刊头细底线（与主站统一） */
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px; gap: var(--space-md);
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 36px; width: auto; }
.brand-name { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name b { font-size: 15.5px; font-weight: 800; color: var(--brand-text); letter-spacing: .01em; }
.brand-name span { font-size: 11px; color: var(--ink-3); letter-spacing: .14em; }

.site-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.site-nav a {
  position: relative;
  padding: 8px 9px; font-size: 13.5px; font-weight: 500;
  color: var(--ink-2); letter-spacing: .01em;
  white-space: nowrap; flex-shrink: 0;
  transition: color var(--t-fast);
}
.site-nav a::after {
  content: ""; position: absolute; left: 9px; right: 9px; bottom: 2px;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t);
}
.site-nav a:hover { color: var(--brand-text); }
.site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); }
.site-nav a.active { color: var(--brand-text); font-weight: 700; }
.nav-ext { display: inline-flex; align-items: center; gap: 5px; }
.nav-ext svg { width: 13px; height: 13px; }
.nav-ext { color: var(--gold-text) !important; font-weight: 600 !important; }
/* 窄窗口下收进汉堡菜单而非隐藏"主站"外链，保证任意视口都能返回主站 */
@media (max-width: 1250px) {
  .site-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
}
.brand { min-width: 0; }
.brand-name b { white-space: nowrap; }
.header-cta { white-space: nowrap; flex-shrink: 0; }

.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  background: var(--ink-teal); color: var(--ink-1, #1A1A1A) !important;
  font-size: 13.5px; font-weight: 700; letter-spacing: .04em;
  border-radius: var(--r-sm);
  transition: background var(--t-fast), transform var(--t-fast);
}
.header-cta:hover { background: var(--ink-teal-deep); transform: translateY(-1px); }
.header-cta svg { width: 15px; height: 15px; }

.menu-toggle { display: none; width: 40px; height: 40px; position: relative; }
.menu-toggle span {
  position: absolute; left: 9px; right: 9px; height: 2px;
  background: var(--ink-teal); transition: var(--t-fast);
}
.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 20px; }
.menu-toggle span:nth-child(3) { top: 26px; }

.mobile-nav {
  display: none; flex-direction: column;
  background: var(--paper-card); border-bottom: 2px solid var(--ink-teal);
  padding: 8px 24px 16px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 11px 4px; font-size: 15px; font-weight: 500; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a.active { color: var(--brand-text); font-weight: 700; }
.mobile-nav .m-cta {
  margin-top: 10px; text-align: center; padding: 12px;
  background: var(--ink-teal); color: var(--ink-1, #1A1A1A); border-radius: var(--r-sm); font-weight: 700;
}

/* ============================================================
   HERO · 浅色渐变 + 青绿光斑 + 几何装饰（与主站统一）
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #FAFAFA 0%, #E6FBF0 55%, #D2E9EE 100%);
  color: var(--ink);
  padding: var(--space-2xl) 0 var(--space-xl);
  border-bottom: 1px solid var(--line);
}
/* 几何青绿装饰：左上光斑圆 + 右下点阵 */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(82,227,151,.10) 0%, transparent 38%),
    radial-gradient(circle at 88% 82%, rgba(82,227,151,.07) 0%, transparent 42%),
    radial-gradient(circle at 75% 12%, rgba(82,227,151,.12) 0%, transparent 32%);
}
/* 右上角档案印章圆环（保留档案精致感） */
.hero::after {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 340px; height: 340px; border-radius: 50%;
  border: 1px dashed rgba(82,227,151,.35);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block;
  color: var(--brand-text);
  background: rgba(82,227,151,.12);
  border: 1px solid rgba(82,227,151,.32);
  padding: 6px 14px; border-radius: var(--r-full);
  margin-bottom: 22px;
  font-weight: 700;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 800; line-height: 1.22; letter-spacing: .01em;
  max-width: 20em;
  color: var(--ink);
}
.hero h1 em {
  font-style: normal; color: var(--brand-text);
  background: linear-gradient(180deg, transparent 62%, rgba(82,227,151,.22) 62%);
  padding: 0 4px;
}
.hero .lead {
  margin-top: 20px; max-width: 40em;
  font-size: 16px; line-height: 1.9; color: var(--ink-2);
}
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

/* hero 内数据栏（白底卡 + 青绿描边） */
.hero-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px; margin-top: 48px;
  background: rgba(82,227,151,.12);
  border: 1px solid rgba(82,227,151,.25);
  border-radius: var(--r-md); overflow: hidden;
}
.hero-stats .stat, .hero-stats > div {
  background: rgba(255,255,255,.85); padding: 18px 20px;
  backdrop-filter: blur(6px);
}
.stat b { display: block; font-size: 26px; font-weight: 800; color: var(--brand-text); }
.stat span, .stat-label { display: block; font-size: 12.5px; color: var(--ink-3); letter-spacing: .06em; margin-top: 4px; }
.stat-num { font-size: 26px; font-weight: 800; color: var(--brand-text); display: block; }

/* ===== 按钮：青绿主色 + 沙金强调 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; font-size: 14.5px; font-weight: 700; letter-spacing: .04em;
  border-radius: var(--r-sm); transition: all var(--t-fast);
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--ink-teal); color: var(--ink-1, #1A1A1A); }
.btn-primary:hover { background: var(--ink-teal-deep); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(82,227,151,.28); }
.hero .btn-primary { background: var(--ink-teal); }
.btn-ghost {
  background: rgba(255,255,255,.7); color: var(--brand-text);
  border: 1px solid rgba(82,227,151,.32);
}
.btn-ghost:hover { border-color: var(--ink-teal); color: var(--brand-text); background: rgba(82,227,151,.08); }
.section .btn-ghost, .btn-ghost.dark { color: var(--brand-text); border-color: var(--line-teal); }
.section .btn-ghost:hover { border-color: var(--ink-teal); color: var(--brand-text); background: rgba(82,227,151,.06); }

/* ============================================================
   统计带 v2（大数字+图标卡片 · 白底反衬）
   ============================================================ */
.stats-band {
  background: var(--paper-card);
  border-bottom: 1px solid var(--line);
  padding: 44px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--space-md); }
.stat.reveal, .stats-grid .stat { display: flex; flex-direction: column; gap: 2px; }
.stats-grid .stat b { font-size: 32px; font-weight: 800; color: var(--brand-text); line-height: 1.15; }
.stats-grid .stat span { font-size: 13px; color: var(--ink-3); letter-spacing: .08em; }

/* v2 图标卡片 */
.stat-card {
  display: flex; align-items: flex-start; gap: 14px; text-decoration: none;
  background: var(--paper-card);
  border: 1px solid var(--line); border-top: 3px solid var(--ink-teal);
  border-radius: var(--r-md); padding: 22px 24px;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(20,53,36, .12); border-top-color: var(--gold); }
.stat-card .stat-ico {
  flex: 0 0 46px; width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(82,227,151, .10); color: var(--brand-text);
  border-radius: var(--r-full);
  transition: background var(--t), transform var(--t);
}
.stat-card:hover .stat-ico { background: rgba(82,227,151, .18); transform: scale(1.06); }
.stat-card .stat-ico svg { width: 22px; height: 22px; }
.stat-card .stat-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat-card .stat-body b {
  font-size: 28px; font-weight: 800; color: var(--brand-text);
  line-height: 1.15; font-variant-numeric: tabular-nums; font-feature-settings: "tnum";
}
.stat-card .stat-cap { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.stat-card .stat-desc { font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 640px) {
  .stat-card { padding: 18px 18px; }
  .stat-card .stat-body b { font-size: 24px; }
  .stat-card .stat-ico { flex: 0 0 40px; width: 40px; height: 40px; }
}

/* ============================================================
   SECTION 骨架
   ============================================================ */
.section { padding: var(--space-2xl) 0; }
.section-alt { background: var(--paper-alt); }
.section-head { margin-bottom: var(--space-lg); }
.section-head h2 {
  font-size: clamp(22px, 3vw, 32px); font-weight: 800;
  color: var(--brand-text); line-height: 1.3; letter-spacing: .01em;
}
.section-head p { margin-top: 8px; color: var(--ink-3); font-size: 14.5px; max-width: 46em; }
.section-head .section-kicker { display: block; margin-bottom: 10px; }
.section-head .section-kicker::after {
  content: ""; display: inline-block; width: 44px; height: 1px;
  background: var(--gold); margin-left: 12px; vertical-align: middle;
}

/* ============================================================
   案例卡 · 档案编目风（hover 墨青反转）
   ============================================================ */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.case-card {
  position: relative;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px 24px 22px;
  display: flex; flex-direction: column; gap: 12px;
  transition: background var(--t), border-color var(--t), transform var(--t);
  overflow: hidden;
}
/* 左上档案编号角标 */
.case-card::before {
  content: attr(data-no);
  position: absolute; top: 14px; right: 16px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em;
  color: var(--gold-text);
}
/* 顶部沙金短线 */
.case-card::after {
  content: ""; position: absolute; top: 0; left: 24px;
  width: 34px; height: 3px; background: var(--gold);
  transition: width var(--t);
}
.case-card:hover { background: var(--ink-teal); border-color: var(--ink-teal); transform: translateY(-3px); }
.case-card:hover::after { width: 64px; }
.case-ico {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  color: var(--brand-text); background: rgba(82,227,151,.07);
  border-radius: var(--r-sm); transition: all var(--t);
}
.case-ico svg { width: 22px; height: 22px; }
.case-card:hover .case-ico { color: var(--ink-1, #1A1A1A); background: rgba(82,227,151,.14); }
/* 案例卡配图 */
.case-photo {
  position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--r-sm); background: var(--paper-alt);
}
.case-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--t) ease; }
.case-card:hover .case-photo img { transform: scale(1.04); }
.case-card:hover .case-photo { background: transparent; }
.case-card h3 { font-size: 17px; font-weight: 700; line-height: 1.45; }
.case-card h3 a { color: var(--brand-text); }
.case-card:hover h3 a { color: var(--ink-1, #1A1A1A); }
.case-card p { font-size: 13.5px; color: var(--ink-3); line-height: 1.75; flex: 1; }
.case-card:hover p { color: rgba(26,26,26,.78); }
.case-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.case-meta span, .tag, .article-tags span {
  font-size: 11.5px; padding: 3px 10px; border-radius: var(--r-full);
  background: rgba(82,227,151,.06); color: var(--brand-text);
  letter-spacing: .03em;
}
.case-card:hover .case-meta span { background: rgba(255,255,255,.14); color: var(--ink-1, #1A1A1A); }

/* ============================================================
   chip 云
   ============================================================ */
.chip-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 7px 16px; font-size: 13px; font-weight: 500;
  background: var(--paper-card); color: var(--ink-2);
  border: 1px solid var(--line-strong); border-radius: var(--r-full);
  transition: all var(--t-fast);
}
.chip:hover { background: var(--ink-teal); color: var(--ink-1, #1A1A1A); border-color: var(--ink-teal); }

/* ============================================================
   文章列表 · 刊物目录风
   ============================================================ */
.article-list { display: flex; flex-direction: column; }
.article-row {
  display: flex; gap: 24px; padding: 26px 8px;
  border-bottom: 1px solid var(--line);
  transition: background var(--t-fast), padding var(--t-fast);
}
.article-row:first-child { border-top: 1px solid var(--line); }
.article-row:hover { background: rgba(82,227,151,.03); padding-left: 16px; }
.article-date {
  flex-shrink: 0; width: 58px; text-align: center;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 8px 0 6px; background: var(--paper-card);
}
.article-date b { display: block; font-size: 22px; font-weight: 800; color: var(--brand-text); line-height: 1.1; }
.article-date span { font-size: 11px; color: var(--gold-text); font-weight: 600; }
.article-body { flex: 1; }
.article-body h3 { font-size: 17.5px; font-weight: 700; line-height: 1.5; }
.article-body h3 a { color: var(--brand-text); }
.article-body h3 a:hover { color: var(--brand-text); }
.article-body p { margin-top: 6px; font-size: 13.5px; color: var(--ink-3); }
.article-tags { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }

/* ============================================================
   页面 hero（详情/列表页）
   ============================================================ */
.page-hero {
  position: relative;
  background: var(--paper-alt);
  border-bottom: 1px solid var(--line);
  padding: var(--space-xl) 0 var(--space-lg);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(82,227,151,.035) 79px 80px);
}
.page-hero .container { position: relative; }
.page-hero h1 {
  font-size: clamp(24px, 3.6vw, 38px); font-weight: 800;
  color: var(--brand-text); line-height: 1.32; letter-spacing: .01em;
}
.page-hero .desc { margin-top: 12px; font-size: 15px; color: var(--ink-3); max-width: 52em; }
/* 内页封面图 */
.case-hero-fig {
  margin: 22px 0 6px; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--line); background: var(--paper-card);
  max-width: 880px;
}
.case-hero-fig img { width: 100%; display: block; aspect-ratio: 16 / 8; object-fit: cover; }

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--ink-faint); margin-bottom: 18px;
  font-family: var(--font-mono); letter-spacing: .04em;
}
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--brand-text); }
.breadcrumb .sep { color: var(--gold-text); }

/* ============================================================
   正文 prose · 工程档案排版
   ============================================================ */
.prose { font-size: 15px; color: var(--ink-2); line-height: 1.95; }
.prose h2 {
  font-size: 22px; font-weight: 800; color: var(--brand-text);
  margin: 44px 0 14px; padding-left: 16px;
  border-left: 4px solid var(--gold); line-height: 1.4;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin: 30px 0 10px; }
.prose p { margin: 12px 0; }
.prose ul, .prose ol { margin: 12px 0 12px 4px; }
.prose li { padding-left: 20px; position: relative; margin: 7px 0; }
.prose li::before {
  content: ""; position: absolute; left: 2px; top: .72em;
  width: 7px; height: 2px; background: var(--gold);
}
.prose strong { color: var(--brand-text); }
.prose a { color: var(--brand-text); border-bottom: 1px solid rgba(23,162,111,.3); }
.prose a:hover { color: var(--brand-text); border-color: var(--ink-teal); }
.prose blockquote {
  margin: 20px 0; padding: 16px 20px;
  background: var(--gold-pale); border-left: 3px solid var(--gold);
  border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--ink-2);
}
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 13.5px; }
/* 修复：部分表格带内联 min-width:640px，在手机端会把栅格顶宽、整页横向溢出（docW 664 > 视口 375）。
   内联样式优先级最高，只能用 !important 覆盖；再由 .prose 自身横向滚动兜底，保证表格内容仍可左右滑动查看。 */
.prose table { min-width: 0 !important; }
@media (max-width: 720px) {
  .prose { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
.prose th { background: var(--ink-teal); color: var(--ink-1, #1A1A1A); padding: 10px 12px; text-align: left; font-weight: 600; }
.prose td { padding: 9px 12px; border-bottom: 1px solid var(--line); }
.prose tr:nth-child(even) td { background: rgba(82,227,151,.025); }

/* ============================================================
   详情布局 + 侧栏
   ============================================================ */
.detail-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px; align-items: start;
}
.sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 18px; }
.side-card {
  background: var(--paper-card); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 20px; overflow: hidden; position: relative;
}
.side-card::before {
  content: ""; position: absolute; top: 0; left: 20px;
  width: 28px; height: 3px; background: var(--gold);
}
.side-card h4 { font-size: 14.5px; font-weight: 800; color: var(--brand-text); margin-bottom: 12px; }
.side-list li { border-bottom: 1px dashed var(--line); }
.side-list li:last-child { border-bottom: none; }
.side-list a {
  display: block; padding: 9px 2px; font-size: 13.5px; color: var(--ink-2);
  transition: all var(--t-fast);
}
.side-list a:hover { color: var(--brand-text); padding-left: 8px; }

/* meta 数据行 */
.meta-card { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.meta-row { display: flex; justify-content: space-between; gap: 10px; background: var(--paper-card); padding: 11px 14px; }
.meta-k { font-size: 12px; color: var(--ink-faint); letter-spacing: .06em; }
.meta-v { font-size: 13px; font-weight: 700; color: var(--brand-text); text-align: right; }
.meta-empty { font-size: 12.5px; color: var(--ink-faint); padding: 4px 0; }

/* tag 块 */
.tag-block { display: flex; flex-wrap: wrap; gap: 6px; }

/* 高亮清单 */
.highlight-list li {
  display: flex; gap: 10px; padding: 8px 0;
  border-bottom: 1px dashed var(--line); font-size: 13.5px;
}
.highlight-list li:last-child { border-bottom: none; }

/* FAQ */
.faq-item { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper-card); margin-bottom: 12px; overflow: hidden; }
.faq-item h3, .faq-item summary, .faq-item .faq-q {
  padding: 14px 18px; font-size: 14.5px; font-weight: 700; color: var(--brand-text);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  list-style: none;
}
.faq-item .faq-q::after, .faq-item summary::after {
  content: "+"; font-family: var(--font-mono); color: var(--gold-text); font-size: 17px; font-weight: 600;
}
.faq-item[open] .faq-q::after, .faq-item[open] summary::after { content: "−"; }
.faq-item .faq-a, .faq-item .faq-body { padding: 0 18px 16px; font-size: 13.5px; color: var(--ink-2); line-height: 1.85; }

/* note box */
.note-box {
  background: var(--gold-pale); border: 1px solid var(--gold-soft);
  border-radius: var(--r-md); padding: 16px 20px;
  font-size: 13.5px; color: var(--ink-2);
}

/* query-variants（GEO 关键词变体列表） */
.query-variants { display: flex; flex-wrap: wrap; gap: 8px; }
.query-variants span, .query-variants a {
  font-size: 12.5px; padding: 5px 12px;
  background: var(--paper-card); border: 1px dashed var(--line-strong);
  border-radius: var(--r-full); color: var(--ink-3);
}

/* related */
.related-list li { border-bottom: 1px solid var(--line); }
.related-list li:last-child { border-bottom: none; }
.related-list a { display: block; padding: 11px 2px; font-size: 13.5px; color: var(--ink-2); }
.related-list a:hover { color: var(--brand-text); }

/* ============================================================
   CTA 区 · 青绿渐变 + 几何光斑
   ============================================================ */
.cta-section { padding: var(--space-xl) 0; }
.cta-card {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 60%, #0F3038 100%);
  color: #fff;
  border-radius: var(--r-lg); padding: var(--space-xl) var(--space-lg);
}
.cta-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 88% 18%, rgba(255,255,255,.18) 0%, transparent 38%),
    radial-gradient(circle at 12% 82%, rgba(255,255,255,.10) 0%, transparent 42%);
}
.cta-card h2, .cta-card h3 { position: relative; font-size: clamp(20px, 3vw, 28px); font-weight: 800; color: #fff; }
.cta-card p { position: relative; margin-top: 10px; color: rgba(255,255,255,.92); font-size: 14.5px; }
/* 深色 CTA 卡内的 ghost 按钮：改为透明底 + 深底文字规范（原亮底浅字在深卡上 1.81:1） */
.cta-card .btn-ghost { background: transparent; color: rgba(255,255,255,.78); border-color: rgba(255,255,255,.26); }
/* .cta-card 内 ghost 的 hover 态：源序需晚于 `.section .btn-ghost:hover`(:259) 才能压过同特异度规则。
   原为浅底专用的 --brand-text(#0F766E)，压在深卡上仅 2.20:1；改为深底规范白字。 */
.cta-card .btn-ghost:hover { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.45); }
/* 深色 CTA 卡内的 h4：.cta-card 是深色底（非页脚），须用「深底品牌文字」而非浅底文字色 */
.cta-card h4 { color: var(--brand-on-dark); }
.cta-line { position: relative; display: flex; align-items: center; gap: 18px; margin-top: 26px; flex-wrap: wrap; }
.cta-phone {
  font-size: 24px; font-weight: 800; color: #fff; letter-spacing: .03em;
  background: rgba(255,255,255,.16); padding: 4px 14px; border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,.28);
  display: inline-flex; align-items: center; gap: 8px;
}
/* 电话图标必须显式定尺寸：无 width/height 的 inline svg 会被浏览器按 300x150 默认尺寸撑破布局 */
.cta-phone svg { width: 20px; height: 20px; flex: 0 0 20px; }

/* ============================================================
   GEO 枢纽
   ============================================================ */
.geo-hub-group { margin-bottom: 26px; }
.geo-hub-group h3 {
  font-size: 15px; font-weight: 800; color: var(--brand-text);
  padding-bottom: 8px; margin-bottom: 12px;
  border-bottom: 2px solid var(--ink-teal);
  display: flex; align-items: baseline; gap: 10px;
}
.geo-hub-group h3 .cnt { font-family: var(--font-mono); font-size: 11px; color: var(--gold-text); font-weight: 600; }
.geo-hub-row { display: flex; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; align-items: baseline; }
.geo-hub-row .geo-biz-name { font-size: 13.5px; font-weight: 700; color: var(--brand-text); min-width: 5em; }
.geo-hub-links { display: flex; flex-wrap: wrap; gap: 6px; }
.geo-hub-links a {
  font-size: 12.5px; padding: 4px 11px;
  border: 1px solid var(--line-strong); border-radius: var(--r-full);
  color: var(--ink-2); background: var(--paper-card);
  transition: all var(--t-fast);
}
.geo-hub-links a:hover { background: var(--ink-teal); border-color: var(--ink-teal); color: var(--ink-1, #1A1A1A); }
.geo-related { margin-top: var(--space-lg); }

/* ============================================================
   GALLERY · 图库
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.gallery-card, .card-body { position: relative; }
.gallery-card {
  background: var(--paper-card); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
  transition: all var(--t);
}
.gallery-card:hover { border-color: var(--ink-teal); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(82,227,151,.12); }
.card-img { aspect-ratio: 4/3; background: var(--paper-alt); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-card:hover .card-img img { transform: scale(1.045); }
.card-body { padding: 14px 16px 16px; }
.card-desc { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; line-height: 1.6; }
.card-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-size: 11px; font-weight: 700; padding: 3px 10px;
  background: rgba(82,227,151,.92); color: var(--ink-1, #1A1A1A);
  border-radius: var(--r-full); backdrop-filter: blur(4px);
}
.gallery-hero { padding: var(--space-xl) 0; }
.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.filter-label { font-size: 12.5px; color: var(--ink-faint); align-self: center; margin-right: 4px; letter-spacing: .06em; }

/* gallery 详情 */
.gallery-detail { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 32px; align-items: start; }
.gallery-figure {
  background: var(--ink-teal); border-radius: var(--r-md);
  overflow: hidden; position: relative;
}
.gallery-figure img { width: 100%; display: block; }
.gallery-figure figcaption {
  padding: 12px 16px; color: var(--ink-1, #1A1A1A); font-size: 12.5px; letter-spacing: .04em;
}
.gallery-side { display: flex; flex-direction: column; gap: 16px; }
.gallery-nav { display: flex; gap: 10px; }
.gallery-nav-section { margin-top: 8px; }
.gallery-back, .gallery-prev, .gallery-next {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  color: var(--ink-2); background: var(--paper-card);
  transition: all var(--t-fast);
}
.gallery-back:hover, .gallery-prev:hover, .gallery-next:hover {
  background: var(--ink-teal); color: var(--ink-1, #1A1A1A); border-color: var(--ink-teal);
}

/* ============================================================
   feature / about / facts
   ============================================================ */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feature {
  background: var(--paper-card); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 24px;
  transition: all var(--t);
}
.feature:hover { border-color: var(--gold); }
.feature-ico {
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  background: var(--gold-pale); color: var(--gold-text); border-radius: var(--r-sm);
  margin-bottom: 14px;
}
.feature-ico svg { width: 21px; height: 21px; }
.feature h3 { font-size: 15.5px; font-weight: 700; color: var(--brand-text); margin-bottom: 8px; }
.feature p { font-size: 13.5px; color: var(--ink-3); line-height: 1.75; }

.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.cat-block h3 { font-size: 16px; font-weight: 800; color: var(--brand-text); margin: 20px 0 10px; }

.fact-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.fact {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--paper-card); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 16px;
}
.fact-ico { flex-shrink: 0; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: rgba(82,227,151,.06); color: var(--brand-text); border-radius: var(--r-sm); }
.fact-ico svg { width: 18px; height: 18px; }
.fact b { display: block; font-size: 14px; color: var(--brand-text); }
.fact span { font-size: 12.5px; color: var(--ink-3); }

/* ============================================================
   FOOTER · 墨青档案柜
   ============================================================ */
.site-footer { background: var(--dark); color: rgba(255,255,255,.78); margin-top: 0; }
.footer-top { padding: var(--space-xl) 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand img { height: 34px; max-width: 220px; width: auto; margin-bottom: 14px;
                    background: #fff; border-radius: 6px; padding: 5px 10px; box-sizing: content-box; }
.footer-brand p { font-size: 13px; line-height: 1.85; color: rgba(255,255,255,.62); }
.footer-main-link { margin-top: 10px; }
.footer-main-link a { color: var(--brand-text) !important; border-bottom: 1px solid rgba(82,227,151,.4); }
.footer-col h5 {
  font-size: 12px; font-weight: 700; letter-spacing: .24em;
  color: var(--gold-soft); margin-bottom: 16px; text-transform: uppercase;
  font-family: var(--font-mono);
}
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,.66); transition: color var(--t-fast), padding-left var(--t-fast); }
.footer-col a:hover { color: #fff; padding-left: 5px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.footer-contact svg { width: 15px; height: 15px; color: var(--gold-soft); flex-shrink: 0; margin-top: 4px; }
.footer-contact b { color: #fff; font-size: 14.5px; }
.footer-cta {
  display: inline-block; margin-top: 16px; padding: 10px 18px;
  border: 1px solid rgba(82,227,151,.5); border-radius: var(--r-sm);
  color: var(--gold-soft) !important; font-size: 13px; font-weight: 600;
  transition: all var(--t-fast);
}
.footer-cta:hover { background: var(--gold); color: var(--ink-1, #1A1A1A) !important; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: rgba(255,255,255,.55); }
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: var(--gold-soft); }

/* ============================================================
   动效
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1120px) {
  /* 导航在窄桌面窗口收进汉堡菜单，防止 9 入口 + 电话 CTA 挤爆换行 */
  .site-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
}
@media (max-width: 1020px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .gallery-detail { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .section { padding: var(--space-xl) 0; }
  .hero { padding: var(--space-xl) 0 var(--space-lg); }
  .hero h1 { font-size: clamp(26px, 7.6vw, 34px); }
  .case-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .article-row { flex-direction: column; gap: 12px; }
  .article-date { width: auto; display: flex; gap: 8px; align-items: baseline; padding: 6px 12px; }
  .meta-card { grid-template-columns: 1fr; }
  .cta-card { padding: var(--space-lg) var(--space-md); }
  .cta-phone { font-size: 20px; }
}

/* ============================================================
   补充：分类页/杂项
   ============================================================ */
.muted { color: var(--ink-3); font-size: 13px; }
.center { text-align: center; }
.category-section { margin-top: var(--space-xl); }
.cat-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 800; color: var(--brand-text);
  padding-bottom: 10px; margin-bottom: 18px;
  border-bottom: 2px solid var(--ink-teal);
}
.cat-title svg { width: 22px; height: 22px; color: var(--gold-text); flex-shrink: 0; }
.more-index { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper-card); overflow: hidden; }
.more-index summary {
  padding: 14px 18px; font-size: 13.5px; font-weight: 700; color: var(--brand-text);
  cursor: pointer; letter-spacing: .04em; user-select: none;
}
.more-index summary:hover { background: rgba(82,227,151,.04); }
.more-index ul { padding: 6px 18px 16px; columns: 3; column-gap: 28px; }
.more-index li { break-inside: avoid; }
.more-index a { display: block; padding: 5px 0; font-size: 13px; color: var(--ink-2); }
.more-index a:hover { color: var(--brand-text); }
.plain-list li { border-bottom: 1px dashed var(--line); }
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.cat-pill {
  padding: 7px 14px; font-size: 13px; font-weight: 600;
  background: var(--paper-card); border: 1px solid var(--line-strong);
  border-radius: var(--r-full); color: var(--ink-2);
  transition: all var(--t-fast);
}
.cat-pill:hover, .cat-pill.on { background: var(--ink-teal); color: var(--ink-1, #1A1A1A); border-color: var(--ink-teal); }
.cat-nav-section { margin-top: 10px; }
@media (max-width: 720px) { .more-index ul { columns: 1; } }

/* ============================================================
   媒体图库（media.html / media/*.html）
   ============================================================ */
.media-card { display: flex; flex-direction: column; }
.media-card .card-img { aspect-ratio: 4/3; overflow: hidden; background: var(--paper-alt); }
.media-card .card-img img, .media-card .card-img video {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.media-card:hover .card-img img, .media-card:hover .card-img video { transform: scale(1.045); }
.media-card .card-body { padding: 12px 14px 14px; }
.media-card .card-body b { font-size: 13.5px; color: var(--brand-text); font-weight: 700; display: block; }
.gallery-detail video { width: 100%; display: block; background: #000; }
.gallery-figure video { max-height: 78vh; }

/* ===== 打印 ===== */
@media print {
  .site-header, .site-footer, .hero-actions, .cta-section, .sidebar, .gallery-nav { display: none !important; }
  body { background: #fff; color: #000; }
  .prose h2 { border-left-color: #6b6b6b; }
}

/* ===== GEO 长尾词墙（关键词可见页） ===== */
.kw-hero .kw-meta { display: flex; gap: 36px; margin-top: 22px; padding: 0; list-style: none; flex-wrap: wrap; }
.kw-hero .kw-meta li { font-size: 12.5px; color: var(--muted); letter-spacing: .04em; }
.kw-hero .kw-meta b { font-family: var(--mono); font-size: 28px; color: var(--brand-text); display: block; line-height: 1.1; margin-bottom: 4px; font-weight: 700; }
.kw-wrap { padding: 60px 0 90px; display: grid; grid-template-columns: 1fr; gap: 32px; }
.kw-block { padding: 26px 28px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--ink-teal); }
.kw-block > header { display: flex; align-items: baseline; gap: 18px; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.kw-tag { font-family: var(--mono); font-size: 11px; color: var(--ink-1, #1A1A1A); background: var(--ink-teal); padding: 4px 10px; border-radius: 2px; letter-spacing: .08em; }
.kw-block h3 { margin: 0; font-family: var(--serif); font-size: 20px; color: var(--brand-text); flex: 1; }
.kw-count { font-size: 11px; color: var(--muted); font-family: var(--mono); letter-spacing: .05em; }
.kw-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.kw { display: inline-block; padding: 5px 12px; font-size: 13px; color: var(--brand-text); background: var(--paper); border: 1px solid var(--line); border-radius: 2px; transition: all .15s; text-decoration: none; }
.kw:hover { background: var(--ink-teal); color: var(--ink-1, #1A1A1A); border-color: var(--ink-teal); }
@media (max-width: 720px) {
  .kw-hero .kw-meta { gap: 18px; }
  .kw-hero .kw-meta b { font-size: 22px; }
  .kw-block { padding: 18px 18px; }
}

/* 副业投资合作：核心转化入口 */
.site-nav a.nav-side, .mobile-nav a.nav-side { color: var(--brand-text); font-weight: 700; }

/* ============================================================
   安全网：inline SVG 尺寸兜底
   历史 bug：.cta-phone 内的电话图标无 width/height，被浏览器按
   300x150 默认尺寸渲染成 218x218 巨块，撑破侧边栏 CTA 卡片。
   以下规则只限制上限、不覆盖任何已有的显式尺寸设置，零副作用。
   ============================================================ */
svg { max-width: 100%; }

/* 图库扩充 2026-09-02 */
.gallery-card[data-cat="site-photo"] .card-img::after{content:"实拍";position:absolute;top:10px;right:10px;z-index:2;background:rgba(0,0,0,.55);color:#fff;font-size:11px;padding:2px 8px;border-radius:20px;letter-spacing:.08em;}
.badge-render{background:var(--gold)!important;color:var(--ink-1, #1A1A1A);}

/* 实拍案例区 - 竖屏图完整展示，不截断主体（2026-09-16 追加补丁） */
#shots .case-fig { aspect-ratio: auto; min-height: 260px; max-height: 420px; }
#shots .case-fig img { object-fit: contain; background: var(--paper-alt); }
