/* 机掌柜官网：深夜蓝科技风，只用品牌蓝一套色 */
:root {
  --brand: #1d5fd1; --brand-2: #3b82f6; --brand-deep: #0f3a8a; --cyan: #5fd0ff;
  --bg: #050c1c; --bg-2: #081430; --bg-3: #0c1c40;
  --line: rgba(143, 179, 238, .16); --line-2: rgba(143, 179, 238, .28);
  --text: #eef3fc; --text-2: #a9b9d6; --text-3: #7488ad;
  --glass: rgba(18, 38, 82, .45); --glass-2: rgba(29, 95, 209, .14);
  --r: 20px; --gutter: 16px; --maxw: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.7 var(--font); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--brand-2); text-decoration: none; }
button { font: inherit; color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 16px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; cursor: pointer; font-weight: 600; white-space: nowrap; transition: transform .18s ease, box-shadow .25s ease, background .25s ease, opacity .2s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.96); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 17px; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--brand-2), var(--brand) 55%, var(--brand-deep)); box-shadow: 0 8px 28px rgba(59, 130, 246, .45), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { box-shadow: 0 12px 38px rgba(59, 130, 246, .65), inset 0 1px 0 rgba(255,255,255,.3); transform: translateY(-1px); }
.btn-glass { color: var(--text); background: rgba(255,255,255,.07); border: 1px solid var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255,255,255,.13); }
.btn-ghost { color: var(--text); background: transparent; border: 1px solid var(--line-2); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }

/* 顶部导航 */
.nav { position: fixed; inset: 0 0 auto; z-index: 40; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(5, 12, 28, .72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--line); }
.nav-in { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; height: 66px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 19px; letter-spacing: .06em; }
.brand img { width: 30px; height: 30px; filter: drop-shadow(0 0 10px rgba(59,130,246,.7)); }
.nav-links { display: flex; gap: 26px; margin-left: 12px; }
.nav-links a { color: var(--text-2); font-size: 15px; transition: color .2s; position: relative; }
.nav-links a:hover, .nav-links a.on { color: #fff; }
.nav-links a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 2px; background: var(--brand-2); box-shadow: 0 0 10px var(--brand-2); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; }

/* 首屏 */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-stage { position: absolute; inset: 0; z-index: -2; }
.hero-stage canvas { width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; }
.hero-stage.ready canvas { opacity: 1; }
.hero-fallback { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 50% at 70% 55%, rgba(29,95,209,.45), transparent 70%),
  radial-gradient(40% 40% at 85% 30%, rgba(95,208,255,.18), transparent 70%),
  linear-gradient(180deg, #02060f, #0a1a3c 70%, #050c1c); }
.hero-stage.ready .hero-fallback { opacity: 0; transition: opacity 1.2s; }
.hero-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
  linear-gradient(90deg, rgba(5,12,28,.92) 0%, rgba(5,12,28,.62) 34%, rgba(5,12,28,0) 62%),
  linear-gradient(180deg, rgba(5,12,28,.4) 0%, transparent 18%, transparent 78%, var(--bg) 100%); }
.hero-copy { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 120px 24px 120px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 6px 14px; border-radius: 999px; font-size: 14px; color: #cfe0ff; background: rgba(29,95,209,.18); border: 1px solid rgba(59,130,246,.35); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(95,208,255,.7); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(95,208,255,.7); } 80%,100% { box-shadow: 0 0 0 10px rgba(95,208,255,0); } }
.hero h1 { margin: 0; font-size: clamp(42px, 6.4vw, 84px); line-height: 1.08; font-weight: 900; letter-spacing: .01em; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, #fff 0%, #9cc4ff 35%, var(--cyan) 60%, #fff 85%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; text-shadow: none; }
@keyframes shine { to { background-position: -220% 0; } }
.lead { margin: 22px 0 34px; max-width: 560px; font-size: clamp(16px, 1.5vw, 19px); color: var(--text-2); }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-login { margin: 22px 0 0; font-size: 14px; color: var(--text-3); }
.hero-login a { color: var(--cyan); font-weight: 600; }
.hero-login a:hover { text-decoration: underline; }
.hero-tags { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-tags li { font-size: 13px; color: var(--text-2); padding: 5px 12px; border-radius: 8px; border: 1px solid var(--line); background: rgba(8,20,48,.55); }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid var(--line-2); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--cyan); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* 通用区块 */
.sec { position: relative; padding: 110px 0; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.kicker { margin: 0 0 10px; font-size: 13px; letter-spacing: .28em; font-weight: 700; color: var(--brand-2); }
.sec h2 { margin: 0; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.25; font-weight: 800; }
.sub { margin: 16px 0 0; color: var(--text-2); font-size: 17px; }
.tiny { font-size: 12px; color: var(--text-3); margin: 18px 0 0; }

/* 功能卡片 */
.fgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; perspective: 1200px; }
.fcard { position: relative; padding: 28px 26px 26px; border-radius: var(--r); background: linear-gradient(160deg, rgba(29,95,209,.16), rgba(8,20,48,.6) 60%); border: 1px solid var(--line); overflow: hidden; transform-style: preserve-3d; transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .3s; outline: none; }
.fcard::before { content: ""; position: absolute; inset: 0; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(59,130,246,.22), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.fcard:hover, .fcard:focus-visible { border-color: rgba(59,130,246,.55); box-shadow: 0 24px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(59,130,246,.2), 0 0 40px rgba(29,95,209,.25); }
.fcard:hover::before, .fcard:focus-visible::before { opacity: 1; }
.fcard.pressed { transform: scale(.98) !important; }
.ficon { width: 96px; height: 96px; margin: -6px 0 14px -8px; object-fit: contain; filter: drop-shadow(0 12px 22px rgba(29,95,209,.45)); transform: translateZ(40px); transition: transform .4s; }
.fcard:hover .ficon { transform: translateZ(60px) translateY(-4px) scale(1.05); }
.fcard h3 { margin: 0 0 8px; font-size: 20px; transform: translateZ(25px); }
.fcard p { margin: 0; color: var(--text-2); font-size: 15px; transform: translateZ(15px); }
.fcard .more { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--cyan); }
.fcard-hot { background: linear-gradient(160deg, rgba(59,130,246,.38), rgba(15,58,138,.55) 55%, rgba(8,20,48,.7)); border-color: rgba(59,130,246,.5); }
.badge { position: absolute; top: 18px; right: 18px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; color: #fff; background: linear-gradient(135deg, var(--brand-2), var(--brand-deep)); box-shadow: 0 0 16px rgba(59,130,246,.6); }

/* 维修 */
.sec-repair { background: radial-gradient(60% 60% at 75% 50%, rgba(29,95,209,.22), transparent 70%), linear-gradient(180deg, var(--bg), var(--bg-2) 50%, var(--bg)); overflow: hidden; }
.repair-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 34px 0 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding: 16px 18px 16px 64px; border-radius: 16px; border: 1px solid var(--line); background: rgba(8,20,48,.55); cursor: pointer; transition: border-color .3s, background .3s, transform .2s; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 18px; top: 16px; font: 800 18px/1.5 var(--font); color: var(--text-3); transition: color .3s; }
.steps li b { display: block; font-size: 17px; }
.steps li span { display: block; color: var(--text-2); font-size: 14px; }
.steps li:hover { border-color: var(--line-2); }
.steps li:active { transform: scale(.99); }
.steps li.on { border-color: rgba(59,130,246,.6); background: linear-gradient(90deg, rgba(29,95,209,.32), rgba(8,20,48,.5)); box-shadow: 0 0 30px rgba(29,95,209,.25); }
.steps li.on::before { color: var(--cyan); }
.repair-show { position: relative; height: 600px; perspective: 1400px; }
.phone3d { position: absolute; width: 250px; border-radius: 34px; padding: 9px; background: linear-gradient(145deg, #2a3f6b, #0b1835); box-shadow: 0 40px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(143,179,238,.25), inset 0 1px 0 rgba(255,255,255,.15); transition: transform .8s cubic-bezier(.2,.8,.2,1), opacity .6s, filter .6s; will-change: transform; }
.phone3d img { width: 100%; border-radius: 26px; aspect-ratio: 900 / 1955; object-fit: cover; object-position: top; }
.p-front { left: 30%; top: 30px; z-index: 3; transform: rotateY(-16deg) rotateX(6deg) translateZ(60px); }
.p-mid { left: 62%; top: 80px; z-index: 2; transform: rotateY(-22deg) rotateX(6deg) translateZ(-40px); filter: brightness(.8); }
.p-back { left: 0; top: 90px; z-index: 1; transform: rotateY(-10deg) rotateX(6deg) translateZ(-120px); filter: brightness(.7); }
.repair-show[data-step="1"] .p-mid, .repair-show[data-step="3"] .p-mid { z-index: 4; filter: none; transform: rotateY(-12deg) rotateX(4deg) translateZ(90px) translateX(-30px); }
.repair-show[data-step="2"] .p-back { z-index: 4; filter: none; transform: rotateY(-6deg) rotateX(4deg) translateZ(90px) translateX(40px); }
.repair-show[data-step="1"] .p-front, .repair-show[data-step="2"] .p-front, .repair-show[data-step="3"] .p-front { filter: brightness(.75); transform: rotateY(-16deg) rotateX(6deg) translateZ(-20px); }
.glow-ring { position: absolute; left: 50%; bottom: 10px; width: 520px; height: 120px; margin-left: -240px; border-radius: 50%; background: radial-gradient(closest-side, rgba(59,130,246,.55), transparent); filter: blur(10px); animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .55; transform: scale(.92); } }

/* 老板 */
.laptop { position: relative; max-width: 900px; margin: 0 auto; perspective: 1600px; }
.laptop-screen { position: relative; padding: 14px; border-radius: 18px 18px 6px 6px; background: linear-gradient(160deg, #22355c, #0b1835); box-shadow: 0 50px 100px rgba(0,0,0,.6), 0 0 0 1px rgba(143,179,238,.22), 0 0 80px rgba(29,95,209,.25); transform: rotateX(8deg); transform-origin: bottom; transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.laptop.in .laptop-screen { transform: rotateX(0); }
.laptop-screen img { border-radius: 8px; width: 100%; aspect-ratio: 1600 / 1000; object-fit: cover; object-position: top; }
.laptop-base { height: 16px; margin: 0 -5%; border-radius: 0 0 20px 20px; background: linear-gradient(180deg, #3a5486, #12234a); box-shadow: 0 20px 40px rgba(0,0,0,.5); }
.float-phone { position: absolute; right: -4%; bottom: -8%; width: 22%; min-width: 120px; padding: 6px; border-radius: 26px; background: linear-gradient(145deg, #2a3f6b, #0b1835); box-shadow: 0 30px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(143,179,238,.3); animation: float 6s ease-in-out infinite; }
.float-phone img { border-radius: 20px; aspect-ratio: 900 / 1955; object-fit: cover; object-position: top; }
@keyframes float { 50% { transform: translateY(-14px) rotate(-1.5deg); } }
.kpis { list-style: none; margin: 80px auto 0; padding: 0; max-width: 900px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.kpis li { padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(8,20,48,.55); text-align: center; }
.kpis b { display: block; font-size: 22px; background: linear-gradient(90deg, #fff, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpis span { font-size: 13px; color: var(--text-2); }

/* 下载 */
.sec-dl { background: radial-gradient(50% 70% at 80% 50%, rgba(29,95,209,.25), transparent 70%); }
.dl-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.dl-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 22px; }
.dl-btn { display: inline-flex; align-items: center; gap: 12px; min-width: 170px; padding: 12px 16px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(255,255,255,.06); color: var(--text); cursor: pointer; text-align: left; transition: background .2s, transform .15s, border-color .2s; }
.dl-btn svg { width: 28px; height: 28px; color: var(--cyan); }
.dl-btn span { font-weight: 700; font-size: 16px; line-height: 1.3; }
.dl-btn small { display: block; font-weight: 400; font-size: 12px; color: var(--text-2); }
.dl-btn:hover { background: rgba(59,130,246,.16); border-color: rgba(59,130,246,.6); }
.dl-btn:active { transform: scale(.97); }
.dl-url { margin: 6px 0; color: var(--text-2); font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.copy { border: 1px solid var(--line-2); background: transparent; border-radius: 8px; padding: 1px 10px; font-size: 12px; cursor: pointer; color: var(--text-2); transition: background .2s; }
.copy:hover { background: rgba(255,255,255,.08); color: #fff; }
.copy.done { color: var(--cyan); border-color: var(--cyan); }
.dl-qr { position: relative; display: flex; justify-content: center; align-items: center; min-height: 420px; }
.dl-art { position: absolute; width: 400px; max-width: 95%; left: 50%; top: 50%; transform: translate(-58%, -50%); opacity: .95; animation: float 7s ease-in-out infinite; pointer-events: none; }
.qr-card { position: relative; margin-left: 38%; padding: 18px 18px 12px; border-radius: 22px; background: rgba(255,255,255,.96); box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 0 60px rgba(59,130,246,.35); text-align: center; }
.qr-card img { width: 180px; height: 180px; border-radius: 10px; }
.qr-card p { margin: 8px 0 0; color: #0f3a8a; font-size: 13px; font-weight: 600; }

/* 联系 */
.contact-card { position: relative; display: flex; align-items: center; gap: 40px; padding: 48px; border-radius: 28px; overflow: hidden; background: linear-gradient(120deg, rgba(29,95,209,.42), rgba(15,58,138,.35) 50%, rgba(8,20,48,.8)); border: 1px solid rgba(59,130,246,.4); box-shadow: 0 0 80px rgba(29,95,209,.2); }
.contact-card::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(closest-side, rgba(95,208,255,.25), transparent); pointer-events: none; }
.cs-avatar { width: 180px; height: 180px; flex: none; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0,0,0,.4)); animation: float 6s ease-in-out infinite; }
.contact-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hours { margin: 14px 0 0; color: var(--text-2); font-size: 14px; }

.foot { border-top: 1px solid var(--line); padding: 30px 0 40px; color: var(--text-3); font-size: 14px; }
.foot-in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 18px; margin-left: auto; }
.foot nav a { color: var(--text-2); }
.foot nav a:hover { color: #fff; }
.foot p { margin: 0; }

/* 出现动画 */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* 在线咨询浮窗 */
.chat-fab { position: fixed; right: 22px; bottom: 22px; z-index: 50; display: flex; align-items: center; gap: 8px; padding: 6px 18px 6px 6px; border: 0; border-radius: 999px; cursor: pointer; color: #fff; font-weight: 700; background: linear-gradient(135deg, var(--brand-2), var(--brand-deep)); box-shadow: 0 12px 34px rgba(29,95,209,.6), inset 0 1px 0 rgba(255,255,255,.25); transition: transform .2s, opacity .3s; }
.chat-fab img { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.95); object-fit: contain; }
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab:active { transform: scale(.95); }
.chat-fab.hide { opacity: 0; pointer-events: none; transform: translateY(20px); }
.fab-dot { position: absolute; top: 2px; left: 34px; width: 14px; height: 14px; border-radius: 50%; background: #ff4b4b; border: 2px solid #fff; }
.chat { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 380px; height: min(620px, calc(100vh - 44px)); display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: #f5f8fd; color: #16213a; box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(143,179,238,.3); transform-origin: bottom right; animation: pop .28s cubic-bezier(.2,.8,.2,1); }
.chat[hidden] { display: none; }
@keyframes pop { from { opacity: 0; transform: scale(.9) translateY(14px); } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; color: #fff; background: linear-gradient(120deg, var(--brand), var(--brand-deep)); }
.chat-head img { width: 36px; height: 36px; border-radius: 50%; background: #fff; object-fit: contain; }
.chat-head h2 { margin: 0; font-size: 16px; }
.chat-head p { margin: 0; font-size: 12px; opacity: .85; }
.icon-btn { margin-left: auto; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { background: rgba(255,255,255,.22); }
.icon-btn:active { transform: scale(.92); }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.msg { max-width: 82%; }
.msg p { margin: 0; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.msg time { display: block; font-size: 11px; color: #8a96ab; margin: 3px 6px 0; }
.msg-op p { background: #fff; border-top-left-radius: 4px; box-shadow: 0 1px 2px rgba(15,58,138,.08); }
.msg-sys { align-self: center; max-width: 92%; }
.msg-sys p { background: #e6eefb; color: #3a4f78; font-size: 13px; text-align: center; border-radius: 12px; }
.msg-me { align-self: flex-end; }
.msg-me p { color: #fff; background: linear-gradient(135deg, var(--brand-2), var(--brand)); border-top-right-radius: 4px; }
.msg-me time { text-align: right; }
.msg-me.sending p { opacity: .6; }
.msg-me.failed p { background: #8a96ab; }
.msg-me .retry { border: 0; background: none; color: #d23c3c; font-size: 12px; cursor: pointer; padding: 2px 6px; float: right; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid #c9d8f3; background: #fff; color: var(--brand); border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; transition: background .2s; }
.chip:hover { background: #e8f0fc; }
.chip:active { transform: scale(.96); }
.chat-form { border-top: 1px solid #e1e8f4; background: #fff; padding: 10px 12px 10px; }
.who { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; margin-bottom: 8px; }
.who[hidden] { display: none; }
.chat-form input, .chat-form textarea { width: 100%; border: 1px solid #d6e0f0; border-radius: 12px; padding: 9px 12px; font: 15px/1.4 var(--font); color: #16213a; background: #f7f9fd; outline: none; transition: border-color .2s, box-shadow .2s; }
.chat-form input:focus, .chat-form textarea:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(59,130,246,.15); background: #fff; }
.chat-form textarea { resize: none; max-height: 120px; }
.send-row { display: flex; gap: 8px; align-items: flex-end; }
.send { flex: none; width: 44px; height: 42px; border: 0; border-radius: 12px; cursor: pointer; color: #fff; background: linear-gradient(135deg, var(--brand-2), var(--brand)); display: grid; place-items: center; transition: opacity .2s, transform .15s; }
.send:active { transform: scale(.92); }
.send[disabled] { opacity: .5; cursor: default; }
.send.busy svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.chat-note { margin: 6px 2px 0; font-size: 11px; color: #8a96ab; }
.chat-note a { color: var(--brand); }

.toast { position: fixed; left: 50%; bottom: 96px; z-index: 80; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 10px 18px; border-radius: 12px; background: rgba(12,28,64,.95); color: #fff; font-size: 14px; border: 1px solid var(--line-2); box-shadow: 0 12px 30px rgba(0,0,0,.45); animation: pop .25s; }

/* 平板 */
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .fgrid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .repair-grid, .dl-grid { grid-template-columns: 1fr; }
  .repair-show { height: 540px; max-width: 560px; margin: 0 auto; width: 100%; }
  .kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
/* 手机：两边 16px */
@media (max-width: 640px) {
  .wrap, .nav-in, .hero-copy { padding-left: var(--gutter); padding-right: var(--gutter); }
  .nav-in { height: 58px; gap: 10px; }
  .nav-cta .nav-chat { display: none; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn { padding: 0 12px; }
  .nav-cta svg { display: none; }
  .brand span { font-size: 17px; }
  .hero { align-items: flex-end; }
  .hero-copy { padding-top: 96px; padding-bottom: 86px; }
  .hero-shade { background: linear-gradient(180deg, rgba(5,12,28,.35) 0%, rgba(5,12,28,.05) 30%, rgba(5,12,28,.75) 58%, var(--bg) 100%); }
  .hero h1 { font-size: 40px; }
  .pc-br { display: none; }
  .lead { font-size: 15px; margin: 16px 0 24px; }
  .hero-btns .btn { flex: 1 1 0; padding: 0 14px; height: 50px; font-size: 16px; }
  .hero-tags { margin-top: 22px; }
  .scroll-hint { display: none; }
  .sec { padding: 72px 0; }
  .sec-head { margin-bottom: 36px; }
  .sub { font-size: 15px; }
  .fgrid { grid-template-columns: 1fr; gap: 14px; }
  .fcard { padding: 20px 18px 18px 104px; min-height: 128px; }
  .ficon { position: absolute; left: 12px; top: 18px; width: 80px; height: 80px; margin: 0; }
  .fcard h3 { font-size: 18px; }
  .fcard p { font-size: 14px; }
  .badge { top: 12px; right: 12px; }
  .repair-show { height: 430px; }
  .phone3d { width: 170px; border-radius: 26px; padding: 6px; }
  .phone3d img { border-radius: 20px; }
  .p-front { left: 26%; top: 10px; } .p-mid { left: 52%; top: 50px; } .p-back { left: 0; top: 60px; }
  .glow-ring { width: 300px; margin-left: -150px; }
  .float-phone { right: 0; bottom: -14%; }
  .kpis { margin-top: 60px; gap: 10px; }
  .dl-btn { flex: 1 1 100%; }
  .dl-qr { min-height: 320px; }
  .dl-art { width: 280px; }
  .qr-card { margin-left: 30%; }
  .qr-card img { width: 150px; height: 150px; }
  .contact-card { flex-direction: column; text-align: center; padding: 30px 18px; gap: 10px; }
  .cs-avatar { width: 120px; height: 120px; }
  .contact-btns { justify-content: center; }
  .contact-btns .btn { flex: 1 1 100%; }
  .foot nav { margin-left: 0; }
  .chat-fab { right: 16px; bottom: 16px; }
  .chat-fab .fab-text { display: none; }
  .chat-fab { padding: 6px; }
  .chat { right: 0; left: 0; bottom: 0; width: auto; height: 86vh; height: 86dvh; border-radius: 22px 22px 0 0; }
  .who { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
