/* ============================================================
   WENYA · 参考稿设计语言适配层
   加载顺序：style / framework / premium / ref / ref-adapt
   ============================================================ */

body.ref-site { background: var(--paper); color: var(--text); }

/* ---------- 子页：让既有内容融入纸感 + 墨黑 + 薄荷绿 ---------- */
body.ref-sub .page-hero { background: var(--paper); }
body.ref-sub .page-hero h1 { font-size: clamp(36px, 4.2vw, 58px); }
body.ref-sub .page-hero .lead { color: var(--muted); }
body.ref-sub .drawer + .section { padding-top: calc(var(--header-h) + 76px); }
body.ref-sub .section { padding: 92px 0; }
body.ref-sub .section--dark { background: var(--ink); color: var(--on-dark); }
body.ref-sub .section--dark::before { display: none; }
body.ref-sub .section--dark > .container { position: relative; z-index: 1; }
body.ref-sub .section--dark .lead,
body.ref-sub .section--dark .muted,
body.ref-sub .section--dark .step p { color: #AEB5B2; }
body.ref-sub .section--dark .steps::before { background: var(--line-dark); }

body.ref-sub .hero::before,
body.ref-sub .hero::after { display: none; }
body.ref-sub .hero h1 { font-size: clamp(38px, 4.6vw, 62px); line-height: 1.1; color: #F5F2EA; }
body.ref-sub .hero .lead { color: #A9B8C8; }
body.ref-sub .h2 { font-size: clamp(27px, 2.9vw, 40px); }

/* 按钮与标签统一到新色板 */
body.ref-sub .btn--primary {
  background: var(--teal); color: #fff; border-color: var(--teal);
  border-radius: var(--radius); box-shadow: none;
}
body.ref-sub .btn--primary:hover { background: var(--teal-deep); border-color: var(--teal-deep); }
body.ref-sub .section--dark .btn--primary,
body.ref-sub .hero .btn--primary {
  background: var(--mint); color: #07211C; border-color: var(--mint);
}
body.ref-sub .eyebrow { color: var(--teal); }
body.ref-sub .section--dark .eyebrow { color: var(--mint); }
body.ref-sub .kicker b {
  color: var(--teal); border-color: rgba(30, 95, 200, .24); background: rgba(30, 95, 200, .08);
}
body.ref-sub .section--dark .kicker b {
  color: var(--mint); border-color: rgba(100, 181, 255, .3); background: rgba(100, 181, 255, .1);
}

/* 卡片：深色区也保持纸感白卡 + 深色文字 */
body.ref-sub .card,
body.ref-sub .card--dark,
body.ref-sub .section--dark .card {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); box-shadow: none;
}
body.ref-sub .card h3,
body.ref-sub .card--dark h3,
body.ref-sub .section--dark .card h3 { color: var(--text); }
body.ref-sub .card p,
body.ref-sub .card--dark p,
body.ref-sub .card__list li,
body.ref-sub .card--dark .card__list li,
body.ref-sub .section--dark .card p { color: var(--muted); }
body.ref-sub .card__num,
body.ref-sub .card--dark .card__num,
body.ref-sub .section--dark .card__num { color: var(--teal); }
body.ref-sub .card--dark .tag,
body.ref-sub .section--dark .tag {
  background: var(--surface-2); border-color: var(--line); color: var(--muted);
}
body.ref-sub .card--dark .card__foot a,
body.ref-sub .section--dark .card__foot a { color: var(--teal); }

/* 数据条 / 面板 / 表格类组件 */
body.ref-sub .stat-band,
body.ref-sub .cover-panel,
body.ref-sub .matrix-map,
body.ref-sub .svc-table,
body.ref-sub .course-card,
body.ref-sub .team-card,
body.ref-sub .team-card--rich,
body.ref-sub .expert,
body.ref-sub .jd-card,
body.ref-sub .fde-def,
body.ref-sub .upload,
body.ref-sub .toc {
  background: var(--surface); border-color: var(--line); color: var(--text);
}
body.ref-sub .stat-band b,
body.ref-sub .stat-band dt,
body.ref-sub .cover-panel h3,
body.ref-sub .matrix-map h3,
body.ref-sub .course-card h3,
body.ref-sub .team-card h3,
body.ref-sub .team-card--rich h3,
body.ref-sub .expert h3,
body.ref-sub .jd-card h3,
body.ref-sub .fde-def h3 { color: var(--text); }
body.ref-sub .stat-band span,
body.ref-sub .stat-band dd,
body.ref-sub .matrix-map p,
body.ref-sub .course-card p,
body.ref-sub .team-card p,
body.ref-sub .expert p,
body.ref-sub .jd-card p { color: var(--muted); }
body.ref-sub .toc a { color: var(--muted); }
body.ref-sub .toc a.is-active { color: var(--teal); }

/* 子页不做淡入，保证内容始终可读 */
body.ref-sub .reveal { opacity: 1 !important; transform: none !important; }

/* ---------- 覆盖旧版遗留：导航底色 / Hero 网格 / 子页深色标题 ---------- */
body.ref-site .site-header {
  background: transparent; border-bottom-color: transparent; color: var(--on-dark);
}
body.ref-site .site-header.is-solid,
body.ref-site .site-header--solid {
  background: var(--paper); border-bottom-color: var(--line); color: var(--text);
}
body.ref-site .site-header.is-solid .nav a,
body.ref-site .site-header--solid .nav a { color: var(--muted); }
body.ref-site .site-header.is-solid .nav a:hover,
body.ref-site .site-header--solid .nav a:hover,
body.ref-site .site-header.is-solid .nav a.is-active,
body.ref-site .site-header--solid .nav a.is-active { color: var(--text); }
body.ref-site .site-header--solid .header-actions .btn {
  background: var(--teal); color: #fff; border-color: var(--teal);
}
body.ref-site .site-header--solid .menu-btn { border-color: var(--line-strong); color: var(--text); }

body.ref-home .hero::before,
body.ref-home .hero::after,
body.ref-sub .hero::before,
body.ref-sub .hero::after,
body.ref-sub .page-hero::before,
body.ref-sub .page-hero::after,
body.ref-site .section--dark::before,
body.ref-site .section--dark::after { display: none; }

body.ref-sub .page-hero { background: var(--paper); color: var(--text); }
body.ref-sub .page-hero h1 { color: var(--text); }
body.ref-sub .page-hero .lead,
body.ref-sub .page-hero .crumb { color: var(--muted); }
body.ref-sub .page-hero h1 .grad-text,
body.ref-sub .grad-text {
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
body.ref-sub .section--dark .grad-text {
  background: var(--brand-grad-dark); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
body.ref-sub .stat-band__num,
body.ref-sub .stat-band__label,
body.ref-sub .stat-band__note { color: var(--text); }
body.ref-sub .stat-band__num em { color: var(--teal); }
body.ref-sub .stat-band__label,
body.ref-sub .stat-band__note { color: var(--muted); }
body.ref-sub .stat-band__item { border-color: var(--line); }

body.ref-sub .page-hero .badge {
  color: var(--muted); border-color: var(--line-strong); background: var(--surface);
}
body.ref-sub .page-hero .badge i { background: var(--teal); }

/* ---------- 页脚：纯二维码主体卡片（精简尺寸，保证可正常扫描） ---------- */
body.ref-site .footer-follow {
  margin-top: 62px; padding-top: 50px;
  border-top: 1px solid var(--line-dark);
}
body.ref-site .footer-follow__inner {
  display: block;
}
body.ref-site .footer-follow__kicker {
  display: block; font-family: var(--mono); font-size: 10px;
  letter-spacing: .28em; color: var(--mint);
}
body.ref-site .footer-follow h3 {
  font-size: clamp(22px, 2.2vw, 28px); font-weight: 600;
  margin: 12px 0 10px; color: var(--on-dark);
}
body.ref-site .footer-follow p {
  font-size: 13px; line-height: 1.8; color: var(--on-dark-muted);
  max-width: 68ch; margin: 0;
}
body.ref-site .footer-follow__accounts {
  display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px;
  font-family: var(--mono); font-size: 11px; color: var(--on-dark-muted);
}
body.ref-site .footer-follow__cards {
  display: grid; grid-template-columns: repeat(4, 148px);
  justify-content: start; gap: 28px; margin-top: 36px; align-items: start;
}
body.ref-site .footer-follow__cards figure { margin: 0; text-align: center; min-width: 0; }
body.ref-site .footer-follow__cards figure > a {
  display: block; padding: 10px; background: #fff;
  border: 1px solid var(--line-dark); border-radius: 10px;
  transition: border-color .25s, transform .25s;
}
body.ref-site .footer-follow__cards figure > a:hover {
  border-color: var(--mint); transform: translateY(-2px);
}
body.ref-site .footer-follow__cards img {
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 1;
  object-fit: contain; padding: 0; border: 0; border-radius: 0;
  background: transparent;
}
body.ref-site .footer-follow__cards figcaption {
  margin-top: 12px; font-size: 11px; letter-spacing: .04em;
  color: var(--on-dark-muted);
}
@media (max-width: 900px) {
  body.ref-site .footer-follow__cards {
    grid-template-columns: repeat(2, 148px); gap: 24px;
  }
}
@media (max-width: 640px) {
  body.ref-site .footer-follow { margin-top: 44px; padding-top: 36px; }
  body.ref-site .footer-follow__cards {
    grid-template-columns: repeat(2, 148px);
    justify-content: start; gap: 20px; margin-top: 30px;
  }
  body.ref-site .footer-follow__cards figure > a { padding: 8px; }
}

/* ---------- 官方品牌标识（顶部导航与页脚） ---------- */
body.ref-site .brand .brand-mark {
  display: block; width: auto; height: 30px; max-width: 62px;
  object-fit: contain; border-radius: 0; flex: 0 0 auto;
}
body.ref-site .site-footer .brand .brand-mark { height: 34px; }
/* 深色导航上略微提亮，保证蓝绿渐变的深蓝部分也可辨识 */
body.ref-site .site-header:not(.is-solid):not(.site-header--solid) .brand .brand-mark,
body.menu-open .site-header .brand .brand-mark {
  filter: brightness(1.12) drop-shadow(0 0 8px rgba(79, 227, 198, .22));
}

/* 小屏：新导航在 1024px 以下已切换为抽屉 */
@media (max-width: 640px) {
  body.ref-site .brand .brand-mark,
  body.ref-site .site-footer .brand .brand-mark { height: 26px; }
}

/* ---------- 首页：模块头统一左对齐、编号 / 短标题 / 一句说明 / 详情入口 ---------- */
body.ref-home .sec-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 24px; align-items: end; margin-bottom: 38px;
}
body.ref-home .sec-no {
  grid-column: 1 / -1;
  flex-direction: row; align-items: baseline; gap: 12px; margin-bottom: 14px;
}
body.ref-home .sec-no b {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: .1em; color: var(--brand-blue);
}
body.ref-home .sec-no span { letter-spacing: .16em; color: var(--muted-2); }
body.ref-home .sec-head__main { min-width: 0; grid-column: 1; }
body.ref-home .sec-head__main .lead {
  margin-top: 12px; max-width: 66ch; padding-bottom: 0;
}
body.ref-home .sec-head__link {
  grid-column: 2; justify-self: end; align-self: end;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--brand-blue); white-space: nowrap;
  border-bottom: 1px solid rgba(47, 111, 228, .32); padding-bottom: 5px;
  transition: color .2s, border-color .2s;
}
body.ref-home .sec-head__link .arrow { transition: transform .25s; }
body.ref-home .sec-head__link:hover { color: var(--brand-blue-deep); border-color: var(--brand-blue-deep); }
body.ref-home .sec-head__link:hover .arrow { transform: translateX(4px); }
body.ref-home .contact .eyebrow { color: var(--mint); }
body.ref-home .contact h2 { font-size: clamp(31px, 3.6vw, 50px); }

/* 首屏：左右等高，右侧案例轮播填满，避免大面积留白 */
body.ref-home .hero { padding-top: calc(var(--header-h) + 46px); }
body.ref-home .hero-inner {
  align-items: stretch; padding-bottom: 36px; gap: 56px;
}
body.ref-home .hero-copy { min-width: 0; }
body.ref-home .hero-kicker { margin-bottom: 20px; }
body.ref-home .hero h1 { font-size: clamp(44px, 5.2vw, 76px); }
body.ref-home .hero-sub { margin-top: 20px; max-width: 44ch; }
body.ref-home .hero-actions { margin-top: 24px; }
body.ref-home .hero-meta { margin-top: 30px; }

@media (max-width: 820px) {
  body.ref-home .sec-head { margin-bottom: 30px; }
  body.ref-home .sec-no { gap: 10px; }
  body.ref-home .sec-head__main .lead { max-width: 100%; }
  body.ref-home .sec-head__link { grid-column: 1 / -1; justify-self: start; margin-top: 16px; }
}


/* ---------- 品牌统一：Logo 蓝绿渐变贯穿首页与详情页 ---------- */
body.ref-site .btn--mint {
  background: var(--brand-grad-dark); color: #06121E; border-color: transparent;
}
body.ref-site .btn--mint:hover { background: var(--brand-grad-dark); filter: brightness(1.07); }
body.ref-site .btn--primary {
  background: var(--brand-grad); border-color: transparent; color: #fff;
}
body.ref-site .btn--primary:hover { filter: brightness(1.08); }
body.ref-home .hero h1 .em {
  background: var(--brand-grad-dark);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
body.ref-home .hero-kicker::before,
body.ref-site .footer-follow__kicker { background: var(--brand-grad-dark); }
body.ref-home .hero-kicker::before { height: 2px; width: 30px; opacity: 1; }
body.ref-site .footer-follow__kicker {
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
body.ref-site .footer-follow__cards figure > a:hover { border-color: #64B5FF; }
body.ref-sub .stat-band__num em { color: var(--brand-blue); }
body.ref-sub .section--dark .eyebrow { color: #8FC2FF; }

/* 旧版组件变量（style/framework/premium）一并归到品牌色系 */
body.ref-site {
  --cyan:#4B9BE8;
  --blue:#2F6FE4;
  --green:#18A878;
  --grad:var(--brand-grad);
  --grad-text:var(--brand-grad);
  --p-accent:#1E5FC8;
  --p-cyan:#4B9BE8;
  --p-blue:#2F6FE4;
  --p-green:#18A878;
  --p-bg:#F5F7F9;
  --p-ink:#0A1119;
  --p-line:#E2EAF3;
  --p-line-strong:#CFDDEE;
}
body.ref-site .splash::before {
  background: linear-gradient(180deg, rgba(100,181,255,.06) 1px, transparent 1px);
}

/* 浅色纸感卡片内的描边按钮：深色文字 + 品牌蓝悬停（原本是深底专用浅色字，看不清） */
body.ref-sub .card .btn--outline {
  color: var(--text); border-color: var(--line-strong); background: transparent;
}
body.ref-sub .card .btn--outline:hover {
  color: var(--brand-blue); border-color: var(--brand-blue); background: var(--teal-soft);
}

/* ============================================================
   v15 · 首页精简 + 案例轮播 + 统一图片放大 + 子页流程修复
   ============================================================ */

/* ---------- 1. 首屏：3 个案例轮播，右列与左列等高填满 ---------- */
body.ref-home .hero-showcase {
  min-width: 0; align-self: stretch;
  display: flex; flex-direction: column;
  min-height: clamp(420px, 54vh, 570px);
  background: #0E1620; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .13); border-radius: var(--radius);
}
body.ref-home .hs-top {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 20px; border-bottom: 1px solid rgba(255, 255, 255, .09);
}
body.ref-home .hs-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: .18em;
  color: rgba(234, 241, 249, .72); text-transform: uppercase;
}
body.ref-home .hs-count {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  color: rgba(234, 241, 249, .55); white-space: nowrap;
}
body.ref-home .hs-count b { color: #8FC2FF; font-weight: 600; }
body.ref-home .hs-stage {
  position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden;
  background: #121A24;
}
body.ref-home .hs-slide {
  position: absolute; inset: 0; margin: 0; z-index: 0;
  opacity: 0; visibility: hidden; transition: opacity .65s var(--ease), visibility .65s;
  outline: none;
}
body.ref-home .hs-slide.is-active { z-index: 1; opacity: 1; visibility: visible; }
body.ref-home .hs-slide img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  object-position: center 55%; filter: grayscale(.28) contrast(1.04) brightness(.86);
}
body.ref-home .hs-slide::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 12, 18, .04) 0%, rgba(8, 12, 18, .02) 40%, rgba(8, 12, 18, .86) 100%);
}
body.ref-home .hs-slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 26px 26px 22px;
}
body.ref-home .hs-slide figcaption p {
  margin: 0; font-size: 15px; font-weight: 600; line-height: 1.5; color: #F2F6FC;
}
body.ref-home .hs-slide figcaption span {
  display: block; margin-top: 7px; font-size: 12px; line-height: 1.6;
  color: rgba(234, 241, 249, .78);
}
body.ref-home .hs-controls {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 18px; border-top: 1px solid rgba(255, 255, 255, .09);
  background: rgba(255, 255, 255, .025);
}
body.ref-home .hs-dots { display: flex; align-items: center; gap: 8px; }
body.ref-home .hs-dot {
  width: 24px; height: 3px; padding: 0; border: 0; border-radius: 2px;
  background: rgba(255, 255, 255, .25); cursor: pointer;
  transition: width .28s var(--ease), background .28s;
}
body.ref-home .hs-dot.is-active { width: 38px; background: #64B5FF; }
body.ref-home .hs-arrows { display: flex; gap: 8px; }
body.ref-home .hs-arrow {
  width: 30px; height: 30px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .26); background: transparent;
  color: #EAF1F9; font-size: 14px; line-height: 1;
  transition: border-color .2s, background .2s;
}
body.ref-home .hs-arrow:hover { border-color: #64B5FF; background: rgba(100, 181, 255, .12); }
body.ref-home .hs-dot:focus-visible,
body.ref-home .hs-arrow:focus-visible { outline: 2px solid #8FC2FF; outline-offset: 3px; }

/* ---------- 2. 首页模块：收紧间距、减少信息密度 ---------- */
body.ref-home .section { padding: 68px 0; }
body.ref-home .contact { padding: 84px 0 76px; }

body.ref-home .gap-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}
body.ref-home .gap-card {
  padding: 26px 30px 28px 0; border-right: 1px solid var(--line);
}
body.ref-home .gap-card:not(:first-child) { padding-left: 30px; }
body.ref-home .gap-card:last-child { border-right: 0; padding-right: 0; }
body.ref-home .gap-card .gc-no {
  display: block; margin-bottom: 16px; font-family: var(--mono);
  font-size: 10.5px; letter-spacing: .14em; color: var(--brand-blue);
}
body.ref-home .gap-card h3 {
  font-size: 17.5px; line-height: 1.5; margin-bottom: 10px; color: var(--text);
}
body.ref-home .gap-card p { font-size: 13.5px; line-height: 1.8; color: var(--muted); }

body.ref-home .section-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 32px; padding: 20px 24px; border: 1px solid var(--line);
  background: var(--surface); border-radius: var(--radius);
}
body.ref-home .sc-text { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
body.ref-home .sc-text b { font-size: 16px; color: var(--text); }
body.ref-home .sc-text span { font-size: 13px; color: var(--muted); }

body.ref-home .why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
body.ref-home .why-card {
  padding: 28px 26px 30px; background: var(--surface);
  border: 1px solid var(--line); border-top: 2px solid var(--brand-blue);
  border-radius: var(--radius);
}
body.ref-home .why-card:nth-child(2) { border-top-color: #1E9BC8; }
body.ref-home .why-card:nth-child(3) { border-top-color: var(--brand-green); }
body.ref-home .why-card .wc-no {
  display: block; margin-bottom: 16px; font-family: var(--mono);
  font-size: 10.5px; letter-spacing: .14em; color: var(--brand-blue);
}
body.ref-home .why-card h3 { font-size: 18px; line-height: 1.45; margin-bottom: 10px; color: var(--text); }
body.ref-home .why-card p { font-size: 13.5px; line-height: 1.8; color: var(--muted); }

body.ref-home .method-flow {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}
body.ref-home .method-step {
  position: relative; padding: 26px 24px 28px 0; border-right: 1px solid var(--line);
}
body.ref-home .method-step:not(:first-child) { padding-left: 24px; }
body.ref-home .method-step:last-child { border-right: 0; padding-right: 0; }
body.ref-home .method-step::before {
  content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px;
  border-radius: 50%; background: var(--brand-blue);
}
body.ref-home .method-step:not(:first-child)::before { left: 24px; }
body.ref-home .method-step:nth-child(2)::before { background: #1E9BC8; }
body.ref-home .method-step:nth-child(3)::before { background: #2E9FC0; }
body.ref-home .method-step:nth-child(4)::before { background: var(--brand-green); }
body.ref-home .ms-no {
  display: block; margin-bottom: 12px; font-family: var(--mono);
  font-size: 10.5px; letter-spacing: .14em; color: var(--muted-2);
}
body.ref-home .method-step h3 { font-size: 20px; margin-bottom: 8px; color: var(--text); }
body.ref-home .method-step p { font-size: 13.5px; line-height: 1.75; color: var(--muted); }
body.ref-home .method-step .out {
  display: inline-block; margin-top: 14px; padding-bottom: 3px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .04em;
  color: var(--brand-blue); border-bottom: 1px solid rgba(47, 111, 228, .3);
}
body.ref-home .section-note {
  margin-top: 22px; font-size: 11.5px; line-height: 1.75; color: var(--muted-2);
}

/* ---------- 3. 全站统一的图片放大灯箱 ---------- */
body.ref-site .zoomable { cursor: zoom-in; }
body.ref-site .zoomable:focus-visible { outline: 2px solid #64B5FF; outline-offset: 3px; }
body.ref-site .cf-media.zoomable::after {
  content: "⤢"; position: absolute; z-index: 3; top: 16px; right: 16px;
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(11, 13, 14, .58); color: #fff;
  font-size: 15px; opacity: 0; transition: opacity .25s; backdrop-filter: blur(4px);
}
body.ref-site .cf-media.zoomable:hover::after { opacity: 1; }
body.ref-site .case-row .thumb { position: relative; }
body.ref-site .case-row .thumb::after {
  content: "⤢"; position: absolute; z-index: 2; right: 6px; bottom: 6px;
  width: 24px; height: 24px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(11, 13, 14, .62); color: #fff;
  font-size: 12px; opacity: 0; transition: opacity .25s;
}
body.ref-site .case-row:hover .thumb::after { opacity: 1; }
body.ref-site .case-row.zoomable:hover .thumb img { filter: grayscale(0); transform: scale(1.05); }

body.ref-site .img-lightbox {
  position: fixed; inset: 0; z-index: 12000; display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 40px 24px; background: rgba(6, 10, 16, .93); backdrop-filter: blur(10px);
}
body.ref-site .img-lightbox.is-open { display: flex; }
body.ref-site .img-lightbox img {
  display: block; max-width: min(94vw, 1280px); max-height: 80vh;
  width: auto; height: auto; object-fit: contain; border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
body.ref-site .img-lightbox__cap {
  max-width: 90vw; text-align: center; font-size: 13.5px; line-height: 1.7;
  color: #EAF1F9;
}
body.ref-site .img-lightbox__hint { font-size: 11px; color: rgba(234, 241, 249, .55); }
body.ref-site .img-lightbox__close {
  position: absolute; top: 22px; right: 26px; width: 40px; height: 40px;
  border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%;
  background: transparent; color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
}
body.ref-site .img-lightbox__close:hover { background: rgba(255, 255, 255, .12); }

/* ---------- 4. 子页流程：恢复四列横向步骤，修复 ref.css .step 网格覆盖 ---------- */
body.ref-sub .steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0; position: relative;
}
body.ref-sub .steps > .step {
  display: block; padding: 0 22px; border-top: 0; text-align: left;
}
body.ref-sub .steps > .step h3 { margin-bottom: 9px; }
body.ref-sub .steps > .step p { line-height: 1.75; }
body.ref-sub .section--dark .steps::before { background: var(--line-dark); }

/* ---------- 5. 响应式 ---------- */
@media (max-width: 1100px) {
  body.ref-home .hero-inner { gap: 36px; }
  body.ref-home .hero-showcase { min-height: clamp(400px, 52vh, 540px); }
}
@media (max-width: 1024px) {
  body.ref-home .hero-inner { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 40px; }
  body.ref-home .hero-showcase { min-height: 0; height: clamp(340px, 52vw, 480px); }
  body.ref-home .gap-grid,
  body.ref-home .why-grid { grid-template-columns: 1fr; gap: 0; }
  body.ref-home .gap-card {
    padding: 22px 0 24px; border-right: 0; border-bottom: 1px solid var(--line);
  }
  body.ref-home .gap-card:not(:first-child) { padding-left: 0; }
  body.ref-home .gap-card:last-child { border-bottom: 0; }
  body.ref-home .why-grid { gap: 14px; }
  body.ref-home .method-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.ref-home .method-step:nth-child(2) { border-right: 0; }
  body.ref-home .method-step:nth-child(3),
  body.ref-home .method-step:nth-child(4) { border-top: 1px solid var(--line); }
  body.ref-home .method-step:nth-child(3)::before { display: none; }
  body.ref-home .method-step:nth-child(4)::before { display: none; }
  body.ref-sub .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.ref-sub .steps::before { display: none; }
  body.ref-sub .steps > .step { padding: 0 14px 28px; }
}
@media (max-width: 640px) {
  body.ref-home .hero-showcase { height: clamp(300px, 78vw, 400px); }
  body.ref-home .hs-slide figcaption { padding: 20px 18px 16px; }
  body.ref-home .hs-slide figcaption p { font-size: 13.5px; }
  body.ref-home .hs-slide figcaption span { font-size: 11px; }
  body.ref-home .sec-head__link { font-size: 12px; }
  body.ref-home .section-cta { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px; }
  body.ref-home .method-flow { grid-template-columns: 1fr; }
  body.ref-home .method-step,
  body.ref-home .method-step:not(:first-child) { padding: 22px 0 24px; border-right: 0; border-top: 1px solid var(--line); }
  body.ref-home .method-step:first-child { border-top: 0; }
  body.ref-home .method-step::before,
  body.ref-home .method-step:not(:first-child)::before { display: none; }
  body.ref-sub .steps { grid-template-columns: 1fr; }
  body.ref-site .img-lightbox { padding: 24px 14px; }
}

/* ============================================================
   v16 · 客户案例页重排：案例导航 + 每个案例独立章节 + 多图现场
   ============================================================ */
body[data-page="cases"] .cases-hero {
  padding-top: calc(var(--header-h) + 76px); padding-bottom: 0;
}
body[data-page="cases"] .cases-hero__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 350px);
  gap: 64px; align-items: end;
}
body[data-page="cases"] .cases-hero__copy .eyebrow { color: var(--brand-blue); }
body[data-page="cases"] .cases-hero h1 {
  margin-top: 18px; font-size: clamp(34px, 4vw, 56px); line-height: 1.16;
  letter-spacing: -.02em; color: var(--text);
}
body[data-page="cases"] .cases-hero .lead { margin-top: 20px; max-width: 60ch; }
body[data-page="cases"] .cases-hero__stats {
  margin: 0; display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong); padding-top: 18px;
}
body[data-page="cases"] .cases-hero__stats dt {
  font-family: var(--serif); font-size: 34px; font-weight: 500; line-height: 1;
  color: var(--text); letter-spacing: -.02em;
}
body[data-page="cases"] .cases-hero__stats dt em {
  font-style: normal; font-size: .55em; color: var(--brand-blue);
}
body[data-page="cases"] .cases-hero__stats dd {
  margin: 8px 0 0; font-size: 11px; line-height: 1.5; color: var(--muted);
}
body[data-page="cases"] .case-nav {
  display: flex; margin-top: 52px;
  border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line);
}
body[data-page="cases"] .case-nav a {
  flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px;
  padding: 16px 18px; border-right: 1px solid var(--line);
  font-size: 13px; color: var(--muted); transition: background .2s, color .2s;
}
body[data-page="cases"] .case-nav a:first-child { padding-left: 0; }
body[data-page="cases"] .case-nav a:last-child { border-right: 0; }
body[data-page="cases"] .case-nav a b {
  font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--brand-blue);
}
body[data-page="cases"] .case-nav a span {
  margin-left: auto; font-size: 11.5px; color: var(--muted-2); white-space: nowrap;
}
body[data-page="cases"] .case-nav a:hover { background: var(--surface); color: var(--text); }

body[data-page="cases"] .case-study {
  padding: 64px 0 72px; border-bottom: 1px solid var(--line-strong);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
body[data-page="cases"] .case-study:first-child { padding-top: 56px; }
body[data-page="cases"] .case-study:last-of-type { border-bottom: 0; }
body[data-page="cases"] .cs-head {
  display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(320px, 380px);
  gap: 28px; align-items: end; margin-bottom: 30px;
}
body[data-page="cases"] .cs-index span {
  display: block; font-family: var(--mono); font-size: 10px;
  letter-spacing: .2em; color: var(--muted-2);
}
body[data-page="cases"] .cs-index b {
  display: block; margin-top: 6px; font-family: var(--serif);
  font-size: 52px; font-weight: 500; line-height: 1; color: var(--brand-blue);
}
body[data-page="cases"] .cs-index i {
  display: block; margin-top: 10px; font-style: normal;
  font-size: 12px; color: var(--muted);
}
body[data-page="cases"] .cs-title h2 {
  font-size: clamp(25px, 2.6vw, 36px); line-height: 1.28; letter-spacing: -.015em;
}
body[data-page="cases"] .cs-title p {
  margin-top: 12px; font-size: 14px; line-height: 1.8;
  color: var(--muted); max-width: 54ch;
}
body[data-page="cases"] .cs-facts {
  margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  border-top: 1px solid var(--line-strong); padding-top: 14px;
}
body[data-page="cases"] .cs-facts dt {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em;
  color: var(--muted-2); margin-bottom: 6px;
}
body[data-page="cases"] .cs-facts dd {
  margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--text);
}

body[data-page="cases"] .cs-gallery {
  display: grid; grid-template-columns: 1.6fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10px;
  height: clamp(320px, 31vw, 430px);
}
body[data-page="cases"] .cs-gallery > figure:first-child { grid-row: 1 / -1; }
body[data-page="cases"] .cs-gallery--2 { grid-template-rows: 1fr; }
body[data-page="cases"] .cs-gallery--2 > figure:first-child { grid-row: 1; }
body[data-page="cases"] .cs-gallery figure {
  position: relative; margin: 0; min-width: 0; overflow: hidden;
  background: var(--surface-2); border-radius: var(--radius);
}
body[data-page="cases"] .cs-gallery img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.18) contrast(1.02);
  transition: filter .45s, transform .55s var(--ease);
}
body[data-page="cases"] .cs-gallery figure:hover img {
  filter: grayscale(0) contrast(1); transform: scale(1.035);
}
body[data-page="cases"] .cs-gallery figcaption {
  position: absolute; left: 14px; bottom: 12px; z-index: 2; padding: 5px 9px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: #fff;
  background: rgba(10, 17, 25, .55); backdrop-filter: blur(4px);
}
/* 右侧小图把图注移到左上，避免贴住图片之间的分割线 */
body[data-page="cases"] .cs-gallery figure:not(:first-child) figcaption {
  top: 14px; bottom: auto;
}
body[data-page="cases"] .cs-gallery figure::after {
  content: "⤢"; position: absolute; right: 14px; top: 14px; z-index: 2;
  width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(10, 17, 25, .5); color: #fff;
  font-size: 14px; opacity: 0; transition: opacity .25s;
}
body[data-page="cases"] .cs-gallery figure:hover::after { opacity: 1; }

body[data-page="cases"] .cs-body {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 40px; margin-top: 32px;
}
body[data-page="cases"] .cs-label {
  display: block; font-family: var(--mono); font-size: 10px;
  letter-spacing: .16em; color: var(--muted-2); margin-bottom: 16px;
}
body[data-page="cases"] .cs-narrative p {
  font-size: 14px; line-height: 1.9; color: var(--muted); max-width: 58ch;
}
body[data-page="cases"] .cs-steps { margin-top: 20px; border-top: 1px solid var(--line); }
body[data-page="cases"] .cs-steps li {
  display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  font-size: 13px; line-height: 1.7; color: var(--muted);
}
body[data-page="cases"] .cs-steps li b {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: .08em; color: var(--brand-blue); padding-top: 3px;
}
body[data-page="cases"] .cs-results {
  background: var(--surface); border: 1px solid var(--line);
  border-top: 2px solid var(--brand-blue); padding: 24px 24px 22px;
}
body[data-page="cases"] .cs-results .cs-label { color: var(--brand-blue); }
body[data-page="cases"] .cs-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
body[data-page="cases"] .cs-metrics--2 { grid-template-columns: repeat(2, 1fr); }
body[data-page="cases"] .cs-metrics b {
  display: block; font-family: var(--serif); font-size: clamp(25px, 2.6vw, 36px);
  font-weight: 500; line-height: 1; color: var(--text);
  letter-spacing: -.02em; margin-bottom: 8px;
}
body[data-page="cases"] .cs-metrics span {
  display: block; font-size: 11px; line-height: 1.6; color: var(--muted);
}
body[data-page="cases"] .cs-note {
  margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 12px; line-height: 1.75; color: var(--muted);
}
body[data-page="cases"] .cs-highlight {
  margin-top: 26px; padding: 16px 20px;
  border-left: 2px solid var(--brand-blue); background: var(--surface);
  font-size: 14px; line-height: 1.8; color: var(--text);
}
body[data-page="cases"] .cs-highlight span {
  display: inline-block; margin-right: 14px; font-family: var(--mono);
  font-size: 10px; letter-spacing: .12em; color: var(--brand-blue);
}
body[data-page="cases"] .cases-more { margin-top: 36px; }

@media (max-width: 1024px) {
  body[data-page="cases"] .cases-hero__grid { grid-template-columns: 1fr; gap: 32px; }
  body[data-page="cases"] .cases-hero__stats { max-width: 520px; }
  body[data-page="cases"] .cs-head { grid-template-columns: 100px minmax(0, 1fr); gap: 24px; }
  body[data-page="cases"] .cs-facts { grid-column: 1 / -1; }
  body[data-page="cases"] .cs-body { grid-template-columns: 1fr; gap: 24px; }
  body[data-page="cases"] .case-nav a span { display: none; }
}
@media (max-width: 640px) {
  body[data-page="cases"] .cases-hero { padding-top: calc(var(--header-h) + 44px); }
  body[data-page="cases"] .case-nav { flex-direction: column; }
  body[data-page="cases"] .case-nav a,
  body[data-page="cases"] .case-nav a:first-child {
    padding: 12px 0; border-right: 0; border-bottom: 1px solid var(--line);
  }
  body[data-page="cases"] .case-nav a:last-child { border-bottom: 0; }
  body[data-page="cases"] .case-study { padding: 40px 0 46px; }
  body[data-page="cases"] .cs-head { grid-template-columns: 1fr; gap: 18px; }
  body[data-page="cases"] .cs-index { display: flex; align-items: baseline; gap: 10px; }
  body[data-page="cases"] .cs-index b { font-size: 34px; margin: 0; }
  body[data-page="cases"] .cs-index i { margin: 0 0 0 auto; }
  body[data-page="cases"] .cs-facts { grid-column: 1; gap: 8px; }
  body[data-page="cases"] .cs-gallery,
  body[data-page="cases"] .cs-gallery--2 {
    grid-template-columns: 1fr; grid-template-rows: auto; height: auto;
  }
  body[data-page="cases"] .cs-gallery > figure:first-child,
  body[data-page="cases"] .cs-gallery--2 > figure:first-child {
    grid-row: auto; grid-column: 1;
  }
  body[data-page="cases"] .cs-gallery figure { aspect-ratio: 16 / 10; }
  body[data-page="cases"] .cs-metrics { gap: 8px; }
  body[data-page="cases"] .cs-steps li { grid-template-columns: 64px minmax(0, 1fr); gap: 10px; }
}

/* ---------- v17：FDE 专家平台导航入口 ---------- */
body.ref-site .nav a.nav-fde { color: #9CC8FF; }
body.ref-site .site-header.is-solid .nav a.nav-fde,
body.ref-site .site-header--solid .nav a.nav-fde { color: var(--brand-blue); }
body.ref-site .nav a.nav-fde span { font-size: .82em; margin-left: 2px; opacity: .82; }
body.ref-site .drawer a.drawer-link[href*="wyai.top/fde"] { color: #9CC8FF; }

@media (min-width: 1025px) and (max-width: 1400px) {
  body.ref-site .header-inner { gap: 20px; }
  body.ref-site .nav { gap: 18px; }
  body.ref-site .nav a { font-size: 12.5px; white-space: nowrap; }
}
@media (min-width: 1025px) and (max-width: 1180px) {
  body.ref-site .header-inner { gap: 14px; }
  body.ref-site .nav { gap: 12px; }
  body.ref-site .nav a { font-size: 12px; }
  body.ref-site .header-actions .btn { font-size: 12px; padding-left: 12px; padding-right: 12px; }
}

/* ---------- v17：预约诊断提交后展示「问涯助理」企业微信二维码 ---------- */
#copy-modal .modal-qr {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--line);
  padding: 14px 16px; margin: -2px 0 18px;
}
#copy-modal .modal-qr__img {
  display: block; flex: 0 0 auto; line-height: 0;
  background: #fff; border: 1px solid var(--line);
}
#copy-modal .modal-qr__img img {
  display: block; width: 108px; height: 108px; object-fit: cover; border: 0;
}
#copy-modal .modal-qr__txt { min-width: 0; }
#copy-modal .modal-qr__txt b {
  display: block; font-size: 14px; color: var(--text); margin-bottom: 6px;
}
#copy-modal .modal-qr__txt p {
  font-size: 12px; line-height: 1.7; color: var(--muted); margin: 0 0 6px;
}
#copy-modal .modal-qr__txt small {
  font-size: 10.5px; line-height: 1.5; color: var(--muted-2);
}
@media (max-width: 560px) {
  #copy-modal .modal-qr { gap: 10px; padding: 10px; }
  #copy-modal .modal-qr__img img { width: 100px; height: 100px; }
  #copy-modal .modal-qr__txt b { font-size: 12.5px; line-height: 1.5; }
  #copy-modal .modal-qr__txt p { font-size: 11px; line-height: 1.6; }
  #copy-modal .modal-qr__txt small { font-size: 9.5px; }
  #copy-modal .modal-inner { max-height: 92vh; }
  #copy-modal .copy-box { max-height: 160px; font-size: 11px; line-height: 1.7; }
}
