/* ==========================================================================
   DONGJIA — design tokens
   Direction: light "liquid glass" over a cool grey field. One accent (aqua)
   carries every primary action; navy is the grounding dark surface.
   ========================================================================== */
:root {
  /* surfaces */
  --bg: #F3F5F7;
  --ink: #0B1622;
  --ink-2: #1F2D3F;
  --ink-soft: #243244;
  --muted: #5B6878;
  --line: rgba(11, 22, 34, 0.10);
  --line-2: rgba(11, 22, 34, 0.18);
  --accent: #0BA3B8;
  --accent-ink: #087A8B;
  --accent-soft: rgba(11, 163, 184, 0.14);
  --amber: #D99A1B;
  --amber-ink: #9C6A05;
  --navy: #0E2A47;
  --wa: #25D366;
  --wa-ink: #07542B;

  /* glass */
  --glass: rgba(255, 255, 255, 0.58);
  --glass-2: rgba(255, 255, 255, 0.80);
  --glass-line: rgba(255, 255, 255, 0.78);
  --ink-glass: rgba(255, 255, 255, 0.07);
  --ink-glass-line: rgba(255, 255, 255, 0.16);
  --ink-text: #EDF2F6;
  --ink-muted: #A7B4C2;

  /* type */
  --font-display: "Archivo", "Archivo Local", "Helvetica Neue", sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: clamp(1.75rem, 1.1rem + 2vw, 2.875rem);
  --fs-2xl: clamp(2.5rem, 1.4rem + 3.8vw, 4.75rem);
  --fs-3xl: clamp(3rem, 1.2rem + 5.6vw, 6.5rem);

  /* space & shape */
  --s-1: 4px; --s-2: 8px; --s-3: 16px; --s-4: 24px;
  --s-5: 40px; --s-6: 64px; --s-7: 96px;
  --r-sm: 10px; --r-md: 18px; --r-lg: 28px; --r-xl: 36px;
  --wrap: 1200px;

  /* elevation & motion */
  --shadow-1: 0 2px 8px rgba(11, 22, 34, 0.08);
  --shadow-2: 0 14px 36px -14px rgba(11, 22, 34, 0.30);
  --shadow-3: 0 36px 90px -36px rgba(11, 22, 34, 0.50);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-f: 160ms; --dur-b: 320ms; --dur-s: 640ms;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.08; margin: 0 0 var(--s-3); color: inherit; }
p { margin: 0 0 var(--s-3); }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
/* 跳转链接：默认用负 top 移出视口，避免 RTL 下 left:-999px 造成横向滚动条 */
.skip { position: absolute; left: 0; top: -72px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; z-index: 100; }
.skip:focus { top: var(--s-2); left: var(--s-2); }

/* 多语言下长单词标题（德语/芬兰语等）换行更均衡，避免末行只有一两个词 */
h1, h2 { text-wrap: balance; }

.wrap { width: calc(100% - 32px); max-width: var(--wrap); margin: 0 auto; }
@supports (width: min(1px, 1vw)) { .wrap { width: min(var(--wrap), 100% - var(--s-4) * 2); } }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* ---------- atmosphere: the colours the glass refracts ---------- */
.atmosphere {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(52rem 36rem at 8% -6%, rgba(11, 163, 184, 0.26), transparent 62%),
    radial-gradient(46rem 34rem at 104% 8%, rgba(217, 154, 27, 0.16), transparent 58%),
    radial-gradient(60rem 44rem at 60% 108%, rgba(14, 42, 71, 0.18), transparent 60%);
}
body::after {
  content: ""; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 0; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .footer, .nav { position: relative; z-index: 1; }

/* ---------- glass ---------- */
.glass {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.44));
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid var(--glass-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.glass::before {
  /* specular highlight, like a curved glass edge */
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 60% at 12% 0%, rgba(255, 255, 255, 0.65), transparent 55%);
  mix-blend-mode: soft-light;
}
.glass > * { position: relative; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: #fff; }
}
.band--ink .glass, .glass--dark {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03));
  border-color: var(--ink-glass-line);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: var(--ink-text);
}

/* ---------- buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-base); letter-spacing: -0.01em;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform var(--dur-f) ease-out, box-shadow var(--dur-b) var(--ease), background var(--dur-f) ease-out;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-2); }
.btn--primary:hover { box-shadow: var(--shadow-3); }
.btn--glass {
  background: var(--glass-2); border-color: var(--glass-line); color: var(--ink);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: var(--shadow-1), inset 0 1px 0 #fff;
}
.btn--wa { background: var(--wa); color: var(--wa-ink); box-shadow: 0 10px 26px -12px rgba(37, 211, 102, 0.9); }
.btn--wa:hover { box-shadow: 0 16px 34px -12px rgba(37, 211, 102, 0.95); }
/* the WhatsApp glyph is injected as a bare inline SVG with no intrinsic size —
   without this constraint it renders as a giant deformed blob */
.btn svg, .wa-float svg { width: 20px; height: 20px; flex: none; fill: currentColor; display: block; }
.wa-float svg { width: 26px; height: 26px; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: var(--fs-sm); }
.btn--ghost-dark { background: var(--ink-glass); border-color: var(--ink-glass-line); color: var(--ink-text); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 2px 12px;
  border-radius: 999px; font-size: var(--fs-sm); font-weight: 600; white-space: nowrap;
  background: var(--accent-soft); color: var(--accent-ink);
}
.chip--mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.01em; background: rgba(255, 255, 255, 0.72); color: var(--ink); border: 1px solid var(--line); }
.chip--amber { background: rgba(217, 154, 27, 0.16); color: var(--amber-ink); }
.chip--navy { background: rgba(14, 42, 71, 0.10); color: var(--navy); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.eyebrow {
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-ink); display: flex; align-items: center; gap: 10px; margin-bottom: var(--s-3);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.band--ink .eyebrow { color: #6FD3E0; }

/* ---------- navigation ---------- */
.nav {
  position: sticky; top: 12px; z-index: 50;
  width: calc(100% - 16px); max-width: var(--wrap); margin: 12px auto 0;
  display: flex; align-items: center; gap: var(--s-3);
  padding: 8px 8px 8px 16px; border-radius: 999px;
}
/* the header must stay readable while content scrolls under it:
   near-opaque surface, blur is only a progressive enhancement */
.nav.glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.92));
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: var(--shadow-2), inset 0 1px 0 #fff;
}
@supports (width: min(1px, 1vw)) { .nav { width: min(var(--wrap), 100% - var(--s-4)); } }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: -0.04em; color: #fff;
  background: linear-gradient(145deg, var(--accent), var(--navy));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), var(--shadow-1);
}
/* real brand artwork in the nav: the cropped DJP lattice mark */
img.brand__mark {
  width: auto; height: 34px; border-radius: 0;
  background: none; box-shadow: none; display: block;
}
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-md); letter-spacing: 0.02em; line-height: 1; display: flex; flex-direction: column; }
.brand__name small { font-family: var(--font-mono); font-weight: 400; font-size: 10px; letter-spacing: 0.08em; color: var(--muted); margin-top: 3px; text-transform: uppercase; }
.nav__links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav__links a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); color: var(--ink-2); text-decoration: none;
  transition: background var(--dur-f) ease-out, color var(--dur-f) ease-out;
}
.nav__links a:hover { background: rgba(255, 255, 255, 0.7); }
.nav__links a[aria-current="page"] { background: var(--ink); color: #fff; }

/* ---------- 产品二级菜单（仅 PC 端显示为下拉；手机端拍平回扁平列表） ----------
   结构：.nav__group > .nav__group-btn + .nav__panel(4 个产品链接)
   手机端 .nav__group 与 .nav__panel 设为 display:contents，按钮隐藏，
   4 个链接重新成为 .nav__links 的直接 flex 项，与旧版扁平列表完全一致 */
.nav__group { position: relative; display: flex; align-items: center; }
/* 悬停桥：填补按钮与下拉面板之间的 6px 空隙，防止鼠标移过时面板闪没 */
.nav__group::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 10px; }
.nav__group-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
  border: 0; border-radius: 999px; background: transparent; cursor: pointer; color: var(--ink-2);
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm);
  transition: background var(--dur-f) ease-out, color var(--dur-f) ease-out;
}
.nav__group-btn:hover { background: rgba(255, 255, 255, 0.7); }
/* 当前页属于 4 个产品页之一时，父级按钮同色高亮 */
.nav__group.is-active .nav__group-btn { background: var(--ink); color: #fff; }
.nav__chev { width: 13px; height: 13px; transition: transform var(--dur-f) ease-out; }
.nav__group.is-open .nav__chev { transform: rotate(180deg); }
.nav__panel {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 60;
  min-width: 232px; padding: 8px; display: grid; gap: 2px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-2);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--dur-f) ease-out, transform var(--dur-f) ease-out, visibility 0s linear var(--dur-f);
}
.nav__group:hover .nav__panel,
.nav__group.is-open .nav__panel,
.nav__group:focus-within .nav__panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav__panel a { min-height: 40px; border-radius: 10px; white-space: nowrap; }
.nav__panel a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); }
/* RTL：导航靠左排布，面板改为向右对齐展开，避免伸到视口外 */
[dir="rtl"] .nav__panel { left: auto; right: 0; }
.nav__toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; place-items: center; }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform var(--dur-b) var(--ease), opacity var(--dur-f); content: ""; }
.nav__toggle span::before, .nav__toggle span::after { position: relative; }
.nav__toggle span::before { top: -7px; } .nav__toggle span::after { top: 5px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 语言切换器 ----------
   由 assets/js/i18n.js 动态注入导航栏；无字典文件时脚本不渲染，布局不受影响 */
.lang { position: relative; margin-left: var(--s-2); flex: none; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.72);
  color: var(--ink); font-family: var(--font-mono); font-size: var(--fs-sm); font-weight: 500;
  cursor: pointer; transition: background var(--dur-f) ease-out, border-color var(--dur-f) ease-out;
}
.lang__btn:hover { background: #fff; border-color: var(--line-2); }
.lang__chev { width: 14px; height: 14px; transition: transform var(--dur-f) ease-out; }
.lang.is-open .lang__chev { transform: rotate(180deg); }
.lang__panel {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 60;
  min-width: 244px; padding: 8px; display: none;
  grid-template-columns: 1fr 1fr; gap: 4px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-2);
  /* 限高 + 内部滚动：35 种语言不全量展开，超出部分下拉内滚动查看
     max-height 取值：约显示 9 行（两列），过高会遮住页面主内容，过低滚动手感差
     overscroll-behavior: contain 防止滚到底后把滚动传导给页面 body */
  max-height: 380px; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.lang.is-open .lang__panel { display: grid; }
.lang__item {
  display: flex; align-items: center; gap: 8px; padding: 9px 10px;
  border: 0; border-radius: 10px; background: transparent; cursor: pointer;
  text-align: left; color: var(--ink); font-family: var(--font-body);
}
.lang__item:hover { background: var(--accent-soft); }
.lang__item[aria-selected="true"] { background: var(--accent-soft); }
.lang__item b { font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-sm); color: var(--accent-ink); min-width: 30px; }
.lang__item span { font-size: var(--fs-sm); color: var(--muted); }
/* 国旗图标：旗帜 SVG 固定 20×14，圆角 + 细描边防止浅色旗（fi/jp 类）融入白底
   flex:none 防止在窄面板里被压缩变形；RTL 下 flex 布局自动把旗放到行右侧 */
.lang__flag {
  width: 20px; height: 14px; flex: none; border-radius: 2.5px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.lang__btn .lang__flag { width: 18px; height: 12.6px; }

/* ≤960：汉堡菜单模式。头部整体收紧（约 52px 高），展开菜单为通栏扁平列表，
   不再使用白色圆角卡片——直接融入导航底色，行间用 1px 分隔线 */
@media (max-width: 960px) {
  /* row-gap:0——换行后的展开菜单行不额外占空隙（行距由菜单自身 padding 提供） */
  .nav { top: 6px; margin-top: 6px; padding: 4px 4px 4px 10px; row-gap: 0; flex-wrap: wrap; }
  .nav__cta.nav__cta--desktop { display: none; }
  /* 语言按钮右推，汉堡菜单紧随其后（原 toggle 的 margin-left:auto 交给 .lang） */
  .lang { margin-left: auto; }
  .lang__btn { min-height: 36px; padding: 0 10px; }
  .nav .nav__toggle { margin-left: 4px; }
  .lang__panel { min-width: 200px; max-height: min(380px, 56vh); }
  .nav__toggle { display: grid; margin-left: auto; width: 40px; height: 40px; }
  /* 手机端拍平二级菜单：组与面板退化为透明容器，4 个产品链接回归扁平列表；
     父级按钮隐藏（touch 端无悬停语义，展开列表已完整展示全部入口）。
     注意：display:contents 不会重置继承属性——面板基础样式里的 visibility:hidden
     会被 4 个产品链接继承导致手机端"菜单只剩 Home/About"，必须显式恢复 */
  .nav__group, .nav__panel { display: contents; }
  .nav__panel { visibility: visible; opacity: 1; transform: none; transition: none; }
  .nav__group::after { content: none; }
  .nav__group-btn { display: none; }
  img.brand__mark { height: 28px; }
  .brand__name { font-size: var(--fs-sm); }
  .brand__name small { font-size: 9px; margin-top: 2px; }
  .nav__links {
    order: 10; flex: 0 0 100%; flex-direction: column; align-items: stretch; gap: 0;
    margin: 0; padding: 0 10px; border-radius: 0; background: transparent;
    max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
    transition: max-height var(--dur-s) var(--ease), opacity var(--dur-b) ease-out, padding var(--dur-b) var(--ease);
  }
  /* 展开时导航退出胶囊形，改为小圆角面板（999px 圆角会把菜单撑成大圆球） */
  .nav.is-open { border-radius: var(--r-lg); }
  .nav.is-open .nav__links { max-height: 520px; opacity: 1; pointer-events: auto; padding: 2px 10px 6px; margin: 0; }
  .nav__links a {
    min-height: 46px; padding: 0 2px; border-radius: 0;
    justify-content: space-between; border-top: 1px solid var(--line);
  }
  .nav__links a:first-child { border-top: 0; }
  .nav__links a:hover { background: transparent; }
  .nav__links a[aria-current="page"] { background: transparent; color: var(--accent-ink); }
}

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 18px 0 14px; border-radius: 999px;
  background: var(--wa); color: var(--wa-ink); text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); letter-spacing: -0.01em;
  box-shadow: 0 16px 36px -14px rgba(37, 211, 102, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform var(--dur-b) var(--ease), box-shadow var(--dur-b);
}
.wa-float:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 22px 44px -14px rgba(37, 211, 102, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; flex: 0 0 auto; }
.wa-float__ring { position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: inherit; border: 2px solid var(--wa); opacity: 0.7; animation: wa-ring 2.4s ease-out infinite; pointer-events: none; }
@keyframes wa-ring { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.22); opacity: 0; } }
@media (max-width: 640px) {
  .wa-float { width: 56px; height: 56px; padding: 0; justify-content: center; }
  .wa-float__label { display: none; }
}

/* ---------- sections ---------- */
main { display: block; }
.section { padding: clamp(64px, 4.5vw + 48px, 128px) 0; }
.section--tight { padding: clamp(48px, 3.5vw + 32px, 104px) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--s-5); align-items: end; margin-bottom: var(--s-6); }
.section-head h2 { font-size: var(--fs-xl); font-weight: 700; margin: 0; }
.section-head p { color: var(--muted); font-size: var(--fs-md); margin: 0; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; gap: var(--s-3); } }

/* hero */
.hero { padding: clamp(40px, 2vw + 24px, 80px) 0 clamp(80px, 5vw + 48px, 144px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--s-5); align-items: center; }
.hero h1 { font-size: var(--fs-3xl); font-weight: 800; letter-spacing: -0.035em; line-height: 0.96; margin-bottom: var(--s-4); }
.hero h1 em { font-style: normal; color: var(--accent-ink); }
.hero__lead { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem); color: var(--ink-2); max-width: 54ch; margin-bottom: var(--s-5); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.hero__actions .btn { min-height: 52px; padding: 0 26px; }
.hero__visual { border-radius: var(--r-xl); overflow: hidden; padding: 10px; background: #fff; position: relative; }
/* natural aspect: the whole image stays visible and is never upscaled or cropped */
.hero__visual img { border-radius: calc(var(--r-xl) - 10px); width: 100%; height: auto; object-fit: contain; background: #fff; }
.hero__badge {
  position: absolute; right: 20px; top: 20px; z-index: 2;
  display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: rgba(11, 22, 34, 0.82); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: var(--shadow-2);
}
.hero__badge b { font-family: var(--font-mono); font-weight: 500; font-size: 1.25rem; letter-spacing: -0.02em; color: #6FD3E0; }
.hero__badge small { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }
.hero__visual figcaption { padding: 12px 14px 6px; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; } .hero { padding-top: var(--s-5); } }
/* hero catalogue panel — replaces the under-sized hero photo with a useful, clean index */
.hero__panel { border-radius: var(--r-xl); padding: var(--s-3); display: grid; gap: 10px; }
.hero__panel-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border-radius: var(--r-md); background: rgba(255, 255, 255, 0.72); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
  transition: transform var(--dur-f) ease-out, box-shadow var(--dur-b) var(--ease), background var(--dur-f) ease-out;
}
.hero__panel-row:hover { transform: translateY(-2px); background: #fff; box-shadow: var(--shadow-1); }
.hero__panel-row > span:nth-child(2) { min-width: 0; }
.hero__panel-row b { display: block; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.hero__panel-row small { display: block; margin-top: 3px; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.hero__panel-num { flex: none; font-family: var(--font-mono); font-size: 0.95rem; color: var(--accent-ink); background: var(--accent-soft); border-radius: 12px; padding: 10px 11px; }
.hero__panel-arrow { flex: none; margin-left: auto; color: var(--muted); font-size: 1.2rem; transition: transform var(--dur-f) ease-out, color var(--dur-f) ease-out; }
.hero__panel-row:hover .hero__panel-arrow { transform: translateX(4px); color: var(--accent-ink); }
.hero__panel-foot { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 2px 8px 0; }

/* stats */
.stats { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--s-2); }
.stat { padding: var(--s-5) var(--s-4); border-radius: var(--r-md); background: rgba(255, 255, 255, 0.6); border: 1px solid var(--line); }
.stat__value { font-family: var(--font-mono); font-weight: 500; font-size: clamp(1.6rem, 1rem + 2vw, 2.75rem); letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.stat__value small { font-size: 0.5em; font-weight: 500; color: var(--muted); }
.stat__label { margin-top: 6px; font-size: var(--fs-sm); color: var(--muted); }
.stat--accent .stat__value { color: var(--accent-ink); }
.stat--amber .stat__value { color: var(--amber-ink); }
@media (max-width: 860px) { .stats { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }

/* product-line cards (home) */
.lines { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s-4); }
.line {
  grid-column: span 6; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); overflow: hidden; border-radius: var(--r-lg);
  text-decoration: none; color: var(--ink); transition: transform var(--dur-b) var(--ease), box-shadow var(--dur-b) var(--ease);
}
@media (max-width: 960px) { .line { grid-column: span 12; } }
@media (max-width: 640px) { .line { grid-template-columns: 1fr; } .line__media { min-height: 220px; position: relative; } }
.line:hover { transform: translateY(-4px); box-shadow: var(--shadow-3), inset 0 1px 0 rgba(255, 255, 255, 0.9); }
.line__media { position: relative; min-height: 260px; background: #fff; }
.line__media img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; transition: transform var(--dur-s) var(--ease); }
.line:hover .line__media img { transform: scale(1.04); }
.line__body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.line__no { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.line h3 { font-size: var(--fs-lg); font-weight: 700; margin: 0; }
.line p { color: var(--muted); margin: 0; }
.line__facts { margin-top: auto; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.line__cta { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); color: var(--accent-ink); display: inline-flex; align-items: center; gap: 6px; }

/* dark band */
.band--ink { background: radial-gradient(90% 70% at 80% 0%, rgba(11, 163, 184, 0.28), transparent 62%), radial-gradient(60% 50% at 10% 100%, rgba(217, 154, 27, 0.10), transparent 60%), var(--ink); color: var(--ink-text); }
.band--ink h2, .band--ink h3, .band--ink h4 { color: #fff; }
.band--ink p { color: var(--ink-muted); }
.band--ink .section-head p { color: var(--ink-muted); }

/* generic card grid */
.grid { display: grid; gap: var(--s-4); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card { padding: var(--s-5); }
.card h3 { font-size: var(--fs-lg); }
.card p, .card li { color: var(--ink-soft); }
.card--numbered { padding-top: var(--s-4); border-top: 3px solid var(--accent); }
/* 卡片内长文案 chip 允许换行：nowrap 会在窄卡里溢出边界；多行时改小圆角避免胶囊变形 */
.card .chip { white-space: normal; border-radius: 14px; }
.card__index { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.14em; color: var(--accent-ink); display: block; margin-bottom: 6px; }
.card--amber { border-top-color: var(--amber); } .card--amber .card__index { color: var(--amber-ink); }
.card--navy { border-top-color: var(--navy); } .card--navy .card__index { color: var(--navy); }

/* feature list */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3) var(--s-5); }
.feature { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3); padding: var(--s-3) 0; border-top: 1px solid var(--line); }
.feature__no { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--accent-ink); padding-top: 2px; }
.feature h4 { font-size: var(--fs-md); margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }

/* definition rows (dl) */
.kv { display: grid; gap: 0; }
.kv > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: var(--s-3); padding: 12px 0; border-bottom: 1px solid var(--line); }
.kv > div:last-child { border-bottom: 0; }
.kv dt { font-weight: 600; color: var(--ink); }
.kv dd { color: var(--ink-soft); }
.kv--rule > div { grid-template-columns: 220px minmax(0, 1fr); }
@media (max-width: 560px) { .kv > div, .kv--rule > div { grid-template-columns: 1fr; gap: 4px; } }

/* data table — separate borders so header/table corner radii actually render */
.table-wrap { overflow-x: auto; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.66); border: 1px solid var(--line); }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-sm); min-width: 560px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--font-display); font-weight: 600; background: var(--ink); color: #fff; white-space: nowrap; }
/* 圆角只作用于表头行（thead th）：行首 th[scope=row] 是数据单元格，
   若套用首/末子圆角会让每行深色块出现参差的切角 */
thead th:first-child { border-top-left-radius: calc(var(--r-md) - 1px); } thead th:last-child { border-top-right-radius: calc(var(--r-md) - 1px); }
tr:last-child td { border-bottom: 0; }
/* 末行若以 th[scope=row] 结尾（无 thead 的规格表），四角圆角补在 th 上 */
tr:last-child th:first-child { border-bottom-left-radius: calc(var(--r-md) - 1px); }
tr:last-child th:last-child { border-bottom-right-radius: calc(var(--r-md) - 1px); }
tr:last-child td:first-child { border-bottom-left-radius: calc(var(--r-md) - 1px); }
tr:last-child td:last-child { border-bottom-right-radius: calc(var(--r-md) - 1px); }
td strong { font-family: var(--font-mono); font-weight: 500; color: var(--ink); }
tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.45); }

/* product card */
.pcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.pcards--one { grid-template-columns: 1fr; }
/* 产品卡统一「上图下文」：窄卡里左图右文会把图片压小、参数表挤成碎行 */
.pcard { display: grid; grid-template-columns: 1fr; overflow: hidden; padding: var(--s-3); gap: var(--s-3); }
/* 图片横幅高度随视口缩放；clamp 不支持的老内核回退到固定高度 */
.pcard__media { border-radius: var(--r-md); background: #fff; display: grid; place-items: center; overflow: hidden; height: 280px; height: clamp(220px, 30vw, 400px); }
.pcard__media img { width: 100%; height: 100%; object-fit: contain; transition: transform var(--dur-s) var(--ease); }
.pcard__media:hover img { transform: scale(1.03); }
.pcard__body { padding: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.pcard__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-2); padding-bottom: var(--s-2); border-bottom: 1px solid var(--line); }
.pcard__head h4 { font-size: var(--fs-lg); margin: 0; }
/* compact tables inside product cards: no forced min-width, or the last column gets cut off */
.pcard .table-wrap table,
.split__body .table-wrap table { min-width: 0; font-size: var(--fs-xs); }
.pcard .table-wrap th,
.split__body .table-wrap th { white-space: normal; }
.pcard .table-wrap th, .pcard .table-wrap td,
.split__body .table-wrap th, .split__body .table-wrap td { padding: 10px 10px; }
.pcard__desc { color: var(--ink-soft); font-size: var(--fs-sm); margin: 0; }
.pcard .spec { display: grid; gap: 0; }
.pcard .spec > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: var(--s-2); padding: 6px 0; border-bottom: 1px solid var(--line); }
.pcard .spec > div:last-child { border-bottom: 0; }
.pcard .spec dt { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.pcard .spec dd { font-size: var(--fs-sm); color: var(--ink-soft); font-weight: 600; }
.pcard__foot { margin-top: auto; padding-top: var(--s-2); display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.pcard__ask { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: rgba(37, 211, 102, 0.16); color: var(--wa-ink); font-weight: 600; font-size: var(--fs-sm); text-decoration: none; transition: background var(--dur-f) ease-out, transform var(--dur-f) ease-out; }
.pcard__ask:hover { background: rgba(37, 211, 102, 0.3); transform: translateY(-1px); }
.pcard__ask svg { width: 16px; height: 16px; fill: currentColor; }
@media (max-width: 1024px) { .pcards { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .pcard__media { height: 220px; }
}

/* featured (spotlight) product */
.spot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-4); padding: var(--s-3); margin-top: var(--s-5); }
.spot__media { border-radius: var(--r-md); background: #fff; display: grid; place-items: center; padding: var(--s-3); min-height: 280px; }
.spot__media img { max-height: 360px; object-fit: contain; }
.spot__body { padding: var(--s-3); align-self: center; }
.spot__title { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-3); }
.spot__title h3 { margin: 0; font-size: var(--fs-lg); }
@media (max-width: 860px) { .spot { grid-template-columns: 1fr; } .spot__media { min-height: 220px; } }

/* layout with side sub-navigation */
.with-nav { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s-6); align-items: start; }
.subnav { position: sticky; top: 96px; padding: var(--s-3); }
.subnav__label { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding: 6px 10px 8px; }
.subnav a { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 10px; border-radius: 12px; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); color: var(--ink-2); text-decoration: none; transition: background var(--dur-f) ease-out, color var(--dur-f) ease-out; }
.subnav a span:first-child { font-family: var(--font-mono); font-size: 11px; color: var(--muted); width: 22px; }
.subnav a:hover { background: rgba(255, 255, 255, 0.7); }
.subnav a.is-active { background: var(--ink); color: #fff; }
.subnav a.is-active span:first-child { color: #6FD3E0; }
.subnav .btn { width: 100%; margin-top: var(--s-2); }
@media (max-width: 1024px) {
  .with-nav { grid-template-columns: minmax(0, 1fr); }
  .subnav { top: 90px; z-index: 20; padding: 6px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-radius: 999px; margin-bottom: var(--s-2); max-width: 100%; min-width: 0; }
  /* sticky strip also needs an opaque surface: content scrolls right beneath it */
  .subnav.glass { background: rgba(255, 255, 255, 0.96); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .subnav::-webkit-scrollbar { display: none; }
  .subnav__label, .subnav .btn { display: none; }
  .subnav a { flex: 0 0 auto; min-height: 44px; padding: 0 14px; white-space: nowrap; }
  .subnav a span:first-child { display: none; }
}
/* low-end phone WebView: sticky + blur layers can mis-composite during scroll —
   force a clean opaque layer and a compositing hint */
@media (max-width: 1024px) { html { scroll-padding-top: 148px; } }
@media (max-width: 640px) {
  /* 头部进一步收紧（约 46px 高），低端 WebView 关闭 blur 合成 */
  .nav { transform: translateZ(0); padding: 3px 3px 3px 8px; }
  img.brand__mark { height: 26px; }
  .nav.glass { background: #fff; box-shadow: 0 10px 28px rgba(11, 22, 34, 0.14), inset 0 1px 0 #fff; }
  /* 手机版隐藏吸顶子导航：分类导航由 hero 面板 + 折叠面板承担，减少顶部占位 */
  .subnav { display: none; }
  /* 子导航隐藏后锚点只需避开主头部（46px + 余量） */
  html { scroll-padding-top: 64px; }
}

/* ---------- 手机版长页面折叠面板 ----------
   仅 ≤640 且 body.m-acc（由 JS 按屏宽开关）生效：
   分区默认收起，只显示 eyebrow + 标题 + 简介，点标题行展开全部内容；
   PC / 平板完全不受影响 */
.block__chev { display: none; }
@media (max-width: 640px) {
  body.m-acc .block { position: relative; }
  /* 收起态压缩上下留白，让分区列表更紧凑 */
  body.m-acc .block.is-collapsed { padding: var(--s-2) 0; }
  body.m-acc .block__head { cursor: pointer; user-select: none; -webkit-user-select: none; margin-bottom: 0; padding: 10px 0; }
  body.m-acc .block__head h3 { font-size: var(--fs-lg); }
  body.m-acc .block.is-collapsed > *:not(.block__head):not(.block__chev) { display: none; }
  body.m-acc .block.is-collapsed .block__head { margin-bottom: 0; }
  body.m-acc .block.is-open .block__head { margin-bottom: var(--s-4); }
  body.m-acc .block.is-open .block__chev { transform: rotate(180deg); }
  body.m-acc .block__chev {
    display: grid; place-items: center;
    position: absolute; top: 14px; right: 0;
    width: 30px; height: 30px; border-radius: 999px;
    border: 1px solid var(--line); background: rgba(255, 255, 255, 0.8);
    transition: transform var(--dur-f) ease-out;
  }
  body.m-acc .block:first-child .block__chev { top: 10px; }
  body.m-acc .block__chev svg { width: 14px; height: 14px; }
}
.block { padding: var(--s-5) 0; border-top: 1px solid var(--line); }
.block:first-child { border-top: 0; padding-top: 0; }
.block__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); flex-wrap: wrap; }
.block__head h3 { font-size: var(--fs-xl); margin: 0; }
.block__lead { color: var(--muted); max-width: 60ch; margin-top: var(--s-2); }
.subhead { display: flex; align-items: center; gap: 12px; margin: var(--s-5) 0 var(--s-3); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); }
.subhead::before { content: ""; width: 4px; height: 22px; border-radius: 2px; background: var(--accent); }
.subhead small { font-family: var(--font-mono); font-weight: 400; font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.note { font-size: var(--fs-xs); color: var(--muted); margin-top: var(--s-3); }
.callout { padding: var(--s-4) var(--s-5); border-radius: var(--r-lg); background: linear-gradient(135deg, rgba(11, 163, 184, 0.14), rgba(255, 255, 255, 0.5)); border: 1px solid var(--line); }
.callout--amber { background: linear-gradient(135deg, rgba(217, 154, 27, 0.18), rgba(255, 255, 255, 0.5)); }
.callout p { margin: 0; }
.callout h3 { font-size: var(--fs-lg); }

/* charts —— ECharts 容器与环形图下方的行式图例 */
.echart { width: 100%; }
.legend-rows { display: grid; gap: 10px; margin: var(--s-2) 0 0; }
.legend-rows li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; font-size: var(--fs-sm); color: var(--muted); }
.legend-rows i { width: 14px; height: 14px; border-radius: 4px; margin-top: 3px; }
.legend-rows b { color: var(--ink); }
.legend-rows li > b.num { font-family: var(--font-mono); font-weight: 500; }
@media (max-width: 640px) {
  /* 手机档压缩图表高度（与 charts.js 中 JS 值保持一致），图例改两行布局防止挤压 */
  #chart-consume, #chart-population { height: 250px !important; }
  .legend-rows li { grid-template-columns: 14px minmax(0, 1fr); }
  .legend-rows li > b.num { grid-column: 2; }
}

/* layer stack (pool construction) */
.layers { display: grid; gap: var(--s-2); }
.layer { display: grid; grid-template-columns: 1fr auto; gap: var(--s-3); align-items: center; padding: 12px 18px; border-radius: var(--r-sm); color: #fff; background: var(--navy); transform-origin: left; }
.layer:nth-child(1) { width: 100%; } .layer:nth-child(2) { width: 96%; } .layer:nth-child(3) { width: 92%; } .layer:nth-child(4) { width: 88%; } .layer:nth-child(5) { width: 84%; }
.layer b { font-family: var(--font-display); font-weight: 700; }
.layer span { font-size: var(--fs-sm); opacity: 0.85; }

/* energy architecture diagram */
.diagram { padding: var(--s-4); display: grid; gap: var(--s-3); }
.diagram__ems { padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--ink); color: #fff; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-3); align-items: center; }
.diagram__ems b { font-family: var(--font-display); font-size: var(--fs-md); display: block; }
.diagram__ems small { font-family: var(--font-mono); color: #6FD3E0; font-size: var(--fs-xs); }
.diagram__ems p { margin: 4px 0 0; color: var(--ink-muted); font-size: var(--fs-sm); }
/* 架构图两栏：左设备节点矩阵自适应，右 Pool load 卡固定宽度防挤压 */
.diagram__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: var(--s-3); align-items: stretch; }
.diagram__nodes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); align-content: start; }
.node { padding: var(--s-3); border-radius: var(--r-md); background: rgba(255, 255, 255, 0.8); border: 1px solid var(--line); }
/* Pool load 负载卡：浅青底强调「电力最终去向」 */
.node--load { background: var(--accent-soft); border-color: rgba(11, 163, 184, 0.35); display: flex; flex-direction: column; }
.node--load .meter { margin-top: auto; }
.node b { font-family: var(--font-display); font-size: var(--fs-base); display: block; }
.node small { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; display: block; margin-bottom: 4px; }
.node p { font-size: var(--fs-xs); color: var(--muted); margin: 6px 0 0; }
.node--sts { background: var(--ink); color: #fff; border-color: transparent; }
.node--sts p, .node--sts small { color: var(--ink-muted); }
.node .meter { margin-top: 10px; display: grid; gap: 6px; }
.meter__row { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; align-items: center; font-size: var(--fs-xs); }
.meter__track { height: 8px; border-radius: 999px; background: rgba(11, 22, 34, 0.1); overflow: hidden; }
.meter__fill { height: 100%; border-radius: 999px; background: var(--accent); transform-origin: left; }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); padding: var(--s-3); border-radius: var(--r-md); background: rgba(11, 163, 184, 0.08); }
.flow li { display: grid; grid-template-columns: 24px 1fr; gap: 8px; font-size: var(--fs-sm); }
.flow li i { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-style: normal; font-family: var(--font-mono); font-size: 11px; }
.flow li b { font-family: var(--font-display); display: block; }
.flow li span { color: var(--muted); font-size: var(--fs-xs); }
@media (max-width: 1024px) {
  /* 中屏：负载卡挪到节点矩阵下方，节点保持两列 */
  .diagram__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) { .diagram__nodes { grid-template-columns: 1fr; } .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } .diagram__ems { grid-template-columns: 1fr; } }

/* project cards */
.project { display: grid; grid-template-columns: 180px minmax(0, 1fr); overflow: hidden; border-radius: var(--r-md); }
.project__media { background: #fff; display: grid; place-items: center; }
.project__media img { width: 100%; height: 100%; object-fit: contain; }
.project__body { padding: var(--s-3) var(--s-4); display: grid; gap: 6px; }
.project__meta { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); }
.project h4 { font-size: var(--fs-md); margin: 0; }
.project .figure { font-family: var(--font-mono); font-weight: 500; color: var(--accent-ink); font-size: var(--fs-sm); }
.project p { font-size: var(--fs-sm); color: var(--ink-soft); margin: 0; }
@media (max-width: 640px) { .project { grid-template-columns: 1fr; } }

/* scenario gallery */
/* 图集：默认 3 列；仅宽屏展开 4 列，避免中屏每列过窄 */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
@media (min-width: 1200px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.shot { margin: 0; border-radius: var(--r-md); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.shot a { display: block; overflow: hidden; background: #fff; min-height: 150px; }
@supports (aspect-ratio: 1 / 1) { .shot a { aspect-ratio: 3 / 2; min-height: 0; } }
.shot img { width: 100%; height: 100%; object-fit: contain; transition: transform var(--dur-s) var(--ease); }
.shot a:hover img { transform: scale(1.05); }
.shot figcaption { padding: 10px 12px; font-size: var(--fs-sm); font-weight: 600; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* certification pills */
/* —— More projects「一图 + 四文案」项目清单 ——
   编号徽章用主青色；条目为玻璃质感小卡，行数可增减 */
.plist { display: grid; gap: var(--s-3); margin: 0; padding: 0; }
.plist li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: var(--s-3); align-items: start; padding: 14px 16px; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.66); border: 1px solid var(--line); }
.plist__no { font-family: var(--font-mono); font-weight: 500; color: var(--accent-ink); background: var(--accent-soft); width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.plist b { font-family: var(--font-display); display: block; }
.plist small { color: var(--muted); font-size: var(--fs-xs); display: block; margin-top: 2px; }
/* 代表图撑满左栏高度：3:2 裁切填充，与右侧四条目等高不留白 */
.split--hero .split__media a { display: block; width: 100%; height: 100%; }
.split--hero .split__media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 861px) { .split--hero .split__media { align-self: stretch; } }
/* 手机档单列时 height:100% 无参照会塌陷，用 3:2 比例兜底 */
@media (max-width: 860px) { .split--hero .split__media a { height: auto; aspect-ratio: 3 / 2; } }
.certs { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.cert { font-family: var(--font-mono); font-size: var(--fs-sm); padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.72); border: 1px solid var(--line-2); }

/* split (text + media) */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); align-items: center; }
.split--wide-media { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.split__media { border-radius: var(--r-md); overflow: hidden; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; }
.split__media img { width: 100%; height: 100%; object-fit: contain; }
.split__body { padding: var(--s-3) var(--s-4); }
@media (max-width: 860px) { .split, .split--wide-media { grid-template-columns: 1fr; } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-2); counter-reset: step; }
.step { padding: var(--s-3); border-radius: var(--r-md); background: rgba(255, 255, 255, 0.66); border: 1px solid var(--line); counter-increment: step; }
.step::before { content: "0" counter(step); font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--accent-ink); display: block; margin-bottom: 4px; }
.step b { font-family: var(--font-display); display: block; }
.step span { font-size: var(--fs-xs); color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* component tiles */
/* 部件卡：默认 3 列；仅宽屏内容列足够时展开 5 列，避免卡窄图小 */
.comps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
@media (min-width: 1200px) { .comps { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 640px) { .comps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.comp { padding: var(--s-3); text-align: left; }
.comp__no { width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--font-mono); font-size: var(--fs-xs); margin-bottom: 8px; }
.comp__img { border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; min-height: 140px; }
@supports (aspect-ratio: 1 / 1) { .comp__img { aspect-ratio: 4 / 3; min-height: 0; } }
.comp__img img { width: 100%; height: 100%; object-fit: contain; }
.comp b { font-family: var(--font-display); display: block; margin-top: 8px; }
.comp small { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.comp p { font-size: var(--fs-xs); color: var(--ink-soft); margin: 6px 0 0; }

/* CTA */
.cta { padding: clamp(28px, 2vw + 20px, 56px); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: var(--s-4); align-items: center; }
.cta h2 { font-size: var(--fs-xl); margin-bottom: var(--s-2); }
.cta p { color: var(--ink-muted); margin: 0; font-size: var(--fs-md); }
.cta__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: flex-end; }
.cta__actions .btn { min-height: 52px; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } .cta__actions { justify-content: flex-start; } }

/* footer */
.footer { margin-top: var(--s-7); padding: var(--s-6) 0 var(--s-5); color: var(--ink-text); }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.footer .brand { color: #fff; } .footer .brand__name small { color: var(--ink-muted); }
/* footer 深色底：logo 图片为浅色纸纹底，加白色圆角底板过渡，避免生硬矩形边缘 */
.footer img.brand__mark { height: 34px; background: #fff; padding: 5px 9px; border-radius: 10px; }
.footer p { color: var(--ink-muted); font-size: var(--fs-sm); max-width: 38ch; }
.footer h5 { font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: var(--s-3); }
.footer li { margin-bottom: 8px; }
.footer a { color: var(--ink-text); text-decoration: none; border-bottom: 1px solid var(--ink-glass-line); transition: border-color var(--dur-f) ease-out, color var(--dur-f) ease-out; }
.footer a:hover { color: #6FD3E0; border-color: #6FD3E0; }
.footer__base { margin-top: var(--s-5); padding-top: var(--s-3); border-top: 1px solid var(--ink-glass-line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-2); font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-muted); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1200px); width: 100%; }
.lightbox::backdrop { background: rgba(11, 22, 34, 0.82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lightbox img { width: 100%; max-height: 86vh; object-fit: contain; border-radius: var(--r-md); background: #fff; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); margin-top: var(--s-2); color: #fff; font-family: var(--font-mono); font-size: var(--fs-sm); }
.lightbox__close { min-width: 44px; min-height: 44px; border-radius: 999px; border: 1px solid var(--ink-glass-line); background: var(--ink-glass); color: #fff; cursor: pointer; }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.in { opacity: 1; transform: none; transition: opacity var(--dur-s) var(--ease), transform var(--dur-s) var(--ease); }
.reveal.in:nth-child(2) { transition-delay: 80ms; } .reveal.in:nth-child(3) { transition-delay: 160ms; }
.reveal.in:nth-child(4) { transition-delay: 240ms; } .reveal.in:nth-child(5) { transition-delay: 320ms; } .reveal.in:nth-child(6) { transition-delay: 400ms; }
@media (prefers-reduced-motion: no-preference) {
  .hero .reveal.in:nth-child(1) { animation: none; }
  .bar__fill { animation: grow 1200ms var(--ease) both; animation-play-state: paused; }
  .in .bar__fill, .bar__fill.in { animation-play-state: running; }
}
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float__ring { display: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- product-page additions ---------- */
.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-3); }
@media (max-width: 1024px) { .grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gallery--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .gallery--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.comp__img a { display: block; width: 100%; height: 100%; }
.comps a { text-decoration: none; }
.split__media a, .split__media img { display: block; width: 100%; }
@media (max-width: 640px) { .comps { grid-template-columns: 1fr; } }

/* no-JS safety */
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- mobile rhythm ---------- */
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .section--tight { padding: 48px 0; }
  .hero { padding: 40px 0 72px; }
  .hero h1 { line-height: 1.02; }
  .hero__badge { padding: 8px 13px; }
  .hero__badge b { font-size: 1.05rem; }
  .stat { padding: var(--s-4) var(--s-3); }
  .footer { margin-top: 64px; }
}

/* ---------- hero 首屏变体：四个产品页各用一种，避免与首页同构 ----------
   A 沉浸式（水疗） B 深色科技（能源） C 全幅横幅（地板） D 50/50 分屏（泳池） */

/* A. 沉浸式：全幅背景照片 + 深色遮罩，文字落在底部渐变入页面底色 */
.hero--immersive { position: relative; display: grid; align-items: end; min-height: clamp(480px, 58vw, 660px); overflow: hidden; padding: 0; }
.hero--immersive .hero__bg { position: absolute; inset: 0; }
.hero--immersive .hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero--immersive .hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 22, 34, 0.60), rgba(11, 22, 34, 0.22) 40%, rgba(243, 245, 247, 0.08) 62%, var(--bg) 96%); }
.hero--immersive .wrap { position: relative; padding-bottom: var(--s-6); }
.hero--immersive .eyebrow { color: #8FD9E6; }
.hero--immersive h1 { color: #fff; text-shadow: 0 24px 70px rgba(11, 22, 34, 0.55); }
.hero--immersive .hero__lead { color: #E9EFF4; }
/* 手机档：hero 内容多，遮罩尽快过渡到页面底色，避免中部大片模糊图区 */
@media (max-width: 640px) {
  .hero--immersive .hero__bg::after { background: linear-gradient(180deg, rgba(11, 22, 34, 0.60), rgba(11, 22, 34, 0.28) 24%, rgba(243, 245, 247, 0.92) 44%, var(--bg) 58%); }
  .hero--immersive .wrap { padding-bottom: var(--s-2); }
  .hero--immersive .wrap + .wrap { margin-top: var(--s-4) !important; }
}

/* B. 深色科技：墨色底、图去卡片框改光晕投影 */
.hero--dark { background: var(--ink); color: var(--ink-text); }
.hero--dark .eyebrow { color: #6FD3E0; }
.hero--dark h1 { color: #fff; }
.hero--dark .hero__lead { color: var(--ink-muted); }
.hero--dark .hero__visual { background: transparent; border: 0; box-shadow: none; padding: 0; }
.hero--dark .hero__visual img { border-radius: var(--r-lg); box-shadow: 0 48px 130px -48px rgba(0, 0, 0, 0.85); }
.hero--dark .hero__visual figcaption { color: var(--ink-muted); }
.hero--dark .hero__badge { background: rgba(255, 255, 255, 0.08); border-color: var(--ink-glass-line); }
.hero--dark .btn--glass { background: var(--ink-glass); border-color: var(--ink-glass-line); color: var(--ink-text); }
.hero--dark .feature__no { border-color: var(--ink-glass-line); color: #6FD3E0; }
.hero--dark .feature h4 { color: #fff; }
.hero--dark .feature p { color: var(--ink-muted); }
.stats--ink .stat { background: var(--ink-glass); border-color: var(--ink-glass-line); }
/* 深色卡上的数字/单位提亮；accent/amber 色数字保持原色 */
.stats--ink .stat__value { color: var(--ink-text); }
.stats--ink .stat__value small { color: rgba(226, 236, 246, 0.7); }
.stats--ink .stat--accent .stat__value { color: var(--accent-ink); }
.stats--ink .stat--amber .stat__value { color: var(--amber-ink); }
/* 深色版 stats 去掉容器自带的浅色玻璃底，否则浅底上浅字看不清 */
.stats--ink.glass { background: transparent; border: 0; box-shadow: none; }
.stats--ink .stat__label { color: rgba(226, 236, 246, 0.85); }
.hero--dark .kv dt { color: #fff; }
.hero--dark .kv dd { color: var(--ink-muted); }

/* C. 全幅横幅：贴边大图 + 居中文字区 */
.hero--banner { padding: 0; }
.hero--banner__media { height: clamp(240px, 30vw, 440px); overflow: hidden; }
.hero--banner__media img { width: 100%; height: 100%; object-fit: cover; }
.hero--banner .hero__body { max-width: 800px; margin: 0 auto; text-align: center; padding: var(--s-6) var(--s-4) var(--s-4); }
.hero--banner .hero__lead { margin-left: auto; margin-right: auto; }
.hero--banner .hero__actions { justify-content: center; }
.hero--banner .chips { justify-content: center; margin-top: var(--s-4); }

/* D. 50/50 分屏：左半满出血图，右半文字垂直居中，数字用细边框小卡 */
.hero--split { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); min-height: min(640px, 74vh); padding: 0; }
.hero--split__media { position: relative; min-height: 300px; overflow: hidden; }
.hero--split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero--split__body { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: var(--s-4); padding: var(--s-6); min-width: 0; }
/* 分屏右列较窄：标题降一级字号并允许长词换行，避免撑出视口 */
.hero--split__body h1 { font-size: var(--fs-2xl); overflow-wrap: break-word; }
/* 多语言长词（德语复合词等）在窄列内允许断行，避免撑出视口 */
.hero--split .eyebrow { overflow-wrap: anywhere; }
.hero--split .figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); margin: 0; }
.hero--split .figures > div { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; padding: var(--s-3); }
.hero--split .figures .stat__value { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-lg); letter-spacing: -0.02em; }
.hero--split .figures .stat__label { color: var(--muted); }
@media (max-width: 1024px) { .hero--split { grid-template-columns: 1fr; } .hero--split__media { height: 300px; min-height: 0; position: relative; } }

/* about 页首屏：居中简介式，与产品页均不同 */
.hero--about { text-align: center; }
.hero--about .hero__lead { margin-left: auto; margin-right: auto; max-width: 760px; }

/* ---------- 中屏（内容列 ~680-960px）挤压/溢出批量修复 ---------- */

/* 1. 表格：中屏放开表头换行并收紧内边距，避免多列规格表溢出视口（宽屏仍单行） */
@media (max-width: 1280px) {
  th { white-space: normal; }
  .table-wrap th, .table-wrap td { padding: 10px 12px; }
}

/* 2. kv 在窄卡内改上下堆叠：label 粗体一行、内容一行，不再左右挤压成碎行 */
.card .kv > div { grid-template-columns: 1fr; gap: 2px; padding: 10px 0; }
/* spot 卡内长文案 chip 同样允许换行，防止 nowrap 溢出卡外 */
.spot .chip { white-space: normal; border-radius: 14px; }
/* split 窄列内的 stats 改行流 2 列，防止 auto-flow:column 撑破容器 */
.split__body .stats { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* 3. split 顶部对齐：左列多卡堆叠时不再垂直居中产生大片空白 */
.split { align-items: start; }

/* 4. steps 五步卡：窄屏 2 列 → 中屏 3 列 → 宽屏才 5 列，避免每卡两三个词一行 */
.steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* 5. grid--5 卡组：中屏 3 列，宽屏才 5 列 */
@media (max-width: 1279px) { .grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* 6. donut 图表：中屏改上下堆叠（图居中、图例移到下方全宽），图例不再被挤成竖条 */
@media (max-width: 1200px) {
  .chart { grid-template-columns: 1fr; }
  .chart svg { margin-inline: auto; }
}

/* 7. EMS 架构图：改用「左节点矩阵 + 右负载卡」两栏布局，规则见 .diagram__grid 主定义 */

/* 8. 产品卡图片：中屏两列时压缩媒体高度，减少图片上下留白 */
@media (min-width: 641px) and (max-width: 1279px) { .pcard__media { height: 280px; } }

/* ==========================================================================
   多语言排版修补（阿拉伯语 RTL / 长词换行）
   --------------------------------------------------------------------------
   1. eyebrow 小标题是 flex 布局（左侧竖线 + 文字），在 .hero--about 这类居中容器里
      换行时第二行会被 text-align:center 居中，与第一行错位；改为按书写方向对齐。
   2. RTL 下「→」表示前进方向，需水平镜像成「←」；hover 位移方向同步取反。
   3. 数字/尺寸串（18–42 °C、1650 × 800 × 980 mm）：RTL 段落里数字与乘号/连接号
      之间的中性字符会把两个数字掉序，显示成 42–18；给这类元素加 dir="auto"
      由浏览器按首个强字符判定方向，阿拉伯文内容仍保持 RTL。
   4. dir="auto" 使这些数字块的方向变为 LTR，flex 起点随之到左边；
      在 RTL 页面里补 justify-content 让数字块仍贴右，与旁边说明文字对齐。
   ========================================================================== */
.eyebrow { text-align: start; overflow-wrap: anywhere; }
/* 各语言长单词（德/芬/丹/荷）在标题里按需断行，避免撑破栅格 */
h1, h2, h3, h4 { overflow-wrap: break-word; }

[dir="rtl"] .hero__panel-arrow { transform: scaleX(-1); }
[dir="rtl"] .hero__panel-row:hover .hero__panel-arrow { transform: scaleX(-1) translateX(-4px); }

[dir="rtl"] .stat__value[dir="auto"],
[dir="rtl"] .chip[dir="auto"] { justify-content: flex-end; }

/* 5. 项目卡：德语/荷兰语/丹麦语长标签（如 Öffentliche Einrichtungen）会把
      .project__body 的隐式网格列撑到卡外，导致文字被裁；列宽改为可收缩，
      标签允许换行。 */
.project__body { grid-template-columns: minmax(0, 1fr); }
.project__meta { flex-wrap: wrap; gap: 4px 8px; }
.project__meta .chip { white-space: normal; }

/* 6. 首屏长复合词（德语/芬兰语/丹麦语）在手机档会把 .wrap 撑出视口：
      用 anywhere（会参与最小宽度计算，break-word 不会）允许单词内断行。 */
.hero h1, .hero h2, .hero h3, .hero .eyebrow, .hero__lead { overflow-wrap: anywhere; }

/* 7. 区块标题右侧的长标签（如「Hydrotherapie voor kinderen · leeftijd 0–6」）
      默认 nowrap 会顶出视口，这里允许换行并参与最小宽度计算 */
.block__head .chip { white-space: normal; max-width: 100%; }

/* 8. 小节标题：大写字距下的长单词（如丹麦语 Referenceprojekter）在手机档顶出视口 */
.subhead, .subhead small { overflow-wrap: anywhere; }
