:root {
  --bg: #fff;
  --fg: #111;
  --mute: #86868b;
  --line: #e5e5e7;
  --soft: #f5f5f7;
  --ink: #000;
  --accent: #1d6b45;
  --r: 18px;
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }

/* nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; height: 52px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(16px, calc(50% - 560px)); background: rgba(255,255,255,.8); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line); font-size: 13px; }
.nav b { font-size: 17px; letter-spacing: .02em; }
.nav .links { display: flex; gap: 28px; }
.nav .links a { color: #333; }
.nav .links a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav .links { display: none; } }

/* sections */
section { padding: 120px max(16px, calc(50% - 560px)); }
.dark { background: var(--ink); color: #f5f5f7; }
.gray { background: var(--soft); }
.eyebrow { font-size: 14px; color: var(--mute); letter-spacing: .08em; margin-bottom: 12px; }
h1 { font-size: clamp(48px, 9vw, 112px); line-height: 1.02; font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(36px, 6vw, 72px); line-height: 1.05; font-weight: 700; letter-spacing: -.015em; }
h1, h2 { text-wrap: balance; }
h3 { font-size: 24px; font-weight: 600; }
.lead { font-size: clamp(18px, 2.2vw, 24px); color: var(--mute); margin-top: 20px; max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 12px 24px; border-radius: 999px; font-size: 16px; font-weight: 500;
  background: var(--ink); color: #fff; transition: transform .2s, opacity .2s; }
.btn:hover { opacity: .85; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.dark .btn { background: #fff; color: #000; }
.dark .btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.center .row { justify-content: center; }

/* hero */
.hero { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.film { margin-top: 64px; width: 100%; max-width: 960px; aspect-ratio: 16/9; border-radius: 24px; overflow: hidden; position: relative;
  background: radial-gradient(120% 90% at 30% 20%, #2c3a32 0%, #0d0f0e 60%); display: grid; place-items: center; }
.film video { width: 100%; height: 100%; object-fit: cover; }
.film .play { width: 76px; height: 76px; border-radius: 50%; background: rgba(255,255,255,.14); backdrop-filter: blur(10px);
  display: grid; place-items: center; font-size: 26px; color: #fff; }
.film small { position: absolute; bottom: 18px; left: 22px; color: rgba(255,255,255,.55); font-size: 13px; }

/* lines grid */
.lines { margin-top: 64px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; }
.lines div { background: var(--bg); padding: 36px 24px; }
.lines .n { font-size: 13px; color: var(--mute); }
.lines h3 { margin: 40px 0 6px; font-size: 22px; }
.lines p { color: var(--mute); font-size: 15px; }
@media (max-width: 900px) { .lines { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .lines { grid-template-columns: 1fr; } }

/* cases */
.cases { margin-top: 64px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.case { border-radius: var(--r); aspect-ratio: 4/3; padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; position: relative; overflow: hidden; }
.case h3 { font-size: 28px; }
.case p { opacity: .7; font-size: 15px; }
.case .meta { position: absolute; top: 24px; left: 28px; font-size: 13px; opacity: .6; }
@media (max-width: 700px) { .cases { grid-template-columns: 1fr; } }

/* products */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 48px; }
.tabs button { padding: 8px 18px; border-radius: 999px; font-size: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.tabs button.on { background: var(--ink); color: #fff; box-shadow: none; }
.grid { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card { background: var(--bg); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s; cursor: pointer; }
.card:hover { transform: translateY(-4px); }
.card .pic { aspect-ratio: 1; display: grid; place-items: center; font-size: 64px; font-weight: 700; color: rgba(255,255,255,.9); position: relative; }
.card .pic i { position: absolute; top: 14px; left: 14px; font-style: normal; font-size: 12px; font-weight: 600; background: #fff; color: #000; padding: 3px 10px; border-radius: 999px; }
.card .body { padding: 20px 22px 24px; }
.card .cat { font-size: 12px; color: var(--mute); }
.card h4 { font-size: 18px; font-weight: 600; margin: 4px 0 12px; }
.card .price { font-size: 15px; }
.card .price b { font-size: 20px; }

/* quote */
.quote { margin-top: 56px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; }
.panel { background: var(--soft); border-radius: 24px; padding: 32px; }
.dark .panel { background: #1c1c1e; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 13px; color: var(--mute); margin-bottom: 8px; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 16px; border-radius: 12px; border: 0; background: #2c2c2e; color: #fff; font-size: 16px; outline: none; }
.gray .field input, .gray .field select, .gray .field textarea, .modal .field input, .modal .field textarea { background: #fff; color: #111; }
.seg { display: flex; background: #2c2c2e; border-radius: 12px; padding: 3px; }
.seg button { flex: 1; padding: 10px; border-radius: 9px; font-size: 15px; color: #aaa; }
.seg button.on { background: #fff; color: #000; }
.checks label { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #ddd; margin-bottom: 10px; cursor: pointer; }
.checks input { width: 18px; height: 18px; accent-color: #fff; }
.result { display: flex; flex-direction: column; justify-content: space-between; }
.result .big { font-size: clamp(40px, 5vw, 60px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin: 12px 0 24px; }
.result table { width: 100%; font-size: 14px; color: #aaa; border-collapse: collapse; }
.result td { padding: 7px 0; border-bottom: 1px solid #333; }
.result td:last-child { text-align: right; color: #fff; }
@media (max-width: 860px) { .quote { grid-template-columns: 1fr; } }

/* live */
.live { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.screen { aspect-ratio: 9/16; max-height: 560px; border-radius: 28px; background: linear-gradient(160deg, #e9efe9, #c9d6cc); position: relative; display: grid; place-items: center; justify-self: center; width: 100%; max-width: 315px; }
.screen .avatar { width: 120px; height: 120px; border-radius: 50%; background: #111; color: #fff; display: grid; place-items: center; font-size: 15px; }
.screen .badge { position: absolute; top: 16px; left: 16px; background: #000; color: #fff; padding: 4px 12px; border-radius: 999px; font-size: 12px; }
.live .info { display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 760px) { .live { grid-template-columns: 1fr; } }

/* contact */
.contact { margin-top: 48px; max-width: 560px; margin-left: auto; margin-right: auto; text-align: left; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

footer { padding: 40px max(16px, calc(50% - 560px)); font-size: 12px; color: var(--mute); border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.4); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.on { display: flex; }
.sheet { background: #fff; border-radius: 24px; max-width: 760px; width: 100%; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
.sheet .pic { min-height: 320px; display: grid; place-items: center; font-size: 96px; font-weight: 700; color: rgba(255,255,255,.9); }
.sheet .body { padding: 36px 32px; display: flex; flex-direction: column; }
.sheet .x { align-self: flex-end; font-size: 22px; color: var(--mute); }
@media (max-width: 640px) { .sheet { grid-template-columns: 1fr; } .sheet .pic { min-height: 180px; } }

/* chat */
.fab { position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 40; height: 56px; padding: 0 22px; border-radius: 999px; background: #000; color: #fff; font-size: 15px; font-weight: 500; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.chat { position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(88px + env(safe-area-inset-bottom, 0px)); z-index: 41; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px)); background: #fff; border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,.2); display: none; flex-direction: column; overflow: hidden; }
.chat.on { display: flex; }
.chat header { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.chat header small { color: var(--mute); font-size: 12px; display: block; }
.msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; }
.msg.bot { background: var(--soft); align-self: flex-start; border-bottom-left-radius: 6px; }
.msg.me { background: #000; color: #fff; align-self: flex-end; border-bottom-right-radius: 6px; }
.quick { display: flex; gap: 6px; padding: 0 16px 10px; flex-wrap: wrap; }
.quick button { font-size: 13px; padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.chat form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat input { flex: 1; padding: 12px 16px; border-radius: 999px; border: 0; background: var(--soft); outline: none; font-size: 15px; }
.chat form button { padding: 0 18px; border-radius: 999px; background: #000; color: #fff; }

.toast { position: fixed; left: 50%; top: 72px; transform: translateX(-50%); background: #000; color: #fff; padding: 12px 22px; border-radius: 999px; font-size: 14px; z-index: 60; opacity: 0; transition: opacity .3s; pointer-events: none; }
.toast.on { opacity: 1; }

/* reveal：默认可见，只在出现时轻微上浮 */
.rv.in { animation: rise .9s cubic-bezier(.2,.7,.2,1); }
@keyframes rise { from { transform: translateY(24px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .rv.in { animation: none; } html { scroll-behavior: auto; } }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: rgba(255,255,255,.9); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 原内联样式（站点 CSP 不允许 style 属性） */
.btn.sm { padding: 7px 16px; font-size: 13px; }
.btn.wide { width: 100%; justify-content: center; }
.mt12 { margin-top: 12px; }
.field.m0 { margin: 0; }
.q-lead { margin-top: 28px; }
.live-title { font-size: clamp(32px, 4.5vw, 52px); }
.m-name { font-size: 28px; }
.m-desc { color: var(--mute); margin: 12px 0 24px; }
.m-price { font-size: 28px; font-weight: 700; }
.m-actions { margin-top: auto; padding-top: 24px; }
.chat .x { font-size: 22px; color: var(--mute); }
.checks .rate { color: #777; }
.foot-links { display: flex; gap: 20px; }
