/* 首页、成果、方法、用量、3D 镜头等页面的共用样式（颜色变量在 tokens.css） */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.7 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 6px 12px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 16px; }

/* 顶部导航 */
.nav {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px;
  padding: 12px clamp(16px, 4vw, 48px); background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.nav .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .04em; }
.nav .brand img { width: 30px; height: 30px; border-radius: 9px; }
.nav .brand small { font: 500 10px/1 var(--mono); letter-spacing: .2em; color: var(--muted); display: block; margin-top: 3px; }
.nav .links { display: flex; gap: 2px; margin-left: 12px; flex-wrap: wrap; }
.nav .links a { text-decoration: none; color: var(--muted); padding: 6px 10px; border-radius: 8px; font-size: 14px; }
.nav .links a:hover, .nav .links a.on { color: var(--ink); }
.nav .links a.on { background: var(--soft); }
.nav .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.icon-btn { border: 1px solid var(--line); background: transparent; width: 36px; height: 36px; border-radius: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; border-radius: 999px;
  padding: 10px 20px; font-size: 14px; font-weight: 600; border: 1px solid var(--line); background: transparent; color: var(--ink); white-space: nowrap;
}
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.primary:hover { opacity: .88; }
.btn.gold { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.sm { padding: 6px 14px; font-size: 13px; }
.beta { font: 600 9px/1 var(--mono); letter-spacing: .1em; padding: 3px 5px; border-radius: 4px; background: var(--accent); color: var(--accent-ink); }

/* 版式 */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.section { padding: clamp(64px, 10vw, 120px) 0; border-bottom: 1px solid var(--line); }
.eyebrow { font: 500 11px/1.4 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.h1 { font: 700 clamp(38px, 5.6vw, 76px)/1.1 var(--serif); letter-spacing: -.01em; margin: 0 0 20px; word-break: keep-all; }
.h2 { font: 700 clamp(28px, 4.2vw, 48px)/1.18 var(--serif); margin: 0 0 16px; }
.h3 { font: 600 20px/1.4 var(--serif); margin: 0 0 8px; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 640px; margin: 0 0 28px; }
.muted { color: var(--muted); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .num { font: 500 12px/1 var(--mono); color: var(--accent); letter-spacing: .1em; margin-bottom: 14px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

/* 首页 hero */
.hero { padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 80px); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.badge { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.collage { position: relative; aspect-ratio: 4/5; }
.collage figure { position: absolute; margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--soft); box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.collage figure img { width: 100%; height: 100%; object-fit: cover; }
.collage figcaption { position: absolute; left: 10px; bottom: 10px; font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; background: rgba(0,0,0,.55); color: #fff; padding: 5px 8px; border-radius: 6px; }
.collage .c1 { left: 0; top: 6%; width: 58%; height: 70%; z-index: 2; }
.collage .c2 { right: 0; top: 0; width: 46%; height: 42%; }
.collage .c3 { right: 4%; bottom: 0; width: 50%; height: 50%; z-index: 3; }
.collage .c4 { left: 10%; bottom: 0; width: 30%; height: 26%; z-index: 4; }

.stats { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--line); }
.stats div { padding: 28px 16px; text-align: center; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats b { display: block; font: 700 clamp(26px, 3.2vw, 38px)/1.1 var(--serif); }
.stats span { font-size: 13px; color: var(--muted); }

.ticker { overflow: hidden; border-bottom: 1px solid var(--line); padding: 16px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker .track { display: flex; gap: 40px; width: max-content; animation: tick 40s linear infinite; }
.ticker span { color: var(--muted); font-size: 14px; white-space: nowrap; }
.ticker span::before { content: "✦"; color: var(--accent); margin-right: 10px; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker .track { animation: none; } }

/* 痛点对照表 */
.compare { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare .tr { display: grid; grid-template-columns: 64px 1fr 1fr; border-top: 1px solid var(--line); }
.compare .tr:first-child { border-top: 0; background: var(--panel-2); font: 500 12px/1 var(--mono); letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.compare .tr > div { padding: 20px; }
.compare .tr > div:first-child { font: 500 13px/1.6 var(--mono); color: var(--accent); }
.compare .before { color: var(--muted); border-right: 1px solid var(--line); }
.compare .before b, .compare .after b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.compare .after b::before { content: "→ "; color: var(--accent); }

/* 流程 tabs */
.tabs { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 28px; flex-wrap: wrap; }
.tabs button { border: 0; background: none; padding: 8px 18px; border-radius: 999px; color: var(--muted); }
.tabs button.on { background: var(--ink); color: var(--bg); font-weight: 600; }
.steps { counter-reset: s; }
.steps .card { position: relative; }
.steps .card .tag { display: inline-block; margin-top: 14px; font: 500 11px/1 var(--mono); letter-spacing: .1em; color: var(--accent); border: 1px solid var(--line); padding: 5px 8px; border-radius: 6px; }

/* 费用 */
.price { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); }
.table th { font: 500 11px/1 var(--mono); letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.table td:last-child, .table th:last-child { text-align: right; }
.checks { list-style: none; padding: 0; margin: 16px 0 0; }
.checks li { padding: 6px 0 6px 26px; position: relative; color: var(--muted); }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* 作品墙 */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.work { position: relative; aspect-ratio: 3/4; border-radius: 12px; overflow: hidden; background: var(--soft); border: 1px solid var(--line); margin: 0; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.work:hover img { transform: scale(1.03); }
.work figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.7)); font-size: 13px; }
.work figcaption small { display: block; font: 500 10px/1.4 var(--mono); letter-spacing: .14em; opacity: .7; text-transform: uppercase; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 12px 0 0; max-width: 760px; }

.cta { text-align: center; }
.cta .row { justify-content: center; }

/* 页脚 */
.foot { padding: 40px 0 56px; color: var(--muted); font-size: 13px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* 统计卡 */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.kpis div { background: var(--panel); padding: 22px; }
.kpis b { display: block; font: 700 34px/1.1 var(--serif); }
.kpis span { color: var(--muted); font-size: 13px; }
.kpis small { display: block; font: 500 10px/1.6 var(--mono); letter-spacing: .14em; color: var(--accent); text-transform: uppercase; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--muted); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 56px 20px; text-align: center; color: var(--muted); }

/* 大图 */
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1000px, calc(100vw - 32px)); max-height: calc(100vh - 32px); }
dialog.lightbox::backdrop { background: rgba(0,0,0,.85); }
dialog.lightbox img { max-height: calc(100vh - 100px); width: auto; margin: 0 auto; border-radius: 10px; }
dialog.lightbox p { color: #ddd; text-align: center; font-size: 13px; margin: 10px 0 0; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 13px; max-width: calc(100vw - 32px); }

@media (max-width: 960px) {
  .nav .links { display: none; }
  .hero .wrap, .price, .grid-2 { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .kpis { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stats div:nth-child(3) { border-right: 0; }
  .stats div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .works { grid-template-columns: repeat(2, 1fr); }
  .collage { max-width: 440px; width: 100%; margin: 0 auto; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .compare .tr { grid-template-columns: 1fr; }
  .compare .tr > div:first-child { padding-bottom: 0; }
  .compare .before { border-right: 0; padding-bottom: 6px; }
  .compare .tr:first-child { display: none; }
  .nav .btn.sm.hide-sm { display: none; }
}
