/* ==========================================================================
   趣天通讯官网 · 设计系统
   风格：现代科技感 + 渐变 + 圆角卡片 + 微动画
   ========================================================================== */

:root {
  --ink: #0b1220;
  --ink-2: #253046;
  --ink-3: #5a6785;
  --line: #e6eaf2;
  --bg: #ffffff;
  --bg-soft: #f6f8fd;
  --brand: #4f46e5;
  --brand-2: #06b6d4;
  --brand-3: #ec4899;
  --brand-soft: #eef0ff;
  --grad: linear-gradient(120deg, #4f46e5 0%, #7c3aed 45%, #06b6d4 100%);
  --grad-warm: linear-gradient(120deg, #f97316 0%, #ec4899 100%);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(16, 24, 40, .05);
  --shadow: 0 10px 30px -12px rgba(16, 24, 40, .18);
  --shadow-lg: 0 30px 70px -30px rgba(79, 70, 229, .45);
  --wrap: 1160px;
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", -apple-system,
          BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", Roboto, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .18s; }
a:hover { color: var(--brand-3); }

h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -.02em; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; color: var(--ink-2); }
ul, ol { padding-left: 1.35em; color: var(--ink-2); }
li { margin: .35em 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.muted { color: var(--ink-3); }
.center { text-align: center; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff;
  padding: .7rem 1.1rem; border-radius: 0 0 var(--radius-sm) 0; z-index: 999;
}
.skip:focus { left: 0; }

/* ============================ 顶栏 ============================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 74px; }

.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); }
.brand-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 13px;
  background: var(--grad); color: #fff;
  font-weight: 800; font-size: .95rem; letter-spacing: .02em;
  box-shadow: 0 8px 20px -8px rgba(79, 70, 229, .8);
  flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.06rem; letter-spacing: -.01em; }
.brand-text em { font-style: normal; font-size: .72rem; color: var(--ink-3); }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.2rem; }
.site-nav ul { display: flex; gap: 1.35rem; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
  color: var(--ink-2); font-size: .94rem; font-weight: 500; position: relative; padding: .3rem 0;
}
.site-nav ul a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--grad); border-radius: 2px; transition: width .25s ease;
}
.site-nav ul a:hover::after, .site-nav ul a[aria-current="page"]::after { width: 100%; }
.site-nav ul a[aria-current="page"] { color: var(--brand); }

.nav-toggle {
  margin-left: auto; display: none; flex-direction: column; gap: 5px;
  width: 44px; height: 42px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; padding: 12px 11px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================ 按钮 ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.5rem; border-radius: var(--radius-pill);
  font-weight: 600; font-size: .95rem; cursor: pointer;
  border: 1px solid transparent; transition: transform .18s, box-shadow .22s, background .2s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 26px -12px rgba(79, 70, 229, .85); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 20px 36px -14px rgba(79, 70, 229, .9); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn-sm { padding: .55rem 1.1rem; font-size: .88rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ============================ 区块 ============================ */
section { padding: 4.5rem 0; }
section.tight { padding: 2.6rem 0; }
.sec-head { max-width: 720px; margin-bottom: 2.6rem; }
.sec-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand);
  background: var(--brand-soft); border-radius: var(--radius-pill); padding: .3rem .85rem; margin-bottom: .9rem;
}

/* ============================ Hero ============================ */
.hero {
  position: relative; overflow: hidden; padding: 5.5rem 0 4.5rem;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(79, 70, 229, .16), transparent 60%),
    radial-gradient(760px 420px at 92% 8%, rgba(6, 182, 212, .16), transparent 62%),
    linear-gradient(180deg, #fbfcff 0%, #ffffff 100%);
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(11, 18, 32, .035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(11, 18, 32, .035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 0%, #000 10%, transparent 72%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: 3.2rem; align-items: center; }
.hero h1 { margin-bottom: 1rem; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.1rem; max-width: 34em; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.8rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.hero-badges div strong { display: block; font-size: 1.6rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-badges div span { font-size: .84rem; color: var(--ink-3); }

.hero-panel {
  background: #fff; border: 1px solid var(--line); border-radius: 26px;
  box-shadow: var(--shadow-lg); padding: 1.5rem; position: relative;
}
.hero-panel .panel-bar { display: flex; gap: .4rem; margin-bottom: 1.1rem; }
.hero-panel .panel-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.hero-panel .panel-bar i:first-child { background: #ff5f57; }
.hero-panel .panel-bar i:nth-child(2) { background: #febc2e; }
.hero-panel .panel-bar i:nth-child(3) { background: #28c840; }
.chat { display: flex; flex-direction: column; gap: .8rem; }
.chat .msg { padding: .75rem 1rem; border-radius: 16px; font-size: .9rem; line-height: 1.6; }
.chat .me { background: var(--brand-soft); color: var(--ink); align-self: flex-end; border-bottom-right-radius: 6px; }
.chat .ai { background: var(--bg-soft); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.chat .ai strong { color: var(--brand); }
.typing { display: inline-flex; gap: 4px; align-items: center; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); opacity: .5; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* ============================ 卡片网格 ============================ */
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow-sm);
  transition: transform .25s cubic-bezier(.2, .7, .3, 1), box-shadow .25s, border-color .25s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad);
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #d9dcff; }
.card:hover::before { transform: scaleX(1); }
.card h3 { margin-bottom: .4rem; }
.card p { margin: 0; font-size: .94rem; }
.card .ico {
  width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 1.1rem; background: var(--brand-soft);
}
.card .ico.g2 { background: #e6fbfd; }
.card .ico.g3 { background: #fff0f7; }
.card .ico.g4 { background: #fff6e8; }
.card ul { margin: .8rem 0 0; font-size: .88rem; }

/* ============================ 特征条 / 步骤 ============================ */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 3.4rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0; width: 2.4rem; height: 2.4rem; border-radius: 12px;
  display: grid; place-items: center; font-family: var(--mono); font-size: .82rem; font-weight: 700;
  color: #fff; background: var(--grad);
}
.step h3 { margin-bottom: .3rem; }

/* ============================ 定价 ============================ */
.price-card { display: flex; flex-direction: column; }
.price-card .amount { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; }
.price-card .amount small { font-size: .9rem; font-weight: 500; color: var(--ink-3); }
.price-card.featured { border-color: #c7c9ff; box-shadow: var(--shadow-lg); }
.price-card .tag {
  position: absolute; top: 1.1rem; right: 1.1rem; font-size: .72rem; font-weight: 700;
  padding: .25rem .7rem; border-radius: var(--radius-pill); background: var(--grad-warm); color: #fff;
}
.price-card ul { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; }
.price-card li { position: relative; padding-left: 1.6rem; font-size: .93rem; }
.price-card li::before { content: '✓'; position: absolute; left: 0; color: #16a34a; font-weight: 700; }
.price-card .btn { margin-top: auto; }

/* ============================ 软件下载 ============================ */
.app-list { display: grid; gap: 1.1rem; }
.app-item {
  display: grid; grid-template-columns: 62px 1fr auto; gap: 1.2rem; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.4rem; box-shadow: var(--shadow-sm); transition: border-color .2s, transform .2s;
}
.app-item:hover { border-color: #c7c9ff; transform: translateY(-3px); }
.app-ico {
  width: 62px; height: 62px; border-radius: 17px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-size: 1.5rem; font-weight: 800; flex: none;
}
.app-meta h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.app-meta .sub { font-size: .84rem; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: .2rem .9rem; }
.app-meta p { margin: .5rem 0 0; font-size: .9rem; }
.app-action { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.badge {
  font-size: .72rem; font-weight: 700; padding: .2rem .62rem; border-radius: var(--radius-pill);
  background: var(--brand-soft); color: var(--brand);
}
.badge.win { background: #e8f1ff; color: #1d4ed8; }
.badge.android { background: #eafaf0; color: #15803d; }

.gate {
  background: var(--bg-soft); border: 1px dashed #c7c9ff; border-radius: var(--radius);
  padding: 1.6rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; justify-content: space-between;
}
.gate p { margin: 0; }

/* ============================ 登录对话框 ============================ */
.modal { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; padding: 1.2rem; }
.modal.open { display: grid; }
.modal-mask { position: absolute; inset: 0; background: rgba(11, 18, 32, .5); backdrop-filter: blur(3px); }
.modal-card {
  position: relative; width: min(420px, 100%); background: #fff; border-radius: 24px;
  padding: 2rem; box-shadow: 0 40px 90px -30px rgba(11, 18, 32, .5);
  animation: pop .28s cubic-bezier(.2, .8, .3, 1);
}
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.modal-card h3 { margin-bottom: .35rem; }
.modal-card .close {
  position: absolute; top: .9rem; right: .9rem; width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 1.1rem; color: var(--ink-3);
}
.qr-box { display: grid; place-items: center; padding: 1.2rem; margin: 1.2rem 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-soft); }
.qr-box iframe { border: 0; background: #fff; border-radius: 8px; }
.qr-placeholder {
  width: 190px; height: 190px; border-radius: 12px; display: grid; place-items: center; text-align: center;
  padding: 1rem; font-size: .82rem; color: var(--ink-3);
  background:
    linear-gradient(45deg, #fff 25%, #eef1f8 25% 50%, #fff 50% 75%, #eef1f8 75%) 0 0/16px 16px;
}
/* 小程序码（个人资质可用的扫码登录） */
.mini-qr { border-radius: 12px; background: #fff; padding: 6px; box-shadow: 0 6px 20px -10px rgba(11, 18, 32, .35); }
.qr-tip { font-size: .8rem; color: var(--ink-3); text-align: center; line-height: 1.6; margin-top: .6rem; }
.qr-tip b { color: var(--ink-1); }
.qr-tip.muted { font-size: .76rem; }
.form-row { display: grid; gap: .55rem; margin-bottom: .9rem; }
.form-row label { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: .94rem; background: #fff; color: var(--ink); transition: border-color .18s, box-shadow .18s;
}
.form-row input:focus, .form-row textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(79, 70, 229, .12); }
.msg-line { font-size: .87rem; min-height: 1.3em; margin: .2rem 0 .8rem; }
.msg-line.err { color: #dc2626; }
.msg-line.ok { color: #16a34a; }
.msg-line.warn { color: #b45309; }
/* 下载区顶部的一次性提示条（今日直存流量用满 / 自动降级网盘） */
#appNotice {
  padding: .7rem .95rem;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #b45309;
  font-weight: 500;
  line-height: 1.7;
}
#appNotice.err { background: #fff1f2; border-color: #fecdd3; color: #be123c; }
.user-chip { display: inline-flex; align-items: center; gap: .55rem; font-size: .9rem; font-weight: 600; }
.user-chip img { width: 30px; height: 30px; border-radius: 50%; }

/* ============================ 表格 / 代码 ============================ */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 1.5rem 0; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; background: #fff; }
th, td { padding: .85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--bg-soft); font-weight: 700; font-size: .86rem; color: var(--ink-2); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }

pre {
  background: #0d1424; color: #e7ecf7; padding: 1.15rem 1.3rem; border-radius: var(--radius-sm);
  overflow-x: auto; font-family: var(--mono); font-size: .85rem; line-height: 1.7; margin: 1.3rem 0;
}
pre code { background: none; color: inherit; padding: 0; }
code { font-family: var(--mono); font-size: .88em; background: var(--bg-soft); padding: .15em .42em; border-radius: 6px; }

blockquote {
  margin: 1.5rem 0; padding: 1rem 1.3rem; background: var(--brand-soft);
  border-left: 3px solid var(--brand); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
blockquote p:last-child { margin-bottom: 0; }

/* ============================ 文章 ============================ */
.post-list { display: grid; gap: 1rem; }
.post-item { display: block; padding: 1.4rem 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); color: inherit; transition: border-color .2s, transform .2s; }
.post-item:hover { border-color: #c7c9ff; transform: translateY(-3px); color: inherit; }
.post-item time { font-size: .8rem; color: var(--ink-3); }
.post-item h3 { margin: .35rem 0 .3rem; }
.post-item p { margin: 0; font-size: .92rem; }
.article { max-width: 760px; margin-inline: auto; }
.article > p:first-of-type { font-size: 1.06rem; color: var(--ink-2); }

/* ============================ CTA ============================ */
.cta {
  border-radius: 28px; padding: 3.2rem 2rem; text-align: center; color: #fff; position: relative; overflow: hidden;
  background: var(--grad); box-shadow: var(--shadow-lg);
}
.cta::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(560px 240px at 15% 0%, rgba(255, 255, 255, .28), transparent 60%);
  pointer-events: none;
}
.cta h2, .cta p { color: #fff; position: relative; z-index: 1; }
.cta p { opacity: .92; max-width: 46em; margin-inline: auto; }
.cta .btn-ghost { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .5); color: #fff; backdrop-filter: blur(6px); }
.cta .btn-ghost:hover { background: #fff; color: var(--brand); }
.cta .btn-row { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; position: relative; z-index: 1; }

/* ============================ 页脚 ============================ */
.site-footer { background: #0b1220; color: #aeb8cd; padding: 3.5rem 0 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr; gap: 2.4rem; }
.site-footer h4 { color: #fff; font-size: .92rem; margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .45rem 0; font-size: .88rem; }
.site-footer a { color: #aeb8cd; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: .9rem; }
.site-footer .muted { color: #8b96ae; font-size: .88rem; }
.footer-brand p { margin-top: .8rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
  margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .82rem; color: #7e8aa3;
}

/* ============================ 动效 ============================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .3, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================ 响应式 ============================ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.4rem; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 15.5px; }
  section { padding: 3.2rem 0; }
  .hero { padding: 3.5rem 0 3rem; }
  .site-nav {
    position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 1rem 1.25rem 1.4rem; gap: .8rem;
    box-shadow: var(--shadow); display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: .2rem; }
  .site-nav ul a { display: block; padding: .6rem 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .app-item { grid-template-columns: 54px 1fr; }
  .app-action { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; align-items: center; flex-wrap: wrap; }
  .app-ico { width: 54px; height: 54px; border-radius: 15px; font-size: 1.25rem; }
  .cta { padding: 2.4rem 1.4rem; }
}

/* ==========================================================================
   打赏解锁弹窗（pay.enabled 打开后使用）
   ========================================================================== */

.pay-amount-box {
  display: grid;
  justify-items: center;
  gap: .15rem;
  padding: 1rem;
  margin: 1.1rem 0 .9rem;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
}
.pay-amount-box b {
  font-family: var(--mono);
  font-size: 1.9rem;
  line-height: 1.2;
  letter-spacing: .02em;
  color: var(--brand);
}
.pay-amount-box .muted { font-size: .78rem; text-align: center; }

.pay-qrs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 1rem 0 1.2rem;
}
.pay-qr { margin: 0; display: grid; justify-items: center; gap: .45rem; }
.pay-qr img {
  width: 190px;
  height: 190px;
  object-fit: contain;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}
.pay-qr figcaption { font-size: .8rem; color: var(--ink-3); }
.pay-qrs .qr-placeholder { flex: 1 1 100%; height: auto; min-height: 156px; padding: 1.1rem .85rem; line-height: 1.8; }
.pay-qrs .qr-placeholder b { color: var(--brand); }
.pay-qrs .qr-placeholder .amount-inline { font-size: 1.05rem; }

@media (max-width: 560px) {
  .pay-qr img { width: 150px; height: 150px; }
  .pay-amount-box b { font-size: 1.6rem; }
}

/* ===================== 手机扫码安装 ===================== */

/* 下载页弹窗里的双二维码（Android / iOS 各一个） */
.qr-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: .9rem;
  margin: 1rem 0 .2rem;
}
.qr-cell {
  margin: 0;
  padding: .9rem .6rem .7rem;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}
.qr-cell figcaption { font-weight: 600; font-size: .9rem; margin-bottom: .55rem; color: var(--ink); }
.qr-cell svg {
  display: block;
  width: 148px;
  height: 148px;
  margin: 0 auto;
  padding: 6px;
  background: #fff;
  border-radius: 8px;
}
.qr-cell.android figcaption::before { content: "🤖 "; }
.qr-cell.ios figcaption::before { content: "🍎 "; }
.qr-cell-tip { display: block; font-size: .76rem; color: var(--ink-3); margin-top: .55rem; }
.qr-hint {
  grid-column: 1 / -1;
  margin: .1rem 0 0;
  font-size: .78rem;
  line-height: 1.75;
  color: var(--ink-3);
  text-align: center;
}
.qr-hint b { color: var(--ink-2); }

/* 手机安装页 install.html */
.install-panel { max-width: 560px; margin: 0 auto; }
.install-app {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1rem 1.1rem;
  margin-bottom: .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.install-ico {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  border-radius: 13px;
  background: var(--brand-soft);
}
.install-app-meta h3 { margin: 0 0 .15rem; font-size: 1.05rem; }
.install-app-meta span { font-size: .82rem; }
.install-card {
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.install-card h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.install-card p { margin: 0 0 .9rem; font-size: .9rem; line-height: 1.75; color: var(--ink-2); }
.install-card p:last-child { margin-bottom: 0; }
.install-card code {
  padding: .1rem .35rem;
  font-family: var(--mono);
  font-size: .85em;
  border-radius: 4px;
  background: var(--bg-soft);
}
.install-card.ok { border-color: #86efac; background: #f7fdf9; }
.install-card.warn { border-color: #fcd34d; background: #fffdf5; }
.install-card.err { border-color: #fca5a5; background: #fff8f8; }
.install-card .btn-block { margin-bottom: .8rem; }
.install-card .btn-block:last-child { margin-bottom: 0; }

@media (max-width: 560px) {
  .qr-cell svg { width: 132px; height: 132px; }
  .install-card { padding: 1.05rem 1rem; }
}

