/* ==========================================================================
   仙媒科技官网 · 前台样式  V1.0
   令牌来自 tokens.css，本文件只做版式，不出现写死色值
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--brand-cream);
  color: var(--text-1);
  font-family: var(--font-cn);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: color-mix(in srgb, var(--brand-primary) 22%, transparent); }

.wrap { width: min(1240px, calc(100% - 96px)); margin: 0 auto; }

/* ---------- 通用小节标题 ---------- */
.sec { padding: 112px 0; position: relative; scroll-margin-top: 74px; }
.sec--tight { padding: 84px 0; }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-bottom: 56px; }
.sec-head .lead { max-width: 660px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-en); font-size: 12px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--brand-accent-deep);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--brand-accent); }
.sec-title {
  margin: 18px 0 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.3; font-weight: 800; letter-spacing: -.01em;
}
.sec-desc { margin: 16px 0 0; color: var(--text-2); font-size: 16.5px; max-width: 620px; }
.sec-head .eyebrow { word-break: keep-all; }
.sec-index {
  font-family: var(--font-en); font-size: 76px; font-weight: 300; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--brand-primary) 26%, transparent);
  letter-spacing: -.04em; user-select: none;
}
/* 深色区块的编号描边改浅色，深浅底都看得清；不再逐处内联写色 */
.proj-sec .sec-index { -webkit-text-stroke-color: rgba(255, 255, 255, .22); }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  height: 74px; display: flex; align-items: center;
  transition: background var(--motion-base) var(--ease-out), box-shadow var(--motion-base), border-color var(--motion-base);
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: color-mix(in srgb, #ffffff 88%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line-1);
  box-shadow: 0 1px 0 rgba(0,0,0,.02), var(--shadow-1);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; width: min(1320px, calc(100% - 96px)); }
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img { height: 34px; width: auto; transition: opacity var(--motion-base); }
.nav-brand .brand-mark { display: none; }
.nav-brand .brand-sub {
  font-family: var(--font-en); font-size: 10.5px; letter-spacing: .24em;
  color: var(--text-3); border-left: 1px solid var(--line-2); padding-left: 12px; margin-left: 2px;
  line-height: 1.2; text-transform: uppercase;
}

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu a {
  position: relative; padding: 8px 14px; border-radius: var(--r-sm);
  font-size: 14.5px; color: var(--text-2); font-weight: 500;
  transition: color var(--motion-fast), background var(--motion-fast);
}
.nav-menu a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 1.5px;
  background: var(--brand-accent); transform: scaleX(0); transform-origin: left;
  transition: transform var(--motion-base) var(--ease-out);
}
.nav-menu a:hover { color: var(--text-1); }
.nav-menu a:hover::after, .nav-menu a.is-active::after { transform: scaleX(1); }
.nav-menu a.is-active { color: var(--brand-primary-deep); font-weight: 600; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 18px; border-radius: var(--r-pill);
  background: var(--brand-primary-deep); color: #fff;
  font-size: 13.5px; font-weight: 600; letter-spacing: .02em;
  transition: transform var(--motion-base) var(--ease-out), background var(--motion-fast), box-shadow var(--motion-base);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--brand-primary) 26%, transparent);
}
.nav-cta:hover { background: var(--brand-primary); transform: translateY(-1px); box-shadow: 0 6px 18px color-mix(in srgb, var(--brand-primary) 32%, transparent); }
.nav-cta svg { width: 14px; height: 14px; }

.nav-right { display: flex; align-items: center; gap: 12px; }
/* 顶栏不再放「管理后台」按钮：菜单靠右，移动端汉堡也靠右 */
.nav-menu { margin-left: auto; }
.nav-burger {
  display: none; width: 40px; height: 40px; border-radius: var(--r-sm);
  background: transparent; border: 1px solid var(--line-2); cursor: pointer;
  padding: 0; place-items: center; gap: 5px; align-content: center;
}
.nav-burger span { display: block; width: 16px; height: 1.5px; background: currentColor; transition: transform var(--motion-base); }
.nav-sheet {
  display: none; position: absolute; top: 74px; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--line-1);
  box-shadow: var(--shadow-3); padding: 10px 22px 18px;
  flex-direction: column;
}
.nav-sheet a { padding: 13px 4px; font-size: 15px; color: var(--text-2); border-bottom: 1px solid var(--line-1); }
.nav-sheet a:last-child { border-bottom: 0; color: var(--brand-primary-deep); font-weight: 600; }
.nav-sheet.open { display: flex; }

/* 深底状态（首屏） */
body.on-dark .nav:not(.is-solid) .nav-menu a { color: rgba(255,255,255,.72); }
body.on-dark .nav:not(.is-solid) .nav-menu a:hover { color: #fff; }
body.on-dark .nav:not(.is-solid) .nav-brand img.logo-light { opacity: 1; }
body.on-dark .nav:not(.is-solid) .brand-sub { color: rgba(255,255,255,.45); border-color: rgba(255,255,255,.16); }
body.on-dark .nav:not(.is-solid) .nav-cta { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); box-shadow: none; }
body.on-dark .nav:not(.is-solid) .nav-cta:hover { background: rgba(255,255,255,.18); }
.logo-light { display: none; }
body.on-dark .nav:not(.is-solid) .logo-dark { display: none; }
body.on-dark .nav:not(.is-solid) .logo-light { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; display: flex; align-items: center;
  background:
    radial-gradient(120% 90% at 78% 12%, var(--deep-a) 0%, transparent 55%),
    radial-gradient(90% 70% at 10% 92%, var(--deep-c) 0%, transparent 60%),
    linear-gradient(160deg, var(--deep-b) 0%, var(--deep-b) 52%, var(--deep-c) 100%);
  color: #fff;
  padding: 120px 0 80px;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(100% 80% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(100% 80% at 50% 30%, #000 20%, transparent 78%);
}
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .85; }
.hero .wrap { position: relative; z-index: 3; width: min(1240px, calc(100% - 96px)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 72px; align-items: center; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-en); font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--brand-accent-soft); opacity: .92;
}
.hero-eyebrow i { width: 34px; height: 1px; background: linear-gradient(90deg, var(--brand-accent), transparent); }

.hero h1 {
  margin: 26px 0 0;
  font-size: clamp(44px, 5.2vw, 76px);
  line-height: 1.14; font-weight: 800; letter-spacing: -.02em;
  background: linear-gradient(100deg, #ffffff 12%, color-mix(in srgb, var(--brand-primary) 8%, #ffffff) 46%, color-mix(in srgb, var(--brand-primary) 20%, #ffffff) 78%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 em {
  font-style: normal; display: block;
  background: linear-gradient(96deg, var(--brand-accent-soft), var(--brand-accent) 55%, var(--brand-accent-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  margin: 26px 0 0; max-width: 640px;
  font-size: 17px; line-height: 1.9; color: rgba(235, 245, 238, .72);
}
.hero-sub strong { color: #fff; font-weight: 600; }

.hero-actions { display: flex; align-items: center; gap: 16px; margin-top: 40px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 50px; padding: 0 28px; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 600; letter-spacing: .02em; cursor: pointer;
  transition: transform var(--motion-base) var(--ease-out), background var(--motion-fast), border-color var(--motion-fast), box-shadow var(--motion-base);
  border: 1px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--brand-primary); color: #fff; box-shadow: 0 8px 26px color-mix(in srgb, var(--brand-primary) 34%, transparent); }
.btn-primary:hover { background: var(--brand-primary-bright); transform: translateY(-2px); box-shadow: 0 14px 34px color-mix(in srgb, var(--brand-primary) 40%, transparent); }
.btn-ghost { background: rgba(255,255,255,.04); color: #eaf3ec; border-color: rgba(255,255,255,.2); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.34); transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; }
.btn-line { background: transparent; color: var(--brand-primary-deep); border-color: color-mix(in srgb, var(--brand-primary) 34%, transparent); }
.btn-line:hover { background: color-mix(in srgb, var(--brand-primary) 6%, transparent); border-color: var(--brand-primary); }

.hero-facts {
  display: flex; gap: 0; margin-top: 64px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-facts div { padding-right: 40px; margin-right: 40px; border-right: 1px solid rgba(255,255,255,.09); }
.hero-facts div:last-child { border: 0; margin: 0; padding: 0; }
.hero-facts b { display: block; font-family: var(--font-en); font-size: 26px; font-weight: 600; color: #fff; letter-spacing: -.01em; }
.hero-facts span { font-size: 12.5px; color: rgba(235,245,238,.5); letter-spacing: .06em; }

/* Hero 右侧 · 桥 */
.bridge-visual { position: relative; height: 380px; }
.bridge-visual svg { width: 100%; height: 100%; overflow: visible; }
.bridge-visual .node-label {
  font-family: var(--font-cn); font-size: 12.5px; fill: rgba(235,245,238,.72);
}
.bridge-visual .node-title { font-size: 15px; font-weight: 700; fill: #fff; }
.bridge-caption {
  position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%);
  font-size: 12px; letter-spacing: .3em; color: color-mix(in srgb, var(--brand-accent) 82%, transparent); white-space: nowrap;
}

.scroll-hint {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-en); font-size: 10px; letter-spacing: .3em; color: rgba(255,255,255,.34);
  z-index: 4;
}
.scroll-hint i { width: 1px; height: 34px; background: linear-gradient(180deg, rgba(255,255,255,.4), transparent); animation: hintDrop 2.4s var(--ease-out) infinite; }
@keyframes hintDrop { 0% { transform: scaleY(.3); transform-origin: top; opacity: 0; } 40% { opacity: 1; } 100% { transform: scaleY(1); transform-origin: top; opacity: 0; } }

/* ---------- 桥 / 品牌释义 ---------- */
.bridge-sec { background: var(--brand-cream); }
.bridge-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 88px; align-items: start; }
.bridge-quote {
  font-size: clamp(22px, 2.1vw, 29px); line-height: 1.7; font-weight: 700; margin: 0;
  letter-spacing: -.005em;
}
.bridge-quote em { font-style: normal; color: var(--brand-primary-deep); }
.two-chars { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.char-card {
  padding: 28px 26px 26px; background: #fff; border: 1px solid var(--line-1);
  border-radius: var(--r-lg); position: relative; overflow: hidden;
  transition: transform var(--motion-base) var(--ease-out), box-shadow var(--motion-base), border-color var(--motion-base);
}
.char-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--brand-primary) 22%, var(--line-1)); }
.char-card .big {
  font-size: 56px; font-weight: 800; line-height: 1;
  color: var(--brand-primary-deep); letter-spacing: .02em; display: block; margin-bottom: 16px;
}
.char-card h4 { margin: 0 0 8px; font-size: 15px; font-weight: 700; color: var(--text-1); }
.char-card p { margin: 0; font-size: 13.5px; color: var(--text-3); line-height: 1.8; }
.char-card::after {
  content: ""; position: absolute; right: -20px; bottom: -20px; width: 88px; height: 88px;
  border: 1px solid color-mix(in srgb, var(--brand-accent) 30%, transparent); border-radius: 50%;
  opacity: .5;
}

.mission-card {
  background: linear-gradient(150deg, var(--deep-c), var(--deep-b));
  border-radius: var(--r-2xl); padding: 52px 48px; color: #fff; position: relative; overflow: hidden;
}
.mission-card::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand-primary) 30%, transparent), transparent 68%);
}
.mission-card .tag {
  font-family: var(--font-en); font-size: 11px; letter-spacing: .24em; color: var(--brand-accent);
  text-transform: uppercase;
}
.mission-card h3 { margin: 18px 0 0; font-size: 30px; line-height: 1.45; font-weight: 800; }
.mission-card h3 span { color: var(--brand-primary-bright); }
.mission-card p { margin: 18px 0 0; font-size: 14.5px; line-height: 1.95; color: rgba(235,245,238,.66); }
.mission-card .divider { height: 1px; background: rgba(255,255,255,.1); margin: 32px 0; }
.mission-card .vision { display: flex; gap: 14px; align-items: flex-start; }
.mission-card .vision b { font-size: 13px; color: var(--brand-accent-soft); font-weight: 600; flex: 0 0 56px; letter-spacing: .1em; }
.mission-card .vision span { font-size: 14px; color: rgba(255,255,255,.86); line-height: 1.8; }

/* ---------- 价值观 ---------- */
.values-sec { background: #fff; border-top: 1px solid var(--line-1); border-bottom: 1px solid var(--line-1); }
.values-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line-1); }
.value-item {
  padding: 40px 28px 44px; border-right: 1px solid var(--line-1); position: relative;
  transition: background var(--motion-base);
}
.value-item:last-child { border-right: 0; }
.value-item:hover { background: color-mix(in srgb, var(--brand-primary) 3.4%, #fff); }
.value-item .no {
  font-family: var(--font-en); font-size: 11px; letter-spacing: .2em; color: var(--brand-accent-deep);
}
.value-item h4 { margin: 22px 0 12px; font-size: 17px; font-weight: 700; line-height: 1.5; }
.value-item h4 small { display: block; font-size: 12.5px; font-weight: 500; color: var(--brand-primary-deep); margin-top: 6px; letter-spacing: .04em; }
.value-item p { margin: 0; font-size: 13px; color: var(--text-3); line-height: 1.85; }

/* ---------- 服务 ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc-card {
  background: #fff; border: 1px solid var(--line-1); border-radius: var(--r-lg);
  padding: 34px 30px 30px; position: relative; overflow: hidden;
  transition: transform var(--motion-base) var(--ease-out), box-shadow var(--motion-base), border-color var(--motion-base);
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); border-color: color-mix(in srgb, var(--brand-primary) 26%, var(--line-1)); }
.svc-card .ico {
  width: 46px; height: 46px; border-radius: var(--r-md); display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand-primary) 9%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand-primary) 16%, transparent);
  color: var(--brand-primary-deep); margin-bottom: 24px;
}
.svc-card .ico svg { width: 22px; height: 22px; }
.svc-card h4 { margin: 0 0 10px; font-size: 17.5px; font-weight: 700; }
.svc-card p { margin: 0; font-size: 13.5px; color: var(--text-3); line-height: 1.85; }
.svc-card .idx {
  position: absolute; right: 22px; top: 26px;
  font-family: var(--font-en); font-size: 12px; color: var(--n-300); letter-spacing: .1em;
}
.svc-card::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  transition: width var(--motion-slow) var(--ease-out);
}
.svc-card:hover::after { width: 100%; }

/* ---------- 项目矩阵 ---------- */
.proj-sec { background: linear-gradient(180deg, var(--deep-b), var(--deep-c) 60%, var(--deep-b)); color: #fff; position: relative; overflow: hidden; }
.proj-sec::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 85% 0%, color-mix(in srgb, var(--brand-primary) 16%, transparent), transparent 70%);
  pointer-events: none;
}
.proj-sec .sec-desc { color: rgba(235,245,238,.56); }
.proj-sec .sec-title { color: #fff; }
.proj-sec .eyebrow { color: var(--brand-accent); }
.proj-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; z-index: 2; }
.proj-card {
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-lg);
  padding: 30px 26px 26px; background: rgba(255,255,255,.028);
  transition: transform var(--motion-base) var(--ease-out), background var(--motion-base), border-color var(--motion-base);
  display: flex; flex-direction: column; min-height: 340px; position: relative; overflow: hidden;
}
.proj-card:hover { transform: translateY(-5px); background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.2); }
.proj-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--pc, var(--brand-primary)); opacity: .9;
}
.proj-card .pc-no { font-family: var(--font-en); font-size: 10.5px; letter-spacing: .22em; color: rgba(255,255,255,.32); }
.proj-card h4 { margin: 20px 0 4px; font-size: 22px; font-weight: 800; letter-spacing: .01em; }
.proj-card .pc-en { font-family: var(--font-en); font-size: 10px; letter-spacing: .22em; color: rgba(255,255,255,.34); text-transform: uppercase; }
.proj-card .pc-desc { margin: 18px 0 0; font-size: 13px; line-height: 1.85; color: rgba(235,245,238,.6); flex: 1; }
.proj-card .pc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.proj-card .pc-tags span {
  font-size: 11px; padding: 3px 9px; border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.62);
}
.proj-card .pc-foot {
  margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.09);
  display: flex; align-items: center; justify-content: space-between;
}
.pc-status { font-size: 11.5px; color: rgba(255,255,255,.5); display: inline-flex; align-items: center; gap: 7px; }
.pc-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--pc, var(--brand-primary)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pc, var(--brand-primary)) 18%, transparent); }
.pc-arrow { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); display: grid; place-items: center; transition: all var(--motion-base); }
.proj-card:hover .pc-arrow { background: #fff; border-color: #fff; color: #0a1a12; transform: rotate(-45deg); }
.pc-arrow svg { width: 12px; height: 12px; }

.proj-note {
  margin-top: 34px; display: flex; align-items: center; gap: 14px;
  font-size: 12.5px; color: rgba(235,245,238,.42); position: relative; z-index: 2;
}
.proj-note i { flex: 0 0 1px; height: 14px; background: rgba(255,255,255,.16); }
.proj-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- 自研产品与解决方案 ---------- */
.prod-sec { background: linear-gradient(180deg, #fff, #f6f9f5 68%, #fff); }
.prod-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
/* 5 张卡：第一行 3 张、第二行 2 张各占一半，两行都铺满，不留半格空洞 */
.prod-grid > .prod-card { grid-column: span 2; }
.prod-grid > .prod-card:nth-child(4),
.prod-grid > .prod-card:nth-child(5) { grid-column: span 3; }
.prod-card {
  background: #fff; border: 1px solid var(--line-1); border-radius: var(--r-lg);
  padding: 26px 26px 22px; display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: transform var(--motion-base) var(--ease-out), box-shadow var(--motion-base), border-color var(--motion-base);
}
.prod-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--pc, var(--brand-primary)); opacity: .9;
}
.prod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); border-color: color-mix(in srgb, var(--pc, var(--brand-primary)) 26%, var(--line-1)); }
.prod-card .pd-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.prod-card .pd-forms { display: inline-flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.prod-card .pd-form {
  font-size: 11px; padding: 3px 10px; border-radius: var(--r-pill);
  color: var(--brand-primary-deep); letter-spacing: .02em;
  background: color-mix(in srgb, var(--pc, var(--brand-primary)) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--pc, var(--brand-primary)) 20%, transparent);
}
.prod-card .pd-status { font-size: 11.5px; color: var(--text-3); display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; white-space: nowrap; }
.prod-card .pd-status i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--pc, var(--brand-primary));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pc, var(--brand-primary)) 14%, transparent);
}
.prod-card h4 { margin: 18px 0 5px; font-size: 19px; font-weight: 800; letter-spacing: .005em; }
.prod-card .pd-en { font-family: var(--font-en); font-size: 10px; letter-spacing: .18em; color: var(--n-300); text-transform: uppercase; }
.prod-card p { margin: 14px 0 0; font-size: 13px; line-height: 1.85; color: var(--text-3); flex: 1; }
.prod-card .pd-foot {
  margin-top: 20px; padding-top: 14px; border-top: 1px dashed var(--line-1);
  display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--text-3);
}
.prod-card .pd-arrow {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-1);
  display: grid; place-items: center; color: var(--text-3); transition: all var(--motion-base);
}
.prod-card .pd-arrow svg { width: 11px; height: 11px; }
.prod-card:hover .pd-arrow {
  background: var(--pc, var(--brand-primary)); border-color: var(--pc, var(--brand-primary));
  color: #fff; transform: rotate(-45deg);
}
.prod-note {
  margin-top: 30px; display: flex; align-items: center; gap: 14px;
  font-size: 12.5px; color: var(--text-3);
}
.prod-note i { flex: 0 0 1px; height: 14px; background: var(--line-2); }

/* 卡片右下角的演示入口：网址直接开新窗，小程序弹码让人扫 */
.prod-card .pd-acts { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.prod-card .pd-foot > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-demo {
  display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto;
  height: 30px; padding: 0 12px; border-radius: var(--r-pill);
  font-family: inherit; font-size: 12px; font-weight: 600; white-space: nowrap;
  color: var(--brand-primary-deep); cursor: pointer;
  background: color-mix(in srgb, var(--brand-primary) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand-primary) 28%, transparent);
  transition: background var(--motion-fast), color var(--motion-fast), border-color var(--motion-fast), transform var(--motion-fast);
}
.pd-demo:hover {
  color: #fff; background: var(--brand-primary);
  border-color: var(--brand-primary); transform: translateY(-1px);
}
.pd-demo svg { width: 12px; height: 12px; flex: 0 0 auto; }
.pd-qr {
  height: 30px; padding: 0 10px; flex: 0 0 auto; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; gap: 4px; cursor: pointer; white-space: nowrap;
  font-family: inherit; font-size: 12px; color: var(--text-2); background: #fff;
  border: 1px solid var(--line-1);
  transition: color var(--motion-fast), border-color var(--motion-fast), background var(--motion-fast);
}
.pd-qr:hover { color: var(--brand-primary-deep); border-color: color-mix(in srgb, var(--brand-primary) 34%, transparent); }
.pd-qr svg { width: 13px; height: 13px; flex: 0 0 auto; }

/* ---------- 案例 / 流程 ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case-card {
  border: 1px solid var(--line-1); border-radius: var(--r-lg); overflow: hidden; background: #fff;
  transition: transform var(--motion-base) var(--ease-out), box-shadow var(--motion-base);
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); }
.case-thumb {
  height: 180px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px 24px; position: relative; overflow: hidden;
}
.case-thumb .ct-en { font-family: var(--font-en); font-size: 10px; letter-spacing: .24em; color: rgba(255,255,255,.6); text-transform: uppercase; }
.case-thumb .ct-cn { font-size: 21px; font-weight: 800; color: #fff; margin-top: 6px; letter-spacing: .02em; }
.case-thumb.t1 { background: linear-gradient(140deg, var(--deep-b), var(--deep-c) 60%, var(--deep-a)); }
.case-thumb.t2 { background: linear-gradient(140deg, #2c2410, #6b5223 62%, #9a7a3e); }
.case-thumb.t3 { background: linear-gradient(140deg, #0c2a3a, #0f4f66 60%, #0b76c4); }
.case-thumb::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 82% 20%, rgba(255,255,255,.14), transparent 42%),
                    linear-gradient(to right, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: auto, 44px 100%;
}
.case-body { padding: 24px 24px 26px; }
.case-body h4 { margin: 0 0 10px; font-size: 16px; font-weight: 700; }
.case-body p { margin: 0; font-size: 13px; color: var(--text-3); line-height: 1.85; }
.case-meta { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.case-meta span {
  font-size: 11px; padding: 3px 9px; border-radius: var(--r-pill);
  background: var(--bg-subtle); color: var(--text-2); border: 1px solid var(--line-1);
}
/* 后台把案例/动态全部下架时的占位，避免区块塌成空白 */
.block-empty {
  grid-column: 1 / -1; margin: 0; padding: 34px 0; text-align: center;
  font-size: 13.5px; color: var(--text-3); border: 1px dashed var(--line-1); border-radius: var(--r-lg);
}

/* 案例与「我们怎么做事」是两件事，单独成块，不再靠一条细线拼在一起 */
.flow {
  margin-top: 72px; padding: 44px 40px 40px;
  background: color-mix(in srgb, var(--brand-primary) 3.2%, #fff);
  border: 1px solid var(--line-1); border-radius: var(--r-lg);
}
.flow-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 40px; }
.flow-head h3 { margin: 0; font-size: 22px; font-weight: 800; }
.flow-head span { font-size: 13px; color: var(--text-3); }
.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.flow-item { position: relative; padding-right: 34px; }
.flow-item::before {
  content: ""; position: absolute; left: 0; top: 13px; right: 34px; height: 1px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--brand-primary) 40%, transparent), var(--line-1));
}
.flow-item:last-child::before { display: none; }
.flow-item .dot {
  width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 1px solid color-mix(in srgb, var(--brand-primary) 40%, transparent);
  display: grid; place-items: center; position: relative; z-index: 2;
  font-family: var(--font-en); font-size: 11px; color: var(--brand-primary-deep); font-weight: 600;
}
.flow-item h5 { margin: 20px 0 8px; font-size: 15.5px; font-weight: 700; }
.flow-item p { margin: 0; font-size: 13px; color: var(--text-3); line-height: 1.8; }

/* ---------- 动态 ---------- */
.news-sec { background: #fff; border-top: 1px solid var(--line-1); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-item {
  padding: 30px 28px 28px; border: 1px solid var(--line-1); border-radius: var(--r-lg);
  transition: all var(--motion-base) var(--ease-out); background: #fff; display: flex; flex-direction: column;
}
.news-item:hover { border-color: color-mix(in srgb, var(--brand-primary) 30%, var(--line-1)); box-shadow: var(--shadow-2); transform: translateY(-3px); }
.news-item .nd { font-family: var(--font-en); font-size: 11.5px; letter-spacing: .14em; color: var(--brand-accent-deep); }
.news-item h4 { margin: 16px 0 10px; font-size: 16.5px; font-weight: 700; line-height: 1.6; }
.news-item p { margin: 0; font-size: 13px; color: var(--text-3); line-height: 1.85; flex: 1; }
.news-item .nt { margin-top: 20px; font-size: 12px; color: var(--brand-primary-deep); display: inline-flex; align-items: center; gap: 6px; }

/* ---------- 联系 ---------- */
.contact-sec { background: var(--brand-cream); }
.contact-wrap {
  background: linear-gradient(150deg, var(--deep-c), var(--deep-b));
  border-radius: var(--r-2xl); padding: 64px; color: #fff;
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; position: relative; overflow: hidden;
}
.contact-wrap::before {
  content: ""; position: absolute; right: -120px; bottom: -160px; width: 460px; height: 460px;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand-primary) 22%, transparent), transparent 66%);
}
.contact-left { position: relative; z-index: 2; }
.contact-left h2 { margin: 20px 0 0; font-size: clamp(28px, 3vw, 40px); line-height: 1.35; font-weight: 800; }
.contact-left h2 em { font-style: normal; color: var(--brand-accent-soft); }
.contact-left p { margin: 20px 0 0; font-size: 14.5px; line-height: 1.95; color: rgba(235,245,238,.62); max-width: 420px; }
.contact-info { margin-top: 44px; display: grid; gap: 20px; }
.contact-info div { display: flex; gap: 14px; align-items: flex-start; }
.contact-info .ci-ico {
  width: 34px; height: 34px; border-radius: var(--r-sm); border: 1px solid rgba(255,255,255,.16);
  display: grid; place-items: center; flex: 0 0 auto; color: var(--brand-accent-soft);
}
.contact-info .ci-ico svg { width: 15px; height: 15px; }
.contact-info b { display: block; font-size: 12px; letter-spacing: .1em; color: rgba(255,255,255,.42); font-weight: 500; }
.contact-info span { font-size: 14px; color: #fff; }
/* 邮箱：看似普通文字，可点复制；下划线用虚线，深浅底都看得见 */
.contact-info .mail-link {
  color: #fff; text-decoration: none; border-bottom: 1px dashed rgba(255,255,255,.3);
  padding-bottom: 1px; transition: color var(--motion-fast), border-color var(--motion-fast);
}
.contact-info .mail-link:hover { color: var(--brand-accent-soft); border-bottom-color: rgba(255,255,255,.6); }
.contact-info .mail-link.is-copied { color: var(--brand-accent-soft); border-bottom-color: transparent; cursor: default; }

.form-card { position: relative; z-index: 2; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.11); border-radius: var(--r-lg); padding: 32px; }
.form-card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.form-card .fc-sub { margin: 0 0 24px; font-size: 12.5px; color: rgba(235,245,238,.45); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; letter-spacing: .08em; color: rgba(235,245,238,.55); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--r-sm); color: #fff; font-family: inherit; font-size: 14px;
  padding: 12px 14px; transition: border-color var(--motion-fast), background var(--motion-fast), box-shadow var(--motion-fast);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.26); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: color-mix(in srgb, var(--brand-primary) 70%, transparent);
  background: rgba(0,0,0,.32); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 16%, transparent);
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.7; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-card .btn { width: 100%; margin-top: 6px; }
.form-tip { margin-top: 14px; font-size: 11.5px; color: rgba(235,245,238,.34); text-align: center; }
.form-ok {
  display: none; margin-top: 14px; padding: 12px 14px; border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--brand-primary) 20%, transparent); border: 1px solid color-mix(in srgb, var(--brand-primary) 40%, transparent);
  font-size: 12.5px; color: #d9f2e2; text-align: center;
}
.form-ok.show { display: block; }

/* ---------- 页脚 ---------- */
.foot { background: #05100b; color: rgba(235,245,238,.5); padding: 66px 0 30px; border-top: 1px solid rgba(255,255,255,.07); }
.foot-top { display: grid; grid-template-columns: 1.7fr .8fr .86fr .8fr .94fr; gap: 34px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08); }
.foot-brand img { height: 40px; width: auto; margin-bottom: 22px; }
.foot-brand p { margin: 0; font-size: 13px; line-height: 1.95; text-wrap: pretty; }
@media (min-width: 760px) {
  /* 品牌简介固定一行，右侧栏目宽度相应收窄 */
  .foot-brand p { max-width: none; white-space: nowrap; }
}
.foot-slogan { margin-top: 22px; font-size: 13px; color: var(--brand-accent); letter-spacing: .12em; }
/* 版权行中间那个「·」就是后台入口：外观与普通字符一致，只是点得着 */
.foot-bottom .foot-dot {
  color: inherit; text-decoration: none; cursor: default;
  padding: 8px 7px; margin: -8px -3px; border-radius: 4px;
  -webkit-tap-highlight-color: transparent;
}
.foot-bottom .foot-dot:hover { color: inherit; }
.foot-bottom .foot-dot:focus { outline: none; }
.foot-col h5 { margin: 0 0 18px; font-size: 12px; letter-spacing: .18em; color: rgba(255,255,255,.86); font-weight: 600; }
.foot-col a { display: block; font-size: 13px; padding: 6px 0; color: rgba(235,245,238,.5); transition: color var(--motion-fast), transform var(--motion-fast); }
.foot-col a:hover { color: #fff; transform: translateX(3px); }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 26px; font-size: 12px; gap: 24px; flex-wrap: wrap; }
.foot-bottom .fb-right { display: flex; gap: 22px; }
.foot-bottom a:hover { color: #fff; }

/* ---------- 出场动画 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .06s; }
.reveal.d2 { transition-delay: .12s; }
.reveal.d3 { transition-delay: .18s; }
.reveal.d4 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 响应式（PC 优先，向下兼容） ---------- */
@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .bridge-visual { display: none; }
  .bridge-grid { grid-template-columns: 1fr; gap: 48px; }
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .value-item:nth-child(3n) { border-right: 0; }
  .value-item { border-bottom: 1px solid var(--line-1); }
  .proj-grid, .proj-grid-3 { grid-template-columns: repeat(2, 1fr); }
  /* 平板：产品卡两列一行，第五张独占一行 */
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid > .prod-card,
  .prod-grid > .prod-card:nth-child(4) { grid-column: auto; }
  .prod-grid > .prod-card:nth-child(5) { grid-column: 1 / -1; }
  .contact-wrap { grid-template-columns: 1fr; gap: 44px; padding: 44px; }
  /* 品牌区独占整行，下面四栏一行排开；≤640 再折成 2×2 */
  .foot-top { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .wrap, .nav .wrap, .hero .wrap { width: calc(100% - 44px); }
  .nav-menu { display: none; }
  .nav-burger { display: grid; }
  .nav .brand-sub { display: none; }
  .sec { padding: 72px 0; }
  .svc-grid, .case-grid, .news-grid { grid-template-columns: 1fr; }
  .flow-grid { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .flow { padding: 32px 24px 28px; margin-top: 52px; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .value-item:nth-child(2n) { border-right: 0; }
  /* 第五条落单：跨整行，不留半行空白 */
  .value-item:last-child { grid-column: 1 / -1; border-right: 0; }
  .hero-facts { flex-wrap: wrap; gap: 20px 0; }
  .hero-facts div { padding-right: 22px; margin-right: 22px; }
  .two-chars { grid-template-columns: 1fr; }
  .proj-grid, .proj-grid-3, .prod-grid { grid-template-columns: 1fr; }
  .prod-grid > .prod-card,
  .prod-grid > .prod-card:nth-child(4),
  .prod-grid > .prod-card:nth-child(5) { grid-column: auto; }
  .form-row { grid-template-columns: 1fr; }
}
/* 手机端：区块标题占满整行，编号改到标题上方，不再挤掉 1/3 宽度 */
@media (max-width: 760px) {
  .sec-head { flex-direction: column-reverse; align-items: flex-start; gap: 12px; margin-bottom: 40px; }
  .sec-head .lead { max-width: none; }
  .sec-index { font-size: 34px; line-height: 1; }
  .eyebrow { font-size: 11px; letter-spacing: .15em; }
  .flow-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  /* 手机端品牌简介：缩 0.5px 让整句收在一行，不出现「者。」孤字 */
  .foot-brand p { font-size: 12.5px; }
  /* 首屏副文案：重点句整体不拆行，避免「服务与／解决方案」被劈开 */
  .hero-sub strong { white-space: nowrap; }
  /* 首屏本身就一屏高，SCROLL 提示会压到数字上，手机端不显示 */
  .scroll-hint { display: none; }
  .contact-wrap { padding: 32px 22px; }
  .contact-info b { white-space: nowrap; }
  .contact-info .mail-link { display: inline-block; white-space: nowrap; }
}
/* 首屏四个数字：一律 2×2，不再 3+1 落单 */
@media (max-width: 640px) {
  .foot-top { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .hero-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 0; margin-top: 46px; padding-top: 24px; }
  .hero-facts div { margin: 0; padding: 0 18px 0 0; border-right: 0; }
  .hero-facts div:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.09); }
}

/* ==========================================================================
   案例 / 动态详情弹层
   ========================================================================== */
.case-card.is-clickable, .news-item.is-clickable { cursor: pointer; }
.case-card.is-clickable:focus-visible, .news-item.is-clickable:focus-visible {
  outline: 2px solid var(--brand-accent); outline-offset: 3px;
}

.detail-modal { position: fixed; inset: 0; z-index: 900; display: none; }
.detail-modal.is-open { display: block; }
body.modal-open { overflow: hidden; }

.dt-mask {
  position: absolute; inset: 0;
  background: rgba(3, 9, 6, .74);
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  animation: dt-fade .22s ease both;
}
.dt-panel {
  position: relative; z-index: 1;
  width: min(720px, calc(100% - 40px));
  max-height: 86vh; overflow: auto;
  margin: 5vh auto 0;
  border-radius: 18px;
  background: #0A1611;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
  animation: dt-rise .26s cubic-bezier(.22, .8, .3, 1) both;
}
@keyframes dt-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dt-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.dt-x {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 20px; line-height: 1; color: #fff;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .24);
  cursor: pointer; transition: background var(--motion-fast);
}
.dt-x:hover { background: rgba(255, 255, 255, .2); }
.dt-panel > div > .dt-body > .dt-x { color: #fff; }

.dt-hero { padding: 44px 40px 30px; border-radius: 17px 17px 0 0; }
.dt-en { font-size: 11px; letter-spacing: .26em; color: rgba(255, 255, 255, .62); text-transform: uppercase; }
.dt-name { margin-top: 8px; font-size: 26px; font-weight: 800; color: #fff; letter-spacing: .01em; }

.dt-body { padding: 26px 40px 34px; }
.dt-meta { font-family: var(--font-en); font-size: 12px; letter-spacing: .08em; color: var(--brand-accent); }
.dt-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.dt-tags span {
  font-size: 11px; padding: 3px 10px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .66);
  border: 1px solid rgba(255, 255, 255, .1);
}
.dt-body h2 { margin: 6px 0 12px; font-size: 22px; line-height: 1.4; font-weight: 700; color: #fff; }
.dt-lead { margin: 0 0 18px; font-size: 15px; line-height: 1.9; color: rgba(255, 255, 255, .72); }
.dt-text p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.95; color: rgba(255, 255, 255, .66); }
.dt-text p:last-child { margin-bottom: 0; }
.dt-cta {
  display: inline-block; margin-top: 24px; padding: 11px 22px;
  font-size: 13.5px; font-weight: 600; color: #08150F;
  background: var(--brand-accent); border-radius: var(--r-pill);
  transition: transform var(--motion-fast), box-shadow var(--motion-fast);
}
.dt-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 22px color-mix(in srgb, var(--brand-accent) 34%, transparent); }

@media (max-width: 720px) {
  .dt-panel { width: 100%; max-height: 92vh; margin: 0; border-radius: 18px 18px 0 0;
    position: absolute; bottom: 0; animation: dt-sheet .28s cubic-bezier(.22, .8, .3, 1) both; }
  @keyframes dt-sheet { from { transform: translateY(30px); opacity: .6; } to { transform: none; opacity: 1; } }
  .dt-hero { padding: 40px 22px 24px; }
  .dt-body { padding: 22px 22px 30px; }
  .dt-body h2 { font-size: 19px; }
}

/* 表单防刷：蜜罐字段移出屏幕，肉眼与键盘都碰不到 */
.hp-field {
  position: absolute !important;
  left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden;
  opacity: 0; pointer-events: none;
}
/* 表单校验错误 */
.form-err {
  margin: 10px 0 0; font-size: 12.5px; line-height: 1.7;
  color: #FF9B7A;
}
.form-card .form-err[hidden] { display: none; }

/* ==========================================================================
   产品演示 · 扫码弹层（小程序码 / 网址二维码）
   ========================================================================== */
.qr-modal { position: fixed; inset: 0; z-index: 920; display: none; }
.qr-modal.is-open { display: block; }
.qm-mask {
  position: absolute; inset: 0;
  background: rgba(3, 9, 6, .74);
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  animation: dt-fade .22s ease both;
}
.qm-panel {
  position: relative; z-index: 1;
  width: min(360px, calc(100% - 40px));
  margin: 8vh auto 0; padding: 26px 24px 22px;
  border-radius: 18px; text-align: center;
  background: #0A1611; border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
  animation: dt-rise .26s cubic-bezier(.22, .8, .3, 1) both;
}
.qm-x {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 50%; padding: 0;
  display: grid; place-items: center; font-size: 19px; line-height: 1; color: #fff;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .24);
  cursor: pointer; transition: background var(--motion-fast);
}
.qm-x:hover { background: rgba(255, 255, 255, .2); }
.qm-en {
  min-height: 12px; font-family: var(--font-en); font-size: 10px;
  letter-spacing: .26em; text-transform: uppercase; color: rgba(255, 255, 255, .5);
}
.qm-name { display: block; margin-top: 8px; font-size: 19px; font-weight: 800; color: #fff; letter-spacing: .01em; }
/* 码容器：一个码居中，两个码（小程序码 + 网址码）并排 */
.qm-code { margin: 20px auto 0; display: grid; gap: 12px; justify-content: center; }
.qm-code .qm-cell { display: grid; justify-items: center; gap: 7px; }
.qm-code .qm-box {
  width: 206px; height: 206px; padding: 10px;
  display: grid; place-items: center;
  background: #fff; border-radius: 12px;
}
.qm-code .qm-box img, .qm-code .qm-box svg { width: 100%; height: 100%; display: block; }
.qm-code--two { grid-template-columns: auto auto; }
.qm-code--two .qm-box { width: 132px; height: 132px; padding: 8px; }
.qm-cap { font-size: 11.5px; letter-spacing: .04em; color: rgba(235, 245, 238, .54); }
.qm-tip { margin: 16px 0 0; font-size: 13px; line-height: 1.8; color: rgba(235, 245, 238, .72); }
.qm-acts { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.qm-acts:empty { display: none; }
.qm-btn {
  display: inline-flex; align-items: center; height: 36px; padding: 0 16px;
  border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600; cursor: pointer;
  background: var(--brand-primary); color: #fff; border: 1px solid transparent;
  font-family: inherit; transition: background var(--motion-fast), transform var(--motion-fast);
}
.qm-btn:hover { background: var(--brand-primary-bright); transform: translateY(-1px); }
.qm-btn--ghost { background: transparent; color: #eaf3ec; border-color: rgba(255, 255, 255, .22); }
.qm-btn--ghost:hover { background: rgba(255, 255, 255, .1); }

@media (max-width: 720px) {
  .qm-panel {
    position: absolute; bottom: 0; width: 100%; margin: 0;
    border-radius: 18px 18px 0 0; padding: 24px 20px 26px;
    animation: dt-sheet .28s cubic-bezier(.22, .8, .3, 1) both;
  }
  .qm-code .qm-box { width: 176px; height: 176px; }
  .qm-code--two { gap: 10px; }
  .qm-code--two .qm-box { width: 116px; height: 116px; }
}
