/* 前往购买弹窗 */
.mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(32, 28, 48, .45); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 16px;
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.mask.open { opacity: 1; visibility: visible; }
.modal {
  width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow: auto;
  border-radius: 26px; padding: 26px; position: relative;
  transform: scale(.96) translateY(8px); transition: transform .25s cubic-bezier(.22, 1, .36, 1);
}
.mask.open .modal { transform: none; }
.modal .close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.modal .close:hover { background: var(--slate); color: var(--ink); }
.m-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: var(--coral-soft); color: var(--coral-strong);
}
:root[data-theme="dark"] .m-badge { color: var(--coral); }
.modal h3 { font-size: 22px; margin: 12px 0 6px; line-height: 1.3; }
.modal .m-lead { font-size: 14px; color: var(--muted); }

.m-product { margin-top: 18px; padding: 14px 16px; border-radius: 16px; display: flex; align-items: center; gap: 12px; }
.m-product .pico { width: 42px; height: 42px; border-radius: 12px; background: var(--card); display: grid; place-items: center; font-weight: 900; font-size: 13px; }
.m-product strong { display: block; font-size: 15px; }
.m-product small { font-size: 12px; color: var(--muted); }
.m-product .price { margin-left: auto; font-size: 20px; white-space: nowrap; }

.m-tiers { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.m-tiers button { padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; border: 1.5px solid var(--border); }
.m-tiers button.on { border-color: var(--edge); background: var(--ink); color: var(--bg); }

.m-legal { margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: var(--slate); font-size: 13px; color: var(--muted); }
.m-legal b { color: var(--ink); }
.m-legal .lic { display: block; margin-top: 6px; font-size: 12px; }
.m-flow { margin-top: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; font-weight: 700; }
.m-flow span { padding: 4px 10px; border-radius: 999px; background: var(--butter); }
.m-flow i { font-style: normal; color: var(--muted); }
.m-actions { margin-top: 22px; display: flex; gap: 10px; }
.m-actions .btn-coral { flex: 1; }
.m-actions .ghost { padding: 12px 18px; border-radius: 999px; font-weight: 700; border: 1.5px solid var(--border); }
.m-actions .ghost:hover { border-color: var(--edge); }
.m-note { margin-top: 12px; font-size: 12px; color: var(--muted); text-align: center; }

/* 直售商品：详情里填邮箱（不另弹窗） */
.d-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; padding: 12px 26px 0; border-top: 1.5px solid var(--border); background: var(--card); }
.d-pay[hidden] { display: none; }
.d-pay + .d-go-note { border-top: 0; }
.pay-note { grid-column: 1 / -1; font-size: 13px; font-weight: 800; color: var(--coral-strong); }
.pay-err { grid-column: 1 / -1; min-height: 0; font-size: 13px; font-weight: 700; color: var(--coral-strong); }
.pay-err:empty { display: none; }
.pay-acct { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.pay-acct b { color: var(--ink); word-break: break-all; }
.pay-acct a { color: var(--coral-strong); font-weight: 800; }
/* 直售商品的介绍：小标题、步骤、跳转按钮（下面灰字写网址） */
.zp-desc h4 { margin: 14px 0 6px; font-size: 15px; }
.zp-desc h4:first-child { margin-top: 0; }
.zp-desc p { margin: 4px 0; }
.zp-link { margin: 8px 0 12px; }
.zp-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 999px; border: 2px solid var(--edge); background: var(--coral-strong); color: #fff !important; font-weight: 800; text-decoration: none !important; box-shadow: 0 3px 0 var(--edge); }
.zp-btn:hover { transform: translateY(-1px); }
.zp-link small { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); word-break: break-all; }
.zp-warn { margin-top: 12px !important; padding: 10px 12px; border-radius: 12px; background: var(--coral-soft); font-weight: 800; }

/* 响应式 */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .stage { height: 360px; max-width: 480px; width: 100%; margin: 0 auto; }
  .blob.a { width: 300px; height: 300px; }
  .blob.b { width: 190px; height: 190px; }
  .float-card.f2 { top: 135px; }
  .float-card.f3 { top: 255px; left: 10px; }
  .stage.with-ann .float-card.f3 { display: none; }  /* 窄屏公告占了位置，只留两张（快捷标签里都有） */
  .help { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav { display: none; }
  .hero { padding-top: 24px; }
  .stage { height: 330px; }
  .float-card { min-width: 0; padding: 10px 12px; }
  .float-card.f1 { left: 0; }
  .float-card.f2 { right: 0; }
  .hero-ann { left: 2px; right: 2px; }
  .an-head { padding: 7px 12px 6px; }
  .an-tag { font-size: 12px; }
  .an-stat { padding: 9px 12px 11px; }
  .an-cap { font-size: 11px; line-height: 1.45; }
  .an-big b { font-size: 34px; }
  .an-stat:not(.an-msg) .an-big b:not(.ended) { font-size: 48px; }
  .an-msg { flex-direction: column; align-items: flex-start; gap: 6px; }
  .an-msg p { font-size: 13px; line-height: 1.5; }
  .an-fire { width: 30px; height: 30px; font-size: 16px; border-radius: 9px; }
  .an-big span { font-size: 13px; }
  .an-big .cur { font-size: 18px; }
  .an-up { font-size: 11px; padding: 1px 6px; }
  .an-dots { margin-top: 8px; gap: 1.5px; }
  .an-dots i { height: 6px; }
  .stage.with-ann .float-card { padding: 5px 12px 5px 6px; gap: 8px; }
  .stage.with-ann .float-card .ico { width: 26px; height: 26px; }
  .stage.with-ann .float-card strong { font-size: 13px; }
  .stage.with-ann .float-card .price { font-size: 14px; }
  .stage.with-ann .float-card.f1 { right: 0; }
  .stage.with-ann .float-card.f2 { left: 0; }
  .blob.a { width: 240px; height: 240px; right: 0; }
  .sec-head h2 { font-size: 28px; }
  .help { padding: 24px; }
  .help h2 { font-size: 26px; }
  .modal { padding: 22px 18px; }
  .m-actions { flex-direction: column-reverse; }
}

.m-legal .tax { display: block; margin-top: 8px; font-weight: 700; color: #1d7a4a; }
:root[data-theme="dark"] .m-legal .tax { color: #6fd39f; }

/* 商品详情 */
.detail { max-width: 720px; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.detail .close { z-index: 2; }
.d-head { display: flex; gap: 18px; padding: 26px 26px 0; }
.d-ico { flex: none; width: 92px; height: 92px; border-radius: 22px; display: grid; place-items: center; font-size: 24px; font-weight: 900; border: 1.5px solid var(--border); }
.d-ico img { width: 62%; height: 62%; object-fit: contain; }
.d-info { min-width: 0; padding-right: 30px; }
.d-info h3 { margin: 0; font-size: 22px; }
.d-full { font-size: 13px; color: var(--muted); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.d-price { margin-top: 8px; }
.d-price .price { font-size: 28px; }
.d-price small { font-size: 13px; color: var(--muted); margin-left: 4px; }
.d-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.d-tags span { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 6px; background: var(--slate); color: var(--muted); }
.d-tags span.g { background: #e3f5ea; color: #1d7a4a; }
:root[data-theme="dark"] .d-tags span.g { background: #1d3a2d; color: #6fd39f; }
.detail .m-tiers { padding: 0 26px; margin-top: 14px; }
.detail .m-tiers:empty { display: none; }
.m-way { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.m-way span { font-size: 12px; color: var(--muted); font-weight: 700; margin-right: 2px; }
.d-desc-title { margin: 18px 26px 0; padding-bottom: 8px; font-weight: 800; font-size: 14px; border-bottom: 1.5px solid var(--border); }
.d-desc-title::before { content: ""; display: inline-block; width: 4px; height: 14px; border-radius: 2px; background: var(--coral); margin-right: 8px; vertical-align: -2px; }
.d-desc { flex: 1; min-height: 120px; overflow-y: auto; padding: 14px 26px 20px; font-size: 14px; line-height: 1.75; }
.d-desc h1 { font-size: 18px; margin: 18px 0 8px; }
.d-desc h2 { font-size: 16px; margin: 14px 0 6px; }
.d-desc h3 { font-size: 15px; margin: 12px 0 4px; }
.d-desc p { margin: 2px 0; }
.d-desc hr { border: 0; border-top: 1.5px dashed var(--dash); margin: 16px 0; }
.d-desc blockquote { margin: 10px 0; padding: 10px 14px; border-left: 4px solid var(--sun); background: var(--butter); border-radius: 0 10px 10px 0; }
.d-desc img { max-width: 100%; height: auto; border-radius: 10px; }
.d-loading { color: var(--muted); text-align: center; padding: 30px 0; }
.d-foot { display: flex; gap: 10px; padding: 14px 26px 18px; border-top: 1.5px solid var(--border); background: var(--card); }
.d-foot .btn-coral { flex: 1; }
.d-foot .ghost { padding: 12px 18px; border-radius: 999px; font-weight: 700; border: 1.5px solid var(--border); }
.d-foot .ghost:hover { border-color: var(--edge); }

@media (max-width: 640px) {
  #dMask { padding: 0; }
  .detail { max-width: none; max-height: none; height: 100%; border-radius: 0; border: 0; box-shadow: none; }
  .d-head { padding: 20px 16px 0; gap: 14px; }
  .d-ico { width: 68px; height: 68px; border-radius: 18px; font-size: 18px; }
  .d-info h3 { font-size: 19px; }
  .detail .m-tiers { padding: 0 16px; }
  .d-desc-title { margin: 16px 16px 0; }
  .d-desc { padding: 12px 16px 16px; }
  .d-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
}
/* 手机 / 矮屏：整个详情一起滚动，说明不再被上面的内容挤成一条缝；底栏「立即购买」始终贴在底部 */
@media (max-width: 640px), (max-height: 720px) {
  .detail { overflow-y: auto; }
  .detail > * { flex-shrink: 0; }
  .d-desc { flex: 1 0 auto; overflow: visible; }
  .d-foot { position: sticky; bottom: 0; z-index: 1; margin-top: auto; }
}

/* 详情页底栏：价格 + 立即购买 */
.o-total { margin-right: auto; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.o-total .price { font-size: 24px; }
.o-total small { font-size: 12px; }
.d-foot { align-items: center; }
.d-foot .btn-coral { flex: 0 0 auto; min-width: 150px; }
.d-foot .btn-coral[disabled] { opacity: .6; cursor: progress; }
.d-desc { min-height: 90px; }

@media (max-width: 640px) {
  .d-foot .ghost { display: none; }
  .d-foot .btn-coral { min-width: 130px; }
}
/* 醒目提示（商品 notice）：红框、浅红底、深红粗体、左边红色感叹号；换行照原样显示 */
.d-desc .d-notice { position: relative; margin: 0 0 16px; padding: 12px 16px 12px 50px; border: 2px solid var(--coral-strong); border-left-width: 2px;
  border-radius: 14px; background: var(--coral-soft); color: var(--coral-strong); font-size: 15px; font-weight: 800; line-height: 1.75;
  white-space: pre-line; box-shadow: 0 3px 0 var(--coral-strong); }
.d-desc .d-notice::before { content: "!"; position: absolute; left: 14px; top: 13px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--coral-strong); color: #fff; display: grid; place-items: center; font-size: 16px; font-weight: 900; line-height: 1; }
:root[data-theme="dark"] .d-desc .d-notice { color: #ffb4a3; }

/* 购买前须知（跳转弹窗 + 详情页顶部） */
.precheck { margin-top: 14px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--coral-strong); background: var(--coral-soft); font-size: 13px; line-height: 1.6; color: var(--ink); }
.precheck b { display: block; color: var(--coral-strong); font-size: 14px; }
:root[data-theme="dark"] .precheck b { color: var(--coral); }
.precheck ol { margin: 6px 0 0 20px; display: grid; gap: 4px; }
.precheck a { color: var(--coral-strong); font-weight: 700; text-decoration: underline; word-break: break-all; }
:root[data-theme="dark"] .precheck a { color: var(--coral); }
.pc-confirm { margin-top: 10px; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--card); font-weight: 800; cursor: pointer; }
.pc-confirm input { width: 18px; height: 18px; accent-color: var(--coral-strong); flex: none; }
/* Gemini 弹窗（checklist_only）：编号卡片，和首页「四步搞定」一个样式 */
.precheck.cards { padding: 0; border: 0; background: none; font-size: 14px; line-height: 1.7; }
.precheck.cards b { margin-bottom: 8px; }
.precheck.cards ol { list-style: none; counter-reset: pc; margin: 0; gap: 10px; }
.precheck.cards li { counter-increment: pc; display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; padding: 14px 16px; border-radius: 16px; background: var(--bg); border: 1.5px solid var(--border); }
.precheck.cards li::before { content: counter(pc); width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-weight: 900; font-size: 13px; margin-top: 1px; }
.precheck.cards a { text-underline-offset: 2px; }
.precheck.cards .pc-confirm { margin-top: 14px; gap: 10px; padding: 12px 16px; border-radius: 16px; background: var(--butter); border: 2px solid var(--edge); box-shadow: 0 3px 0 var(--edge); }
.precheck.cards .pc-confirm input { width: 20px; height: 20px; }
.pc-confirm.shake { animation: pcShake .4s; outline: 2px solid var(--coral-strong); }
@keyframes pcShake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.m-actions .btn-coral.locked { opacity: .45; box-shadow: none; cursor: not-allowed; }
.d-desc .precheck { margin: 0 0 14px; }
.d-desc .precheck.cards { margin: 0 0 4px; }
.d-desc .precheck.each { margin: 0 0 4px; }
/* 每条单独勾的下单前须知（config.js checkStyle，10-30）：默认 Claude 配色——米色底、陶土橙、衬线标题；.grok 换黑白 */
.precheck.each { --cl-bg: #FAF9F5; --cl-card: #fff; --cl-line: #E8E3D6; --cl-ink: #3D3929; --cl-mute: #6B6455; --cl-clay: #C96442; --cl-soft: #FBF1EC; --cl-on: #fff;
  padding: 16px; border: 1px solid var(--cl-line); border-radius: 16px; background: var(--cl-bg); color: var(--cl-ink); font-size: 14px; line-height: 1.65; }
:root[data-theme="dark"] .precheck.each { --cl-bg: #262624; --cl-card: #30302E; --cl-line: #45433E; --cl-ink: #ECE8DE; --cl-mute: #ABA699; --cl-clay: #D97757; --cl-soft: #3B2D26; }
.precheck.each.grok { --cl-bg: #F6F6F7; --cl-card: #fff; --cl-line: #E3E3E6; --cl-ink: #0B0B0C; --cl-mute: #5E5E66; --cl-clay: #0B0B0C; --cl-soft: #EDEDEF; --cl-on: #fff; }
:root[data-theme="dark"] .precheck.each.grok { --cl-bg: #141415; --cl-card: #1E1E20; --cl-line: #36363A; --cl-ink: #F2F2F3; --cl-mute: #A3A3AB; --cl-clay: #F2F2F3; --cl-soft: #2A2A2D; --cl-on: #0B0B0C; }
.precheck.each > b i img { width: 20px; height: 20px; display: block; }
:root[data-theme="dark"] .precheck.each.grok > b i img { filter: invert(1); }
/* ChatGPT 成品号（10-30）：白底 + OpenAI 绿 */
.precheck.each.gpt { --cl-bg: #F3FAF7; --cl-card: #fff; --cl-line: #D3EADF; --cl-ink: #0D0D0D; --cl-mute: #56645E; --cl-clay: #0E8C6C; --cl-soft: #E3F4EC; --cl-on: #fff; }
:root[data-theme="dark"] .precheck.each.gpt { --cl-bg: #11201A; --cl-card: #182A22; --cl-line: #2A4A3D; --cl-ink: #ECF5F1; --cl-mute: #9DB5AB; --cl-clay: #3CCF9F; --cl-soft: #1D3A2D; --cl-on: #0D0D0D; }
:root[data-theme="dark"] .precheck.each.gpt > b i img { filter: invert(1); }
.precheck.each > b { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--cl-ink); font: 500 19px/1.35 Georgia, "Noto Serif SC", "Songti SC", "STSong", serif; }
:root[data-theme="dark"] .precheck.each > b { color: var(--cl-ink); }
.precheck.each > b i { flex: none; width: 32px; height: 32px; border-radius: 9px; background: var(--cl-soft); color: var(--cl-clay); display: grid; place-items: center; font: normal 20px/1 sans-serif; }
.precheck.each ol { list-style: none; margin: 0; gap: 8px; }
.precheck.each li { padding: 10px 12px; border: 1px solid var(--cl-line); border-radius: 12px; background: var(--cl-card); transition: border-color .15s, background .15s; }
.precheck.each li.on { border-color: var(--cl-clay); background: var(--cl-soft); }
.precheck.each li.shake { animation: pcShake .4s; border-color: var(--cl-clay); }
/* 分块标题（须知里「## 」开头的行）；「##! 」必须马上做的块：标题红底白字，块里的条目红框（10-30 ChatGPT 成品号） */
.precheck.each li.pc-sec { padding: 6px 2px 0; border: 0; background: none; font-size: 15px; font-weight: 900; color: var(--cl-ink); }
.precheck.each li.pc-sec:first-child { padding-top: 0; }
.precheck.each li.pc-sec.must { padding: 9px 12px; border-radius: 12px; background: #d23a1c; color: #fff; font-size: 16px; }
.precheck.each li.must { border: 2px solid #d23a1c; background: #fff4f1; }
.precheck.each li.must .pc-h { color: #b5260f; font-size: 15.5px; }
.precheck.each li.must .pc-item input { accent-color: #d23a1c; }
:root[data-theme="dark"] .precheck.each li.must { background: #3a1d17; border-color: #ff7a5c; }
:root[data-theme="dark"] .precheck.each li.must .pc-h { color: #ffb4a3; }
.precheck.each .pc-item { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.precheck.each .pc-item input { flex: none; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--cl-clay); }
.precheck.each .pc-h { display: block; color: var(--cl-ink); font-size: 14.5px; font-weight: 800; }
:root[data-theme="dark"] .precheck.each .pc-h { color: var(--cl-ink); }
.precheck.each small { display: block; color: var(--cl-mute); font-size: 13px; line-height: 1.6; }
.precheck.each a, :root[data-theme="dark"] .precheck.each a { color: var(--cl-clay); }
.precheck.each a.pc-btn { background: var(--cl-clay); color: var(--cl-on); }
:root[data-theme="dark"] .precheck.each a.pc-btn { color: var(--cl-on); }
.pc-img { display: flex; align-items: center; gap: 10px; margin: 8px 0 0 28px; padding: 0; border: 0; background: none; color: var(--cl-mute); font-size: 12px; cursor: zoom-in; text-align: left; }
.pc-img img { flex: none; width: 128px; border-radius: 8px; border: 1px solid var(--cl-line); display: block; }
.pc-img.big { display: block; width: calc(100% - 28px); cursor: zoom-out; }
.pc-img.big img { width: 100%; }
.pc-img.big span { display: none; }
.precheck.each .pc-all { margin-top: 12px; justify-content: center; padding: 11px; border-radius: 12px; background: var(--cl-line); color: var(--cl-mute); font-weight: 800; cursor: default; }
.precheck.each .pc-all.ok { background: var(--cl-clay); color: var(--cl-on); }
@media (max-width: 640px) { .pc-img { margin-left: 0; } .pc-img.big { width: 100%; } }
.d-go-note { margin: 0; padding: 10px 26px 0; font-size: 12px; color: var(--muted); border-top: 1.5px solid var(--border); background: var(--card); }
.d-go-note + .d-foot { border-top: 0; padding-top: 8px; }
@media (max-width: 640px) { .d-go-note { padding: 8px 16px 0; } .d-pay { grid-template-columns: 1fr; padding: 10px 16px 0; gap: 6px; } }
.d-tags span.warn { background: var(--coral-soft); color: var(--coral-strong); }
.dl-banner { margin-top: 14px; padding: 10px 14px; border-radius: 12px; background: var(--butter); font-size: 13px; font-weight: 800; }
.dl-banner.ended { background: var(--slate); color: var(--muted); }
.d-foot .btn-coral:disabled { background: var(--muted); box-shadow: none; cursor: not-allowed; opacity: .7; }

/* ---------- 全站弹窗公告：珊瑚红头部 + 贴纸喇叭 + 时间线正文 + 「！」结尾的段落做成高亮提醒 ---------- */
#popMask { z-index: 120; }
.modal.pop-modal { max-width: 500px; padding: 0; overflow: hidden auto; }
/* 邀请下单弹窗 */
.inv-lead { position: relative; margin-top: 12px; font-size: 14px; font-weight: 800; color: #fff; }
.inv-body { padding: 18px 22px 22px; display: grid; gap: 12px; }
.inv-f { display: grid; gap: 6px; font-size: 14px; font-weight: 800; }
.inv-f input { width: 100%; padding: 11px 14px; border-radius: 14px; border: 2px solid var(--border); background: var(--bg); color: var(--ink); font-size: 16px; outline: none; }
.inv-f input:focus { border-color: var(--edge); }
#invCode { font: 900 20px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 4px; text-transform: uppercase; }
#invCode::placeholder { font-size: 16px; font-weight: 600; letter-spacing: 1px; }
.inv-f small { margin-left: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.inv-qty { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.inv-qty input { width: 90px; text-align: center; font-weight: 900; }
.inv-qty > button { width: 40px; height: 40px; border-radius: 12px; border: 2px solid var(--edge); background: var(--card); font-size: 20px; font-weight: 900; }
.inv-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.inv-quick button { padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--border); font-size: 13px; font-weight: 800; }
.inv-quick button.on { border-color: var(--edge); background: var(--ink); color: var(--bg); }
.inv-sum { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; padding: 12px 14px; border-radius: 14px; background: var(--butter); font-size: 14px; font-weight: 700; }
.inv-sum span { margin-left: auto; }
.inv-sum strong { font-size: 22px; font-weight: 900; color: var(--coral-strong); }
.inv-acct { font-size: 13px; color: var(--muted); }
.inv-acct a { color: var(--coral-strong); font-weight: 800; }
.inv-tip { font-size: 13px; font-weight: 700; color: var(--coral-strong); line-height: 1.6; }
.inv-err { min-height: 1em; font-size: 13px; font-weight: 800; color: var(--coral-strong); }
.inv-pay { width: 100%; padding: 13px 10px; border-radius: 999px; border: 2px solid var(--edge); background: var(--coral-strong); color: #fff;
  font-size: 16px; font-weight: 900; box-shadow: 0 3px 0 var(--edge); cursor: pointer; }
.inv-pay:hover { transform: translateY(-1px); }
.inv-pay:disabled { opacity: .6; }
.pop-head { position: relative; padding: 24px 24px 22px; background: linear-gradient(135deg, #ff7a52 0%, #ff5b3d 45%, #d23a1c 100%); color: #fff;
  border-bottom: 2px solid var(--edge); overflow: hidden; }
.pop-head::before, .pop-head::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .13); pointer-events: none; }
.pop-head::before { width: 180px; height: 180px; right: -50px; top: -70px; }
.pop-head::after { width: 90px; height: 90px; right: 90px; bottom: -55px; }
.pop-head .close { color: rgba(255, 255, 255, .85); z-index: 1; }
.pop-head .close:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.pop-top { position: relative; display: flex; align-items: center; gap: 14px; }
.pop-ico { flex: none; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 30px; background: #fff;
  border: 2px solid var(--edge); box-shadow: 0 4px 0 var(--edge); transform: rotate(-8deg); animation: popWiggle 2.4s ease-in-out .4s infinite; }
@keyframes popWiggle { 0%, 70%, 100% { transform: rotate(-8deg); } 76% { transform: rotate(6deg) scale(1.06); } 82% { transform: rotate(-12deg); } 88% { transform: rotate(4deg); } }
.pop-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.pop-tag { padding: 2px 10px; border-radius: 999px; background: var(--sun, #ffc93e); color: #201c30; border: 2px solid #201c30; font-size: 12px; font-weight: 900; }
.pop-date { padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .2); font-size: 12px; font-weight: 800; }
.pop-head h3 { font: 900 24px/1.25 var(--round); color: #fff; padding-right: 26px; text-shadow: 0 2px 0 rgba(32, 28, 48, .25); }
.pop-body { padding: 20px 24px 4px; font-size: 15px; line-height: 1.8; }
.pop-item { position: relative; padding: 0 0 14px 24px; }
.pop-item::before { content: ""; position: absolute; left: 4px; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 3px var(--coral-soft); }
.pop-item:not(:last-child)::after { content: ""; position: absolute; left: 8px; top: 24px; bottom: 2px; border-left: 2px dashed var(--border); }
.pop-item p, .pop-hot p { margin: 0; }
.pop-hot { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; padding: 12px 14px; border-radius: 16px; background: var(--butter);
  border: 2px solid var(--edge); box-shadow: 0 3px 0 var(--edge); font-weight: 800; }
.pop-hot .fire { flex: none; font-size: 22px; line-height: 1.3; animation: popFire 1.2s ease-in-out infinite; }
@keyframes popFire { 50% { transform: translateY(-2px) scale(1.12); } }
.pop-body a { color: var(--coral-strong); font-weight: 700; }
.pop-acts { display: flex; gap: 10px; padding: 8px 24px 22px; }
.pop-acts button { flex: 1; padding: 12px 10px; border-radius: 999px; border: 2px solid var(--edge); font-size: 15px; font-weight: 900; cursor: pointer;
  box-shadow: 0 3px 0 var(--edge); transition: transform .15s; }
.pop-acts button:hover { transform: translateY(-1px); }
.pop-ok { background: var(--coral-strong); color: #fff; }
.pop-go { background: var(--card); color: var(--ink); }
@media (max-width: 520px) {
  .pop-head { padding: 20px 18px 18px; }
  .pop-head h3 { font-size: 21px; }
  .pop-body { padding: 16px 18px 2px; }
  .pop-acts { flex-direction: column-reverse; padding: 6px 18px 18px; }
}
/* 下单前须知里的链接（Google Play 设置、改地区教程，最重要）：做成红色按钮，隔一会儿晃一下（10-27 用户：醒目抖动） */
.precheck a.pc-btn { display: inline-flex; align-items: center; gap: 4px; margin: 3px 4px; padding: 3px 12px; border-radius: 999px; background: var(--coral-strong);
  color: #fff; font-weight: 900; text-decoration: none; word-break: keep-all; white-space: nowrap; border: 2px solid var(--edge); box-shadow: 0 2px 0 var(--edge);
  animation: pc-shake 2.2s ease-in-out infinite; transform-origin: 50% 60%; }
.precheck a.pc-btn + a.pc-btn { animation-delay: .25s; }  /* 同一条里第二个按钮晚一点晃 */
.precheck a.pc-btn:hover { animation-play-state: paused; background: var(--coral); }
:root[data-theme="dark"] .precheck a.pc-btn { color: #fff; }
@keyframes pc-shake {
  0%, 62%, 100% { transform: rotate(0) scale(1); }
  66% { transform: rotate(-5deg) scale(1.06); } 70% { transform: rotate(5deg) scale(1.06); }
  74% { transform: rotate(-4deg) scale(1.04); } 78% { transform: rotate(3deg) scale(1.02); } 82% { transform: rotate(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .precheck a.pc-btn { animation: none; } }
/* 弹窗公告下面的公众号（10-27 晚） */
.pop-gzh { display: flex; align-items: center; gap: 16px; margin: 2px 0 14px; padding: 12px 14px; border-radius: 16px; background: var(--bg); border: 1.5px solid var(--border); }
.pop-gzh img { flex: none; width: 112px; height: 112px; border-radius: 10px; background: #fff; display: block; }
.pop-gzh small { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; }
.pop-gzh b { display: block; font-size: 20px; font-weight: 900; line-height: 1.4; }
.pop-gzh span { display: block; font-size: 13px; color: var(--muted); line-height: 1.5; }
.pop-item:has(+ .pop-gzh)::after { display: none; }  /* 公众号卡片前面那段不画时间线虚线 */
