/* 百宝袋 样式 —— 白底、大留白、琥珀主色 */
:root {
  --brand: #e8890c;
  --brand-dark: #c97206;
  --brand-soft: #fff6e8;
  --text: #1f2329;
  --text-2: #646a73;
  --text-3: #8f959e;
  --line: #e8eaed;
  --bg-2: #f7f8fa;
  --ok: #2ba471;
  --radius: 12px;
  --radius-sm: 8px;
  --max: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  font-size: 15px;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

.nw { display: inline-block; }
.gap { display: inline-block; width: 24px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }


/* 顶栏 */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; height: 60px; gap: 28px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; }
.logo svg { width: 28px; height: 28px; }
.logo small { font-weight: 400; color: var(--text-3); font-size: 13px; }
.nav-links { display: flex; gap: 24px; color: var(--text-2); margin-left: auto; align-items: center; }
.nav-links a:hover { color: var(--text); }
.logo, .nav-links a { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 640px) {
  .nav-links .hide-m { display: none; }
  .nav .wrap { gap: 12px; height: 54px; }
  .logo { font-size: 16px; gap: 6px; }
  .logo svg { width: 24px; height: 24px; }
  .logo small { display: none; }
  .nav-links { gap: 14px; font-size: 14px; }
  .nav-links .btn { padding: 0 12px !important; height: 32px !important; }
}

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 18px; border-radius: var(--radius-sm); font-weight: 500; transition: background .15s, opacity .15s; white-space: nowrap; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); background: #fff; }
.btn-ghost:hover { background: var(--bg-2); }
.btn-lg { height: 48px; padding: 0 26px; font-size: 16px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* 首屏 */
.hero { padding: 72px 0 64px; text-align: center; }
.hero h1 { font-size: 40px; line-height: 1.25; font-weight: 700; letter-spacing: .5px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .sub { color: var(--text-2); font-size: 17px; margin-top: 14px; }
.install-box { margin: 36px auto 0; max-width: 560px; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; border: 1.5px solid var(--brand); border-radius: 12px; background: var(--brand-soft); text-align: left; }
.install-box code { flex: 1; font-family: inherit; font-size: 17px; font-weight: 500; overflow-wrap: anywhere; }
.hero .meta { margin-top: 16px; color: var(--text-3); font-size: 14px; }
.hero .meta b { color: var(--text-2); font-weight: 500; }
@media (max-width: 640px) {
  .hero { padding: 44px 0 40px; }
  .hero h1 { font-size: 28px; }
  .hero .sub { font-size: 15px; }
  .install-box { flex-direction: column; align-items: stretch; padding: 14px; }
  .install-box code { font-size: 16px; text-align: center; }
  .hero .meta .gap { display: block; height: 2px; }
}

/* 区块 */
.section { padding: 72px 0; }
.section.gray { background: var(--bg-2); }
.section h2 { font-size: 28px; text-align: center; font-weight: 700; }
.section .lead { text-align: center; color: var(--text-2); margin-top: 8px; }
@media (max-width: 640px) { .section { padding: 48px 0; } .section h2 { font-size: 22px; } }

/* 三步 */
.tabs { display: flex; justify-content: center; gap: 8px; margin: 28px 0 24px; flex-wrap: wrap; }
.tab { padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); background: #fff; }
.tab.on { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step .no { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }
.step h3 { font-size: 17px; margin: 10px 0 4px; }
.step p { color: var(--text-2); font-size: 14px; }
.shot { margin-top: 14px; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px dashed #d0d3d6; display: flex; align-items: center; justify-content: center; color: var(--text-3); font-size: 13px; text-align: center; padding: 10px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* 能做什么 */
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.cap { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.cap .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.cap .ico svg { width: 22px; height: 22px; }
.cap h3 { font-size: 17px; margin: 12px 0 8px; }
.say { font-size: 14px; color: var(--text-2); background: var(--bg-2); border-radius: var(--radius-sm); padding: 10px 12px; }
.say::before { content: "你对 AI 说："; color: var(--text-3); }
.cap .demo { margin-top: 12px; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); background: var(--bg-2); display: flex; align-items: center; justify-content: center; color: var(--text-3); font-size: 13px; }
@media (max-width: 900px) { .caps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .caps { grid-template-columns: 1fr; } }

/* 价格表 */
.price-table { max-width: 640px; margin: 32px auto 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.price-row { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-top: 1px solid var(--line); }
.price-row:first-child { border-top: 0; }
.price-row .r { text-align: right; }
.price-row .r b { font-size: 16px; }
.price-row .r span { display: block; color: var(--text-3); font-size: 12px; }
.price-note { text-align: center; color: var(--text-3); font-size: 13px; margin-top: 14px; }

/* 常见问题 */
.faq { max-width: 720px; margin: 32px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 4px; }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--text-3); font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--text-2); margin-top: 8px; font-size: 14px; }

/* 结尾号召 */
.cta { text-align: center; }
.cta .install-box { margin-top: 24px; }

/* 页脚 */
.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--text-3); font-size: 13px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.footer .links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer .links a:hover { color: var(--text-2); }

/* 卡片页（登录、确认、控制台） */
.page { background: var(--bg-2); min-height: calc(100vh - 60px); padding: 40px 0 60px; }
.card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 28px; }
.narrow { max-width: 420px; margin: 0 auto; }
.card h1 { font-size: 22px; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.field { margin-top: 16px; }
.field label { display: block; font-size: 14px; color: var(--text-2); margin-bottom: 6px; }
.input { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 14px; font: inherit; outline: none; }
.input:focus { border-color: var(--brand); }
.input-row { display: flex; gap: 10px; }
.input-row .input { flex: 1; }
.agree { margin-top: 14px; font-size: 13px; color: var(--text-3); display: flex; gap: 6px; align-items: flex-start; }
.agree a { color: var(--brand); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 13px; margin: 22px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-wx { background: #07c160; color: #fff; }
.btn-wx:hover { background: #06ad56; }

.connect-head { text-align: center; }
.connect-head .pair { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 18px; }
.avatar { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; }
.avatar.ai { background: #eef3ff; color: #3370ff; }
.avatar.me { background: var(--brand-soft); color: var(--brand); }
.avatar svg { width: 30px; height: 30px; }
.pair .dots { color: var(--text-3); letter-spacing: 3px; }
.can { margin: 22px 0; padding: 16px 18px; background: var(--bg-2); border-radius: var(--radius-sm); font-size: 14px; color: var(--text-2); }
.can li { list-style: none; padding: 3px 0; }
.can li::before { content: "✓"; color: var(--ok); margin-right: 8px; }
.done-ico { width: 64px; height: 64px; border-radius: 50%; background: #e8f7f0; color: var(--ok); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }

/* 控制台 */
.console { display: grid; grid-template-columns: 1fr; gap: 20px; }
.balance { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.balance .num { font-size: 40px; font-weight: 700; line-height: 1.1; }
.balance .num small { font-size: 16px; font-weight: 400; color: var(--text-2); margin-left: 6px; }
.balance .yuan { color: var(--text-3); margin-top: 4px; }
.card h2 { font-size: 17px; margin-bottom: 4px; display: flex; justify-content: space-between; align-items: baseline; }
.card h2 a { font-size: 14px; font-weight: 400; color: var(--text-3); }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.list-row:first-of-type { border-top: 0; }
.list-row .t { font-weight: 500; }
.list-row .d { color: var(--text-3); font-size: 13px; }
.list-row .amt { font-weight: 500; white-space: nowrap; }
.amt.minus { color: var(--text); }
.amt.plus { color: var(--ok); }
.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--bg-2); color: var(--text-2); margin-left: 6px; font-weight: 400; }
.link-btn { color: var(--text-3); font-size: 14px; }
.link-btn:hover { color: #d54941; }
.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }

/* 充值 */
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.pack { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 20px 12px; text-align: center; background: #fff; position: relative; }
.pack.on { border-color: var(--brand); background: var(--brand-soft); }
.pack .p { font-size: 26px; font-weight: 700; }
.pack .p small { font-size: 15px; font-weight: 500; }
.pack .pts { color: var(--text-2); font-size: 14px; margin-top: 4px; white-space: nowrap; }
.pack .gift { position: absolute; top: -10px; right: -1px; background: var(--brand); color: #fff; font-size: 12px; padding: 1px 8px; border-radius: 6px 6px 0 6px; }
@media (max-width: 480px) { .pack { padding: 18px 6px; } .pack .p { font-size: 22px; } .pack .pts { font-size: 13px; } }
.pay-sum { display: flex; justify-content: space-between; margin: 22px 0 16px; color: var(--text-2); }
.pay-sum b { color: var(--text); font-size: 18px; }

.mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: none; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.mask.show { display: flex; }
.modal { background: #fff; border-radius: 14px; padding: 28px; width: 100%; max-width: 340px; text-align: center; }
.qr { width: 200px; height: 200px; margin: 18px auto; border: 1px solid var(--line); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--text-3); font-size: 13px; background:
  repeating-linear-gradient(0deg, #f2f3f5 0 8px, #fff 8px 16px), #fff; }
.wx-tip { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--text-2); font-size: 14px; }
.wx-tip i { width: 18px; height: 18px; border-radius: 4px; background: #07c160; display: inline-block; }

/* install 页 */
.doc { max-width: 760px; margin: 0 auto; }
.doc-human { background: var(--brand-soft); border: 1px solid #f6d9a8; border-radius: var(--radius); padding: 18px 20px; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.doc-body { margin-top: 28px; }
.doc-body h1 { font-size: 24px; }
.doc-body h2 { font-size: 18px; margin: 28px 0 10px; }
.doc-body p, .doc-body li { color: var(--text-2); }
.doc-body ol, .doc-body ul { padding-left: 22px; }
.doc-body li { margin: 6px 0; }
.doc-body pre { background: #f6f7f9; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; overflow-x: auto; font-size: 13px; line-height: 1.6; color: var(--text); margin: 10px 0; }
.doc-body code { font-family: "SFMono-Regular", Consolas, Menlo, monospace; }
.doc-body p code, .doc-body li code { background: #f2f3f5; padding: 1px 6px; border-radius: 4px; font-size: 13px; color: var(--text); }

.toast { position: fixed; left: 50%; top: 80px; transform: translateX(-50%); background: rgba(31,35,41,.9); color: #fff; padding: 8px 18px; border-radius: 8px; font-size: 14px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 60; }
.toast.show { opacity: 1; }

/* 使用偏好 */
.pref { margin-top: 18px; }
.pref-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.pref-row:first-child { border-top: 0; }
.pref-r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; width: 74%; max-width: 300px; }
.pref-sub { display: flex; gap: 12px; font-size: 12px; color: var(--text-3); min-height: 18px; }
.reset { font-size: 12px; color: var(--text-3); }
.reset:hover { color: var(--brand); }
.sel { height: 38px; width: 100%; padding-right: 4px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 10px; font: inherit; font-size: 14px; color: var(--text); background: #fff; outline: none; }
.sel:focus { border-color: var(--brand); }
.list-row.go { color: inherit; }
.list-row.go .arrow { color: var(--text-3); }

/* 表单提示 */
.form-err { color: #d54941; font-size: 13px; margin-top: 10px; min-height: 18px; }
.dev-code { background: var(--brand-soft); color: var(--brand-dark); font-size: 13px; padding: 6px 10px; border-radius: 6px; margin-top: 8px; }
.empty { color: var(--text-3); font-size: 14px; padding: 18px 0 6px; }
