/* 有个码官网 · 公共样式 */
:root {
  --brand: #0b6bf0;
  --brand-dark: #0752c4;
  --brand-soft: #e8f1fe;
  --ink: #0b1b33;
  --text: #24303f;
  --sub: #5b6676;
  --muted: #8a94a3;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --amber: #ff8a00;
  --amber-soft: #fff3e5;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 27, 51, .08);
  --shadow-lg: 0 24px 60px rgba(11, 27, 51, .14);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }
.hide { display: none !important; }

/* 顶部导航 */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid rgba(227, 232, 239, .7); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); letter-spacing: .5px; }
.logo-mark { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--sub); }
/* 悬停：品牌色文字 + 浅品牌色底；左右留白补上原来 28px 间距的视觉宽度 */
.nav-links a:not(.btn) { padding: 6px 10px; border-radius: 8px; transition: color .2s, background .2s; }
.nav-links a:not(.btn):hover, .nav-links a:not(.btn):focus-visible { color: var(--brand-dark); background: var(--brand-soft); }
.nav-links .btn { color: #fff; }
.nav-toggle { display: none; }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }
@media (max-width: 760px) {
  .nav .wrap { gap: 12px; }
  .nav-links { margin-left: auto; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; cursor: pointer; }
  .nav-links.is-open { position: absolute; top: 64px; left: 0; right: 0; display: flex; flex-direction: column; align-items: stretch; gap: 4px; max-height: calc(100dvh - 64px); overflow-y: auto; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-links.is-open a:not(.btn) { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; }
}
section[id] { scroll-margin-top: 80px; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 600; font-size: 15px; border: none; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(11, 107, 240, .28); }
.btn.lg { height: 52px; padding: 0 30px; font-size: 17px; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand-dark); box-shadow: none; }
.btn.sm { height: 36px; padding: 0 16px; font-size: 14px; }

/* 区块 */
.section { padding: 96px 0; }
.section.soft { background: var(--bg-soft); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; color: var(--brand-dark); background: var(--brand-soft); padding: 4px 12px; border-radius: 999px; letter-spacing: 1px; }
.h2 { font-size: 36px; line-height: 1.3; color: var(--ink); font-weight: 800; margin-top: 14px; letter-spacing: .5px; }
.lead { font-size: 18px; color: var(--sub); margin-top: 12px; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
@media (max-width: 760px) { .section { padding: 64px 0; } .h2 { font-size: 28px; } .lead { font-size: 16px; } .section-head { margin-bottom: 36px; } }

/* 首屏 */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; background:
  radial-gradient(900px 420px at 85% -10%, rgba(11, 107, 240, .14), transparent 60%),
  radial-gradient(600px 300px at -10% 110%, rgba(255, 138, 0, .10), transparent 60%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 54px; line-height: 1.18; color: var(--ink); font-weight: 900; letter-spacing: 1px; }
.hero h1 em { font-style: normal; color: var(--brand); position: relative; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 12px; background: rgba(11, 107, 240, .16); z-index: -1; border-radius: 6px; }
.hero p.sub { font-size: 19px; color: var(--sub); margin: 22px 0 32px; max-width: 540px; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }
/* 上方间距跟 p.sub 的下边距合并（32px），下方和按钮也留 32px */
.price-line { margin: 0 0 32px; padding: 12px 16px; border-left: 3px solid var(--brand); border-radius: 0 10px 10px 0; background: var(--brand-soft); color: var(--sub); font-size: 15px; line-height: 1.7; }
.price-line b { color: var(--brand-dark); }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--sub); font-size: 15px; }
.trust > span { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero h1 { font-size: 38px; } .hero p.sub { font-size: 17px; } }

/* 首屏演示：包装盒 + 手机 */
.demo { position: relative; height: 470px; }
/* 包装盒：文字和二维码居中，二维码压在底部 */
.box { position: absolute; left: 0; bottom: 20px; width: 260px; height: 300px; border-radius: 20px; padding: 22px 18px 18px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: linear-gradient(160deg, #1b5fd6, #0a2a6b); color: #fff; box-shadow: var(--shadow-lg); transform: rotate(-5deg); }
.box .brand-name { font-size: 22px; font-weight: 800; letter-spacing: 2px; }
.box .tag { font-size: 13px; opacity: .8; margin-top: 4px; }
.box .qr-wrap { background: #fff; padding: 8px; border-radius: 10px; }
.box .qr-wrap canvas, .box .qr-wrap img { width: 92px; height: 92px; }
.box .scan-hint { margin: auto 0 10px; font-size: 13px; opacity: .85; line-height: 1.5; }
.phone { position: absolute; right: 0; top: 0; width: 250px; height: 470px; border-radius: 38px; background: #0b1b33; padding: 12px; box-shadow: var(--shadow-lg); }
.screen { width: 100%; height: 100%; border-radius: 28px; background: #f3f6fa; overflow: hidden; position: relative; font-size: 12px; }
.screen .bar { height: 30px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; background: #fff; }
.screen .brandbar { display: flex; align-items: center; gap: 8px; background: #fff; padding: 8px 12px; border-top: 1px solid #eef2f7; font-weight: 700; }
.screen .brandbar i { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, #0a3a8c, #0b6bf0); display: inline-block; }
.screen .banner { height: 120px; background: linear-gradient(135deg, #d6e8ff, #8fbcff); display: flex; align-items: flex-end; padding: 10px 12px; color: #0a2a6b; font-weight: 800; font-size: 16px; }
.screen .card { background: #fff; margin: 8px; border-radius: 10px; padding: 10px 12px; }
.screen .row { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid #f0f3f7; }
.screen .row:last-child { border-bottom: none; }
.screen .row span:first-child { color: #8a94a3; }
.screen .val { font-weight: 600; transition: color .4s; }
.screen .val.changed { color: var(--brand-dark); }
.screen .act { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 6px; padding: 8px; background: #fff; }
.screen .act b { flex: 1; text-align: center; padding: 7px 0; border-radius: 999px; font-weight: 600; }
.screen .act b:first-child { border: 1px solid #0b6bf0; color: #0b6bf0; }
.screen .act b:last-child { background: #0b6bf0; color: #fff; }
.edit-toast { position: absolute; right: 150px; top: 120px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 12px 16px; font-size: 14px; display: flex; gap: 10px; align-items: center; opacity: 0; transform: translateY(8px); transition: all .5s; }
.edit-toast.show { opacity: 1; transform: none; }
.edit-toast .dot { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); display: flex; align-items: center; justify-content: center; font-weight: 800; }
@media (max-width: 900px) { .demo { height: 440px; max-width: 420px; margin: 0 auto; width: 100%; } .box { width: 210px; height: 250px; padding-top: 16px; } .phone { width: 220px; height: 430px; } .edit-toast { right: 110px; } }
@media (max-width: 420px) { .box .scan-hint { display: none; } .box { transform: rotate(-5deg) scale(.86); transform-origin: left bottom; } .phone { transform: scale(.9); transform-origin: right top; } .edit-toast { right: 80px; top: 90px; } }

/* 痛点对比 */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare .col { border-radius: var(--radius); padding: 32px; }
.compare .bad { background: #fff; border: 1px solid var(--line); }
.compare .good { background: linear-gradient(160deg, #0d3c9e, #0a1f4d); color: #e8f0ff; }
.compare h3 { font-size: 20px; margin-bottom: 18px; color: inherit; }
.compare .bad h3 { color: var(--ink); }
.compare li { list-style: none; display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed rgba(138, 148, 163, .35); }
.compare li:last-child { border-bottom: none; }
.compare li svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.compare .bad svg { color: #e5484d; }
.compare .good svg { color: #5cc8ff; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } .compare .col { padding: 24px; } }

/* 优势 */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.feature .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-dark); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.feature .ico svg { width: 26px; height: 26px; }
.feature h3 { font-size: 20px; color: var(--ink); margin-bottom: 8px; }
.feature p { color: var(--sub); font-size: 15px; }
.feature ul { margin-top: 12px; font-size: 14px; color: var(--sub); }
.feature li { list-style: none; padding-left: 18px; position: relative; margin-top: 6px; }
.feature li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* 场景 */
.scenes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.scene { border-radius: var(--radius); padding: 24px; background: #fff; border: 1px solid var(--line); display: flex; gap: 16px; align-items: flex-start; }
.scene .emoji { width: 52px; height: 52px; border-radius: 14px; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; font-size: 28px; flex: none; }
.scene h3 { font-size: 18px; color: var(--ink); }
.scene p { font-size: 14px; color: var(--sub); margin-top: 4px; }
@media (max-width: 900px) { .scenes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .scenes { grid-template-columns: 1fr; } }

/* 模板示例：用真实示例素材替代只有图标的场景说明 */
.template-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.home-template-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.template-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 8px 24px rgba(11, 27, 51, .06); transition: transform .2s, box-shadow .2s, border-color .2s; }
.template-card:hover { transform: translateY(-3px); border-color: rgba(11, 107, 240, .3); box-shadow: 0 15px 38px rgba(11, 27, 51, .11); }
.template-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #eaf2ff; }
.template-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.template-card:hover .template-cover img { transform: scale(1.025); }
.template-cover > span { position: absolute; left: 14px; top: 14px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--brand-dark); font-size: 12px; font-weight: 700; box-shadow: 0 4px 12px rgba(11, 27, 51, .12); }
.template-body { padding: 20px; }
.template-kicker { color: var(--brand-dark); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.template-card h3 { margin-top: 5px; color: var(--ink); font-size: 19px; }
.template-card p { min-height: 67px; margin-top: 8px; color: var(--sub); font-size: 14px; line-height: 1.6; }
.template-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.template-tags span { padding: 4px 9px; border-radius: 999px; background: var(--bg-soft); color: #4d617a; font-size: 12px; }
.template-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.template-actions .btn { flex: none; }
.template-use { color: var(--brand-dark); font-size: 13px; font-weight: 650; text-align: right; }
.template-use:hover { text-decoration: underline; }
.template-more { margin-top: 30px; text-align: center; }
.template-more p { margin-top: 12px; color: var(--muted); font-size: 14px; }
.template-cover-art { display: grid; place-items: center; background: linear-gradient(145deg, #e7f1ff, #f8fbff 55%, #fff7e7); }
.manual-art { position: relative; width: 68%; height: 72%; padding: 16px; border: 1px solid rgba(11, 107, 240, .16); border-radius: 13px; background: #fff; box-shadow: 0 14px 26px rgba(11, 53, 105, .14); color: var(--ink); }
.manual-art i { display: block; width: 38px; height: 8px; margin-bottom: 12px; border-radius: 5px; background: var(--brand); }
.manual-art b, .manual-art small, .manual-art em { display: block; }
.manual-art b { font-size: 15px; }
.manual-art small { margin-top: 8px; color: var(--sub); font-size: 10px; }
.manual-art em { position: absolute; left: 16px; right: 16px; bottom: 14px; padding: 6px; border-radius: 7px; background: var(--brand-soft); color: var(--brand-dark); font-size: 10px; font-style: normal; text-align: center; }
.shop-art { position: relative; width: 70%; height: 74%; padding: 16px; border-radius: 15px; background: #fff; box-shadow: 0 14px 28px rgba(11, 53, 105, .14); }
.shop-art::before { content: ""; display: block; width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 50%; background: linear-gradient(145deg, #ffbd4a, #ff8a3d); }
.shop-art b, .shop-art small { display: block; text-align: center; }
.shop-art b { color: var(--ink); font-size: 14px; }
.shop-art small { margin-top: 5px; color: var(--sub); font-size: 10px; }
.shop-art em { display: block; margin-top: 12px; padding: 7px; border-radius: 7px; background: var(--brand); color: #fff; font-size: 10px; font-style: normal; text-align: center; }
@media (max-width: 1080px) { .home-template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .template-grid, .home-template-grid { grid-template-columns: 1fr; }
  .template-card p { min-height: 0; }
  .template-actions { align-items: stretch; flex-direction: column; }
  .template-use { padding: 6px 0; text-align: left; }
}

/* 三步 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 32px 26px 26px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -18px; left: 26px; width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 18px rgba(11, 107, 240, .3); }
.step h3 { font-size: 19px; color: var(--ink); margin: 6px 0 8px; }
.step p { color: var(--sub); font-size: 15px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 32px; } }

/* 价格 */
.trial-banner { max-width: 820px; margin: 0 auto 32px; border-radius: var(--radius); padding: 22px 28px; background: linear-gradient(120deg, #12a4f5, #0b6bf0 55%, #0752c4); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; box-shadow: 0 16px 36px rgba(11, 107, 240, .25); }
.trial-banner b { font-size: 22px; }
.trial-banner span { opacity: .92; }
.price-loading { grid-column: 1 / -1; text-align: center; color: var(--sub); padding: 40px 0; }
/* 修改月卡等短期套餐：放在年套餐下面的横条 */
.short-plan { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 26px; border: 1px dashed #9cc2fb; border-radius: var(--radius); background: var(--brand-soft); }
.short-plan + .short-plan { margin-top: 12px; }
.short-main b { font-size: 18px; color: var(--ink); }
.short-tag { display: inline-block; margin-left: 10px; padding: 2px 10px; border-radius: 999px; background: #fff; color: var(--brand-dark); font-size: 12px; font-weight: 600; vertical-align: 2px; }
.short-main p { margin-top: 6px; color: var(--sub); font-size: 14px; line-height: 1.7; }
.short-price { flex: none; color: var(--brand-dark); }
.short-price b { font-size: 30px; }
.short-price small { color: var(--sub); }
@media (max-width: 560px) {
  .short-plan { flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px; }
}
/* 套餐有几档就排几列，居中 */
.prices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0 auto; }
.price { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 18px; background: #fff; position: relative; }
.price-action { margin-top: auto; padding-top: 18px; }
.price-action .btn { width: 100%; min-height: 40px; }
.price-loading .btn { margin: 8px 3px 0; }
.price.hot { border-color: var(--brand); box-shadow: var(--shadow); }
@media (hover: hover) and (pointer: fine) {
  .prices > .price { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
  .prices > .price:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: var(--shadow); }
}
@media (prefers-reduced-motion: reduce) {
  .prices > .price { transition: none; }
  .prices > .price:hover { transform: none; }
}
.price .badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.price h3 { font-size: 18px; color: var(--ink); }
.price .amount { margin: 12px 0 4px; color: var(--ink); }
.price .amount b { font-size: 42px; font-weight: 900; }
.price .amount small { color: var(--muted); font-size: 15px; }
.price .per { min-height: 3.2em; line-height: 1.6; font-size: 13px; color: var(--muted); }
.price ul { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.price li { list-style: none; display: flex; gap: 8px; align-items: center; padding: 6px 0; font-size: 15px; }
.price li svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
.price li.no { color: var(--muted); }
.price li.no svg { color: var(--muted); }
.price-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 24px; }
@media (max-width: 1000px) { .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 680px; } }
@media (max-width: 520px) {
  .prices { grid-template-columns: 1fr; max-width: 420px; }
  .price .per { min-height: 0; }
}

/* 套餐功能对比 */
.plan-compare { max-width: 960px; margin: 24px auto 0; }
.plan-compare h3 { text-align: center; color: var(--ink); font-size: 18px; }
.plan-compare-link { display: block; width: fit-content; margin: 6px auto 0; color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.plan-compare .plan-table-wrap { margin-top: 16px; }
.plan-compare .plan-table { min-width: 650px; }
.plan-table-wrap > .price-note { margin: 16px; }
.section-head.compact { margin-bottom: 26px; }
.section-head.compact .h2 { font-size: 28px; }
.plan-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(11, 27, 51, .05); }
.plan-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.plan-table th, .plan-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: center; font-size: 14px; line-height: 1.55; vertical-align: middle; }
.plan-table tbody tr:last-child > * { border-bottom: 0; }
.plan-table thead th { padding-block: 18px; background: #f4f8ff; color: var(--ink); font-size: 15px; }
.plan-table thead th:first-child, .plan-table th[scope="row"] { width: 27%; padding-left: 20px; color: var(--sub); text-align: left; font-weight: 600; }
.plan-table th[scope="row"] { background: #fbfcfe; }
.plan-table .plan-table-group th { padding: 8px 20px; background: #edf4ff; color: var(--brand-dark); text-align: left; font-size: 13px; }
.plan-table .plan-table-price td { color: var(--ink); font-size: 17px; font-weight: 750; font-variant-numeric: tabular-nums; }
.plan-table .plan-included { color: var(--brand-dark); font-weight: 600; white-space: nowrap; }
.plan-table .plan-included span { color: var(--brand); }
.plan-table .muted { color: var(--muted); }
.plan-table .plan-hot { background: #f1f6ff; }
.plan-table thead .plan-hot { background: var(--brand-soft); color: var(--brand-dark); }
.plan-recommended { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: #fff; font-size: 11px; vertical-align: middle; }
.plan-chooser { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 18px; }
.plan-choice { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.plan-choice b { color: var(--ink); font-size: 16px; }
.plan-choice p { margin-top: 5px; color: var(--sub); font-size: 14px; }
.plan-choice.hot { border-color: rgba(11, 107, 240, .35); background: var(--brand-soft); }
@media (max-width: 560px) {
  .section-head.compact .h2 { font-size: 24px; }
  .plan-table th, .plan-table td { padding: 12px 8px; font-size: 12px; overflow-wrap: anywhere; }
  .plan-table thead th { font-size: 14px; }
  .plan-table thead th:first-child, .plan-table th[scope="row"] { position: sticky; left: 0; padding-left: 12px; box-shadow: 1px 0 var(--line); }
  .plan-chooser { grid-template-columns: 1fr; }
}

/* 完整模板页 */
.template-page { padding-top: 56px; }
.template-notice { max-width: 760px; margin: 0 auto 28px; padding: 14px 18px; border: 1px solid rgba(11, 107, 240, .22); border-radius: 12px; background: var(--brand-soft); color: #244b7d; font-size: 14px; text-align: center; }
.template-filters { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.template-filter { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--sub); font: inherit; font-size: 14px; cursor: pointer; }
.template-filter:hover, .template-filter.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; }
.template-card[hidden] { display: none; }

/* 承诺 + 常见问题 */
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 56px; }
.promise div { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.promise b { display: block; font-size: 17px; color: var(--ink); margin-bottom: 6px; }
.promise p { font-size: 14px; color: var(--sub); }
@media (max-width: 760px) { .promise { grid-template-columns: 1fr; } }
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 22px; line-height: 1; }
.faq details[open] > summary::after { content: "−"; }
.faq details p { color: var(--sub); margin-top: 10px; font-size: 15px; }

/* 底部号召 */
.final { border-radius: 28px; padding: 56px; background: linear-gradient(140deg, #0d3c9e, #0a1f4d); color: #e8f0ff; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.final h2 { font-size: 34px; color: #fff; line-height: 1.3; }
.final p { margin-top: 12px; opacity: .85; font-size: 17px; }
.mp-code { background: #fff; color: var(--ink); border-radius: 20px; padding: 18px; text-align: center; width: 210px; }
.mp-code .ph { width: 174px; height: 174px; border-radius: 16px; margin: 0 auto 10px; background: var(--bg-soft); border: 1px dashed var(--line); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: var(--sub); line-height: 1.6; }
.mp-code img { width: 174px; height: 174px; margin: 0 auto 10px; }
.mp-code b { font-size: 15px; }
.mp-code span { display: block; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .final { grid-template-columns: 1fr; padding: 36px 24px; text-align: center; } .final h2 { font-size: 26px; } .mp-code { margin: 0 auto; } }

/* 页脚 */
.footer { padding: 48px 0 36px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); margin-top: 96px; }
/* 页脚：整体居中，导航链接在上，品牌、公司名称和备案号在下 */
.footer .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.footer .wrap > div:last-child { order: -1; }
.footer .logo { justify-content: center; }
.footer a:hover { color: var(--ink); }
.footer .links { display: flex; justify-content: center; gap: 10px 22px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--line); max-width: 820px; } /* 限宽让两行链接数接近，不剩一个孤零零的在第二行 */
.footer .legal { margin-top: 8px; font-size: 13px; }
.footer .legal:empty { display: none; }
.footer .legal a { white-space: nowrap; }
.footer .legal .psb { display: inline; }
.footer .legal .psb img { display: inline-block; width: 16px; height: 16px; margin-right: 4px; vertical-align: -3px; }

/* 全站悬浮客服 */
.contact-float { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; }
/* 圆形图标按钮：悬停时左侧浮出"联系客服"，打开后图标变成关闭 */
.contact-toggle { position: relative; display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; background: linear-gradient(145deg, #2f86ff, var(--brand) 55%, var(--brand-dark)); color: #fff; box-shadow: 0 10px 26px rgba(11, 107, 240, .32), inset 0 1px 0 rgba(255, 255, 255, .25); cursor: pointer; transition: transform .2s, box-shadow .2s; }
.contact-toggle:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(11, 107, 240, .4), inset 0 1px 0 rgba(255, 255, 255, .25); }
.contact-toggle:focus-visible { outline: 3px solid var(--brand-soft); outline-offset: 3px; }
.contact-toggle svg { grid-area: 1 / 1; width: 26px; height: 26px; transition: opacity .2s, transform .25s; }
.contact-toggle .ic-close { width: 22px; height: 22px; opacity: 0; transform: rotate(-90deg) scale(.6); }
.contact-float.open .contact-toggle .ic-chat { opacity: 0; transform: rotate(90deg) scale(.6); }
.contact-float.open .contact-toggle .ic-close { opacity: 1; transform: none; }
.contact-tip { position: absolute; right: calc(100% + 12px); top: 50%; padding: 7px 12px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transform: translate(6px, -50%); transition: opacity .2s, transform .2s; }
.contact-tip::after { content: ""; position: absolute; left: 100%; top: 50%; margin-top: -5px; border: 5px solid transparent; border-left-color: var(--ink); }
.contact-toggle:hover .contact-tip { opacity: 1; transform: translate(0, -50%); }
.contact-float.open .contact-tip { display: none; }
.contact-panel { position: absolute; right: 0; bottom: 70px; width: 320px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 20px 55px rgba(11, 27, 51, .2); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(10px) scale(.98); transform-origin: right bottom; transition: opacity .2s, transform .2s, visibility .2s; }
.contact-float.open .contact-panel { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.contact-close { position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font: 24px/32px Arial, sans-serif; cursor: pointer; }
.contact-close:hover { background: var(--bg-soft); color: var(--ink); }
.contact-title { padding-right: 34px; color: var(--ink); font-size: 20px; font-weight: 800; }
.contact-desc { margin-top: 6px; color: var(--sub); font-size: 14px; line-height: 1.65; }
.contact-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: var(--bg-soft); font-size: 14px; }
.contact-row span { color: var(--sub); }
.contact-row strong { color: var(--ink); font-size: 16px; user-select: all; }
.contact-qr { width: 168px; height: 168px; margin: 18px auto 0; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.contact-qr svg { display: block; width: 100%; height: 100%; }
.contact-qr-tip { margin-top: 10px; color: var(--ink); font-size: 14px; font-weight: 600; text-align: center; }
.contact-copy { display: flex; align-items: center; justify-content: center; margin-top: 18px; width: 100%; height: 44px; margin-top: 10px; border: 0; border-radius: 10px; background: var(--brand); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.contact-copy:hover { background: var(--brand-dark); }
.contact-email { display: block; margin-top: 12px; color: var(--brand-dark); font-size: 13px; text-align: center; overflow-wrap: anywhere; }
.contact-email:hover { text-decoration: underline; }
.contact-note { margin-top: 12px; color: var(--muted); font-size: 12px; text-align: center; }
@media (max-width: 560px) {
  .contact-float { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
  .contact-panel { width: min(330px, calc(100vw - 24px)); }
  .contact-toggle { width: 52px; height: 52px; }
  .contact-panel { bottom: 64px; }
  .contact-tip { display: none; }
}

/* 文章页 / 工具页 */
.page-head { padding: 64px 0 32px; background: radial-gradient(700px 300px at 90% -20%, rgba(11, 107, 240, .12), transparent 60%); }
.page-head h1 { font-size: 40px; color: var(--ink); font-weight: 900; line-height: 1.25; }
.page-head p { font-size: 18px; color: var(--sub); margin-top: 12px; max-width: 720px; }
@media (max-width: 760px) { .page-head h1 { font-size: 30px; } .page-head p { font-size: 16px; } }
.article { max-width: 780px; }
.article h2 { font-size: 26px; color: var(--ink); margin: 48px 0 14px; padding-top: 12px; scroll-margin-top: 80px; }
.article h3 { font-size: 19px; color: var(--ink); margin: 24px 0 8px; }
.article p { margin: 10px 0; }
.article ul, .article ol { margin: 10px 0 10px 22px; }
.article li { margin: 6px 0; }
.article .tip { background: var(--amber-soft); border-left: 4px solid var(--amber); border-radius: 8px; padding: 14px 18px; margin: 18px 0; color: #6b4a0f; }
.article .note { background: var(--brand-soft); border-left: 4px solid var(--brand); border-radius: 8px; padding: 14px 18px; margin: 18px 0; color: #0a3a8c; }
.article a:not(.btn) { color: var(--brand-dark); }
.more-links { margin-top: 28px; font-size: 15px; color: var(--sub); }
.scene .more { display: inline-block; margin-top: 8px; font-size: 14px; color: var(--brand-dark); }
.scene .more:hover { text-decoration: underline; }
.toc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.toc a { font-size: 14px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--sub); }
.toc a:hover { border-color: var(--brand); color: var(--brand-dark); }
.cta-box { margin: 48px 0 0; border-radius: var(--radius); padding: 28px; background: var(--bg-soft); display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.cta-box b { font-size: 19px; color: var(--ink); }
.cta-box p { margin: 4px 0 0; color: var(--sub); font-size: 15px; }
.cta-box .cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn[hidden] { display: none; }

/* 生成器 */
.gen { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.panel label { display: block; font-weight: 700; color: var(--ink); margin: 18px 0 8px; font-size: 15px; }
.panel label:first-child { margin-top: 0; }
.panel label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: 14px; color: var(--muted); cursor: pointer; }
.panel label.check input { width: 16px; height: 16px; margin: 0; }
.panel textarea, .panel input[type=text] { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 15px; outline: none; resize: vertical; }
.panel textarea:focus, .panel input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 107, 240, .12); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; cursor: pointer; background: #fff; color: var(--sub); }
.chip.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.colors { display: flex; gap: 10px; }
.colors button { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.colors button.on { box-shadow: 0 0 0 2px var(--brand); }
.preview { text-align: center; position: sticky; top: 88px; }
.preview .qr-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; align-items: center; justify-content: center; min-height: 300px; }
.preview .qr-box svg, .preview .qr-box img { width: 240px; height: 240px; }
.preview .actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.preview .warn { margin-top: 18px; text-align: left; }
.empty { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .gen { grid-template-columns: 1fr; } .preview { position: static; } }

/* 电脑、手机显示不同的入口 */
.is-mobile .only-desktop, .is-desktop .only-mobile { display: none !important; }
.btn.ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .6); }
.btn.ghost-light:hover { background: rgba(255, 255, 255, .12); box-shadow: none; }
.link-light { color: rgba(232, 240, 255, .8); font-size: 14px; text-decoration: underline; }
.link-light:hover { color: #fff; }

/* 免费生成器：下载后的活码提示 */
.after-dl { display: none; margin-top: 16px; border-radius: var(--radius); padding: 18px 20px; background: var(--brand-soft); border: 1px solid rgba(11, 107, 240, .25); }
.after-dl.show { display: block; animation: pop .25s ease-out; }
.after-dl b { color: var(--ink); font-size: 16px; }
.after-dl p { margin: 6px 0 12px; color: var(--sub); font-size: 14px; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
button.chip { font: inherit; }

/* 键盘操作时看得见焦点 */
a:focus-visible, button:focus-visible, summary:focus-visible, textarea:focus-visible, input:focus-visible { outline: 3px solid rgba(11, 107, 240, .45); outline-offset: 2px; border-radius: 6px; }

/* 系统设置了"减少动画"：关掉循环动画和过渡 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* 协议页 */
.doc-meta { color: var(--muted); font-size: 14px; margin-top: 8px; }
.mp-code .ph span { display: inline; font-size: inherit; color: inherit; }
@media (max-width: 760px) { .final .cta { justify-content: center; } }

/* ---------- 首屏下：普通码和活码一条短对比 ---------- */
.vs-strip { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.vs-row { display: flex; align-items: center; gap: 20px; padding-top: 22px; padding-bottom: 22px; font-size: 15px; color: var(--sub); }
.vs-row > div { flex: 1; }
.vs-row b { display: block; font-size: 16px; color: var(--ink); margin-bottom: 2px; }
.vs-bad b { color: #c2410c; }
.vs-good b { color: var(--brand-dark); }
.vs-row .vs-arrow { flex: none; font-size: 24px; color: var(--muted); }
@media (max-width: 760px) { .vs-row { flex-direction: column; align-items: stretch; gap: 8px; text-align: left; } .vs-row .vs-arrow { transform: rotate(90deg); align-self: center; } }

/* ---------- 示例码弹窗（电脑上点「扫码看看实际效果」） ---------- */
.sample-mask { position: fixed; inset: 0; background: rgba(10, 20, 40, .5); display: flex; align-items: center; justify-content: center; z-index: 60; padding: 16px; }
.sample-box { background: #fff; border-radius: 20px; padding: 28px 28px 22px; width: 320px; max-width: 100%; text-align: center; position: relative; box-shadow: var(--shadow); }
.sample-box h3 { font-size: 18px; color: var(--ink); }
.sample-box .sample-tag { display: inline-block; font-size: 12px; color: var(--brand-dark); background: var(--brand-soft); border-radius: 999px; padding: 2px 10px; margin-top: 6px; }
.sample-box .sample-qr { width: 200px; height: 200px; margin: 18px auto 12px; }
.sample-box .sample-qr img, .sample-box .sample-qr canvas { width: 100%; height: 100%; }
.sample-box p { font-size: 14px; color: var(--sub); }
.sample-box a.sample-open { display: inline-block; margin-top: 10px; font-size: 14px; color: var(--brand-dark); text-decoration: underline; }
.sample-box .sample-close { position: absolute; right: 12px; top: 10px; border: none; background: none; font-size: 22px; color: var(--muted); cursor: pointer; line-height: 1; }
.nowrap { white-space: nowrap; }
@media (max-width: 400px) { .nowrap { white-space: normal; } }
/* 导航里给印刷厂用的入口：细竖线隔开，和商家用的链接区分；手机上不显示（页脚有） */
.nav-links .nav-sep { width: 1px; height: 16px; background: var(--line); }
/* 在小程序 web-view 里打开时（site.js 给 html 加 in-mp）不显示商家登录 */
.in-mp .nav-login { display: none !important; }
@media (max-width: 760px) { .nav-links .nav-sep { display: none; } }

/* 导航「二维码工具」下拉 */
.nav-drop { position: relative; }
.nav-drop-btn { font: inherit; color: inherit; background: none; border: 0; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.nav-drop-btn::after { content: ""; display: inline-block; margin-left: 6px; vertical-align: 3px; border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0; }
.nav-drop:hover .nav-drop-btn, .nav-drop-btn:focus-visible, .nav-drop.open .nav-drop-btn { color: var(--brand-dark); background: var(--brand-soft); }
.nav-drop-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 150px; padding: 6px; margin-top: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.nav-drop-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu, .nav-drop.open .nav-drop-menu { display: block; }
/* 按 Escape 收起后，即使鼠标还在上面、焦点还在按钮上也不显示，移出或失焦后恢复 */
.nav-drop.dismissed .nav-drop-menu { display: none; }
.nav-drop-menu a { display: block; white-space: nowrap; }
@media (max-width: 760px) {
  .nav-drop-btn { display: none; }
  .nav-links.is-open .nav-drop-btn { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; width: 100%; color: var(--muted); font-size: 13px; cursor: default; }
  .nav-links.is-open .nav-drop-btn::after { display: none; }
  .nav-links.is-open .nav-drop-menu { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 0 12px; margin: 0; }
}

/* 二维码解析器 */
.drop { border: 2px dashed var(--line); border-radius: var(--radius); min-height: 260px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; cursor: pointer; color: var(--sub); line-height: 1.9; transition: border-color .2s, background .2s; }
.drop:hover, .drop.over, .drop:focus-visible { border-color: var(--brand); background: var(--brand-soft); outline: none; }
.drop b { color: var(--brand-dark); }
.drop img { max-width: 100%; max-height: 320px; border-radius: 8px; }
.muted-sm { color: var(--muted); font-size: 13px; }
.dec-note { color: var(--muted); font-size: 13px; margin-top: 12px; }
.result .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.dec-type { display: inline-block; font-size: 13px; color: var(--brand-dark); background: var(--brand-soft); border-radius: 999px; padding: 2px 10px; margin-bottom: 10px; }
.dec-text { background: #f7f9fc; border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-size: 15px; color: var(--ink); word-break: break-all; white-space: pre-wrap; max-height: 320px; overflow: auto; }
.dec-warn { margin-top: 14px; font-size: 13px; color: #a15c07; background: #fff7e8; border-radius: 10px; padding: 10px 12px; }
.dec-ygm { margin-top: 14px; font-size: 13px; color: var(--brand-dark); background: var(--brand-soft); border-radius: 10px; padding: 10px 12px; }
.dec-fail { color: #c2410c; font-size: 15px; }

/* 导航按钮：统一尺寸与层级 */
.nav-links { gap: 6px; font-size: 14px; font-weight: 500; }
.nav-links > a:not(.btn), .nav-drop-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 38px; padding: 0 12px; border: 1px solid transparent;
  border-radius: 10px; line-height: 1.4; white-space: nowrap;
  transition: color .18s, background .18s, border-color .18s, box-shadow .18s;
}
.nav-links > a:not(.btn):hover, .nav-drop:hover .nav-drop-btn,
.nav-drop.open .nav-drop-btn { background: #eef5ff; border-color: #d9e8ff; color: var(--brand-dark); }
/* 右上角只放一个「登录 / 注册」：深灰小按钮，不抢导航文字 */
.nav-links > .btn { height: 34px; padding: 0 16px; margin-left: 8px; border-radius: 6px; background: #4a505c; color: #fff; font-weight: 600; box-shadow: none; }
.nav-links > .btn:hover { background: #333842; box-shadow: none; transform: none; }
.nav-links > .nav-login { background: var(--brand-soft); color: var(--brand-dark); }
.nav-links > .nav-login:hover, .nav-links > .nav-login:focus-visible { background: #d9e8ff; color: var(--brand-dark); }
.nav-links .nav-sep { margin: 0 6px; height: 16px; }
.nav-links a:focus-visible, .nav-drop-btn:focus-visible, .nav-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.nav-drop-btn::after { vertical-align: initial; margin-left: 7px; }
.nav-drop-menu { min-width: 180px; padding: 8px; margin-top: 8px; border-radius: 14px; box-shadow: 0 12px 32px rgba(11,27,51,.12); }
.nav-drop-menu a { padding: 9px 12px; }
@media (max-width: 1000px) and (min-width: 761px) {
  .nav-links { gap: 3px; font-size: 13px; }
  .nav-links > a:not(.btn), .nav-drop-btn { padding: 0 7px; }
  .nav-links > .btn { padding: 0 12px; }
  .nav-links .nav-sep { margin: 0 2px; }
}
@media (max-width: 760px) {
  .nav-links > a:not(.btn), .nav-drop-btn { display: none; }
  .nav-links.is-open > a:not(.btn) { justify-content: flex-start; }
  .nav-links.is-open { gap: 7px; }
  .nav-links.is-open > .btn { min-height: 44px; margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-links a, .nav-drop-btn { transition: none; }
  .nav-links > .btn:hover { transform: none; }
}

.nav-links a[aria-current="page"] { color: var(--brand-dark); background: var(--brand-soft); border-color: #d9e8ff; }

/* 导航下拉每项下面的一句说明 */
.nav-drop-menu a small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--muted); }
.nav-drop-menu a:hover small { color: inherit; opacity: .8; }

/* 首屏主按钮下的轻量工具入口（不占顶部导航） */
.hero-tools { margin-top: 14px; font-size: 14px; color: var(--muted); }
.hero-tools a { color: var(--brand-dark); text-decoration: none; }
.hero-tools a:hover { color: var(--brand); }
.hero-tools span { margin: 0 8px; }
@media (max-width: 760px) { .hero-tools { font-size: 13px; } .hero-tools a { display: inline-block; padding: 6px 0; } }

/* 价格区「联系客服购买」：在线支付开通前，购买走客服 */
.buy-kf { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 16px; margin: 20px auto 0; padding: 14px 18px; max-width: 720px; border-radius: 12px; background: #fff; border: 1px solid #e3eaf5; color: #3a4556; font-size: 15px; text-align: center; }

/* 首页五个产品入口 */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.product { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; scroll-margin-top: 80px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.product:hover, .product:target { border-color: var(--brand); box-shadow: var(--shadow); }
.product .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-dark); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.product .ico svg { width: 24px; height: 24px; }
.product h3 { font-size: 19px; color: var(--ink); margin-bottom: 6px; }
.product p { color: var(--sub); font-size: 14px; }
.product ul { margin: 10px 0 16px; font-size: 13px; color: var(--sub); }
.product li { list-style: none; padding-left: 16px; position: relative; margin-top: 4px; }
.product li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.product-link { margin-top: auto; font-weight: 600; color: var(--brand-dark); }
.product-link:hover, .product-link:focus-visible { text-decoration: underline; }
.products-tip { margin: 24px auto 0; max-width: 760px; padding: 14px 18px; border-radius: 12px; background: var(--brand-soft); color: var(--sub); font-size: 14px; text-align: center; }
.products-tip b { color: var(--ink); margin-right: 6px; }
.plan-all { text-align: center; margin: 0 0 8px; color: var(--sub); }
.plan-all b { color: var(--brand-dark); }
@media (prefers-reduced-motion: reduce) { .product { transition: none; } }
.product-tag { margin-top: auto; align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--brand-dark); background: var(--brand-soft); padding: 3px 10px; border-radius: 999px; }
/* 套餐对比表 */
.plan-compare .plan-table { min-width: 720px; }
.plan-table thead th { vertical-align: top; padding: 20px 10px 18px; background: #fff; border-bottom: 2px solid var(--line); position: relative; }
.plan-table thead th.cmp-corner { vertical-align: bottom; color: var(--muted); font-size: 12px; font-weight: 500; }
.plan-table .cmp-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.plan-table .cmp-price { margin-top: 6px; color: var(--ink); font-variant-numeric: tabular-nums; }
.plan-table .cmp-price b { font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.plan-table .cmp-price small { color: var(--muted); font-size: 13px; font-weight: 500; }
.plan-table .cmp-tag { min-height: 3.2em; margin: 6px 0 12px; color: var(--sub); font-size: 12px; font-weight: 400; line-height: 1.6; }
.plan-table thead .btn { width: 100%; max-width: 120px; }
.plan-table thead .plan-hot { background: var(--brand-soft); box-shadow: inset 0 3px var(--brand); }
.plan-table thead .plan-hot .cmp-name { color: var(--brand-dark); }
.plan-table .plan-recommended { position: absolute; top: 8px; right: 8px; margin: 0; background: var(--brand); color: #fff; font-weight: 600; }
.plan-table th[scope="row"] { font-weight: 600; color: var(--ink); }
.plan-table th[scope="row"] small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 400; }
.plan-table td { color: var(--sub); }
.plan-table td b { color: var(--ink); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.plan-table tbody tr:not(.plan-table-group):hover > * { background: #f7faff; }
.plan-table .cmp-yes { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); font-size: 13px; font-weight: 800; }
.plan-table .cmp-no { color: var(--muted); font-size: 13px; }
/* 免费体验卡：绿色系，和蓝色的推荐档区分，突出“先用起来” */
.price.free { background: linear-gradient(180deg, var(--brand-soft), #fff 64%); }
.price.free .btn { color: var(--brand-dark); border-color: #c6dafa; background: var(--brand-soft); }
.price.free .btn:hover { background: #d9e8ff; }
.price.free .free-note { display: block; margin-bottom: 8px; text-align: center; color: var(--muted); font-size: 12px; }

/* ===== 五大功能卡（首页） ===== */
.p-huoma { --c: #0b6bf0; --cs: #e8f1fe; }
.p-record { --c: #0e9488; --cs: #e3f6f3; }
.p-form { --c: #6d4fe0; --cs: #efebfd; }
.p-exam { --c: #e07a0b; --cs: #fdf1e3; }
.p-survey { --c: #d6407a; --cs: #fce9f0; }
.products-main { grid-template-columns: 1.25fr repeat(2, 1fr); grid-auto-rows: 1fr; gap: 18px; }
.products-main .p-huoma { grid-row: span 2; background: linear-gradient(160deg, var(--cs) 0%, #fff 60%); }
.products-main .p-huoma p { font-size: 15px; }
.products-main .product { padding: 22px; border-radius: 18px; }
.products-main .product:hover { transform: translateY(-3px); border-color: var(--c); box-shadow: var(--shadow); }
.product-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.products-main .product .ico { margin: 0; background: var(--cs); color: var(--c); }
.product-badge { padding: 3px 10px; border-radius: 999px; background: var(--c); color: #fff; font-size: 12px; font-weight: 700; }
.products-main .product p { line-height: 1.7; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 18px; }
.chips span { padding: 2px 10px; border-radius: 999px; background: var(--cs); color: var(--c); font-size: 12px; font-weight: 600; }
.product-actions { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.product-actions .btn { background: var(--c); border-color: var(--c); color: #fff; }
.product-actions .btn:hover { filter: brightness(.92); }
.product-more { color: var(--sub); font-size: 14px; font-weight: 600; }
.product-more:hover, .product-more:focus-visible { color: var(--c); text-decoration: underline; }
@media (max-width: 900px) { .products-main { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; } .products-main .p-huoma { grid-row: auto; grid-column: 1 / -1; } }
@media (max-width: 560px) { .products-main { grid-template-columns: 1fr; } }

/* ===== 功能介绍页 ===== */
.fp-hero { padding: 40px 0 56px; background: linear-gradient(180deg, var(--cs, var(--brand-soft)) 0%, #fff 100%); }
.fp-hero-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.fp-back { display: inline-block; margin-bottom: 18px; color: var(--sub); font-size: 14px; }
.fp-back:hover { color: var(--c, var(--brand)); }
.fp .eyebrow, .demo-page .eyebrow { color: var(--c); background: #fff; }
.fp-hero h1 { margin: 14px 0 8px; font-size: clamp(28px, 3.5vw, 38px); font-weight: 800; line-height: 1.15; color: var(--ink); }
.fp-hero .fp-tagline { margin: 0 0 12px; font-size: clamp(20px, 2.5vw, 28px); font-weight: 700; line-height: 1.35; color: var(--brand-dark); }
.fp-hero .lead { max-width: 34em; }
.fp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.fp-actions .btn:not(.ghost) { background: var(--c); border-color: var(--c); }
.fp-note { margin-top: 12px; color: var(--muted); font-size: 13px; }
.fp-phone { justify-self: center; width: 260px; padding: 12px; border-radius: 36px; background: #0b1b33; box-shadow: var(--shadow-lg); }
.fp-screen { min-height: 400px; padding: 0 14px 18px; border-radius: 26px; background: #f6f8fb; overflow: hidden; }
.fp-bar { margin: 0 -14px 14px; padding: 26px 14px 14px; background: var(--c); color: #fff; font-weight: 700; font-size: 15px; }
.fp-row { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; padding: 12px; border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(11, 27, 51, .05); font-size: 13px; }
.fp-row b { color: var(--ink); }
.fp-row span { color: var(--c); font-weight: 600; }
.fp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.fp-card { padding: 22px; border: 1px solid var(--line); border-top: 3px solid var(--c); border-radius: 14px; background: #fff; }
.fp-card h3 { color: var(--ink); font-size: 17px; margin-bottom: 6px; }
.fp-card p { color: var(--sub); font-size: 14px; line-height: 1.7; }
.fp .step::before { background: var(--c); box-shadow: none; }
.fp-faq { max-width: 760px; }
.fp-faq h2 { margin-bottom: 16px; }
.fp-faq details { margin-top: 10px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.fp-faq summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.fp-faq details p { margin-top: 8px; color: var(--sub); }
.fp-faq .more-links { margin-top: 24px; }
@media (max-width: 800px) { .fp-hero-in { grid-template-columns: 1fr; } .fp-phone { width: 230px; } .fp-screen { min-height: 340px; } }

/* ===== 演示页 ===== */
.demo-hero { padding-bottom: 24px; --cs: var(--brand-soft); }
.demo-hero h1 { font-size: clamp(26px, 4vw, 38px); }
.demo-body { padding-top: 24px; }
.demo-layout { display: grid; grid-template-columns: 240px 320px 1fr; gap: 32px; align-items: start; }
.demo-layout nav { display: grid; gap: 10px; }
.demo-layout nav a { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--text); }
.demo-layout nav a .ico { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--cs); color: var(--c); }
.demo-layout nav a .ico svg { width: 20px; height: 20px; }
.demo-layout nav a small { display: block; color: var(--muted); font-size: 12px; }
.demo-layout nav a:hover { border-color: var(--c); }
.demo-layout nav a[aria-current] { border-color: var(--c); background: var(--cs); box-shadow: inset 3px 0 var(--c); }
.demo-phone { padding: 12px; border-radius: 36px; background: #0b1b33; box-shadow: var(--shadow-lg); }
.demo-screen { min-height: 520px; padding: 18px 16px; border-radius: 26px; background: #f6f8fb; font-size: 14px; }
.demo-panel { display: none; }
.demo-panel.active, .demo-panel:target { display: block; }
.demo-panel h2 { font-size: 18px; color: var(--ink); margin-bottom: 4px; }
.demo-panel > p { color: var(--sub); font-size: 13px; }
.demo-panel form, .demo-panel ol { margin-top: 14px; }
.demo-panel ol { list-style: none; padding: 0; }
.demo-panel ol li { margin-top: 10px; padding: 12px; border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(11, 27, 51, .05); }
.demo-panel label { display: block; margin-bottom: 12px; padding: 12px; border-radius: 12px; background: #fff; color: var(--ink); }
.demo-panel select, .demo-panel input[type="text"] { display: block; width: 100%; margin-top: 6px; padding: 8px 10px; border: 1px solid #c8d3e2; border-radius: 8px; background: #fff; font: inherit; }
.demo-panel input[type="checkbox"] { margin-right: 6px; }
.demo-panel .btn { width: 100%; }
.demo-result { margin-top: 14px; padding: 14px; border-radius: 12px; background: #e9f8ef; color: #0b7a44; }
.demo-result meter { width: min(140px, 45%); vertical-align: middle; }
.demo-side { padding: 24px; border-radius: 18px; background: var(--brand-soft); }
.demo-side h2 { font-size: 20px; color: var(--ink); margin-bottom: 8px; }
.demo-side p { color: var(--sub); margin-bottom: 16px; }
@media (max-width: 1000px) { .demo-layout { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } .demo-layout nav { grid-template-columns: 1fr 1fr; } .demo-layout nav a small { display: none; } }

/* ===== 首屏：五个产品轮流展示 ===== */
.demo-col { display: flex; flex-direction: column; gap: 18px; }
.demo .box { background: linear-gradient(160deg, var(--c), color-mix(in srgb, var(--c) 45%, #0b1b33)); transition: background .5s; }
.demo .face { display: flex; flex-direction: column; align-items: center; flex: 1; width: 100%; animation: demo-in .45s ease; }
.demo .face[hidden], .demo .sface[hidden] { display: none; }
.demo .sface { height: 100%; animation: demo-in .45s ease; }
.demo .screen .bar { color: var(--ink); }
.demo .screen .act b:first-child { border-color: var(--c); color: var(--c); }
.demo .screen .act b:last-child { background: var(--c); }
.demo .s-head { padding: 14px 12px; background: var(--cs); }
.demo .s-head b { display: block; font-size: 15px; color: var(--ink); }
.demo .s-head small { color: var(--c); font-weight: 600; }
.demo .s-list div, .demo .s-form label { display: block; margin: 8px; padding: 9px 12px; border-radius: 10px; background: #fff; }
.demo .s-list b { display: block; color: var(--ink); }
.demo .s-list small { color: var(--sub); }
.demo .s-list .warn { box-shadow: inset 3px 0 #e5484d; }
.demo .s-form label { display: flex; justify-content: space-between; color: var(--muted); }
.demo .s-form span { color: var(--ink); font-weight: 600; }
.demo .s-bars { margin: 8px; padding: 12px; border-radius: 10px; background: #fff; }
.demo .s-bars div { display: grid; grid-template-columns: 44px 1fr 34px; align-items: center; gap: 6px; padding: 7px 0; }
.demo .s-bars i { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--c) var(--w), #eef2f7 var(--w)); }
.demo .s-bars b { text-align: right; color: var(--ink); }
.demo-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; width: min(100%, 360px); margin-inline: auto; padding-inline: 6px; }
.demo-tabs button { min-width: 0; padding: 6px 2px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--sub); font: inherit; font-size: 14px; white-space: nowrap; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.demo-tabs button:hover { border-color: var(--c, var(--brand-dark)); color: var(--c, var(--brand-dark)); }
.demo-tabs button[aria-pressed="true"] { border-color: var(--c, var(--brand-dark)); background: var(--c, var(--brand-dark)); color: #fff; font-weight: 600; }
.demo-tabs button:focus-visible { outline: 2px solid var(--brand-dark); outline-offset: 2px; }
@keyframes demo-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .demo .face, .demo .sface { animation: none; } }
.hero-free { margin-top: 10px; color: var(--sub); font-size: 14px; }
.hero-free span { color: var(--brand-dark); font-weight: 700; }
/* 手机上首页模板区只留水果和说明书两张，其余去「查看全部活码模板」 */
@media (max-width: 640px) { .home-template-grid .template-card:nth-child(2), .home-template-grid .template-card:nth-child(3) { display: none; } }
/* 活码大卡中间放一个“扫出来是什么样”的小预览，填满留白 */
.huoma-scenes { margin: 4px 0 20px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.huoma-scenes h4 { margin: 0 0 4px; color: var(--brand-dark); font-size: 13px; }
.huoma-scenes dl { margin: 0; }
.huoma-scenes dl > div { display: grid; grid-template-columns: 5em minmax(0, 1fr); gap: 8px; padding: 8px 0; font-size: 13px; }
.huoma-scenes dl > div + div { border-top: 1px solid var(--line); }
.huoma-scenes dl > div:last-child { padding-bottom: 0; }
.huoma-scenes dt { font-weight: 700; color: var(--ink); }
.huoma-scenes dd { margin: 0; color: var(--sub); }
@media (max-width: 900px) { .products-main .p-huoma .product-actions { margin-top: 0; } }
.start-pc { margin-top: 16px; font-size: 14px; opacity: .9; }
.pc-only-note { align-self: center; padding: 10px 14px; border-radius: 10px; background: #fff; border: 1px dashed var(--line); color: var(--sub); font-size: 14px; }
.nav-drop-menu a[aria-current="page"] { background: transparent; color: var(--brand-dark); font-weight: 700; box-shadow: inset 3px 0 var(--brand); border-radius: 0 8px 8px 0; }
.nav-drop-menu a[aria-current="page"]:hover { background: var(--brand-soft); }
.nav-drop-menu a { position: relative; }
/* 按钮统一品牌蓝、场景标签统一中性色，只用图标区分五个产品 */
.product-actions .btn, .fp-actions .btn:not(.ghost) { background: var(--brand); border-color: var(--brand); color: #fff; filter: none; }
.product-actions .btn:hover, .fp-actions .btn:not(.ghost):hover { background: var(--brand-dark); border-color: var(--brand-dark); filter: none; }
.chips span { background: #eef2f7; color: var(--sub); }
.product-more:hover, .product-more:focus-visible { color: var(--brand-dark); }
/* 首屏轮播：大面积统一品牌蓝，产品色只留在屏幕里的小细节（得分、统计条、状态） */
.demo .box { background: linear-gradient(160deg, #1b5fd6, #0a2a6b); }
.demo .screen .act b:first-child { border-color: var(--brand); color: var(--brand); }
.demo .screen .act b:last-child { background: var(--brand); }
.demo .s-head { background: #eef4ff; }
.demo-tabs button { background: #eef2f7; border-color: transparent; }
.demo-tabs button:hover { border-color: var(--brand); color: var(--brand-dark); }
.demo-tabs button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
/* 功能介绍页：和首页一致，大面积统一品牌蓝，产品色只留在眉标、手机里的状态文字和场景卡顶部细线 */
.fp-hero { background: linear-gradient(180deg, #eef4ff 0%, #fff 100%); }
.fp-bar { background: var(--brand); }
.fp .step::before { background: var(--brand); }
.fp-card { border-top: 1px solid var(--line); box-shadow: inset 0 3px 0 -1px var(--c); }
.fp-back:hover { color: var(--brand-dark); }
/* 产品页面包屑：单独一行，说明“我在哪、怎么回去” */
.fp-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 16px; color: var(--muted); font-size: 13px; }
.fp-crumb a { color: var(--sub); }
.fp-crumb a:hover { color: var(--brand-dark); text-decoration: underline; }
.fp-crumb [aria-current] { color: var(--ink); }
/* 产品页顶部的产品名：放大成胶囊标签，前面一个产品色圆点 */
/* 产品页公共组件统一品牌蓝，产品色只留在顶部产品名前的圆点 */
.fp .section .eyebrow, .demo-page .eyebrow { color: var(--brand-dark); background: var(--brand-soft); }
.fp-card { box-shadow: none; border: 1px solid var(--line); }
.fp-row span { color: var(--brand-dark); }

/* ===== 产品页右侧手机预览：同一外框，各自展示最能说明价值的画面 ===== */
.fp-screen { padding-bottom: 16px; font-size: 13px; }
.fp-hero-img { height: 96px; margin: 0 0 10px; padding: 10px 12px; display: flex; align-items: flex-end; border-radius: 12px; background: linear-gradient(135deg, #d6e8ff, #8fbcff); color: #0a2a6b; font-weight: 800; }
.fp-kv { display: flex; justify-content: space-between; padding: 9px 12px; margin-top: 6px; border-radius: 10px; background: #fff; }
.fp-kv span { color: var(--muted); }
.fp-kv b { color: var(--ink); }
.fp-kv s { color: var(--muted); font-weight: 400; margin-right: 4px; }
.fp-changed { box-shadow: inset 0 0 0 1.5px var(--brand); }
.fp-changed b { color: var(--brand-dark); }
.fp-toast { margin-top: 12px; padding: 8px 10px; border-radius: 10px; background: #e9f8ef; color: #0b7a44; font-size: 12px; font-weight: 600; text-align: center; }
.fp-sum { margin-bottom: 10px; padding: 10px 12px; border-radius: 10px; background: #fff; }
.fp-sum b { display: block; color: var(--ink); }
.fp-sum small { color: var(--brand-dark); font-weight: 600; }
.fp-line { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid #d9e2ee; }
.fp-line li { position: relative; margin-bottom: 10px; padding: 9px 12px; border-radius: 10px; background: #fff; }
.fp-line li::before { content: ""; position: absolute; left: -21px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: #c8d3e2; border: 2px solid #f6f8fb; }
.fp-line li.ok::before { background: #0f9d58; }
.fp-line li.bad::before { background: #e5484d; }
.fp-line li.bad { box-shadow: inset 3px 0 #e5484d; }
.fp-line b { display: block; color: var(--ink); }
.fp-line small { color: var(--sub); }
.fp-field { margin-bottom: 8px; padding: 9px 12px; border-radius: 10px; background: #fff; }
.fp-field > span { display: block; margin-bottom: 6px; color: var(--ink); font-weight: 600; }
.fp-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.fp-opts i { padding: 3px 10px; border: 1px solid #d9e2ee; border-radius: 999px; font-style: normal; color: var(--sub); }
.fp-opts i.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.fp-input { padding: 6px 10px; border: 1px solid #d9e2ee; border-radius: 8px; color: var(--muted); }
.fp-submit { margin-top: 12px; padding: 10px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; text-align: center; }
.fp-score { margin-bottom: 10px; padding: 14px 12px; border-radius: 12px; background: #fff; text-align: center; }
.fp-score b { display: block; font-size: 40px; line-height: 1.1; color: var(--brand-dark); }
.fp-score small { color: var(--sub); }
.fp-ans { margin-bottom: 8px; padding: 9px 12px; border-radius: 10px; background: #fff; }
.fp-ans b { display: block; }
.fp-ans.ok b { color: #0b7a44; }
.fp-ans.bad { box-shadow: inset 3px 0 #e5484d; }
.fp-ans.bad b { color: #c9353a; }
.fp-ans small { color: var(--sub); }
.fp-bars { padding: 12px; border-radius: 10px; background: #fff; }
.fp-bars div { display: grid; grid-template-columns: 48px 1fr 36px; align-items: center; gap: 8px; padding: 7px 0; }
.fp-bars i { height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--brand) var(--w), #eef2f7 var(--w)); }
.fp-bars b { text-align: right; color: var(--ink); }
.fp-quote { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #fff; color: var(--sub); font-size: 12px; }
/* 手机上演示按钮是主按钮；电脑上它是次要按钮 */
.is-desktop .fp-actions .fp-demo { background: #fff; border-color: var(--line); color: var(--ink); }
.is-desktop .fp-actions .fp-demo:hover { border-color: var(--brand); color: var(--brand-dark); background: #fff; }
.fp-pc-tip { margin-top: 10px; color: var(--muted); font-size: 13px; }

/* 使用教程：目录按功能分组，正文用分隔标题区分活码和其他四个功能 */
.toc-groups { display: grid; gap: 10px; }
.toc-groups > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.toc-groups b { min-width: 7em; color: var(--ink); font-size: 14px; }
.article .guide-part { margin: 48px 0 -8px; padding: 8px 14px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; }

/* 演示页：选中项统一品牌蓝；手机屏幕按内容高度；记录码改成时间线 */
.demo-layout nav a[aria-current] { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 3px 0 var(--brand); }
.demo-layout nav a:hover { border-color: var(--brand); }
.demo-screen { min-height: 0; }
.demo-panel ol.demo-line { padding-left: 14px; border-left: 2px solid #d9e2ee; }
.demo-panel ol.demo-line li { position: relative; }
.demo-panel ol.demo-line li::before { content: ""; position: absolute; left: -21px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: #c8d3e2; border: 2px solid #f6f8fb; }
.demo-panel ol.demo-line li:nth-child(1)::before { background: #0f9d58; }
.demo-panel ol.demo-line li:nth-child(2)::before { background: #e5484d; }
.demo-panel ol.demo-line li:nth-child(2) { box-shadow: inset 3px 0 #e5484d; }
.demo-hint { margin-top: 12px; padding: 10px 12px; border: 1px dashed #c8d3e2; border-radius: 10px; color: var(--muted); font-size: 12px; text-align: center; }
.demo-admin { margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid #d6e4fb; }
.demo-admin h3 { margin-bottom: 4px; color: var(--ink); font-size: 15px; }
.demo-admin p { margin: 0; }

/* 使用教程：五个功能同级入口 + 每节演示链接 + 页尾三种操作 */
.guide-entries { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; margin-top: 24px; }
.guide-entry { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--text); transition: border-color .2s, box-shadow .2s; }
.guide-entry:hover, .guide-entry:focus-visible { border-color: var(--brand); box-shadow: var(--shadow); }
.guide-entry .ico { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--cs); color: var(--c); }
.guide-entry .ico svg { width: 22px; height: 22px; }
.guide-entry b { display: block; color: var(--ink); }
.guide-entry small { display: block; color: var(--brand-dark); font-size: 13px; }
.guide-more { margin-top: 14px; color: var(--muted); font-size: 14px; }
.guide-more a { color: var(--brand-dark); }
.guide-more span { margin: 0 6px; }
.article .guide-demo { margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: var(--bg-soft); color: var(--sub); font-size: 14px; }
.article .guide-demo a { color: var(--brand-dark); font-weight: 600; }
.article h2 { scroll-margin-top: 80px; }
.guide-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; margin-top: 40px; }
.guide-action { display: block; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.guide-action:first-child { border-color: var(--brand); background: var(--brand-soft); }
.guide-action b { display: block; color: var(--brand-dark); }
.guide-action small { color: var(--sub); font-size: 13px; }
.guide-action:hover { border-color: var(--brand); }
@media (prefers-reduced-motion: reduce) { .guide-entry { transition: none; } }
.article .guide-demo { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.article .guide-demo .guide-top { margin-left: auto; color: var(--muted); font-weight: 400; font-size: 13px; }
.guide-entries { scroll-margin-top: 90px; }
@media (max-width: 640px) { .guide-entries { gap: 8px; margin-top: 16px; } .guide-entry { padding: 10px 12px; } .guide-entry .ico { width: 34px; height: 34px; } }

/* 演示页：单选题直接展示选项；右栏后台结果卡片，提交后高亮一下 */
.demo-q { margin: 0 0 12px; padding: 12px; border: 0; border-radius: 12px; background: #fff; }
.demo-q legend { float: left; width: 100%; margin-bottom: 8px; color: var(--ink); font-weight: 600; }
.demo-panel .demo-opt { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; padding: 8px 10px; border: 1px solid #d9e2ee; border-radius: 10px; background: #fff; font-size: 13px; cursor: pointer; }
.demo-panel .demo-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.demo-opt input { margin: 0; accent-color: var(--brand); }
.demo-admin-card { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: #fff; }
.demo-admin-card small { color: var(--muted); font-size: 12px; }
.demo-admin-card b { color: var(--ink); font-size: 15px; }
.demo-admin-card span { color: var(--sub); font-size: 13px; }
.demo-admin-card[hidden] { display: none; }
.demo-admin-card.updated { animation: admin-flash 1.2s ease; }
@keyframes admin-flash { from { box-shadow: 0 0 0 3px var(--brand); } to { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .demo-admin-card.updated { animation: none; } }
.demo-admin-tip { margin-top: 8px !important; color: var(--muted); font-size: 12px; }
.demo-side-note { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }

/* 演示页：手机屏幕固定高度，内容多时在屏幕里滚动，切换场景时外框不跳 */
.demo-screen { height: 560px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
@media (max-width: 1000px) { .demo-screen { height: 520px; } }
.demo-q .qt { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 4px; background: var(--brand-soft); color: var(--brand-dark); font-size: 11px; font-style: normal; font-weight: 600; vertical-align: 1px; }
.demo-tf { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.demo-panel label.demo-fill { display: block; }
.demo-fill span { display: block; margin-bottom: 6px; color: var(--ink); font-weight: 600; }
.demo-q-note { margin: 0 0 12px; color: var(--muted); font-size: 12px; }
.nav-drop-menu .nav-demo { margin-top: 4px; padding-top: 11px; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; }
/* 互动演示页顶部：名称和标题大小跟产品页一致 */
.demo-page .demo-hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px 7px 12px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 17px; font-weight: 700; letter-spacing: 1px; box-shadow: 0 4px 14px rgba(11, 27, 51, .08); }
.demo-page .demo-hero .eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.demo-hero h1 { margin: 14px 0 12px; font-size: clamp(30px, 4.6vw, 46px); line-height: 1.2; }
/* 产品页、互动演示页顶部（方案一）：产品名是唯一重点，副标题降为一句话 */
.fp-hero h1, .demo-hero h1 { margin: 0 0 6px; font-size: clamp(30px, 3.2vw, 36px); font-weight: 700; line-height: 1.2; color: var(--ink); }
.fp-hero .fp-tagline { margin: 0 0 12px; font-size: clamp(18px, 1.8vw, 22px); font-weight: 600; line-height: 1.45; color: var(--text); }
.fp-hero .lead { max-width: 32em; margin: 0; font-size: 16px; line-height: 1.75; color: var(--sub); }
.fp-actions { margin-top: 24px; }
/* 互动演示 · 考试：题目、选项排版收紧，修复判断题选项溢出 */
.demo-q { padding: 12px 12px 6px; }
.demo-q legend { float: none; display: block; width: auto; padding: 0; margin-bottom: 8px; font-size: 14px; line-height: 1.5; }
.demo-panel .demo-opt { padding: 7px 10px; line-height: 1.4; }
.demo-tf { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; min-width: 0; }
.demo-tf .demo-opt { justify-content: center; }
.demo-panel label.demo-fill { padding: 12px; }
.demo-fill input { margin-top: 0; }
.demo-q legend { float: left; width: 100%; }
.demo-q legend ~ * { clear: both; }

/* 互动演示：两块区域命名；提交结果逐项显示；手机端跳到后台预览 */
.demo-col-title { margin: 0 0 10px; color: var(--sub); font-size: 14px; font-weight: 600; letter-spacing: .5px; }
.demo-phone-col .demo-col-title { text-align: center; }
.demo-admin:focus { outline: none; }
.demo-result { color: var(--ink); }
.demo-result strong { display: block; color: #0b7a44; }
.demo-result p { margin: 6px 0 0; }
.demo-result-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #cdebd9; font-size: 13px; }
.demo-go-admin { color: var(--brand-dark); font-weight: 600; }
.demo-reset { padding: 0; border: 0; background: none; color: var(--sub); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.demo-score b { font-size: 20px; color: var(--ink); }
.demo-grade { list-style: none; margin: 8px 0 0; padding: 0; }
.demo-grade li { display: grid; gap: 2px; margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: #fff; }
.demo-grade li span { font-weight: 600; }
.demo-grade li.ok span { color: #0b7a44; }
.demo-grade li.bad span { color: #c9353a; }
.demo-grade li.skip span { color: var(--muted); }
.demo-grade small { color: var(--sub); font-size: 12px; }
.demo-bar { display: grid; grid-template-columns: 4.5em 1fr auto; align-items: center; gap: 8px; font-size: 12px; }
.demo-bar.mine span { color: var(--brand-dark); font-weight: 700; }
.demo-bar meter { width: 100%; }
@media (min-width: 1001px) { .demo-go-admin { display: none; } }

/* ===== 手机端缩短首页 ===== */
.more-scenes { display: none; }
@media (max-width: 640px) {
  /* 1. 首屏：去掉二维码贴纸，只留缩小的手机模型和五个切换按钮 */
  .demo-col { gap: 12px; }
  .demo .box { display: none; }
  .demo { height: auto; max-width: none; display: flex; justify-content: center; }
  .demo .phone { position: static; width: 200px; height: 360px; padding: 9px; border-radius: 30px; transform: none; }
  .demo .screen { border-radius: 22px; }
  .demo .screen .banner { height: 80px; }
  .demo-tabs button { padding: 5px 12px; font-size: 13px; }
  /* 2. 活码卡：适用场景默认只显示前三条 */
  .huoma-scenes dl > div:nth-child(n+4) { display: none; }
  .huoma-scenes.open dl > div:nth-child(n+4) { display: block; }
  .more-scenes { display: inline-block; margin-top: 6px; padding: 0; border: 0; background: none; color: var(--brand-dark); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
  /* 3. 套餐卡收紧 */
  .prices { gap: 12px; }
  .price { padding: 16px 14px; }
  .price .amount { margin: 6px 0 2px; }
  .price .amount b { font-size: 32px; }
  .price ul { margin-top: 10px; padding-top: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
  .price li { padding: 3px 0; font-size: 13px; }
  .price li svg { width: 15px; height: 15px; }
  .price-action { padding-top: 12px; }
  .plan-compare .plan-table-wrap::before { content: "左右滑动查看四档"; display: block; padding: 8px 12px 0; color: var(--muted); font-size: 12px; }
}
@media (max-width: 640px) {
  .hero { padding: 28px 0 32px; }
  .hero .wrap { gap: 24px; }
  .hero h1 { font-size: 32px; }
  .hero p.sub { font-size: 16px; margin: 14px 0 20px; }
  .trust { margin-top: 14px; font-size: 14px; }
  .demo .phone { width: 190px; height: 300px; }
  .demo .screen .banner { height: 60px; font-size: 14px; }
}

/* 互动演示 · 活码 */
.demo-hm-img { height: 90px; margin-top: 12px; padding: 10px 12px; display: flex; align-items: flex-end; border-radius: 12px; background: linear-gradient(135deg, #d6e8ff, #8fbcff); color: #0a2a6b; font-weight: 700; }
.demo-panel ol.demo-kv { margin-top: 10px; }
.demo-panel ol.demo-kv li { display: flex; justify-content: space-between; margin-top: 6px; padding: 10px 12px; }
.demo-kv span { color: var(--muted); }
.demo-kv b { color: var(--ink); transition: color .3s; }
.demo-kv b.changed { color: var(--brand-dark); }
.demo-kv s { color: var(--muted); font-weight: 400; margin-right: 4px; }
/* 互动演示手机框：边框更薄、阴影更淡；内屏滚动条细、浅灰、离外框留距 */
.demo-phone { padding: 8px; border-radius: 32px; box-shadow: 0 14px 36px rgba(11, 27, 51, .12); }
.demo-screen { border-radius: 25px; scrollbar-width: thin; scrollbar-color: #c8d3e2 transparent; scrollbar-gutter: stable; padding-right: 10px; }
.demo-screen::-webkit-scrollbar { width: 6px; }
.demo-screen::-webkit-scrollbar-thumb { background: #c8d3e2; border-radius: 3px; border: 1px solid transparent; }
.demo-screen::-webkit-scrollbar-track { background: transparent; margin: 18px 0; }
/* 活码商品页：大块蓝色横幅改成一条浅蓝信息栏 */
.demo-hm-img { height: auto; margin-top: 10px; padding: 8px 12px; align-items: center; border-radius: 10px; background: var(--brand-soft); color: var(--brand-dark); font-size: 13px; font-weight: 600; }
/* 服务承诺卡片：标题左侧品牌蓝线条图标 */
.promise b:has(.promise-ico) { display: flex; align-items: center; gap: 8px; }
.promise-ico { flex: none; width: 18px; height: 18px; color: var(--brand); }

/* 常见问题：展开的标题淡蓝底；其余问题收进「查看全部常见问题」 */
.faq details { padding: 0; overflow: hidden; }
.faq details > summary { padding: 18px 22px; }
.faq details > p { margin: 0; padding: 14px 22px 18px; }
.faq details[open] > summary { background: var(--brand-soft); }
.faq .faq-more { border-style: dashed; background: transparent; }
.faq .faq-more > summary { justify-content: center; gap: 8px; color: var(--brand-dark); font-weight: 600; }
.faq .faq-more[open] > summary { background: transparent; }
.faq .faq-more > details { margin: 0 14px 12px; }
.faq .faq-more > .faq-more-tip { padding: 0 22px 12px; color: var(--sub); font-size: 14px; text-align: center; }
.faq .faq-more-tip a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
.faq .faq-more > .faq-more-tip { margin: -4px 14px 14px; padding: 0 8px; text-align: left; font-size: 13px; }
.faq .faq-more-tip a { text-decoration: none; }
.faq .faq-more-tip a:hover { text-decoration: underline; }
.faq details > p.faq-inner-link { margin-top: -10px; padding-top: 0; font-size: 14px; }
.faq-inner-link a { color: var(--brand-dark); }
.faq-inner-link a:hover { text-decoration: underline; }

/* 和同类产品比（价格区） */
.peer-compare { max-width: 960px; margin: 32px auto 0; }
.peer-compare h3 { text-align: center; color: var(--ink); font-size: 18px; }
.peer-lead { max-width: 640px; margin: 6px auto 0; text-align: center; color: var(--sub); font-size: 14px; line-height: 1.7; }
.peer-table-wrap { margin-top: 16px; overflow: auto; max-inline-size: 100%; container-type: inline-size; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(11, 27, 51, .05); }
.peer-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.peer-table caption { padding: 12px 16px 0; color: var(--muted); font-size: 12px; text-align: start; }
.peer-table th, .peer-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: center; font-size: 14px; line-height: 1.5; vertical-align: middle; font-variant-numeric: tabular-nums; }
.peer-table tbody tr:last-child > * { border-bottom: 0; }
.peer-table thead th { background: #f4f8ff; color: var(--sub); font-size: 13px; font-weight: 600; }
.peer-table tbody th { color: var(--ink); font-weight: 700; text-align: start; }
.peer-table td small { display: block; color: var(--muted); font-size: 12px; }
.peer-table .peer-ours { background: #f1f6ff; color: var(--brand-dark); }
.peer-table .peer-other { color: var(--sub); }
.peer-table .peer-sep { margin: 0 6px; color: var(--line); }
.peer-table .peer-new { color: var(--brand-dark); }
.peer-note { margin-top: 10px; text-align: center; }
/* 窄的时候每档一张卡片，单元格前补列名 */
@container (width < 560px) {
  .peer-table, .peer-table caption, .peer-table thead, .peer-table tbody, .peer-table tr, .peer-table th, .peer-table td { display: block; }
  .peer-table caption { padding-bottom: 8px; }
  .peer-table thead { display: none; }
  .peer-table tbody tr { border-bottom: 1px solid var(--line); }
  .peer-table tbody tr:last-child { border-bottom: 0; }
  .peer-table th, .peer-table td { border-bottom: 0; padding: 6px 16px; text-align: start; }
  .peer-table tbody th { padding-top: 14px; background: #f4f8ff; }
  .peer-table td:last-child { padding-bottom: 14px; }
  .peer-table td::before { display: block; color: var(--muted); font-size: 12px; }
  .peer-table td:nth-child(2)::before { content: "同类主流产品"; }
  .peer-table td:nth-child(3)::before { content: "有个码"; }
  .peer-table td:nth-child(4)::before { content: "每 GB 一年"; }
}
