/* 铎铭镭铽官网统一样式
   设计基准：账户中心（暖色分层暗色主题）。首页、能力页、合作页、套餐页、帮助页、工作台外壳共用同一套变量。
   约束：生产 CSP 为 style-src 'self'，本文件不得引入外部字体或外链资源；页面里也不允许出现内联样式。 */

:root {
  --bg: #08080a;
  --bg-soft: #0b0b0e;
  --surface: #101014;
  --surface-2: #16161b;
  --surface-3: #1c1c22;
  --line: rgba(255,255,255,.07);
  --line-strong: rgba(255,255,255,.12);
  --text: #f4efe7;
  --muted: #a9a29b;
  --dim: #7c766f;
  --accent: #c98f5a;
  --accent-soft: rgba(201,143,90,.14);
  --ok: #7ec69a;
  --warn: #e0b660;
  --bad: #e08a7a;
  --btn: var(--accent);
  --btn-text: #17110b;
  --radius: 18px;
  --radius-sm: 14px;
  --max: 1180px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --pop: cubic-bezier(.22,.61,.36,1);
  /* 兼容旧变量名（工作台外壳与门户样式沿用 --s-* ） */
  --s-bg: var(--bg);
  --s-surface: var(--surface);
  --s-surface-2: var(--surface-2);
  --s-line: var(--line);
  --s-line-strong: var(--line-strong);
  --s-text: var(--text);
  --s-text-2: var(--muted);
  --s-accent: var(--accent);
  --s-accent-soft: var(--accent-soft);
  --panel: var(--surface);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); }
body {
  font-family: "Inter", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(900px 420px at 6% -12%, rgba(201,143,90,.10), transparent 62%),
    radial-gradient(720px 380px at 100% 0%, rgba(120,140,200,.07), transparent 58%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
/* [hidden] 必须压过组件自身的 display，否则 .metrics / .studio-shell 这类带 display 的类会让隐藏失效 */
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .22 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .32;
  mix-blend-mode: overlay;
}

/* 页面骨架：整页纵向弹性布局，页脚始终贴在页面最底部 */
.wrap {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  min-height: 100vh;
}
.wrap > main { flex: 1 0 auto; width: 100%; padding-bottom: clamp(46px, 6vw, 84px); }

/* ============ 顶栏 ============ */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 14px max(22px, calc((100% - var(--max)) / 2));
  background: rgba(8,8,10,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 10px; font-weight: 650; letter-spacing: .02em; font-size: 17px; white-space: nowrap; }
.brand small { color: var(--accent); font-weight: 600; font-size: 12px; letter-spacing: .16em; }
.brand-mark { width: 28px; height: 28px; flex: 0 0 auto; align-self: center; display: block; }
.nav-links { display: flex; gap: 26px; color: var(--muted); font-size: 15px; }
.nav-links a { position: relative; padding: 4px 0; transition: color .2s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  border-radius: 2px; background: var(--accent);
}
.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-session { display: flex; align-items: center; gap: 10px; }
.nav-user {
  display: inline-flex; align-items: center; height: 36px; padding: 0 13px; max-width: 168px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: border-color .2s var(--ease), color .2s var(--ease);
}
.nav-user:hover { border-color: var(--accent); color: var(--text); }

/* 实例连接状态灯：整页最右上角 */
.status-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); color: var(--muted);
  font-size: 13px; white-space: nowrap;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex: none; }
.status-pill.is-live { color: #c6e6d3; border-color: rgba(126,198,154,.45); background: rgba(126,198,154,.10); }
.status-pill.is-live .status-dot { background: var(--ok); box-shadow: 0 0 0 3px rgba(126,198,154,.18); animation: statusPulse 2.6s ease-in-out infinite; }
.status-pill.is-pending { color: #f0d5a2; border-color: rgba(224,182,96,.45); background: rgba(224,182,96,.10); }
.status-pill.is-pending .status-dot { background: var(--warn); box-shadow: 0 0 0 3px rgba(224,182,96,.18); animation: statusPulse 1.3s ease-in-out infinite; }
.status-pill.is-off:hover { border-color: var(--accent); color: var(--text); }
@keyframes statusPulse { 0%, 100% { opacity: 1; } 50% { opacity: .38; } }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 15px; border-radius: 999px; font-size: 13px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  cursor: pointer; font-family: inherit;
  /* 按钮不参与弹性收缩，标签也不折行：被说明文字挤窄时会出现「修改密/码」这种两行按钮 */
  flex: none; white-space: nowrap;
  transition: transform .18s var(--pop), border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.btn:hover { border-color: var(--accent); }
.btn:active { transform: scale(.97); }
.btn-solid { background: var(--btn); color: var(--btn-text); border-color: var(--btn); font-weight: 600; }
.btn-solid:hover { filter: brightness(1.06); }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; }
.btn.is-dim { opacity: .62; border-style: dashed; cursor: pointer; }
.btn.is-busy { opacity: .45; pointer-events: none; cursor: not-allowed; }
.btn[disabled] { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* ============ 通用区块 ============ */
.section { max-width: var(--max); margin: clamp(80px, 9vw, 112px) auto 0; padding: 0 22px; }
.section-head { max-width: 680px; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.section-head h2 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.025em; line-height: 1.2; }
.section-head p { margin-top: 12px; max-width: 44ch; color: var(--muted); font-size: 15px; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--muted); letter-spacing: .1em;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px;
}
.page { max-width: 840px; margin: 44px auto 0; padding: 0 22px; }
.page h1 { font-size: clamp(28px, 3vw, 36px); letter-spacing: -.03em; margin-bottom: 12px; }
.page > p { color: var(--muted); font-size: 15px; }
.page p, .page li { color: var(--muted); }
.page ul { padding-left: 18px; margin: 12px 0; }
.note { font-size: 12px; color: var(--dim); margin-top: 10px; }
.form { margin-top: 24px; display: grid; gap: 12px; }
label { font-size: 13px; color: var(--muted); }
input {
  width: 100%; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text); padding: 0 14px; font-size: 14px; font-family: inherit;
}
input:focus { outline: none; border-color: var(--accent); background: var(--surface-2); }

/* ============ 页头（能力页 / 合作页） ============ */
.page-wide { width: 100%; }
.page-hero { max-width: var(--max); margin: 64px auto 0; padding: 0 22px; }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 58px); font-weight: 640; letter-spacing: -.035em; line-height: 1.1; margin-top: 20px; }
.page-hero .lead { margin-top: 18px; max-width: 620px; color: var(--muted); font-size: 17px; }
.page-hero .hero-actions { justify-content: flex-start; }

/* ============ 首页首屏 ============ */
.hero { max-width: 880px; margin: 72px auto 0; padding: 0 22px; text-align: center; }
.hero-with-media {
  position: relative; max-width: 1140px; min-height: clamp(560px, 78vh, 680px);
  padding: clamp(112px, 12vw, 176px) 22px clamp(38px, 3.2vw, 52px);
  display: grid; align-content: end; justify-items: center;
  overflow: hidden; border-bottom: 1px solid var(--line);
}
.hero-content { position: relative; z-index: 1; max-width: 880px; }
.hero-video, .hero-scrim { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-video { object-fit: cover; opacity: .92; filter: saturate(.95) contrast(1.03) brightness(.9); }
/* 遮罩只在需要压暗的位置出现：画面上部与中部保持通透（人物与细节可见），
   底部逐渐加深，托住下沉后的标题与说明文字。 */
.hero-scrim { background: linear-gradient(180deg, rgba(8,8,10,.42), rgba(8,8,10,.04) 34%, rgba(8,8,10,.34) 54%, rgba(8,8,10,.94) 88%); }
.hero h1 { margin-top: 18px; font-size: clamp(36px, 6vw, 66px); font-weight: 640; letter-spacing: -.04em; line-height: 1.08; }
.hero p.lead { margin: 16px auto 0; max-width: 560px; color: var(--muted); font-size: 16.5px; }
.hero-actions { margin-top: 26px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 14px; color: var(--dim); font-size: 13px; }

/* ============ 首页工作台预览框 ============ */
.stage { max-width: var(--max); margin: 56px auto 0; padding: 0 22px; }
.chrome {
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, #111116, #0a0a0c);
  box-shadow: 0 40px 110px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.02) inset;
  transition: transform .5s var(--pop), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.chrome:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 48px 118px rgba(0,0,0,.6); }
.chrome-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--dim); font-size: 12px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #26262b; flex: none; }
.chrome-url { margin-left: 10px; letter-spacing: .02em; }
.chrome-tag {
  margin-left: auto; font-size: 11px; letter-spacing: .08em; color: var(--accent);
  border: 1px solid rgba(201,143,90,.35); background: var(--accent-soft); border-radius: 999px; padding: 3px 10px;
}
.chrome-body { padding: 0; }
.shot { display: grid; grid-template-columns: 220px minmax(0, 1fr) 250px; min-height: 470px; }
.shot-rail, .shot-panel { padding: 20px 18px; background: rgba(255,255,255,.012); }
.shot-rail { border-right: 1px solid var(--line); }
.shot-panel { border-left: 1px solid var(--line); }
.shot-rail-title, .shot-panel-title { font-size: 12px; color: var(--dim); letter-spacing: .1em; margin-bottom: 14px; }
.shot-clips { list-style: none; display: grid; gap: 10px; }
.shot-clips li {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px;
  border: 1px solid transparent; background: rgba(255,255,255,.03);
  font-size: 13px; color: var(--muted); transition: border-color .3s var(--ease), background .3s var(--ease), color .3s var(--ease), transform .3s var(--pop);
}
.shot-clips li b { color: var(--dim); font-size: 11px; font-weight: 600; letter-spacing: .06em; }
.shot-clips li:hover { transform: translateX(4px); border-color: var(--line-strong); color: var(--text); }
.shot-clips li.is-active { border-color: rgba(201,143,90,.42); background: var(--accent-soft); color: var(--text); }
.shot-clips li.is-active b { color: var(--accent); }
.shot-canvas { display: flex; flex-direction: column; padding: 20px 20px 22px; gap: 16px; }
.shot-frame {
  position: relative; border: 1px solid var(--line-strong); border-radius: 16px;
  background: linear-gradient(180deg, #101014, #08080a);
  padding: 16px; display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr);
  flex: 1; align-content: start;
}
.shot-badge {
  grid-column: 1 / -1; font-size: 11px; letter-spacing: .1em; color: var(--dim);
}
.shot-cell {
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 12px; min-height: 74px;
  background: rgba(255,255,255,.022); display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  transition: transform .34s var(--pop), border-color .34s var(--ease), background .34s var(--ease);
}
.shot-cell b { font-size: 12.5px; color: var(--text); font-weight: 600; }
.shot-cell span { font-size: 11px; color: var(--dim); }
.shot-cell:hover { transform: translateY(-2px); border-color: var(--accent); background: var(--accent-soft); }
.shot-cell.is-hero { grid-column: span 3; min-height: 132px; background: linear-gradient(120deg, rgba(201,143,90,.16), rgba(120,140,200,.10)); }
.shot-timeline { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 8px; }
.shot-track { display: flex; gap: 6px; }
.shot-clip { height: 8px; border-radius: 4px; background: rgba(255,255,255,.07); flex: 1; }
.shot-clip.tint-a { background: rgba(201,143,90,.42); }
.shot-clip.tint-b { background: rgba(120,140,200,.35); }
.shot-clip.tint-c { background: rgba(126,198,154,.32); }
.shot-time { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--dim); letter-spacing: .06em; }
.shot-prompt {
  font-size: 13px; color: var(--muted); line-height: 1.7;
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 13px; background: rgba(255,255,255,.022);
}
.shot-rows { margin-top: 14px; display: grid; gap: 10px; }
.shot-rows div { display: flex; align-items: baseline; justify-content: space-between; font-size: 12.5px; color: var(--dim); }
.shot-rows b { color: var(--text); font-weight: 600; }
.shot-rows b.is-live { color: var(--ok); }
.shot-cta {
  margin-top: 16px; height: 38px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--btn-text); font-size: 13px; font-weight: 600;
}
.stage-caption { margin-top: 14px; text-align: center; font-size: 12px; color: var(--dim); }

/* ============ 大色块（悬停明显抬升） ============ */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bento-item {
  --tint: rgba(201,143,90,.16);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  min-height: 190px; padding: 26px; border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--tint), rgba(255,255,255,.015) 62%), var(--surface);
  transition: transform .4s var(--pop), border-color .4s var(--ease), box-shadow .4s var(--ease);
  will-change: transform;
}
.bento-item::before {
  content: ""; position: absolute; left: 26px; right: 26px; top: 0; height: 2px;
  background: var(--tint-strong, var(--accent)); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.bento-item::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(420px 220px at 50% 0%, rgba(255,255,255,.10), transparent 70%);
  transition: opacity .4s var(--ease);
}
.bento-item:hover { transform: translateY(-4px); border-color: rgba(201,143,90,.36); box-shadow: 0 24px 54px rgba(0,0,0,.45); }
.bento-item:hover::before { transform: scaleX(1); }
.bento-item:hover::after { opacity: 1; }
.bento-item:active { transform: translateY(-2px); }
.bento-lg { grid-column: span 2; grid-row: span 2; min-height: 396px; }
.bento-wide { grid-column: span 2; }
.bento-kicker { font-size: 11.5px; letter-spacing: .12em; color: var(--dim); }
.bento-title { font-size: 21px; font-weight: 620; letter-spacing: -.02em; }
.bento-lg .bento-title { font-size: 27px; }
.bento-text { font-size: 14px; color: var(--muted); max-width: 46ch; }
.bento-a { --tint: rgba(201,143,90,.20); --tint-strong: #c98f5a; }
.bento-b { --tint: rgba(122,140,205,.16); --tint-strong: #7a8ccd; }
.bento-c { --tint: rgba(150,170,120,.15); --tint-strong: #96aa78; }
.bento-d { --tint: rgba(196,120,96,.16); --tint-strong: #c47860; }
.bento-e { --tint: rgba(120,170,170,.14); --tint-strong: #78aaaa; }
.bento-f { --tint: rgba(170,130,175,.14); --tint-strong: #aa82af; }
.bento-media { margin-top: 8px; display: grid; gap: 8px; }
.bento-bars { display: flex; gap: 6px; }
.bento-bars i { display: block; height: 6px; border-radius: 3px; background: rgba(255,255,255,.10); flex: 1; }
.bento-bars i.on { background: var(--tint-strong, var(--accent)); opacity: .75; }

/* ============ 三步 ============ */
.steps-rail { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps-rail-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step-item {
  position: relative; padding: 26px; border-radius: 20px; border: 1px solid var(--line);
  background: var(--surface); min-height: 180px;
  transition: transform .4s var(--pop), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.step-item:hover { transform: translateY(-3px); border-color: rgba(201,143,90,.32); box-shadow: 0 20px 44px rgba(0,0,0,.4); }
.step-index { font-size: 12px; letter-spacing: .14em; color: var(--accent); }
.step-item h3 { margin-top: 16px; font-size: 19px; font-weight: 620; }
.step-item p { margin-top: 10px; color: var(--muted); font-size: 14px; }
.pay-support { display: flex; align-items: center; gap: 8px; margin-top: 26px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.pay-support-centered { justify-content: center; }
.pay-badge { font-size: 12px; color: var(--text); border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 13px; background: rgba(255,255,255,.03); }
.pricing-cta { margin-top: 20px; }

/* ============ 能力页 / 合作页通用模块 ============ */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature {
  padding: 26px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); min-height: 200px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .4s var(--pop), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.feature:hover { transform: translateY(-3px); border-color: rgba(201,143,90,.32); box-shadow: 0 20px 44px rgba(0,0,0,.4); }
.feature-kicker { font-size: 11.5px; letter-spacing: .12em; color: var(--accent); }
.feature h3 { font-size: 19px; font-weight: 620; letter-spacing: -.02em; }
.feature p { color: var(--muted); font-size: 14px; }

/* 单价卡片只承载「机型 + 价格」，不复用 .feature 的 200px 最小高度，
   否则卡片很大而数字很小。桌面三列，窄屏一列。 */
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.price-card {
  padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface);
  display: flex; flex-direction: column; gap: 6px;
  transition: transform .4s var(--pop), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.price-card:hover { transform: translateY(-3px); border-color: rgba(201,143,90,.32); box-shadow: 0 20px 44px rgba(0,0,0,.4); }
.price-model { font-size: 13px; color: var(--muted); }
.price-value { font-size: 30px; font-weight: 650; letter-spacing: -.02em; color: var(--text); line-height: 1.15; }
.price-value small { margin-left: 6px; font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.feature-list { margin-top: auto; padding-left: 0; list-style: none; display: grid; gap: 6px; }
.feature-list li { color: var(--dim); font-size: 13px; }
.feature-list li::before { content: "— "; color: var(--accent); }

.advantage-list { display: grid; gap: 14px; }
.advantage {
  display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 20px; align-items: start;
  padding: 26px 28px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface);
  transition: transform .38s var(--pop), border-color .38s var(--ease), background .38s var(--ease);
}
.advantage:hover { transform: translateX(3px); border-color: rgba(201,143,90,.3); background: var(--surface-2); }
.advantage-index { font-size: 13px; letter-spacing: .14em; color: var(--accent); }
.advantage h3 { font-size: 20px; font-weight: 620; letter-spacing: -.02em; }
.advantage p { margin-top: 8px; color: var(--muted); font-size: 14.5px; max-width: 62ch; }

/* 预留位（样片 / 案例） */
.slot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.slot {
  position: relative; min-height: 240px; border-radius: 20px; border: 1px dashed var(--line-strong);
  background: linear-gradient(160deg, rgba(255,255,255,.028), rgba(255,255,255,.008));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 24px; text-align: center;
  transition: transform .4s var(--pop), border-color .4s var(--ease);
}
.slot:hover { transform: translateY(-6px); border-color: rgba(201,143,90,.5); }
.slot-mark {
  width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); color: var(--accent); font-size: 18px;
}
.slot-title { font-size: 15px; font-weight: 600; color: var(--text); }
.slot-text { font-size: 13px; color: var(--dim); max-width: 30ch; }
.slot-note { margin-top: 14px; font-size: 12.5px; color: var(--dim); }

.pay-block {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: center;
  padding: 32px; border-radius: 22px; border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(201,143,90,.12), rgba(255,255,255,.015) 60%), var(--surface);
}
.pay-block h3 { font-size: 22px; font-weight: 620; letter-spacing: -.02em; }
.pay-block p { margin-top: 10px; color: var(--muted); font-size: 14.5px; }
.pay-methods { display: flex; gap: 12px; flex-wrap: wrap; }
.pay-method {
  flex: 1 1 130px; padding: 20px; border-radius: 16px; border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.03); text-align: center;
  transition: transform .38s var(--pop), border-color .38s var(--ease);
}
.pay-method:hover { transform: translateY(-3px); border-color: var(--accent); }
.pay-method b { display: block; font-size: 16px; }
.pay-method span { display: block; margin-top: 6px; font-size: 12px; color: var(--dim); }

.cta-band {
  text-align: center; padding: 48px 32px; border-radius: 24px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(201,143,90,.10), rgba(255,255,255,.012)), var(--surface);
}
.cta-band h2 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.025em; }
.cta-band p { margin: 14px auto 0; max-width: 560px; color: var(--muted); font-size: 15px; }
.cta-band .hero-actions { margin-top: 26px; }

/* ============ 合作页 ============ */
.audience-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.audience {
  position: relative; isolation: isolate; overflow: hidden; padding: 30px; border-radius: 22px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px;
  background: var(--surface);
  transition: transform .4s var(--pop), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.audience:hover { transform: translateY(-4px); border-color: rgba(201,143,90,.36); box-shadow: 0 24px 54px rgba(0,0,0,.44); }
.audience-user { background: linear-gradient(160deg, rgba(122,140,205,.12), rgba(255,255,255,.012) 60%), var(--surface); }
.audience-brand { background: linear-gradient(160deg, rgba(201,143,90,.16), rgba(255,255,255,.012) 60%), var(--surface); }
.audience-brand::before { content: ""; position: absolute; inset: 0; z-index: -2; opacity: .27; background: url("../assets/service-scenes/brand-film.jpg") center / cover no-repeat; }
.audience-brand::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(16,16,20,.94), rgba(16,16,20,.68)); }
.audience-tag {
  align-self: flex-start; font-size: 11.5px; letter-spacing: .12em; color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 12px; background: rgba(0,0,0,.25);
}
.audience h3 { font-size: 24px; font-weight: 620; letter-spacing: -.025em; }
.audience p { color: var(--muted); font-size: 14.5px; }
.audience ul { list-style: none; display: grid; gap: 9px; margin-top: 4px; }
.audience li { font-size: 14px; color: var(--muted); padding-left: 18px; position: relative; }
.audience li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.audience .btn { align-self: flex-start; margin-top: auto; }

.scope-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.scope {
  padding: 24px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); min-height: 168px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .4s var(--pop), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.scope:hover { transform: translateY(-3px); border-color: rgba(201,143,90,.3); box-shadow: 0 18px 40px rgba(0,0,0,.36); }
.scope h3 { font-size: 17px; font-weight: 620; }
.scope p { font-size: 13.5px; color: var(--muted); }
.case-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.case-slot {
  min-height: 170px; border-radius: 18px; border: 1px dashed var(--line-strong);
  background: rgba(255,255,255,.015); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 20px; text-align: center;
  transition: transform .4s var(--pop), border-color .4s var(--ease);
}
.case-slot:hover { transform: translateY(-6px); border-color: rgba(201,143,90,.5); }
.case-slot b { font-size: 13px; color: var(--muted); font-weight: 600; }
.case-slot span { font-size: 12px; color: var(--dim); }
.contact-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center;
  padding: 32px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface);
}
.section-contact { scroll-margin-top: 92px; }
.contact-card h3 { font-size: 22px; font-weight: 620; letter-spacing: -.02em; }
.contact-card h2 { margin-top: 16px; font-size: clamp(24px, 2.6vw, 32px); font-weight: 620; letter-spacing: -.025em; line-height: 1.2; }
.contact-card p { margin-top: 10px; color: var(--muted); font-size: 14.5px; }
.contact-fields { display: grid; gap: 12px; }
.contact-field { display: block; padding: 18px 20px; border-radius: 14px; border: 1px dashed var(--line-strong); background: rgba(255,255,255,.015); color: inherit; text-decoration: none; transition: border-color .25s var(--ease), background .25s var(--ease); }
.contact-field:hover, .contact-field:focus-visible { border-color: rgba(201,143,90,.66); background: rgba(201,143,90,.07); }
.contact-field:focus-visible { outline: 2px solid rgba(212,151,85,.72); outline-offset: 3px; }
.contact-field b { display: block; font-size: 13px; color: var(--text); }
.contact-field span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--dim); }

/* ============ 合作预告（首页） ============ */
.coop-teaser {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: center;
  padding: 36px; border-radius: 24px; border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(201,143,90,.13), rgba(122,140,205,.07) 55%, rgba(255,255,255,.012)), var(--surface);
}
.coop-teaser h2 { margin-top: 18px; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.025em; line-height: 1.2; }
.coop-teaser p { margin-top: 14px; color: var(--muted); font-size: 15px; }
.coop-teaser-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.coop-teaser-media { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.coop-frame {
  position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 3 / 4; border-radius: 14px; border: 1px solid var(--line-strong);
  background: var(--surface-2); display: flex; align-items: flex-end; padding: 12px; font-size: 11px; color: var(--text);
  transition: transform .4s var(--pop), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.coop-frame::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8,8,10,.88), rgba(8,8,10,.04) 62%); }
.coop-frame img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.coop-frame figcaption { position: relative; font-weight: 600; letter-spacing: .02em; }
.coop-frame:nth-child(2) { transform: translateY(-14px); }
.coop-frame:hover { border-color: var(--accent); box-shadow: 0 18px 34px rgba(0,0,0,.4); }
.coop-frame:hover img { transform: scale(1.06); }
/* 卡片图是竖版裁切，完整画面交给点击后的预览层。 */
.coop-open {
  position: absolute; inset: 0; z-index: 1; margin: 0; padding: 0; border: 0; border-radius: inherit;
  background: transparent; color: inherit; font: inherit; cursor: zoom-in;
}
.coop-open:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* 卡片底部的通栏配图：靠外层按钮承担布局，负外边距让图片贴到卡片边缘。 */
.card-shot {
  display: block; margin: 6px -26px -26px; padding: 0; border: 0; border-top: 1px solid var(--line);
  background: transparent; cursor: zoom-in; border-radius: 0 0 20px 20px;
}
.card-shot img { display: block; width: 100%; object-fit: cover; }
.card-shot:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.bento-lg .card-shot img { height: 208px; }
.bento-item:not(.bento-lg) .card-shot img { height: 130px; }

/* ============ 图片预览层 ============ */
.preview {
  width: min(1180px, calc(100vw - 44px)); max-height: calc(100vh - 44px); max-height: calc(100dvh - 44px);
  margin: auto; padding: 14px; border: 1px solid var(--line-strong); border-radius: 22px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2)); color: var(--text);
  box-shadow: 0 40px 110px rgba(0,0,0,.68); overflow: auto;
  animation: previewIn .24s var(--ease) both;
}
.preview::backdrop { background: rgba(4,4,6,.74); }
.preview-image { display: block; width: 100%; height: auto; border-radius: 14px; }
.preview-caption { margin: 12px 4px 2px; font-size: 13px; color: var(--muted); }
.preview-close {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(10,10,12,.66); color: var(--text);
  font-family: inherit; font-size: 17px; line-height: 1; cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.preview-close:hover { border-color: var(--accent); background: var(--accent-soft); }
@keyframes previewIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }

/* ============ 常见问题 ============ */
.faq { display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
  padding: 4px 24px; transition: border-color .3s var(--ease);
}
.faq details:hover { border-color: var(--line-strong); }
.faq details[open] { border-color: rgba(201,143,90,.4); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-size: 16px; font-weight: 600; color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 18px; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq p { padding: 0 0 20px; color: var(--muted); font-size: 14.5px; max-width: 76ch; }

/* ============ 旧组件（帮助页使用） ============ */
.card { border: 1px solid var(--line); border-radius: 18px; padding: 24px 22px; background: var(--surface); }
.card em { display: block; color: var(--dim); font-style: normal; font-size: 12px; margin-bottom: 8px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; }
.feats, .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* ============ 工作台外壳 ============ */
.studio-body { min-height: 100vh; background: var(--bg); color: var(--text); }
.studio-glow { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.studio-glow::before, .studio-glow::after { content: ""; position: absolute; border-radius: 50%; filter: blur(130px); }
.studio-glow::before { width: 540px; height: 540px; top: -200px; left: -140px; background: var(--accent-soft); }
.studio-glow::after { width: 460px; height: 460px; bottom: -180px; right: -120px; background: rgba(120,140,200,.10); }
.studio-wrap { position: relative; z-index: 1; height: 100vh; height: 100dvh; min-height: 0; }
.studio-wrap > .studio-nav { flex-shrink: 0; }
.studio-nav { max-width: none; padding: 12px 22px; gap: 18px; }
.studio-back { color: var(--muted); font-size: 14px; transition: color .2s var(--ease); }
.studio-back:hover { color: var(--text); }
/* 工作台是全站使用频率最高的一页：横向不设宽度上限、纵向撑到可视区底部，
   让内嵌的工作台占满整块舞台，而不是被压在页面中间留出大片空白。 */
/* 进入工作台过程中的安静占位。
   就绪卡片一旦先画出来、又被工作台盖掉，就会出现「卡片一闪而过」；
   所以进入期间只留一枚呼吸的小圆点和一句说明，真的进不去才把卡片亮出来。 */
.studio-entering {
  width: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; text-align: center;
}
.studio-entering p { margin: 0; color: var(--muted); font-size: 14px; letter-spacing: .02em; }
.studio-entering-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: studioEntering 1.5s var(--ease) infinite;
}
@keyframes studioEntering {
  0%, 100% { opacity: .3; transform: scale(.8); }
  50%      { opacity: 1;  transform: scale(1); }
}
.studio-stage {
  flex: 1; display: flex; justify-content: center;
  min-height: 0; overflow: auto;
  padding: 18px 22px 24px;
}
/* 外壳竖直排布：顶部是一条不遮挡画布的余额提醒，下面才是就绪卡片或工作台。 */
.studio-shell { width: 100%; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.studio-banner {
  border: 1px solid rgba(224,182,96,.5); background: rgba(224,182,96,.10); color: #e0b660;
  border-radius: 12px; padding: 10px 14px; font-size: 13px; line-height: 1.5;
}
.studio-banner.is-critical { border-color: rgba(224,138,122,.55); background: rgba(224,138,122,.13); color: #e08a7a; }
.studio-banner.is-notice { border-color: var(--line-strong); background: rgba(255,255,255,.05); color: var(--muted); }
.studio-launch { flex: 0 0 auto; max-width: 820px; margin: auto; padding: 40px 34px; }
.studio-launch h2 { font-size: clamp(22px, 2.4vw, 30px); }
.studio-launch p { margin-top: 12px; color: var(--muted); font-size: 15px; max-width: 56ch; }
.studio-launch .studio-empty-actions { margin-top: 26px; }
/* 工作台嵌进我们自己的外壳：地址栏始终停在本站，实例地址不出现在浏览器里。 */
.studio-frame {
  flex: 1; width: 100%; min-height: 0; display: block; border: 1px solid var(--line);
  border-radius: 18px; background: var(--surface);
  box-shadow: 0 28px 70px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.02) inset;
}
/* 未连接实例时的空状态：左右两栏填满整个舞台，不留大面积空白 */
.studio-blank {
  width: 100%; max-width: 1440px; display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; align-items: start;
}
.studio-blank-main, .studio-blank-side { display: grid; gap: 18px; }
.studio-card {
  border: 1px solid var(--line); border-radius: 20px; padding: 30px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
}
.studio-card-hero { padding: 40px 34px; }
.studio-badge {
  display: inline-flex; align-items: center; height: 26px; padding: 0 12px;
  border-radius: 999px; border: 1px solid rgba(201,143,90,.35); background: var(--accent-soft);
  color: var(--accent); font-size: 11.5px; letter-spacing: .1em;
}
.studio-card-hero h2 { margin-top: 18px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 620; letter-spacing: -.025em; }
.studio-card-hero p { margin-top: 12px; color: var(--muted); font-size: 15px; max-width: 58ch; }
.studio-empty-actions { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }
.studio-card h3 { font-size: 17px; font-weight: 620; }
.studio-card > p { margin-top: 8px; color: var(--muted); font-size: 14px; }
.studio-steps { list-style: none; counter-reset: sstep; display: grid; gap: 12px; margin-top: 18px; }
.studio-steps li {
  display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start;
  padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.02);
}
.studio-steps li::before {
  counter-increment: sstep; content: counter(sstep, decimal-leading-zero);
  font-size: 12px; color: var(--accent); letter-spacing: .08em; padding-top: 2px;
}
.studio-steps b { display: block; font-size: 14.5px; font-weight: 600; }
.studio-steps span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.studio-list { list-style: none; display: grid; gap: 10px; margin-top: 16px; }
.studio-list li { position: relative; padding-left: 18px; font-size: 13.5px; color: var(--muted); }
.studio-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.studio-links { display: flex; flex-wrap: wrap; gap: 10px; }
.studio-links a { border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 15px; font-size: 13px; color: var(--muted); transition: border-color .2s var(--ease), color .2s var(--ease); }
.studio-links a:hover { border-color: var(--accent); color: var(--text); }
.studio-picker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 16px auto 0; padding: 0 22px; }
.studio-picker-label { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.studio-picker-items { display: flex; gap: 8px; flex-wrap: wrap; }
.studio-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px;
  font-size: 13px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  cursor: pointer; font-family: inherit;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.studio-chip:hover { border-color: var(--accent); }
.studio-chip.is-active { border-color: var(--accent); background: var(--accent-soft); }
.studio-chip-state { font-size: 12px; color: var(--muted); }
.studio-chip.is-active .studio-chip-state { color: var(--accent); }
.studio-chip-model { font-size: 12px; color: var(--dim); }
.studio-chip.is-active .studio-chip-model { color: var(--muted); }

/* ============ 页脚（始终贴底） ============ */
/* 页脚三栏：公司信息靠左、备案号居中、页面链接靠右，三者同一行对齐。
   备案号单独成栏，既让它居中，也方便以后把公安备案号并排放在旁边。 */
.footer {
  margin-top: auto; width: 100%;
  max-width: var(--max); margin-left: auto; margin-right: auto;
  padding: 34px 22px 46px; border-top: 1px solid var(--line);
  color: var(--dim); font-size: 12.5px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px;
}
.footer a { color: var(--muted); transition: color .2s var(--ease); }
.footer a:hover { color: var(--text); }
.foot-links { display: flex; gap: 14px; flex-wrap: wrap; justify-self: end; }
.foot-record { text-align: center; white-space: nowrap; }

/* ============ 进场动效（无脚本时保持可见） ============ */
.has-reveal [data-reveal] { opacity: 0; transform: translateY(20px); }
.has-reveal [data-reveal].is-in {
  opacity: 1; transform: none; transition: opacity .58s var(--ease), transform .58s var(--ease);
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: pageFadeOut .16s ease-out both; }
::view-transition-new(root) { animation: pageEnter .28s var(--ease) both; }
@keyframes pageFadeOut { to { opacity: 0; } }
@keyframes pageEnter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .status-dot, .studio-entering-dot { animation: none !important; }
  .chrome, .bento-item, .feature, .step-item, .audience, .scope, .slot, .case-slot, .advantage, .shot-cell, .shot-clips li, .pay-method, .coop-frame, .coop-frame img, .btn {
    transition: none !important;
  }
  .chrome:hover, .bento-item:hover, .feature:hover, .step-item:hover, .audience:hover, .scope:hover, .slot:hover, .case-slot:hover, .advantage:hover, .shot-cell:hover, .shot-clips li:hover, .pay-method:hover, .coop-frame:hover { transform: none !important; }
  .has-reveal [data-reveal] { opacity: 1; transform: none; }
  ::view-transition-group(*) { animation: none !important; }
}

/* ============ 响应式 ============ */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-lg { grid-column: span 2; grid-row: auto; min-height: 280px; }
  .bento-wide { grid-column: span 2; }
  .scope-grid, .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-rail-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shot { grid-template-columns: 180px minmax(0, 1fr); }
  .shot-panel { display: none; }
}

@media (max-width: 900px) {
  .section { margin-top: 64px; }
  .feature-grid, .steps-rail, .feats, .steps, .slot-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .audience-grid, .pay-block, .contact-card, .coop-teaser { grid-template-columns: 1fr; }
  .coop-frame:nth-child(2) { transform: none; }
  .studio-blank { grid-template-columns: 1fr; }
  .studio-stage { min-height: 0; }
}

@media (max-width: 860px) {
  .nav { flex-wrap: wrap; gap: 12px; }
  .nav-links {
    order: 3; width: 100%; gap: 18px; font-size: 14px;
    overflow-x: auto; padding-bottom: 2px; -webkit-overflow-scrolling: touch;
  }
  .nav-actions { margin-left: auto; }
  .nav-user { max-width: 120px; }
}

@media (max-width: 640px) {
  .footer { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .foot-links { justify-self: center; justify-content: center; }
  .studio-stage { padding: 14px 14px 20px; }
  .studio-card, .studio-card-hero { padding: 24px 20px; }
  .shot { grid-template-columns: 1fr; min-height: 0; }
  .shot-rail { border-right: 0; border-bottom: 1px solid var(--line); }
  .shot-clips { grid-template-columns: repeat(2, minmax(0, 1fr)); display: grid; }
  .shot-frame { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shot-cell.is-hero, .shot-badge { grid-column: span 2; }
  .chrome-tag { display: none; }
  .bento { grid-template-columns: 1fr; }
  .bento-lg, .bento-wide { grid-column: auto; min-height: 220px; }
  .advantage { grid-template-columns: 1fr; gap: 10px; }
  .hero { margin-top: 48px; }
  .hero-with-media { min-height: 560px; padding-top: 112px; padding-bottom: 34px; }
  .page-hero { margin-top: 44px; }
  .nav .nav-status { display: none !important; }
}

@media (max-width: 480px) {
  .nav { padding-left: 18px; padding-right: 18px; gap: 10px; }
  .nav-actions { gap: 8px; }
  .nav-user { max-width: 104px; }
}
