:root {
  --bg: #f6f6f8;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #e7e7ea;
  --brand: #2563eb;
  --brand-soft: #eaf1ff;
  --ok: #1f9d55;
  --warn: #c27c0e;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.04);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* 顶栏 */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .container { display: flex; align-items: center; height: 60px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 19px; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 16px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.topbar .user-nav { margin-left: 4px; }
.nav a, .nav button { padding: 6px 14px; border-radius: 8px; color: var(--muted); background: none; border: 0; }
.nav a.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.nav a:hover, .nav button:hover { color: var(--text); }

/* 首页头图 */
.hero { padding: 36px 0 8px; }
.hero h1 { font-size: 32px; line-height: 1.3; margin: 0 0 8px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p { color: var(--muted); margin: 0 0 18px; }
.notice { display: flex; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 14px; color: var(--muted); }

/* 购买流程 */
.flow { margin-top: 22px; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 20px 24px 22px; }
.flow-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.flow-head h2 { margin: 0; font-size: 20px; }
.flow-head span { color: var(--muted); font-size: 13px; }
.flow-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.flow-steps::before { content: ""; position: absolute; left: 24px; right: 12%; top: 23px; height: 2px; background: linear-gradient(90deg, var(--brand), #a5b4fc 70%, transparent); opacity: .35; }
.flow-steps li { display: flex; flex-direction: column; gap: 12px; position: relative; }
.flow-ico { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(140deg, #3b82f6, #6366f1); color: #fff; display: grid; place-items: center; position: relative; box-shadow: 0 6px 14px rgba(59, 130, 246, .28); }
.flow-ico em { position: absolute; right: -7px; bottom: -7px; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: var(--brand); border: 2px solid var(--brand-soft); font-style: normal; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.flow-steps b { font-size: 15px; }
.flow-steps p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
@media (max-width: 760px) {
  .flow { padding: 18px 16px; }
  .flow-steps { grid-template-columns: 1fr 1fr; gap: 18px 14px; }
  .flow-steps::before { display: none; }
}

/* 商品列表 */
.section-head { display: flex; align-items: end; justify-content: space-between; margin: 24px 0 14px; gap: 12px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 24px; }
.section-head small { color: var(--brand); font-weight: 600; display: block; font-size: 13px; }
.tabs { display: flex; gap: 6px; background: var(--card); padding: 6px; border-radius: 12px; overflow-x: auto; margin-bottom: 16px; box-shadow: var(--shadow); }
.tabs button { border: 0; background: none; padding: 7px 16px; border-radius: 8px; color: var(--muted); white-space: nowrap; }
.tabs button.active { background: var(--brand); color: #fff; font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; padding-bottom: 48px; }
.card { background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); cursor: pointer; position: relative; border: 1px solid transparent; transition: .15s; text-align: left; }
.card:hover { border-color: var(--brand); transform: translateY(-2px); }
.badge-hot { position: absolute; top: 14px; right: 14px; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.plogo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 16px; letter-spacing: -.5px; }
.plogo .ico { width: 58%; height: 58%; background: #fff; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.card h3 { margin: 12px 0 6px; font-size: 17px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; color: var(--muted); background: var(--bg); padding: 2px 8px; border-radius: 6px; }
.price { margin-top: 14px; color: var(--brand); font-weight: 700; font-size: 22px; }
.price small { font-size: 13px; color: var(--muted); font-weight: 400; }

/* 弹窗 */
.mask { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: var(--card); border-radius: 18px; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: auto; position: relative; }
.modal-body { padding: 24px; }
.modal-close { position: absolute; top: 14px; right: 14px; border: 0; background: var(--bg); width: 32px; height: 32px; border-radius: 50%; font-size: 18px; color: var(--muted); }
.p-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.p-head h3 { margin: 0; font-size: 20px; }
.p-head .price { margin: 0; font-size: 26px; }
.dim { margin-bottom: 14px; }
.dim-label { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { border: 1.5px solid var(--line); background: var(--card); padding: 6px 14px; border-radius: 9px; }
.opt.active { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.opt:disabled { opacity: .35; cursor: not-allowed; }
.current { background: var(--bg); border-radius: 10px; padding: 10px 14px; font-size: 14px; margin: 6px 0 16px; }
.subtabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.subtabs button { border: 0; background: none; padding: 8px 0; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subtabs button.active { color: var(--text); border-color: var(--brand); font-weight: 600; }
.detail { white-space: pre-wrap; font-size: 14px; color: #3a3a3c; margin-bottom: 18px; }

.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.field label i { color: var(--brand); font-style: normal; }
.input { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--card); outline: none; }
.input:focus { border-color: var(--brand); }
textarea.input { resize: vertical; min-height: 64px; }
.agree { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.buybar { position: sticky; bottom: 0; background: var(--card); border-top: 1px solid var(--line); padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.buybar .price { margin: 0; }
.ckbox { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 14px 0; }
.ck-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.ck-total { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.ck-total .price { margin: 0; font-size: 22px; }
.ck-title { display: block; margin-bottom: 10px; font-size: 14px; }
.paym { display: inline-flex; align-items: center; gap: 7px; }
.radio { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #c7c7cc; display: inline-block; }
.paym.active .radio { border: 4px solid var(--brand); }
.alipay-mark { width: 18px; height: 18px; border-radius: 5px; background: #1677ff; color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.btn.buy-dark { width: 100%; background: #111827; border-radius: 999px; padding: 13px; box-shadow: 0 6px 18px rgba(37, 99, 235, .18); }
.btn { border: 0; background: var(--brand); color: #fff; padding: 11px 26px; border-radius: 11px; font-weight: 600; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: var(--bg); color: var(--text); }
.btn.sm { padding: 7px 14px; font-size: 14px; }
.err { color: #d93025; font-size: 13px; min-height: 18px; margin-top: 6px; }

/* 订单页 */
.page { padding: 28px 0 60px; }
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 14px; }
.panel h2 { margin: 0 0 14px; font-size: 20px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; font-size: 14px; align-items: center; }
.kv dt { color: var(--muted); white-space: nowrap; }
.kv dd { margin: 0; word-break: break-all; }
.kv dd.ono { font-size: inherit; color: var(--brand); }
.status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.s-pending_pay { background: #fff4e0; color: var(--warn); }
.s-paying { background: #e8f0fe; color: #1a5fd0; }
.s-processing { background: #e8f0fe; color: #1a5fd0; }
.s-done { background: #e6f6ec; color: var(--ok); }
.s-cancelled, .s-refunded { background: #f1f1f3; color: var(--muted); }
.status-wrap { display: inline-flex; align-items: center; gap: 6px; }
.icon-btn { width: 30px; height: 30px; border: 0; border-radius: 8px; background: var(--bg); color: var(--muted); display: grid; place-items: center; }
.icon-btn:hover { color: var(--brand); background: var(--brand-soft); }
.icon-btn.spin svg { animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.steps { display: flex; margin: 6px 0 18px; }
.step { flex: 1; text-align: center; font-size: 13px; color: var(--muted); position: relative; }
.step::before { content: ""; display: block; width: 12px; height: 12px; border-radius: 50%; background: var(--line); margin: 0 auto 6px; position: relative; z-index: 1; }
.step::after { content: ""; position: absolute; top: 5px; left: 50%; width: 100%; height: 2px; background: var(--line); }
.step:last-child::after { display: none; }
.step.on { color: var(--text); font-weight: 600; }
.step.on::before { background: var(--brand); }
.step.on::after { background: var(--brand); }
.pay { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.qr { width: 180px; height: 180px; border-radius: 12px; border: 1px solid var(--line); object-fit: contain; background: #fff; display: grid; place-items: center; color: var(--muted); font-size: 13px; text-align: center; padding: 10px; }
.delivery { white-space: pre-wrap; background: #f3faf5; border: 1px solid #cfe9d8; border-radius: 10px; padding: 12px 14px; font-family: ui-monospace, Menlo, monospace; font-size: 14px; }
.olist { display: grid; gap: 10px; }
.orow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.orow:hover { border-color: var(--brand); }
.muted { color: var(--muted); }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 140px; }
.empty { text-align: center; color: var(--muted); padding: 24px 0; }

/* 订单卡片 */
.narrow { max-width: 820px; margin: 0 auto; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.page-head h1 { margin: 0; font-size: 26px; }
.page-head p { margin: 2px 0 0; font-size: 14px; }
.lookup summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.ocard { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; }
.ocard-top { display: flex; gap: 14px; padding: 18px 20px 14px; align-items: flex-start; }
.ocard-top .plogo { border-radius: 14px; flex: none; }
.grow { flex: 1; min-width: 0; }
.oname { font-weight: 600; font-size: 17px; }
.spec { display: inline-block; background: #4b5563; color: #fff; font-size: 12px; padding: 1px 7px; border-radius: 5px; margin: 3px 0 4px; }
.ono { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); word-break: break-all; }
.ono code { font-family: ui-monospace, Menlo, monospace; color: #4b5563; }
.copy { border: 0; background: none; color: #9ca3af; padding: 2px 4px; line-height: 0; border-radius: 4px; flex: none; }
.copy:hover { color: var(--brand); background: var(--brand-soft); }
.ostatus { font-size: 14px; font-weight: 600; white-space: nowrap; }
.os-done { color: var(--ok); }
.os-pending_pay { color: var(--warn); }
.os-paying, .os-processing { color: var(--brand); }
.os-cancelled, .os-refunded { color: var(--muted); }
.ocard-cut { position: relative; border-top: 2px dashed var(--line); margin: 0 14px; }
.ocard-cut::before, .ocard-cut::after { content: ""; position: absolute; top: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); }
.ocard-cut::before { left: -22px; }
.ocard-cut::after { right: -22px; }
.ocard-bottom { padding: 14px 20px 16px; }
.infobox { display: flex; gap: 12px; align-items: center; background: #f6f7f9; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.infobox.ok { background: #f1f9ee; border-color: #d5ecca; }
.infobox-ico { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: #e5e7eb; color: #6b7280; font-weight: 700; flex: none; }
.infobox.ok .infobox-ico { background: #dcf1d2; color: #4caf50; }
.infobox small { color: var(--muted); font-size: 12px; }
.infobox-text { font-size: 14px; font-weight: 600; white-space: pre-wrap; word-break: break-all; }
.ocard-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.date { background: #f3f4f6; color: #9ca3af; font-size: 13px; padding: 3px 9px; border-radius: 6px; }
.foot-right { display: flex; align-items: center; gap: 12px; }
.amount { font-size: 15px; }
.btn.pill { border-radius: 999px; padding: 5px 14px; font-size: 13px; }
.end { text-align: center; color: #9ca3af; font-size: 13px; margin: 8px 0; display: flex; align-items: center; gap: 12px; justify-content: center; }
.end::before, .end::after { content: ""; width: 40px; border-top: 1px solid var(--line); }

/* 我的订阅 */
.subs { padding: 26px; }
.pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.pills button { border: 1px solid var(--line); background: #f8f8fa; color: var(--muted); padding: 9px 18px; border-radius: 14px; font-weight: 600; font-size: 14px; }
.pills button.active { background: #111; color: #fff; border-color: #111; box-shadow: 0 4px 10px rgba(0,0,0,.15); }
.subgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.subcard { border: 1px solid var(--line); border-radius: 16px; }
.subcard-top { display: flex; gap: 12px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.subcard-top .plogo { border-radius: 12px; flex: none; }
.dot { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.dot-on { color: var(--ok); }
.dot-soon { color: var(--warn); }
.dot-off { color: #9ca3af; }
.subcard-body { display: flex; gap: 14px; padding: 16px 20px; align-items: flex-start; }
.subcard-body small { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }
.subcard-body small:first-child { margin-top: 0; }
.subcard-body .ono { color: var(--text); font-weight: 600; }
.subcard-body .ono code { color: var(--text); }
.left { text-align: right; flex: none; }
.left-num { font-size: 28px; font-weight: 700; line-height: 1.2; }
.left-num span { font-size: 14px; margin-left: 3px; }
.left-num.soon { color: var(--warn); }
.left-num.off { color: #9ca3af; }

/* 登录 */
.user-nav { position: relative; display: flex; align-items: center; }
.user-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 4px 12px 4px 4px; font-size: 14px; }
.user-chip .avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.user-email { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.08); padding: 6px; min-width: 140px; z-index: 30; }
.user-menu a, .user-menu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 12px; border-radius: 8px; font-size: 14px; }
.user-menu a:hover, .user-menu button:hover { background: var(--bg); }
.user-menu button { color: #d93025; }
.login-card { position: relative; background: var(--card); border-radius: 20px; width: 100%; max-width: 380px; padding: 28px 26px 22px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.login-card .lb-close { position: absolute; top: 14px; right: 14px; }
.login-top { display: flex; gap: 12px; align-items: center; margin-bottom: 22px; }
.login-top .logo-mark { width: 42px; height: 42px; border-radius: 12px; font-size: 20px; }
.login-top h3 { margin: 0; font-size: 20px; }
.login-top p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.login-field { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 12px; background: var(--card); }
.login-field:focus-within { border-color: var(--brand); }
.login-field .input { border: 0; flex: 1; padding: 12px 14px; font-size: 15px; letter-spacing: .5px; }
.code-btn { border: 0; background: none; color: var(--brand); font-weight: 600; font-size: 14px; padding: 0 14px; white-space: nowrap; }
.code-btn:disabled { color: var(--muted); cursor: default; }
.login-test { margin: -4px 0 4px; font-size: 12px; color: var(--warn); background: #fff7e6; border-radius: 8px; padding: 6px 10px; }
.login-card .btn { padding: 13px; border-radius: 12px; font-size: 15px; }
.login-foot { text-align: center; color: var(--muted); font-size: 12px; margin: 12px 0 0; }
.login-layer { z-index: 85; }
.login-tip { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--brand-soft); color: var(--brand); border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; font-size: 14px; font-weight: 500; }

/* 下单字段提示 + 图片预览 */
.help-link { border: 0; background: none; color: var(--brand); font-size: 12px; font-weight: 500; padding: 0 0 0 6px; display: inline-flex; align-items: center; gap: 3px; vertical-align: 1px; }
.help-link:hover { text-decoration: underline; }
.lb { position: fixed; inset: 0; z-index: 80; background: rgba(15, 23, 42, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.lb-card { background: var(--card); border-radius: 16px; width: 100%; max-width: 720px; padding: 16px 18px 18px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.lb-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.lb-close { border: 0; background: var(--bg); width: 30px; height: 30px; border-radius: 50%; font-size: 18px; color: var(--muted); }
.lb-text { margin: 0 0 12px; font-size: 14px; color: #3a3a3c; line-height: 1.6; }
.lb-img { position: relative; cursor: zoom-in; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.lb-img img { display: block; width: 100%; }
.lb-tip { position: absolute; right: 10px; bottom: 10px; background: rgba(17,24,39,.75); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.lb-full { z-index: 90; background: rgba(0,0,0,.85); overflow: auto; cursor: zoom-out; align-items: flex-start; }
.lb-full img { max-width: none; width: auto; margin: auto; border-radius: 8px; }
.lb-full .lb-close { position: fixed; top: 16px; right: 16px; background: rgba(255,255,255,.9); }
@media (max-width: 760px) { .lb-full img { width: 200%; } }

/* 客服弹窗 */
.modal.modal-svc { max-width: 360px; border-radius: 22px; overflow: hidden; }
.modal-svc .modal-close { background: rgba(255,255,255,.8); }
.svc-top { background: linear-gradient(160deg, #eef4ff 0%, #f5f3ff 100%); padding: 22px 20px 6px; }
.svc-art { display: block; width: 100%; max-width: 260px; margin: 0 auto; }
.svc-body { padding: 18px 24px 16px; text-align: center; }
.svc-body h3 { margin: 0 0 10px; font-size: 21px; }
.svc-state { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 8px; }
.svc-state i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.svc-state.on { color: #15803d; background: #ecfdf3; }
.svc-state.on i { box-shadow: 0 0 0 3px rgba(34,197,94,.25); animation: svc-pulse 1.6s infinite; }
.svc-state.off { color: #6b7280; background: #f3f4f6; }
@keyframes svc-pulse { 50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); } }
.svc-body p { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 14px 0 16px; }
.svc-id { display: flex; align-items: center; gap: 8px; background: var(--bg); border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; text-align: left; }
.svc-id span { color: var(--muted); font-size: 13px; }
.svc-id b { flex: 1; font-size: 15px; word-break: break-all; }
.btn.svc-go { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 6px; padding: 13px; border-radius: 14px; background: #07c160; box-shadow: 0 8px 20px rgba(7,193,96,.28); }
.svc-later { border: 0; background: none; color: var(--muted); font-size: 14px; margin-top: 10px; padding: 4px 10px; }
.svc-later:hover { color: var(--text); }

/* 右下角悬浮客服 */
/* 宽屏时贴在内容区右侧外边，不跑到屏幕最边上 */
.fab { position: fixed; right: max(24px, calc((100vw - 1120px) / 2 - 66px)); bottom: max(40px, 18vh); z-index: 40; width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; box-shadow: 0 8px 22px rgba(37, 99, 235, .35); transition: transform .15s; }
.fab span { font-size: 11px; font-weight: 600; line-height: 1; }
.fab svg { width: 22px; height: 22px; }
.fab:hover { transform: translateY(-2px) scale(1.04); }
@media (max-width: 760px) { .fab { right: 16px; bottom: 20px; width: 54px; height: 54px; } }

.toast { position: fixed; left: 50%; top: 80px; transform: translateX(-50%); background: rgba(30,30,30,.92); color: #fff; padding: 10px 18px; border-radius: 10px; z-index: 99; font-size: 14px; }

.footer { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 0 40px; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; }
  .hero h1 { font-size: 28px; }
  .topbar .container { gap: 8px; }
  .nav a, .nav button { padding: 6px 8px; }
  .mask { align-items: flex-end; padding: 0; }
  .modal { border-radius: 18px 18px 0 0; max-height: 92vh; }
  .kv { gap: 10px 16px; }
}
