:root {
  --green: #07c160;
  --green-d: #05a251;
  --green-dd: #04833f;
  --ink: #12211a;
  --ink-2: #33443b;
  --muted: #6b7a72;
  --line: #e6ede9;
  --bg: #ffffff;
  --bg-soft: #f4faf6;
  --bg-soft-2: #eef7f1;
  --radius: 18px;
  --shadow: 0 18px 50px -22px rgba(7, 120, 66, .35);
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: none; cursor: pointer; font-family: inherit;
  font-size: 16px; font-weight: 600; border-radius: 999px;
  padding: 14px 26px; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--green-d));
  color: #fff; box-shadow: 0 12px 26px -12px rgba(7, 193, 96, .7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(7, 193, 96, .8); }
.btn-block { display: flex; width: 100%; margin-top: 14px; }
.btn-store {
  background: var(--ink); color: #fff; padding: 12px 22px;
  box-shadow: 0 12px 26px -16px rgba(0, 0, 0, .6);
}
.btn-store small { display: block; font-size: 11px; font-weight: 500; opacity: .75; line-height: 1; margin-bottom: 2px; }
.btn-store span { text-align: left; line-height: 1.15; }
.btn-store:hover { transform: translateY(-2px); background: #1d2c24; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { border-radius: 9px; box-shadow: 0 4px 10px -4px rgba(7,120,66,.5); }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: .3px; }
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a { color: var(--ink-2); font-weight: 600; font-size: 15px; position: relative; }
.nav-links a:hover { color: var(--green-d); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ---------- 首屏 ---------- */
.hero { padding: 66px 0 40px; background:
  radial-gradient(1100px 500px at 82% -8%, var(--bg-soft-2), transparent 60%),
  radial-gradient(700px 420px at 8% 10%, #f0fbf4, transparent 55%); }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--green-dd);
  background: #e5f7ec; border: 1px solid #cdeed8; font-weight: 700; font-size: 13px;
  padding: 6px 14px; border-radius: 999px; margin: 0 0 20px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(7,193,96,.2); }
.hero h1 { font-size: 46px; line-height: 1.18; margin: 0 0 18px; letter-spacing: -.5px; font-weight: 800; }
.lead { font-size: 18px; color: var(--ink-2); margin: 0 0 30px; max-width: 520px; }

.qr-row { display: flex; gap: 22px; margin-bottom: 26px; flex-wrap: wrap; }
.qr-card { margin: 0; text-align: center; }
.qr-card .qr-img {
  width: 122px; height: 122px; padding: 9px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center;
}
.qr-card .qr-img svg { width: 100%; height: 100%; display: block; }
.qr-card figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); font-weight: 500; }

.dl-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.avail { color: var(--muted); font-size: 15px; margin: 0; }
.avail b { color: var(--green-dd); }

/* 手机插画 */
.hero-art { position: relative; display: flex; justify-content: center; align-items: center; min-height: 460px; }
.blob { position: absolute; border-radius: 50%; filter: blur(6px); z-index: 0; }
.blob-1 { width: 300px; height: 300px; background: radial-gradient(circle at 30% 30%, #baf0d0, #7fe3a8); top: 6%; right: 4%; opacity: .55; }
.blob-2 { width: 200px; height: 200px; background: radial-gradient(circle at 40% 40%, #d5f2ff, #a9def9); bottom: 4%; left: 6%; opacity: .5; }
.phone {
  position: relative; z-index: 1; width: 268px; height: 546px; background: #0e1712;
  border-radius: 42px; padding: 12px; box-shadow: 0 40px 80px -30px rgba(4,60,32,.55), 0 0 0 2px rgba(255,255,255,.06) inset;
}
.phone-notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 120px; height: 26px; background: #0e1712; border-radius: 0 0 16px 16px; z-index: 3; }
.phone-screen { position: relative; height: 100%; background: linear-gradient(180deg, #eef7f1, #f7fbf9); border-radius: 32px; overflow: hidden; display: flex; flex-direction: column; }
.chat-top { display: flex; align-items: center; gap: 10px; padding: 40px 16px 12px; background: #fff; border-bottom: 1px solid var(--line); }
.chat-top img { border-radius: 7px; }
.chat-top-name { font-size: 14px; font-weight: 700; line-height: 1.2; }
.chat-top-name small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.bubbles { flex: 1; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.bubble { max-width: 78%; padding: 9px 13px; border-radius: 15px; font-size: 13px; line-height: 1.4; }
.bubble.in { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; align-self: flex-start; box-shadow: 0 4px 12px -8px rgba(0,0,0,.2); }
.bubble.out { background: linear-gradient(135deg, var(--green), var(--green-d)); color: #fff; border-bottom-right-radius: 5px; align-self: flex-end; }
.bubble.media { align-self: flex-start; width: 130px; height: 84px; padding: 0; background: linear-gradient(135deg, #cdeecf, #a7d9c4); border-radius: 14px; }
.chat-input { margin: 0 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; }
.chat-input i { width: 26px; height: 26px; border-radius: 50%; background: var(--green); }

/* ---------- 通用 section ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { color: var(--green-dd); font-weight: 800; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; margin: 0 0 12px; }
.kicker.center, .center { text-align: center; }
.section-title { font-size: 32px; font-weight: 800; line-height: 1.3; margin: 0 0 14px; letter-spacing: -.4px; }
.section-sub { color: var(--ink-2); font-size: 17px; margin: 0 0 40px; max-width: 640px; }
.section-sub.center { margin-left: auto; margin-right: auto; }

/* 卡片 */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfe9d9; }
.card h3 { font-size: 19px; margin: 16px 0 8px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.card-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--bg-soft-2); position: relative; }
.card-ico::after { content: ""; position: absolute; inset: 0; margin: auto; background: var(--green-d); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.i-chat::after   { width: 26px; height: 26px; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H9l-5 4v-4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z' fill='black'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H9l-5 4v-4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z' fill='black'/%3E%3C/svg%3E"); }
.i-lock::after   { width: 24px; height: 24px; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 10V7a6 6 0 0 1 12 0v3h1a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2zm2 0h8V7a4 4 0 0 0-8 0z' fill='black'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 10V7a6 6 0 0 1 12 0v3h1a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2zm2 0h8V7a4 4 0 0 0-8 0z' fill='black'/%3E%3C/svg%3E"); }
.i-group::after  { width: 28px; height: 28px; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 11a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm7 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM3 19c0-2.7 3-4.5 6-4.5s6 1.8 6 4.5v1H3zm12.3-4.2c2 .6 3.7 2 3.7 4.2v1h2v-1c0-2-1.4-3.4-3.3-4.1z' fill='black'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 11a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm7 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM3 19c0-2.7 3-4.5 6-4.5s6 1.8 6 4.5v1H3zm12.3-4.2c2 .6 3.7 2 3.7 4.2v1h2v-1c0-2-1.4-3.4-3.3-4.1z' fill='black'/%3E%3C/svg%3E"); }
.i-packet::after { width: 24px; height: 26px; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zm0 5c3 2 11 2 14 0M12 11a2 2 0 1 0 0 4 2 2 0 0 0 0-4z' fill='black'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zm0 5c3 2 11 2 14 0M12 11a2 2 0 1 0 0 4 2 2 0 0 0 0-4z' fill='black'/%3E%3C/svg%3E"); }
.i-sync::after   { width: 26px; height: 26px; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4a8 8 0 0 1 7 4l2-1-1 6-6-1 2-1a5 5 0 0 0-8 0l-2-2a8 8 0 0 1 6-3zM5 12l1 1a5 5 0 0 0 8 0l2 2a8 8 0 0 1-13-1l-2 1 1-6 6 1z' fill='black'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4a8 8 0 0 1 7 4l2-1-1 6-6-1 2-1a5 5 0 0 0-8 0l-2-2a8 8 0 0 1 6-3zM5 12l1 1a5 5 0 0 0 8 0l2 2a8 8 0 0 1-13-1l-2 1 1-6 6 1z' fill='black'/%3E%3C/svg%3E"); }
.i-voice::after  { width: 22px; height: 26px; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3a3 3 0 0 1 3 3v6a3 3 0 0 1-6 0V6a3 3 0 0 1 3-3zM7 11a5 5 0 0 0 10 0h2a7 7 0 0 1-6 6.9V21h-2v-3.1A7 7 0 0 1 5 11z' fill='black'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3a3 3 0 0 1 3 3v6a3 3 0 0 1-6 0V6a3 3 0 0 1 3-3zM7 11a5 5 0 0 0 10 0h2a7 7 0 0 1-6 6.9V21h-2v-3.1A7 7 0 0 1 5 11z' fill='black'/%3E%3C/svg%3E"); }

/* 安全架构 */
.sec-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.sec-list { list-style: none; padding: 0; margin: 8px 0 22px; display: grid; gap: 16px; }
.sec-list li { position: relative; padding-left: 34px; color: var(--ink-2); font-size: 16px; }
.sec-list li b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 1px; }
.sec-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: #e5f7ec; color: var(--green-dd); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.sec-note { color: var(--muted); font-size: 14px; }
.sec-art { display: flex; justify-content: center; }
.shield { width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #eafaf0, #d7f2e2); display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 10px rgba(7,193,96,.08); }

/* 下载区 */
.download { background: linear-gradient(180deg, #fff, var(--bg-soft)); }
.dl-panel { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; margin-top: 8px; }
.qr-card.big { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; width: 280px; box-shadow: var(--shadow); }
.qr-card.big .qr-img { width: 190px; height: 190px; margin: 0 auto; box-shadow: none; }
.qr-card.big figcaption { font-size: 15px; color: var(--ink); font-weight: 700; margin-top: 14px; }
.dl-tip { text-align: center; color: var(--muted); margin-top: 26px; font-size: 14px; }
.ver-label { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 3px; }
.ver-label:empty { display: none; }

/* 后台尚未发布版本时的降级态 */
.btn.is-disabled { background: #cdd6d1; color: #7c8983; cursor: not-allowed; box-shadow: none; pointer-events: none; }
.btn-store.is-disabled { background: #cdd6d1; }
.btn-store.is-disabled small { display: none; }
.qr-img .qr-empty-text { font-size: 13px; color: var(--muted); text-align: center; padding: 0 8px; }
.qr-card.is-empty .qr-img { background: repeating-linear-gradient(45deg, #f4faf6, #f4faf6 8px, #eef7f1 8px, #eef7f1 16px); }

/* iOS 教程入口链接 */
.guide-link { display: inline-block; margin-top: 10px; background: none; border: none; cursor: pointer; font-family: inherit; font-size: 13px; color: var(--green-dd); text-decoration: underline; text-underline-offset: 3px; padding: 4px; }
.guide-link:hover { color: var(--green-d); }

/* 安卓分机型教程：品牌标签页 */
.brand-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.brand-tab { flex: 1 1 auto; min-width: 74px; padding: 8px 10px; border: 1px solid var(--bg-soft-2); background: var(--bg-soft-2); border-radius: 999px; font-family: inherit; font-size: 13px; color: var(--ink-2); cursor: pointer; transition: background .18s, color .18s, border-color .18s; }
.brand-tab:hover { border-color: var(--green); color: var(--green-dd); }
.brand-tab.is-active { background: linear-gradient(135deg, var(--green), var(--green-d)); border-color: transparent; color: #fff; font-weight: 600; }
/* .steps 用了 display:grid，会覆盖 [hidden] 的 display:none，需显式隐藏未选中的品牌面板 */
.steps[hidden] { display: none; }

/* 模态弹窗 */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(12, 28, 20, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade .2s ease; }
.modal-card { position: relative; z-index: 1; width: 100%; max-width: 440px; background: #fff; border-radius: 22px; padding: 28px 26px 24px; box-shadow: 0 40px 90px -30px rgba(4, 60, 32, .5); animation: pop .22s cubic-bezier(.2,.9,.3,1.2); max-height: calc(100vh - 40px); overflow-y: auto; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.96); } }
.modal-close { position: absolute; top: 14px; right: 16px; width: 34px; height: 34px; border: none; background: var(--bg-soft-2); border-radius: 50%; font-size: 22px; line-height: 1; color: var(--ink-2); cursor: pointer; transition: background .2s; }
.modal-close:hover { background: #dcefe3; }
.modal-head { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; padding-right: 30px; }
.modal-head img { border-radius: 10px; flex-shrink: 0; }
.modal-head h3 { margin: 0 0 3px; font-size: 20px; }
.modal-head p { margin: 0; font-size: 14px; color: var(--muted); }
.steps { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 18px; }
.steps li { display: flex; gap: 14px; }
.step-no { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--green), var(--green-d)); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.step-body b { display: block; font-size: 15px; margin-bottom: 2px; }
.step-body p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.step-link { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--green-dd); }
.step-link:hover { color: var(--green-d); text-decoration: underline; }
.modal-foot { margin: 12px 0 0; font-size: 12px; color: var(--muted); text-align: center; }

/* 页脚 */
.footer { background: #0e1712; color: #cbd8d0; padding: 44px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 18px; }
.foot-brand img { border-radius: 8px; }
.foot-copy { margin: 0; font-size: 14px; }
.foot-copy a { color: var(--green); }
.foot-legal { margin: 0; font-size: 13px; color: #7f9187; }

/* ---------- 响应式：手机 ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .hero h1 { font-size: 36px; }
  .lead { margin-left: auto; margin-right: auto; }
  .qr-row, .dl-buttons { justify-content: center; }
  .hero-art { order: -1; min-height: auto; }
  .phone { transform: scale(.9); }
  .sec-inner { grid-template-columns: 1fr; }
  .sec-list { max-width: 520px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links { display: flex; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .nav.open .nav-links a { padding: 14px 24px; }
  .hero { padding: 40px 0 24px; }
  .hero h1 { font-size: 30px; }
  .lead { font-size: 16px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 25px; }
  .cards { grid-template-columns: 1fr; }
  .qr-row { display: none; }            /* 手机上无法自扫，隐藏二维码，突出下载按钮 */
  .dl-buttons { flex-direction: column; }
  .dl-buttons .btn { width: 100%; }
  .dl-panel { gap: 20px; }
  .qr-card.big { width: 100%; max-width: 320px; }
}
