/* ==========================================================================
   北京正通达科技发展有限公司 官网
   Swiss Design System · Light(浅灰渐变) / Dark(黑色包蓝色边)
   ========================================================================== */

/* ---------- 1. Design Tokens ---------- */
:root {
  /* color · light */
  --bg-0: #f2f4f7;
  --bg-1: #e7eaef;
  --surface: #ffffff;
  --surface-2: #f6f8fa;
  --surface-3: #eef1f5;
  --text-1: #10131a;
  --text-2: #4c5563;
  --text-3: #8b93a1;
  --line: #e2e6ec;
  --line-strong: #cfd5de;
  --accent: #0b5fff;
  --accent-strong: #0043c8;
  --accent-soft: rgba(11, 95, 255, .08);
  --brand-red: #c8102e;
  --ok: #0f9d58;
  --warn: #d97706;

  /* 蓝色包边（暗色用，亮色为 hairline） */
  --edge: transparent;

  /* elevation */
  --shadow-1: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-2: 0 4px 8px rgba(16, 24, 40, .05), 0 12px 24px rgba(16, 24, 40, .07);
  --shadow-3: 0 12px 24px rgba(16, 24, 40, .10), 0 24px 48px rgba(16, 24, 40, .12);

  /* radius */
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;

  /* spacing · 8pt grid */
  --s-1: 8px;  --s-2: 16px; --s-3: 24px; --s-4: 32px;
  --s-5: 40px; --s-6: 48px; --s-8: 64px; --s-10: 80px; --s-12: 96px;

  /* type scale 32/24/20/16/14/12 */
  --fs-display: 32px;
  --fs-h1: 32px;
  --fs-h2: 24px;
  --fs-h3: 20px;
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-caption: 12px;
  --lh-display: 1.25;
  --lh-h1: 1.25;
  --lh-h2: 1.33;
  --lh-h3: 1.4;
  --lh-body: 1.75;
  --lh-small: 1.6;
  --lh-caption: 1.5;

  /* layout */
  --header-h: 72px;
  --side-w: clamp(264px, 20vw, 368px);
  --content-max: 1240px;

  --font: "Helvetica Neue", Helvetica, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --t-fast: .18s;
  --t-med: .32s;
}

html[data-theme="dark"] {
  --bg-0: #05070c;
  --bg-1: #0a0e17;
  --surface: #10141d;
  --surface-2: #151a25;
  --surface-3: #1a2030;
  --text-1: #e9edf5;
  --text-2: #a4aec0;
  --text-3: #67718a;
  --line: #1c2331;
  --line-strong: #273043;
  --accent: #3d82f6;
  --accent-strong: #6aa2ff;
  --accent-soft: rgba(61, 130, 246, .12);
  --edge: rgba(64, 128, 255, .30);
  --edge-glow: 0 0 0 1px rgba(64, 128, 255, .10), 0 0 24px rgba(38, 96, 255, .10);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4), var(--edge-glow);
  --shadow-2: 0 8px 24px rgba(0, 0, 0, .5), var(--edge-glow);
  --shadow-3: 0 16px 48px rgba(0, 0, 0, .6), 0 0 32px rgba(38, 96, 255, .14);
}

/* ---------- 2. Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-1);
  background: linear-gradient(148deg, var(--bg-0) 0%, var(--bg-1) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  transition: background var(--t-med) var(--ease), color var(--t-med) var(--ease);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input { font-family: inherit; }
::selection { background: var(--accent); color: #fff; }

h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: 650; letter-spacing: -.01em; }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 620; letter-spacing: -.005em; }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 600; }
p  { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text-2); }
small, .fs-small { font-size: var(--fs-small); line-height: var(--lh-small); }
.fs-caption { font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--text-3); letter-spacing: .04em; }

.en-cap {
  font-size: var(--fs-caption);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
}

.num { font-variant-numeric: tabular-nums; }

/* ---------- 3. Layout frame ---------- */
.shell { min-height: 100vh; }

.main {
  margin-left: var(--side-w);
  padding-top: var(--header-h);
  transition: margin var(--t-med) var(--ease);
}

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--s-6);
}

/* ---------- 4. Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 900;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--s-4);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  transition: background var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
html[data-theme="dark"] .header { box-shadow: var(--edge-glow); }

.header-left { display: flex; align-items: center; gap: var(--s-2); justify-self: start; }
.header-right { display: flex; align-items: center; gap: var(--s-3); justify-self: end; }

.brand {
  display: flex; align-items: center; gap: var(--s-2);
  justify-self: center;
  transition: opacity var(--t-fast) var(--ease);
}
.brand:hover { opacity: .78; }
.brand-logo {
  height: 34px;
  width: auto;
  flex: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
}
.brand-name { text-align: left; line-height: 1.2; }
.brand-name b { display: block; font-size: var(--fs-small); font-weight: 650; letter-spacing: .02em; }
.brand-name span { display: block; font-size: 9px; letter-spacing: .14em; color: var(--text-3); text-transform: uppercase; }

.icon-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  transition: all var(--t-fast) var(--ease);
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }

.link-contact {
  font-size: var(--fs-small);
  font-weight: 550;
  color: var(--text-2);
  display: inline-flex; align-items: center; gap: var(--s-1);
  padding: var(--s-1) var(--s-2);
  border-radius: var(--r-md);
  transition: all var(--t-fast) var(--ease);
}
.link-contact:hover { color: var(--accent); background: var(--accent-soft); }

.menu-btn { display: none; }

/* ---------- 5. Sidebar (Mercedes style · 悬停显现) ---------- */
/* 固定容器：自身不拦截点击，仅触发条与侧栏可交互 */
.side-hover {
  position: fixed;
  top: var(--header-h); left: 0; bottom: 0;
  width: var(--side-w);
  z-index: 800;
  pointer-events: none;
}

/* 左缘常驻触发条（细线 + 圆点，悬停展开） */
.side-trigger {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 32px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: var(--s-2);
  pointer-events: auto;
  cursor: pointer;
  color: var(--text-3);
  border-right: 1px solid var(--line);
  transition: color var(--t-fast) var(--ease), background var(--t-med) var(--ease);
}
.side-trigger:hover, .side-hover:hover .side-trigger { color: var(--accent); }
.trig-line { width: 1px; height: 72px; background: var(--line-strong); }
.trig-chev {
  display: inline-flex;
  transition: transform var(--t-med) var(--ease);
}
.side-hover:hover .trig-chev { transform: rotate(180deg); }

/* 侧栏本体：默认藏起，悬停容器任意位置滑入 */
.sidebar {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: calc(100% - 0px);
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--s-6) var(--s-4) var(--s-6) var(--s-5);
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateX(-103%);
  transition: transform var(--t-med) var(--ease), background var(--t-med) var(--ease);
  pointer-events: auto;
  box-shadow: none;
}
.side-hover:hover .sidebar { transform: none; }
.side-hover:focus-within .sidebar { transform: none; }
.side-hover:hover .sidebar,
.sidebar.open {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow-3);
}
.sidebar.open { transform: none; }
html[data-theme="dark"] .sidebar { box-shadow: inset -1px 0 0 var(--edge); }
html[data-theme="dark"] .side-hover:hover .sidebar,
html[data-theme="dark"] .sidebar.open { box-shadow: var(--edge-glow), var(--shadow-3); }

/* 侧栏顶部品牌（点击回首页） */
.side-brand {
  position: absolute;
  top: var(--s-4); left: var(--s-4); right: var(--s-4);
  display: flex; align-items: center; gap: var(--s-2);
  transition: opacity var(--t-fast) var(--ease);
}
.side-brand:hover { opacity: .78; }
.side-brand .brand-logo { height: 30px; padding: 2px 5px; }
.side-brand-txt { line-height: 1.3; min-width: 0; }
.side-brand-txt b { display: block; font-size: var(--fs-caption); font-weight: 650; letter-spacing: .03em; white-space: nowrap; }
.side-brand-txt > span { display: block; font-size: 9px; letter-spacing: .12em; color: var(--text-3); text-transform: uppercase; white-space: nowrap; }

.side-nav { list-style: none; display: flex; flex-direction: column; gap: var(--s-1); }

.side-item a {
  position: relative;
  display: flex; align-items: baseline;
  padding: var(--s-3) var(--s-2);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: all var(--t-med) var(--ease);
}
.side-item .label {
  font-size: var(--fs-h3);
  font-weight: 620;
  letter-spacing: .01em;
  line-height: var(--lh-h3);
  white-space: nowrap;
  transition: transform var(--t-med) var(--ease), color var(--t-fast) var(--ease);
}

/* hover：奔驰式滑条 */
.side-item a::before {
  content: "";
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  border-radius: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--t-med) var(--ease);
}
.side-item a:hover::before,
.side-item.active a::before { transform: scaleY(1); }
.side-item a:hover .label,
.side-item.active .label { transform: translateX(8px); color: var(--accent); }
.side-item.active { background: var(--accent-soft); }

.side-foot {
  position: absolute;
  bottom: var(--s-5); left: var(--s-5); right: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: var(--s-1);
}
.side-foot .fs-caption { letter-spacing: .12em; }
.side-foot b { font-size: var(--fs-small); font-weight: 600; }

/* 移动端抽屉 */
.scrim {
  position: fixed; inset: 0; z-index: 750;
  background: rgba(5, 8, 14, .5);
  backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-med) var(--ease);
}
.scrim.open { opacity: 1; pointer-events: auto; }

/* ---------- 6. Breadcrumb 路径 ---------- */
.crumbs {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: var(--s-2);
  padding: var(--s-3) 0 0;
  font-size: var(--fs-caption);
  letter-spacing: .06em;
  color: var(--text-3);
}
.crumbs a { transition: color var(--t-fast) var(--ease); }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { opacity: .45; }
.crumbs .cur { color: var(--text-1); font-weight: 600; }

/* ---------- 7. Buttons (8pt grid) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-1);
  height: 48px;
  padding: 0 var(--s-3);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: .04em;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: all var(--t-fast) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-1); }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.btn-ghost { border-color: var(--line-strong); color: var(--text-1); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-sm { height: 40px; padding: 0 var(--s-2); font-size: var(--fs-caption); letter-spacing: .08em; }
.btn-block { width: 100%; }

/* ---------- 8. Hero (首页首屏) ---------- */
.hero {
  min-height: calc(100vh - var(--header-h));
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
  scroll-snap-align: start;
  padding: var(--s-8) 0;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 90% 70% at 30% 40%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 30% 40%, #000 0%, transparent 70%);
  opacity: .5;
}
.hero-kicker { margin-bottom: var(--s-3); display: flex; align-items: center; gap: var(--s-2); }
.hero-kicker .tick { width: 32px; height: 2px; background: var(--brand-red); }
.hero-title {
  font-size: clamp(44px, 6.4vw, 96px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -.02em;
}
.hero-title .accent { color: var(--accent); }
.hero-sub {
  margin-top: var(--s-4);
  max-width: 560px;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  color: var(--text-2);
}
.hero-cta { margin-top: var(--s-6); display: flex; gap: var(--s-2); flex-wrap: wrap; }
.hero-side {
  position: absolute; right: var(--s-6); bottom: var(--s-8);
  writing-mode: vertical-rl;
  font-size: var(--fs-caption);
  letter-spacing: .34em;
  color: var(--text-3);
  display: flex; align-items: center; gap: var(--s-3);
}
.hero-side::after { content: ""; width: 1px; height: 64px; background: var(--line-strong); }

.hero-stats {
  margin-top: var(--s-10);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
  max-width: 720px;
  border-top: 1px solid var(--line);
  padding-top: var(--s-4);
}
.hstat b { font-size: var(--fs-h2); font-weight: 700; letter-spacing: -.01em; display: block; }
.hstat b em { font-style: normal; color: var(--accent); }
.hstat span { font-size: var(--fs-caption); color: var(--text-3); letter-spacing: .08em; }

/* ---------- 9. Section 通用 ---------- */
.section { padding: var(--s-12) 0; scroll-snap-align: start; position: relative; }
.section-head { margin-bottom: var(--s-8); display: flex; flex-direction: column; gap: var(--s-2); }
.section-head h2 { font-size: var(--fs-h1); }
.section-head .rule { width: 48px; height: 3px; background: var(--brand-red); }
.section-lead { max-width: 680px; color: var(--text-2); }

/* 进场动效 */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 10. 首页 · 公司简介分栏 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--s-10);
  align-items: start;
}
.about-meta { display: flex; flex-direction: column; gap: var(--s-3); }
.about-body p + p { margin-top: var(--s-3); }
.about-body .lead { font-size: var(--fs-h3); line-height: 1.6; color: var(--text-1); font-weight: 500; }
.about-body .lead b { color: var(--brand-red); font-weight: 650; }

.pill-list { display: flex; flex-wrap: wrap; gap: var(--s-1); margin-top: var(--s-4); }
.pill {
  font-size: var(--fs-caption); font-weight: 600; letter-spacing: .06em;
  padding: var(--s-1) var(--s-2);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-2);
  transition: all var(--t-fast) var(--ease);
}
.pill:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ---------- 11. 产品卡片轮转 ---------- */
.carousel-wrap { position: relative; }
.carousel {
  display: flex;
  gap: var(--s-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: var(--s-2) var(--s-1) var(--s-4);
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.carousel::-webkit-scrollbar { display: none; }

.pcard {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--r-md);
  padding: var(--s-2);
  display: flex; flex-direction: column; gap: var(--s-3);
  box-shadow: var(--shadow-1);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
  cursor: pointer;
}
.pcard:hover { transform: translateY(-8px); box-shadow: var(--shadow-3); border-color: var(--edge); }
.pcard-img {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface-3);
}
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pcard:hover .pcard-img img { transform: scale(1.05); }
.pcard-body { display: flex; flex-direction: column; gap: var(--s-1); padding: 0 var(--s-1) var(--s-1); }
.pcard-tag { font-size: var(--fs-caption); letter-spacing: .12em; color: var(--accent); font-weight: 650; text-transform: uppercase; }
.pcard-title { font-size: var(--fs-body); font-weight: 620; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-desc { font-size: var(--fs-small); color: var(--text-3); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-foot {
  margin-top: auto; padding: 0 var(--s-1) var(--s-1);
  display: flex; align-items: center; justify-content: space-between;
  font-size: var(--fs-caption); color: var(--text-3); letter-spacing: .08em;
}
.pcard-foot .go { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 600; transition: gap var(--t-fast) var(--ease); }
.pcard:hover .pcard-foot .go { gap: 10px; }

.car-nav { display: flex; gap: var(--s-2); justify-content: flex-end; margin-top: var(--s-2); }

/* ---------- 12. 应用领域 ---------- */
.fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.field {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--s-6) var(--s-5);
  transition: background var(--t-med) var(--ease);
  position: relative;
  overflow: hidden;
}
.field:hover { background: var(--surface); }
.field::after {
  content: attr(data-i);
  position: absolute; right: var(--s-4); top: var(--s-4);
  font-size: 12px; letter-spacing: .1em; color: var(--text-3);
  transition: color var(--t-fast) var(--ease);
}
.field:hover::after { color: var(--accent); }
.field h3 { margin-bottom: var(--s-2); transition: transform var(--t-med) var(--ease); }
.field:hover h3 { transform: translateX(6px); }
.field p { font-size: var(--fs-small); }

/* ---------- 13. 产品目录过渡页 ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.split-cell {
  position: relative;
  padding: var(--s-10) var(--s-8);
  display: flex; flex-direction: column; justify-content: flex-end; gap: var(--s-2);
  overflow: hidden;
  min-height: 480px;
  transition: all var(--t-med) var(--ease);
}
.split-cell + .split-cell { border-left: 1px solid var(--line); }
.split-cell .bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .14;
  filter: grayscale(.3);
  transition: all .6s var(--ease);
}
html[data-theme="dark"] .split-cell .bg { opacity: .18; }
.split-cell:hover .bg { opacity: .32; transform: scale(1.04); filter: grayscale(0); }
.split-cell .content { position: relative; z-index: 1; display: flex; flex-direction: column; gap: var(--s-2); }
.split-cell .num-big {
  font-size: 64px; font-weight: 700; letter-spacing: -.03em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line-strong);
  line-height: 1;
  transition: all var(--t-med) var(--ease);
}
.split-cell:hover .num-big { -webkit-text-stroke: 1.5px var(--accent); }
.split-cell h3 { font-size: var(--fs-h1); }
.split-cell .cnt { color: var(--text-3); font-size: var(--fs-small); letter-spacing: .06em; }
.split-cell .btn { align-self: flex-start; margin-top: var(--s-3); }

/* ---------- 14. 机型横排展示 ---------- */
.machine-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--s-10);
  align-items: center;
  padding: var(--s-12) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.machine-row:first-of-type { border-top: 0; }
.machine-row.rev .m-media { order: -1; }

.m-info { display: flex; flex-direction: column; gap: var(--s-3); align-items: flex-start; }
.m-index { font-size: var(--fs-caption); letter-spacing: .2em; color: var(--accent); font-weight: 650; }
.m-info h2 { font-size: var(--fs-h1); }
.m-desc { color: var(--text-2); }
.m-points { list-style: none; display: flex; flex-direction: column; gap: var(--s-2); margin-top: var(--s-1); width: 100%; }
.m-points li {
  position: relative;
  padding-left: var(--s-4);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  color: var(--text-2);
}
.m-points li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 14px; height: 2px;
  background: var(--brand-red);
}
.m-media { position: relative; }
.m-media .frame {
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow-2);
  aspect-ratio: 4 / 3;
}
.m-media .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.m-media:hover .frame img { transform: scale(1.03); }
.m-media .sub {
  position: absolute;
  right: calc(-1 * var(--s-3)); bottom: var(--s-5);
  width: 128px; height: 128px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--surface);
  box-shadow: var(--shadow-2);
  background: var(--surface-3);
}
.m-media .sub img { width: 100%; height: 100%; object-fit: cover; }

/* 规格表 */
.spec {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--s-2);
  font-size: var(--fs-small);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.spec th, .spec td {
  padding: var(--s-1) var(--s-2);
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}
.spec thead th {
  background: var(--surface-3);
  font-size: var(--fs-caption);
  letter-spacing: .1em;
  color: var(--text-2);
  font-weight: 650;
}
.spec tbody tr:hover { background: var(--accent-soft); }
.spec tbody tr:last-child td { border-bottom: 0; }
.spec-wrap { width: 100%; overflow-x: auto; }

/* 定位高亮（卡片点击跳转后） */
.machine-row.focus {
  animation: focusPulse 2.2s var(--ease);
  border-radius: var(--r-md);
}
@keyframes focusPulse {
  0%   { background: transparent; box-shadow: none; }
  18%  { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent), var(--shadow-2); }
  75%  { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent), var(--shadow-2); }
  100% { background: transparent; box-shadow: none; }
}

/* ---------- 15. 公司资质 ---------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
}
.cert-card {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--r-md);
  padding: var(--s-4);
  display: flex; flex-direction: column; gap: var(--s-3);
  box-shadow: var(--shadow-1);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.cert-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.cert-card.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: var(--s-5); }
.cert-card .cert-img {
  background: var(--surface-3);
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  padding: var(--s-2);
  display: flex; align-items: center; justify-content: center;
  min-height: 240px;
}
.cert-card .cert-img img { max-height: 260px; width: auto; max-width: 100%; object-fit: contain; }
.cert-card.wide .cert-img { flex: 0 0 46%; min-height: 320px; }
.cert-card .cert-body { display: flex; flex-direction: column; gap: var(--s-2); }
.cert-body h3 { font-size: var(--fs-h3); }
.cert-body .rate {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-caption); font-weight: 650; letter-spacing: .1em;
  color: var(--ok);
}
.cert-body .rate::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.cert-body p { font-size: var(--fs-small); }

/* ---------- 16. 服务体系 ---------- */
.service-figure {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--edge);
  box-shadow: var(--shadow-2);
  background: var(--surface);
  max-width: 880px;
  margin: 0 auto;
}
.service-figure img { width: 100%; }
.service-figure figcaption {
  padding: var(--s-2) var(--s-3);
  font-size: var(--fs-caption);
  color: var(--text-3);
  letter-spacing: .1em;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: var(--s-2); flex-wrap: wrap;
}

/* ---------- 17. 联系我们 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--r-md);
  padding: var(--s-5);
  box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; gap: var(--s-2);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.contact-card .k { font-size: var(--fs-caption); letter-spacing: .18em; color: var(--text-3); font-weight: 650; text-transform: uppercase; }
.contact-card .v { font-size: var(--fs-h3); font-weight: 620; line-height: 1.5; word-break: break-all; }
.contact-card .hint { font-size: var(--fs-small); color: var(--text-3); }
.contact-card.hero-card {
  grid-column: 1 / -1;
  flex-direction: row; align-items: center; justify-content: space-between; gap: var(--s-6);
  background: linear-gradient(120deg, var(--surface) 0%, var(--accent-soft) 100%);
  border-color: var(--edge);
}
.contact-card.hero-card .v { font-size: var(--fs-h1); }
.copy-btn {
  flex: none;
  height: 44px; padding: 0 var(--s-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font-size: var(--fs-caption); font-weight: 600; letter-spacing: .08em;
  color: var(--text-2);
  transition: all var(--t-fast) var(--ease);
}
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.copy-btn.done { border-color: var(--ok); color: var(--ok); }

/* ---------- 18. 页脚 ---------- */
.footer {
  margin-left: var(--side-w);
  border-top: 1px solid var(--line);
  background: var(--surface);
  transition: margin var(--t-med) var(--ease);
}
html[data-theme="dark"] .footer { box-shadow: inset 0 1px 0 var(--edge); }
.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--s-8) var(--s-6) var(--s-5);
  display: flex; flex-direction: column; gap: var(--s-5);
}
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); }
.footer-links a {
  display: inline-flex; align-items: center; gap: var(--s-1);
  font-size: var(--fs-small); font-weight: 550; color: var(--text-2);
  transition: all var(--t-fast) var(--ease);
  padding: var(--s-1) 0;
}
.footer-links a:hover { color: var(--accent); transform: translateY(-2px); }
.footer-links a svg { width: 14px; height: 14px; opacity: .6; }
.footer-base {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); flex-wrap: wrap;
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  font-size: var(--fs-caption);
  color: var(--text-3);
  letter-spacing: .06em;
}

/* ---------- 19. 登录页 ---------- */
.login-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 5fr) 7fr;
}
.login-panel {
  display: flex; flex-direction: column;
  justify-content: center;
  padding: var(--s-10) var(--s-10);
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(11, 95, 255, .10), transparent 60%),
    linear-gradient(160deg, var(--bg-0), var(--bg-1));
}
.login-card {
  position: relative;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  background: color-mix(in srgb, var(--surface) 62%, transparent);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  padding: var(--s-8);
  box-shadow: var(--shadow-3);
  display: flex; flex-direction: column; gap: var(--s-4);
}
html[data-theme="light"] .login-card {
  background: rgba(255, 255, 255, .58);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 24px 64px rgba(30, 60, 160, .14), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.login-card .brand-lg { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-2); }
.login-card .brand-lg img {
  height: 46px;
  width: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
}
.login-card h1 { font-size: var(--fs-h2); }
.login-card .sub { font-size: var(--fs-small); color: var(--text-3); margin-top: -8px; }

.field-row { display: flex; flex-direction: column; gap: var(--s-1); }
.field-row label { font-size: var(--fs-caption); letter-spacing: .12em; color: var(--text-2); font-weight: 650; }
.field-row input {
  height: 52px;
  padding: 0 var(--s-2);
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text-1);
  font-size: var(--fs-body);
  outline: none;
  transition: all var(--t-fast) var(--ease);
}
.field-row input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
/* 蜜罐字段：反垃圾机器人，视觉隐藏，正常用户不可见 */
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.login-err {
  display: none;
  font-size: var(--fs-small);
  color: var(--brand-red);
  background: color-mix(in srgb, var(--brand-red) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-red) 30%, transparent);
  padding: var(--s-2);
  border-radius: var(--r-sm);
}
.login-err.show { display: block; }
.login-back { position: absolute; top: var(--s-5); left: var(--s-5); }

.login-visual {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 560px at 78% 16%, #dfe9fb 0%, transparent 62%),
    radial-gradient(820px 480px at 12% 88%, #e8effc 0%, transparent 58%),
    linear-gradient(160deg, #f7faff 0%, #eef3fb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-8);
}
.login-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(43, 84, 194, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 84, 194, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(720px 460px at 50% 44%, #000 0%, transparent 78%);
}
.login-visual .visual-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  padding: clamp(28px, 4.4vw, 60px) clamp(32px, 5.4vw, 84px);
}
.login-visual .visual-card img { display: block; width: min(100%, 540px); height: auto; }
.login-visual .visual-cap {
  position: absolute; left: var(--s-8); bottom: var(--s-8);
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .9);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-2);
  max-width: 320px;
}
.login-visual .visual-cap b { display: block; font-size: var(--fs-h3); }
.login-visual .visual-cap span { font-size: var(--fs-small); color: var(--text-2); }

/* ---------- 20. 管理仪表盘 ---------- */
.admin-body { background: linear-gradient(148deg, var(--bg-0), var(--bg-1)); }
.admin-top {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-3) var(--s-6);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.admin-top .who { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-small); }
.admin-top .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: var(--fs-caption); letter-spacing: .05em;
}
.admin-main { max-width: 1200px; margin: 0 auto; padding: var(--s-6) var(--s-6) var(--s-10); display: flex; flex-direction: column; gap: var(--s-5); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--r-md);
  padding: var(--s-5);
  box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; gap: var(--s-1);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.stat-card .k { font-size: var(--fs-caption); letter-spacing: .14em; color: var(--text-3); font-weight: 650; }
.stat-card .v { font-size: 40px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.stat-card .d { font-size: var(--fs-caption); color: var(--text-3); }
.stat-card .up { color: var(--ok); font-weight: 650; }

.panel {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--r-md);
  padding: var(--s-5);
  box-shadow: var(--shadow-1);
}
.panel-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--s-4); }
.panel-head h3 { font-size: var(--fs-h3); }
.panel-head .fs-caption { letter-spacing: .12em; }
.panel-2col { display: grid; grid-template-columns: 3fr 2fr; gap: var(--s-4); }

.chart-box { width: 100%; }
.chart-box svg { width: 100%; height: auto; display: block; }

.rank-list { list-style: none; display: flex; flex-direction: column; gap: var(--s-3); }
.rank-list li { display: grid; grid-template-columns: 96px 1fr 48px; align-items: center; gap: var(--s-3); font-size: var(--fs-small); }
.rank-list .bar { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.rank-list .bar i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  border-radius: 99px;
  width: 0;
  transition: width 1s var(--ease);
}
.rank-list .n { text-align: right; font-weight: 650; }

.req-table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.req-table th, .req-table td { text-align: left; padding: var(--s-2); border-bottom: 1px solid var(--line); }
.req-table thead th { font-size: var(--fs-caption); letter-spacing: .12em; color: var(--text-3); }
.req-table tbody tr:hover { background: var(--accent-soft); }
.req-empty { text-align: center; color: var(--text-3); padding: var(--s-6) 0; font-size: var(--fs-small); }

.mail-tip {
  display: flex; gap: var(--s-2); align-items: flex-start;
  border: 1px dashed var(--warn);
  background: color-mix(in srgb, var(--warn) 8%, transparent);
  color: var(--text-2);
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-4);
  font-size: var(--fs-small);
}
.mail-tip b { color: var(--warn); }

/* ---------- 21. 购买请求弹窗 ---------- */
.modal-scrim {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(6, 10, 18, .55);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: var(--s-4);
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-med) var(--ease);
}
.modal-scrim.open { opacity: 1; pointer-events: auto; }
.modal {
  width: 100%; max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  transform: translateY(24px) scale(.97);
  transition: transform var(--t-med) var(--ease);
}
.modal-scrim.open .modal { transform: none; }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.modal-head h3 { font-size: var(--fs-h3); }
.modal-x {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
  transition: all var(--t-fast) var(--ease);
}
.modal-x:hover { background: var(--surface-3); color: var(--text-1); transform: rotate(90deg); }
.modal-body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.modal-machine {
  display: flex; align-items: center; gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  border-radius: var(--r-sm);
  font-size: var(--fs-small); font-weight: 600; color: var(--accent);
}
.modal-ok { text-align: center; padding: var(--s-3) 0; display: flex; flex-direction: column; align-items: center; gap: var(--s-3); }
.modal-ok .ok-ring {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  animation: pop .5s var(--ease);
}
.modal-ok .ok-ring svg { width: 36px; height: 36px; color: var(--ok); }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.modal-ok p { font-size: var(--fs-small); }
.modal-foot { display: flex; gap: var(--s-2); padding: 0 var(--s-5) var(--s-5); }
.spin {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  animation: rot .8s linear infinite;
}
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- 22. 首页拉帘翻页（sticky 覆盖式，滚轮向上拉帘） ---------- */
body[data-page="home"] .main > section {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(148deg, var(--bg-0) 0%, var(--bg-1) 100%);
  border-top: 1px solid var(--line);
  box-shadow: 0 -18px 36px rgba(16, 24, 40, .10);
}
html[data-theme="dark"] body[data-page="home"] .main > section {
  border-top-color: rgba(64, 128, 255, .16);
  box-shadow: 0 -18px 36px rgba(0, 0, 0, .55);
}
body[data-page="home"] .main > section:first-child { border-top: 0; box-shadow: none; }

/* 内容超高或窄屏时降级为普通滚动，防止 sticky 遮蔽内容 */
body.no-curtain .main > section {
  position: relative;
  min-height: 0;
  border-top: 0;
  box-shadow: none;
}

/* ---------- 23. 响应式 ---------- */
@media (max-width: 1080px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .panel-2col { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .cert-card.wide { flex-direction: column; align-items: stretch; }
  .cert-card.wide .cert-img { flex: none; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .menu-btn { display: inline-flex; }
  /* 侧边栏：移动端走汉堡抽屉，悬停触发条隐藏 */
  .side-hover {
    width: min(80vw, 340px);
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
  }
  .side-trigger { display: none; }
  .sidebar {
    width: 100%;
    transform: translateX(-102%);
    background: var(--surface);
    box-shadow: var(--shadow-3);
  }
  .side-hover:hover .sidebar { transform: translateX(-102%); }
  .side-hover:hover .sidebar.open,
  .sidebar.open { transform: none; }
  /* 首页关闭拉帘，恢复普通滚动 */
  body[data-page="home"] .main > section {
    position: relative;
    min-height: 0;
    border-top: 0;
    box-shadow: none;
  }
  .main, .footer { margin-left: 0; }
  .container { padding: 0 var(--s-4); }
  .hero-side { display: none; }
  .machine-row { grid-template-columns: 1fr; gap: var(--s-5); padding: var(--s-8) 0; }
  .machine-row.rev .m-media { order: 0; }
  .m-media .sub { width: 96px; height: 96px; right: var(--s-2); bottom: var(--s-3); }
  .split { grid-template-columns: 1fr; }
  .split-cell + .split-cell { border-left: 0; border-top: 1px solid var(--line); }
  .fields { grid-template-columns: 1fr 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card.hero-card { flex-direction: column; align-items: flex-start; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-panel { padding: var(--s-8) var(--s-4); }
  .brand { gap: var(--s-1); }
  .brand-logo { height: 26px; padding: 1px 4px; }
  .brand-name b { font-size: 11px; white-space: nowrap; letter-spacing: 0; }
  .link-contact { display: none; }
}

@media (max-width: 560px) {
  .hero-stats { grid-template-columns: 1fr; gap: var(--s-3); }
  .fields { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .pcard { flex-basis: 78vw; }
  .footer-links { flex-direction: column; gap: var(--s-2); }
}
