/* =====================================================================
   众声官网 — 样式
   设计稿：Figma「众声下载页-方案」PC 1920 / 内容 1360，H5 390
   卡片、插画为 Figma 切图（static/img/v2），尺寸与坐标均取自设计稿
   ===================================================================== */
:root {
    --blue: #008eff;
    --blue-ink: #008eff;
    --text: #000;
    --text-2: #71717b;
    --text-3: #a1a1aa;
    --line: #e7ecf2;
    --gray: #f9f9f9;
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text);
    background: #fff;
    overflow-x: hidden;
}
img { display: block; max-width: none; -webkit-user-drag: none; user-select: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2 { font-weight: inherit; }
.num, .stat-num { font-family: 'SF Pro Display', -apple-system, Inter, 'Helvetica Neue', Arial, sans-serif; font-variant-numeric: tabular-nums; }

.pc-only { display: block; }
.mobile-only { display: none; }

.container { width: min(1360px, calc(100% - 80px)); margin: 0 auto; }

/* 按压反馈 */
.pressable { transition: transform 160ms var(--ease-out), box-shadow 200ms ease, background-color 200ms ease; }
.pressable:active { transform: scale(0.97); }

/* ==================== 导航（白色渐隐 + 背景模糊，压在首屏背景上） ==================== */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 92px;
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    transition: background-color 240ms ease, box-shadow 240ms ease;
}
.site-header.scrolled { background-color: rgba(255, 255, 255, 0.86); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.header-logo img { width: 118px; height: 52px; }
.header-nav, .footer-nav { display: flex; align-items: center; }
.header-nav a { font-size: 20px; line-height: 28px; color: var(--text-2); transition: color 200ms ease; }
.header-nav a + a, .footer-nav a + a { position: relative; margin-left: 49px; }
/* 链接之间的竖线 1×15 */
.header-nav a + a::before, .footer-nav a + a::before {
    content: ''; position: absolute; left: -25px; top: 50%; width: 1px; height: 15px; margin-top: -7.5px; background: #dbdbdb;
}

/* ==================== 首屏 ==================== */
/* 1024~1440 宽度：首屏内容按 --hz（容器宽 / 1360，由 index.js fitHero 计算）整体等比缩放，保持设计稿排版 */
.hero { position: relative; height: calc(772px * var(--hz, 1)); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: #f2f2f2 url(/static/img/v2/hero-bg.webp) center top / cover no-repeat; }
.hero-inner { position: relative; height: 772px; padding-top: 172px; zoom: var(--hz, 1); }
.hero-copy { position: relative; z-index: 2; width: 541px; padding-top: 74px; }
/* 标题用方正正黑，转成了矢量切图；img 相对文本框的偏移取自 Figma 渲染边界 */
.hero-title { height: 156px; padding-top: 5.25px; }
.hero-title img { width: 378px; height: 136px; margin-left: 2.75px; }
.hero-summary { margin-top: 12px; font-size: 20px; line-height: 28px; color: var(--text-2); }

/* 首屏下载按钮：箭头互换 + 圆形扩散（改编自 Uiverse.io by ryota1231），黑色版 */
.hero-cta { margin-top: 40px; display: flex; align-items: center; gap: 20px; }
.hero-btn {
    position: relative; overflow: hidden; isolation: isolate;
    display: inline-flex; align-items: center; height: 50px; padding: 0 44px 0 24px; border-radius: 100px;
    background: #000; color: #fff; font-size: 18px; line-height: 18px; font-weight: 500;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08), 0 6px 20px rgba(0, 0, 0, 0.18);
    transition: border-radius 600ms var(--ease-out), box-shadow 600ms var(--ease-out), scale 160ms var(--ease-out);
}
.hb-arr {
    position: absolute; top: 50%; width: 18px; height: 18px; margin-top: -9px; z-index: 2; fill: #fff;
    transition: left 800ms var(--ease-out), right 800ms var(--ease-out);
}
.hb-arr-1 { right: 20px; }
.hb-arr-2 { left: -25%; }
.hb-text { position: relative; z-index: 1; transition: transform 800ms var(--ease-out); }
.hb-circle {
    position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; border-radius: 50%;
    background: #333; opacity: 0; transform: translate(-50%, -50%);
    transition: width 800ms var(--ease-out), height 800ms var(--ease-out), opacity 800ms var(--ease-out);
}
.hero-btn:active { scale: 0.95; }

.stats { margin-top: 80px; display: flex; align-items: center; gap: 24px; white-space: nowrap; }
.stat { display: flex; align-items: center; gap: 12px; }
.stat-avatars { width: 196px; height: 52px; margin: -2px; }
.stat-globe { width: 48px; height: 48px; border-radius: 12px; }
.stat-num { font-size: 26px; line-height: 31px; font-weight: 600; }
.stat-num i { font-style: normal; font-weight: 400; font-size: 28px; margin-left: 2px; }
.stat-label { margin-top: 4px; font-size: 16px; line-height: 22.4px; color: var(--text-2); }
.stat-rate { display: flex; align-items: center; gap: 8px; }
.stat-divider { width: 1px; height: 57px; background: #dce5f0; }

/* ---------- 首屏插画 679×600 ---------- */
.hero-art-wrap { position: absolute; right: 0; top: 172px; width: 679px; height: 600px; }
.hero-art { position: absolute; left: 0; top: 0; width: 679px; height: 600px; }
.hero-art > * { position: absolute; }
.hero-art img { width: 100%; height: auto; }
/* 光晕比画板宽（815），超出画板的部分裁掉 */
.hero-art .ha-glow { left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; }
.hero-art .ha-glow img { position: absolute; left: 8px; top: 1px; width: 815px; }
.hero-art .ha-phone { left: 0; top: 0; width: 679px; }
/* 悬浮卡片：外层是卡片本身（毛玻璃底），里面的切图带投影，按 Figma 渲染边界偏移 */
.hc { border-radius: 16px; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); will-change: transform; }
.hc img { position: absolute; left: -28px; top: -16px; }
.hero-art .hc-voice  { left: -9px;  top: 319px; width: 196px; height: 149px; }
.hero-art .hc-voice img  { width: 252px; }
.hero-art .hc-typing { left: 32px;  top: 536px; width: 173px; height: 44px; }
.hero-art .hc-typing img { width: 229px; }
.hero-art .hc-wallet { left: 435px; top: 400px; width: 235px; height: 130px; }
.hero-art .hc-wallet img { width: 291px; }
.hero-art .hc-secure { left: -2px;  top: 164px; width: 134px; height: 35px; }
.hero-art .hc-secure img { width: 190px; }
.hero-art .hc-sent   { left: 509px; top: 33px;  width: 119px; height: 35px; border-radius: 100px; }
.hero-art .hc-sent img   { width: 175px; }
.hero-art .hc-video  { left: 462px; top: 140px; width: 188px; height: 200px; }
.hero-art .hc-video img  { left: -42px; top: -30px; width: 272px; }

/* ==================== 内容区块 ==================== */
.sec { padding: 80px 0; }
.sec-gray { background: var(--gray); }
.sec-head { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.sec-title { font-size: 32px; line-height: 44.8px; font-weight: 600; }
.sec-desc { padding-bottom: 4px; font-size: 20px; line-height: 28px; color: var(--text-2); }
.card-img { width: 100%; height: auto; }
.col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; min-width: 0; }

/* 畅聊如面：902.7 + 442.7 */
.chat-grid { margin-top: 24px; display: grid; grid-template-columns: 902.7fr 442.7fr; gap: 12px; align-items: start; }
.chat-grid > .card-img { border-radius: 24px; }
/* 视频通话卡片：视频铺底 + HTML 通话界面。尺寸用 --k 缩放（PC 1px = 设计稿 1px，卡片 902×640；H5 见下方 .m-vcall） */
.vcall {
    /* --k = 设计稿 1px：随卡片宽度等比缩放（容器查询单位，卡片设计宽 902.7） */
    container-type: inline-size; --k: calc(100cqw / 902.7);
    position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 902.7 / 640;
    border-radius: 24px; background: #111; color: #fff;
}
.vc-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* 上下压暗 + 渐进模糊（Figma 里是两条模糊照片条，换成 backdrop-filter + 渐变遮罩） */
.vc-shade-top, .vc-shade-bottom { position: absolute; left: 0; right: 0; pointer-events: none; }
.vc-shade-top {
    top: 0; height: calc(160 * var(--k));
    background: linear-gradient(180deg, rgba(48, 52, 66, 0.25), rgba(48, 52, 66, 0));
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent); mask-image: linear-gradient(180deg, #000 20%, transparent);
}
.vc-shade-bottom {
    bottom: 0; height: calc(200 * var(--k));
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), rgba(102, 102, 102, 0));
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    -webkit-mask-image: linear-gradient(0deg, #000 30%, transparent); mask-image: linear-gradient(0deg, #000 30%, transparent);
}
.vc-head { position: absolute; left: calc(24 * var(--k)); top: calc(24 * var(--k)); display: flex; flex-direction: column; gap: calc(4 * var(--k)); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.18); }
.vc-head b { font-size: calc(24 * var(--k)); line-height: calc(33.6 * var(--k)); font-weight: 600; }
.vc-head span { font-size: calc(16 * var(--k)); line-height: calc(22.4 * var(--k)); }
.vc-badge {
    position: absolute; right: calc(24 * var(--k)); top: calc(38 * var(--k)); height: calc(32 * var(--k)); padding: 0 calc(14 * var(--k)) 0 calc(12 * var(--k));
    display: flex; align-items: center; gap: calc(8 * var(--k)); border-radius: 100px;
    background: rgba(0, 0, 0, 0.3); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    font-size: calc(14 * var(--k)); line-height: calc(20 * var(--k)); white-space: nowrap;
}
.vc-badge b { font-weight: 600; }
.vc-bars { display: flex; align-items: center; gap: calc(2 * var(--k)); height: calc(14 * var(--k)); }
.vc-bars i { width: calc(3 * var(--k)); height: 100%; border-radius: 9px; background: #00d492; transform-origin: 50% 50%; animation: vc-bar 0.9s ease-in-out infinite alternate; }
.vc-bars i:nth-child(1) { animation-delay: -0.2s; }
.vc-bars i:nth-child(2) { animation-delay: -0.55s; animation-duration: 0.7s; }
.vc-bars i:nth-child(3) { animation-delay: -0.35s; animation-duration: 1.1s; }
@keyframes vc-bar { from { transform: scaleY(0.35); } to { transform: scaleY(1); } }
.vc-sep { width: 1px; height: calc(12 * var(--k)); background: rgba(255, 255, 255, 0.25); }
.vc-time { color: rgba(255, 255, 255, 0.75); font-variant-numeric: tabular-nums; }
.vc-actions { position: absolute; left: 0; right: 0; bottom: calc(24 * var(--k)); display: flex; justify-content: center; gap: calc(40 * var(--k)); }
.vc-act { display: flex; flex-direction: column; align-items: center; gap: calc(8 * var(--k)); width: calc(64 * var(--k)); }
.vc-btn {
    display: flex; align-items: center; justify-content: center; width: calc(64 * var(--k)); height: calc(64 * var(--k)); border-radius: 50%;
    background: rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(27px); backdrop-filter: blur(27px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.vc-end .vc-btn { background: #000; box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35); -webkit-backdrop-filter: none; backdrop-filter: none; }
.vc-btn svg { width: calc(36 * var(--k)); height: calc(36 * var(--k)); fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.vc-label { font-size: calc(14 * var(--k)); line-height: calc(18 * var(--k)); color: rgba(255, 255, 255, 0.9); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .vc-bars i { animation: none; } }

/* 众声钱包：559.7 + 788.3 */
.wallet-grid { margin-top: 24px; display: grid; grid-template-columns: 559.7fr 788.3fr; gap: 12px; align-items: start; }
/* 5 大特性：极致快速占两列 */
.feat-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.feat-fast { grid-column: span 2; }
.feat-card { border-radius: 24px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03); }

/* ==================== 下载 ==================== */
.sec-download { padding-top: 0; }
.dl-grid { margin-top: 26px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.platform, .dl-qr { position: relative; height: 247px; border-radius: 24px; background: var(--gray); }
.platform {
    display: flex; flex-direction: column; align-items: flex-start; padding: 24px; text-align: left;
    transition: transform 200ms var(--ease-out), box-shadow 240ms ease, background-color 240ms ease;
}
.platform:active { transform: scale(0.98); }
.p-ic { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; background: #fff; }
.p-name { margin-top: 24px; font-size: 24px; line-height: 33.6px; font-weight: 600; }
.p-desc { margin-top: 12px; font-size: 16px; line-height: 22.4px; color: var(--text-2); white-space: nowrap; }
.p-action { margin-top: auto; align-self: stretch; display: flex; align-items: center; justify-content: space-between; font-size: 16px; line-height: 22.4px; font-weight: 600; color: var(--blue); }
.p-arrow { width: 12px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 240ms var(--ease-out); }
/* 桌面端未上线：去色 + 弱化，保留可点击以弹出提示 */
.platform.is-soon { cursor: default; }
.platform.is-soon .p-ic img { opacity: 0.4; }
.platform.is-soon .p-name { color: #a1a1aa; }
.platform.is-soon .p-action { color: #a1a1aa; }
.platform.is-soon .p-arrow { display: none; }

.dl-qr { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; font-size: 16px; line-height: 22.4px; }
.dl-qr .dl-qr-box { width: 149px; height: 149px; padding: 10px; border-radius: 12px; background: #fff; border: 1px solid var(--gray); }
.dl-qr .tg-qr { width: 129px; height: 129px; }

/* ==================== 扫码下载面板（仿 tdesktop 用户二维码） ==================== */
.qr-layer { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; padding: 20px; }
.qr-layer[hidden] { display: none; }
.qr-layer-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); opacity: 0; transition: opacity 240ms ease; }
.qr-panel {
    position: relative; width: 430px; max-width: 100%; height: 550px; max-height: calc(100vh - 40px); border-radius: 16px;
    display: flex; align-items: center; justify-content: center; outline: none;
    background: radial-gradient(circle at 50% 42%, #333 0%, #262626 45%, #1c1c1c 100%);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    opacity: 0; transform: scale(0.96); transition: opacity 240ms ease, transform 320ms var(--ease-out);
}
.qr-layer.is-open .qr-layer-backdrop, .qr-layer.is-open .qr-panel { opacity: 1; }
.qr-layer.is-open .qr-panel { transform: none; }
/* 白卡：从半透明灰色小方块放大成白卡 */
.qr-card {
    margin-top: -38px; width: 316px; padding: 38px 0 20px; border-radius: 28px; background: #fff;
    display: flex; flex-direction: column; align-items: center;
    opacity: 0.35; transform: scale(0.55); background-color: rgba(255, 255, 255, 0.35);
    transition: transform 420ms cubic-bezier(0.34, 1.25, 0.64, 1), opacity 260ms ease, background-color 320ms ease;
}
.qr-layer.is-open .qr-card { opacity: 1; transform: none; background-color: #fff; }
.qr-canvas { display: block; width: 222px; height: 222px; }
.qr-card-label { margin-top: 12px; font-size: 38px; line-height: 44px; font-weight: 700; letter-spacing: 0.5px; color: #000; white-space: nowrap; }
.qr-btn {
    position: absolute; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.12); color: #fff; transition: background-color 160ms ease, transform 160ms var(--ease-out);
}
.qr-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.qr-btn:active { transform: scale(0.92); }
.qr-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.qr-close { top: 20px; right: 20px; }
.qr-close svg { width: 18px; height: 18px; stroke-width: 2.2; }
.qr-copy { left: 20px; bottom: 20px; }
.qr-save { right: 20px; bottom: 20px; }
@media (hover: hover) and (pointer: fine) { .qr-btn:hover { background: rgba(255, 255, 255, 0.2); } }
.qr-locked { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
    .qr-card { transform: none; transition: opacity 200ms ease, background-color 200ms ease; }
    .qr-panel { transform: none; }
}

/* ==================== 页脚 ==================== */
.footer-inner { padding: 24px 0; border-top: 1px solid var(--line); }
.footer-top { display: flex; align-items: center; justify-content: space-between; }
.footer-logo img { width: 118px; height: 52px; }
.footer-nav a { font-size: 16px; line-height: 22.4px; font-weight: 500; color: var(--text-2); transition: color 200ms ease; }
.footer-bottom { margin-top: 12px; display: flex; justify-content: space-between; font-size: 16px; line-height: 22.4px; color: var(--text-2); }

/* ==================== Hover（仅精确指针设备） ==================== */
@media (hover: hover) and (pointer: fine) {
    .header-nav a:hover, .footer-nav a:hover { color: var(--text); }
    .hero-btn:hover { border-radius: 14px; box-shadow: 0 0 0 12px rgba(0, 0, 0, 0), 0 8px 24px rgba(0, 0, 0, 0.25); }
    .hero-btn:hover .hb-arr-1 { right: -25%; }
    .hero-btn:hover .hb-arr-2 { left: 20px; }
    .hero-btn:hover .hb-text { transform: translateX(20px); }
    .hero-btn:hover .hb-circle { width: 220px; height: 220px; opacity: 1; }
    .platform:not(.is-soon):hover { background: #f3f3f3; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06); }
    .platform:not(.is-soon):hover .p-arrow { transform: translateX(4px); }
}

/* ==================== PC 窄屏适配 ==================== */
@media (max-width: 1279px) and (min-width: 768px) {
    .header-nav a { font-size: 17px; }
    .header-nav a + a { margin-left: 41px; }
    .header-nav a + a::before { left: -21px; }
    .sec-desc { font-size: 17px; }
    .dl-grid { gap: 12px; }
    .platform { padding: 18px; }
    .p-name { font-size: 20px; }
    .p-desc { font-size: 13px; }
}
/* 1024 以下：文案在上、插画在下，插画按 --hs（容器宽 / 679）缩放 */
@media (max-width: 1023px) and (min-width: 768px) {
    .hero { height: auto; }
    .hero-inner { height: auto; padding: 120px 0 0; zoom: 1; }
    .hero-copy { width: 100%; padding-top: 0; }
    .hero-art-wrap { position: relative; top: auto; right: auto; margin: 40px auto 0; width: calc(679px * var(--hs, 1)); height: calc(600px * var(--hs, 1)); }
    .hero-art { transform-origin: 0 0; transform: scale(var(--hs, 1)); }
    .dl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* =====================================================================
   H5（< 768px）：1rem = 设计稿 100px（390 基准）
   ===================================================================== */
@media (max-width: 767px) {
    html { font-size: calc(min(100vw, 540px) / 3.9); }
    .pc-only { display: none; }
    .mobile-only { display: block; }

    .m-page { position: relative; max-width: 3.9rem; margin: 0 auto; overflow: hidden; font-size: .14rem; }

    /* 首屏 */
    .m-hero { position: relative; height: 7.16rem; padding: .40rem .16rem 0; }
    .m-hero-bg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: #f4f4f4 url(/static/img/v2/m-hero-bg.webp) center top / 100% auto no-repeat; }
    .m-hero > *:not(.m-hero-bg) { position: relative; }
    .m-logo { width: .8486rem; height: .40rem; }
    .m-title { margin-top: .12rem; height: .88rem; padding-top: .0289rem; }
    .m-title img { width: 2.126rem; height: auto; margin-left: .0155rem; }
    .m-summary { margin-top: .04rem; font-size: .14rem; line-height: .20rem; color: var(--text-2); }
    .m-cta { margin-top: .20rem; display: flex; align-items: center; gap: .20rem; }
    .m-btn {
        position: relative; display: inline-flex; align-items: center; gap: .08rem; height: .40rem; padding: 0 .16rem;
        border-radius: 1rem; background: #000; color: #fff; font-size: .14rem; line-height: .18rem; font-weight: 500;
        box-shadow: 0 .04rem .12rem rgba(0, 0, 0, 0.16);
        -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; user-select: none; touch-action: manipulation;
        transition: transform 160ms var(--ease-out);
    }
    .m-btn:active { transform: scale(0.95); }
    .m-btn-arrow { width: .12rem; height: .10rem; fill: none; stroke: #fff; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

    .m-stats { margin: .24rem -.16rem 0; display: flex; height: .64rem; }
    .m-stat { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; white-space: nowrap; }
    .m-stat-ic { height: .20rem; width: auto; }
    .m-stat-ic[src*="avatars"] { height: .22rem; margin-top: -.01rem; margin-bottom: -.01rem; }
    .m-stat-ic[src*="globe"] { border-radius: .05rem; }
    .m-stat-stars { width: .60rem; height: .12rem; margin: .04rem 0; }
    .m-stats .stat-num { margin-top: .08rem; font-size: .16rem; line-height: .19rem; }
    .m-stats .stat-num i { font-size: .16rem; margin-left: .01rem; }
    .m-stat-label { font-size: .12rem; line-height: .168rem; color: var(--text-2); }
    .m-stat-divider { width: 1px; background: linear-gradient(180deg, rgba(220, 229, 240, 0), #dce5f0 50%, rgba(220, 229, 240, 0)); }

    /* 首屏插画 390×320（坐标取自 Figma，相对画板） */
    .m-art { margin: .24rem -.16rem 0; height: 3.20rem; }
    .m-art > * { position: absolute; }
    .m-art img { width: 100%; height: auto; }
    .m-art .ha-glow { left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; }
    .m-art .ha-glow img { position: absolute; left: .18rem; top: 0; width: 3.72rem; }
    .m-art .ha-phone { left: .13rem; top: 0; width: 3.621rem; }
    .m-art .hc { border-radius: .0853rem; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
    .m-art .hc img { position: absolute; left: -.149rem; top: -.085rem; }
    .m-art .hc-voice  { left: .31rem; top: 1.69rem; width: 1.045rem; height: .798rem; }
    .m-art .hc-voice img  { width: 1.347rem; }
    .m-art .hc-typing { left: .46rem; top: 2.68rem; width: .925rem; height: .279rem; }
    .m-art .hc-typing img { width: 1.227rem; }
    .m-art .hc-wallet { left: 2.45rem; top: 2.13rem; width: 1.245rem; height: .693rem; }
    .m-art .hc-wallet img { width: 1.547rem; }
    .m-art .hc-secure { left: .12rem; top: .87rem; width: .715rem; height: .279rem; }
    .m-art .hc-secure img { left: -.124rem; width: .99rem; }
    .m-art .hc-sent   { left: 2.85rem; top: .17rem; width: .635rem; height: .186rem; border-radius: 1rem; }
    .m-art .hc-sent img   { width: .937rem; }
    .m-art .hc-video  { left: 2.60rem; top: .74rem; width: 1.003rem; height: 1.067rem; }
    .m-art .hc-video img  { left: -.224rem; top: -.16rem; width: 1.453rem; }

    /* 区块 */
    .m-sec { padding: .36rem .16rem; }
    .m-sec-gray { background: var(--gray); }
    .m-sec-title { font-size: .24rem; line-height: .336rem; font-weight: 600; }
    .m-sec-desc { margin-top: .06rem; font-size: .14rem; line-height: .20rem; color: var(--text-2); }
    .m-sec img { width: 100%; height: auto; }

    .m-chat-grid { margin-top: .16rem; display: grid; grid-template-columns: 2.055fr 1.445fr; gap: .08rem; align-items: start; }
    .m-chat-grid .col { gap: .08rem; }
    /* H5 视频通话卡片 205×284：通话界面整体约为 PC 的一半 */
    .m-vcall { --k: .005rem; aspect-ratio: 205.5 / 284; border-radius: .20rem; }
    .m-vcall .vc-head { left: .16rem; top: .16rem; gap: .02rem; }
    .m-vcall .vc-head b { font-size: .16rem; line-height: .224rem; }
    .m-vcall .vc-head span { font-size: .12rem; line-height: .168rem; }
    .m-vcall .vc-badge { right: .15rem; top: .16rem; height: .15rem; padding: 0 .07rem 0 .05rem; gap: .04rem; font-size: .074rem; line-height: .10rem; }
    .m-vcall .vc-shade-bottom { height: 1.06rem; }
    .m-vcall .vc-shade-top { height: .80rem; }
    .m-vcall .vc-actions { bottom: .21rem; gap: .117rem; }
    .m-vcall .vc-act { width: .32rem; gap: .02rem; }
    .m-vcall .vc-label { font-size: .09rem; line-height: .12rem; }
    .m-chat-grid > img { border-radius: .20rem; }

    .m-wallet-main { margin-top: .16rem; }
    /* 横向滑动卡片：贴边滑动，首尾留出 16 的内边距 */
    .m-scroller {
        margin: .12rem -.16rem 0; padding: 0 .16rem; display: flex; gap: .12rem;
        overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 .16rem;
        scrollbar-width: none; -webkit-overflow-scrolling: touch;
    }
    .m-scroller::-webkit-scrollbar { display: none; }
    .m-scroller > img { flex: none; scroll-snap-align: start; }
    .m-wallet-row > img { width: 2.98rem; }
    .m-feat-row { margin-top: .16rem; }
    .m-feat-row > img { width: 3.30rem; }
    .m-feat-row > .m-feat-fast { width: 2.98rem; }

    /* 安装教程 */
    .m-guide { padding: .24rem 0 .40rem; }
    .m-guide-title { text-align: center; font-size: .24rem; line-height: .336rem; font-weight: 600; }
    .m-guide-img { margin-top: .28rem; width: 100%; height: auto; }
    /* 安卓教程图自带标题和上下留白 */
    .m-guide.is-android { padding: 0; }
    .m-guide.is-android .m-guide-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .m-guide.is-android .m-guide-img { margin-top: 0; }

    /* 下载中状态 */
    .m-btn.downloading { pointer-events: none; opacity: 0.85; }
    .m-btn .btn-spinner {
        display: none; position: absolute; top: 50%; left: 50%; width: .20rem; height: .20rem;
        margin: -.10rem 0 0 -.10rem; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; border-radius: 50%;
        animation: btn-spin 0.7s linear infinite;
    }
    .m-btn.downloading .btn-spinner { display: block; }
    .m-btn.downloading .btn-label, .m-btn.downloading .m-btn-arrow { opacity: 0.35; }

    /* 邀请码胶囊（H5）：高 40，字号 14 */
    .invite.m-invite { height: .40rem; padding: 0 .12rem; border-radius: .20rem; font-size: .14rem; line-height: .196rem; }
    .invite.m-invite .invite-ic { width: .15rem; height: .16rem; margin-right: .06rem; }
    .invite.m-invite .invite-copy { margin-left: .12rem; }
    .invite.m-invite .invite-copy-ic { width: .19rem; height: .20rem; }

    /* 上滑吸顶栏：高 60，左「立即下载」右邀请码；首屏下载按钮滚出视口后滑入 */
    .m-sticky {
        position: fixed; left: 0; right: 0; top: 0; z-index: 90; height: calc(.60rem + env(safe-area-inset-top));
        padding: env(safe-area-inset-top) .16rem 0; display: flex; align-items: center; justify-content: space-between; gap: .12rem;
        background: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
        transform: translateY(-100%); visibility: hidden;
        transition: transform 360ms var(--ease-out), visibility 0s linear 360ms;
    }
    .m-sticky.is-on { transform: none; visibility: visible; transition: transform 420ms var(--ease-out), visibility 0s; }
    .m-sticky .m-btn { flex: none; }
    .invite.m-sticky-invite { animation: none; }
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* 邀请码胶囊（地址为 /s/<邀请码> 时显示，见 index.js initInvite）：有效显示「邀请码：xxx + 复制」，无效显示「邀请码不存在」
   设计稿：PC 高 50 / 字号 18，H5 高 40 / 字号 14；灰底毛玻璃 + 白色描边 */
.invite {
    display: inline-flex; align-items: center; height: 50px; padding: 0 15px; border-radius: 25px;
    background: rgba(241, 241, 241, 0.92); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), 0 8px 26px -8px rgba(0, 0, 0, 0.08);
    color: #000; font-size: 18px; line-height: 25px; white-space: nowrap;
    animation: invite-in 420ms var(--ease-out) both;
}
.invite[hidden] { display: none; }
.invite-ok, .invite-bad { display: none; align-items: center; }
.invite.is-valid .invite-ok, .invite.is-invalid .invite-bad { display: inline-flex; }
.invite-bad { font-weight: 500; }
.invite-ic { flex: none; width: 19px; height: 20px; margin-right: 6px; }
.invite-label { font-weight: 500; }
.invite-code { font-weight: 600; }
.invite-copy {
    position: relative; display: inline-flex; margin-left: 12.5px; padding: 0; color: #000; cursor: pointer;
    transition: opacity 160ms ease, scale 160ms var(--ease-out);
}
.invite-copy::after { content: ''; position: absolute; inset: -10px; }   /* 放大点击区域 */
.invite-copy:active { scale: 0.88; }
.invite-copy:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.invite-copy-ic { width: 27px; height: 28px; }
@media (hover: hover) and (pointer: fine) { .invite-copy:hover { opacity: 0.6; } }
@keyframes invite-in { from { opacity: 0; transform: translateX(-6px); } }
@media (prefers-reduced-motion: reduce) { .invite { animation-name: invite-fade; } @keyframes invite-fade { from { opacity: 0; } } }
/* PC 下载区标题行：邀请码胶囊靠右 */
.dl-head { align-items: center; }
.dl-head .sec-title, .dl-head .sec-desc { align-self: flex-end; }
.dl-invite { margin-left: auto; }

/* 在线客服入口暂时隐藏（面板及相关脚本保留）。恢复时删掉这一条即可 */
.cs-entry { display: none !important; }

/* ==================== Toast ==================== */
.dl-toast {
    position: fixed; top: 50%; left: 50%; z-index: 9999;
    transform: translate(-50%, -50%) scale(0.96);
    background: rgba(0, 0, 0, 0.8); color: #fff; padding: 16px 26px; border-radius: 12px;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    font-size: 14px; line-height: 1.6; text-align: center; max-width: 80vw; word-break: break-word;
    opacity: 0; pointer-events: none;
    transition: opacity 200ms ease-out, transform 240ms var(--ease-out);
}
.dl-toast.visible { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }
.dl-toast.toast-err { background: rgba(220, 50, 50, 0.88); }
.dl-toast.toast-ok  { background: #333; }   /* 成功提示目前只用于复制邀请码 */
.dl-toast .toast-retry {
    display: inline-block; margin-top: 10px; padding: 6px 20px; border-radius: 20px;
    background: #fff; color: var(--blue); font-size: 13px; font-weight: 500;
}


/* 入场前隐藏（由 motion.js 接管） */
.motion [data-hero-in], .motion [data-stage] > * { opacity: 0; }

/* ==================== 减少动态效果 ==================== */
@media (prefers-reduced-motion: reduce) {
    .pressable, .platform, .p-arrow, .hb-arr, .hb-text, .hb-circle, .hero-btn { transition-property: opacity, background-color, box-shadow; }
    .hero-btn:active { scale: none; }
    .pressable:active { transform: none; }
}

/* =====================================================================
   在线客服：右侧悬浮入口 + 侧边面板
   入口尺寸 64×149，图层坐标取自 Figma「客服悬浮」（574:2766）
   ===================================================================== */
.cs-entry {
    --cs-ease: cubic-bezier(0.23, 1, 0.32, 1);
    position: fixed; z-index: 150; right: 10px; top: 50%; margin-top: -75px;
    width: 64px; height: 149px; padding: 0; border: 0; background: none; cursor: pointer;
    -webkit-tap-highlight-color: transparent; transform-origin: 100% 50%;
    transition: opacity 240ms ease, translate 320ms var(--cs-ease), scale 400ms var(--cs-ease);
}
.cs-entry:active { scale: 0.95; transition-duration: 240ms, 320ms, 120ms; }
.cs-entry:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 12px; }
.cs-entry > *, .cs-group > *, .cs-robot-pos > * { position: absolute; display: block; pointer-events: none; }
/* 收起 / 展开：静置 3.5s 后收起成机器人 45° 趴在屏幕边缘，悬停再展开（状态由 index.js 切换 .cs-collapsed） */
.cs-entry { --cs-peek-x: 31px; --cs-peek-y: 49px; }   /* 收起后机器人的位移：约 40% 藏到屏幕外，垂直移到入口中部 */
.cs-group { left: 0; top: 0; width: 64px; height: 149px; transition: transform 500ms var(--cs-ease), opacity 300ms ease; }
.cs-robot-pos { left: 0; top: 0; width: 57px; height: 51px; z-index: 2; transition: transform 560ms var(--cs-ease); }
.cs-entry.cs-collapsed { pointer-events: none; }
.cs-entry.cs-collapsed .cs-group { transform: translateX(90px); opacity: 0; transition: transform 420ms cubic-bezier(0.55, 0, 1, 0.45), opacity 260ms ease 120ms; }
.cs-entry.cs-collapsed .cs-robot-pos { transform: translate(var(--cs-peek-x), var(--cs-peek-y)) rotate(-45deg); pointer-events: auto; transition-delay: 120ms; }
/* 首次进场：机器人先藏在屏幕外，再趴着从边缘滑入（带一点回弹），稍停后展开完整入口（状态由 index.js 切换 .cs-offstage / .cs-arrive） */
.cs-entry.cs-offstage .cs-robot-pos { transform: translate(calc(var(--cs-peek-x) + 90px), var(--cs-peek-y)) rotate(-45deg); pointer-events: none; transition: none; }
.cs-entry.cs-arrive .cs-robot-pos { transition: transform 760ms cubic-bezier(0.34, 1.4, 0.64, 1); }
.cs-card { will-change: transform; }
.cs-card-light { left: 8.3px; top: 26.7px; width: 55px; height: 107px; }
.cs-card-dark  { left: 1px;   top: 36px;   width: 55px; height: 113px; filter: drop-shadow(0 2px 6px rgba(6, 77, 235, 0.25)); }
.cs-text {
    left: 14px; top: 65px; width: 28px; color: #fff; text-align: center;
    font-size: 14px; line-height: 17px; font-weight: 500; letter-spacing: 0;
}
.cs-robot {
    left: 0; top: 0; width: 57px; height: 51px;
    /* 不倒翁：以底部为支点摇晃 */
    transform-origin: 50% 92%; will-change: transform;
    filter: drop-shadow(0 2px 4px rgba(96, 159, 206, 0.45));
}
.cs-robot img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
/* 眼睛：位置和尺寸取自原图（左右眼因透视略有大小差），颜色同原图上浅下深的蓝 */
.cs-eye {
    position: absolute; border-radius: 999px;
    background: linear-gradient(180deg, #5aa8ff 0%, #2a7bfd 55%, #1764f0 100%);
    box-shadow: inset 0.4px -0.5px 0.8px rgba(8, 60, 200, 0.45);   /* 同原图眼睛边缘略深，带一点立体感 */
    transform-origin: 50% 55%;
    animation: cs-blink 5.2s infinite;
}
.cs-eye-l { left: 18.2px; top: 23.1px; width: 4px; height: 7.6px; }
.cs-eye-r { left: 30.65px; top: 22.7px; width: 3.9px; height: 8.4px; }
/* 可爱型眨眼：先眨一次，停顿约 2 秒后连眨两下；闭眼时眼睛压扁并略微变宽，像被挤了一下 */
@keyframes cs-blink {
    0%, 46%, 100%          { transform: scale(1, 1); }
    2%, 48%, 53%           { transform: scale(1.18, 0.15); animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1); }
    4.5%, 50.5%, 55.5%     { transform: scale(1, 1); }
}
.cs-open .cs-eye { animation-play-state: paused; }
/* 首次进场：滑出趴好后先停掉循环眨眼，由 .cs-wink 从头播一轮 cs-blink（眨一次 → 停顿 → 连眨两下，约 2.9s），再展开完整入口 */
.cs-entry.cs-arrive .cs-eye { animation: none; }
.cs-entry.cs-wink .cs-eye { animation: cs-blink 5.2s 1; }
/* 箭头：悬停时向右滑出，另一只从左侧滑回原位（同首屏下载按钮的交互） */
.cs-arrows { left: 1px; top: 112px; width: 55px; height: 11px; overflow: hidden; }
.cs-arr {
    position: absolute; top: 0; left: 23.5px; width: 7px; height: 11px;
    transition: transform 800ms var(--cs-ease), opacity 500ms var(--cs-ease);
}
.cs-arr-2 { transform: translateX(-24px); opacity: 0; }
@media (hover: hover) and (pointer: fine) {
    .cs-entry:hover { scale: 1.08; }
    .cs-entry:hover .cs-arr-1 { transform: translateX(24px); opacity: 0; }
    .cs-entry:hover .cs-arr-2 { transform: translateX(0); opacity: 1; }
}
/* 面板打开时入口让位 */
.cs-open .cs-entry { opacity: 0; translate: 24px 0; pointer-events: none; }

/* 面板就是 SaleSmartly 聊天窗本身：
   SaleSmartly 在桌面端把聊天窗画成右下角浮窗，宽 400、高 min(700px, 80vh)，距右 15px、距底 30px（含品牌条），
   在 iframe 里不会铺满。这里让 iframe 比面板大，并按它的规则偏移，使聊天窗恰好填满面板、四周外边距被裁掉。
   规则来自 SaleSmartly 插件源码（{width:"400px",height:"700px",maxHeight:"80vh"}）及实测，升级插件后需复核 */
.cs-panel {
    --cs-drawer: cubic-bezier(0.32, 0.72, 0, 1);
    --cs-ratio: 0.8;          /* 聊天窗高度占 iframe 视口高度的比例：桌面 80vh */
    --cs-inset-right: 15px;   /* 聊天窗距 iframe 右边 */
    --cs-inset-bottom: 30px;  /* 聊天窗距 iframe 底边 */
    position: fixed; z-index: 300; right: 16px; bottom: 16px;
    width: 400px; height: min(700px, calc(100vh - 32px));
    display: flex; flex-direction: column; overflow: hidden;
    /* 外层透明：不画底色和阴影，只负责定位、裁切和滑入滑出 */
    border-radius: 12px; background: transparent;
    transform: translateX(calc(100% + 32px)); visibility: hidden;
    /* 收起：比展开快，结束后再隐藏 */
    transition: transform 280ms var(--cs-drawer), visibility 0s linear 280ms;
}
.cs-open .cs-panel {
    transform: none; visibility: visible;
    transition: transform 420ms var(--cs-drawer), visibility 0s;
}
.cs-body { position: relative; flex: 1; min-height: 0; background: transparent; }
.cs-body iframe {
    position: absolute; top: auto; left: auto; right: 0; bottom: 0; border: 0; display: block;
    width: 100%; height: calc(100% / var(--cs-ratio));
}
/* 桌面浮窗：iframe 宽 = 浮窗 400 + 两侧外边距，按右下角对齐裁掉外边距。
   面板窄于 400 时（窄窗口）整体按 --cs-scale 等比缩小，保证浮窗完整显示；--cs-scale 由 index.js 计算 */
.cs-ss-desktop .cs-body iframe {
    width: calc(400px + var(--cs-inset-right) * 2);
    height: calc(100% / var(--cs-ratio) / var(--cs-scale, 1));
    right: calc(-1 * var(--cs-inset-right) * var(--cs-scale, 1));
    bottom: calc(-1 * var(--cs-inset-bottom) * var(--cs-scale, 1));
    transform: scale(var(--cs-scale, 1)); transform-origin: 100% 100%;
}
.cs-loading {
    position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    background: #fff; color: var(--text-2); font-size: 14px; transition: opacity 240ms ease, visibility 0s linear 240ms;
}
.cs-ready .cs-loading { opacity: 0; visibility: hidden; }
.cs-spinner {
    width: 24px; height: 24px; border-radius: 50%;
    border: 2.5px solid rgba(0, 139, 255, 0.18); border-top-color: var(--blue);
    animation: btn-spin 0.7s linear infinite;
}

/* H5：入口缩小贴右侧；面板统一为底部弹出的 action sheet（不论 SaleSmartly 用哪种布局） */
@media (max-width: 767px) {
    .cs-entry { right: 4px; top: auto; margin-top: 0; bottom: calc(96px + env(safe-area-inset-bottom)); transform: scale(0.8); transform-origin: 100% 100%; --cs-peek-x: 27px; }
    .cs-panel {
        left: 0; right: 0; bottom: 0; width: 100%; height: calc(100% - 56px - env(safe-area-inset-top));
        border-radius: 16px 16px 0 0;
        transform: translateY(100%);
    }
    .cs-open .cs-panel { transform: none; }
    /* 顶部留出的遮罩，点击关闭 */
    .cs-backdrop {
        position: fixed; inset: 0; z-index: 290; background: rgba(10, 20, 40, 0.4);
        opacity: 0; visibility: hidden; transition: opacity 280ms ease, visibility 0s linear 280ms;
        -webkit-tap-highlight-color: transparent;
    }
    .cs-open .cs-backdrop { opacity: 1; visibility: visible; transition: opacity 320ms ease, visibility 0s; }
    .cs-open, .cs-open body { overflow: hidden; }
}

/* SaleSmartly 手机布局：聊天窗宽 100%、高 85vh、贴底，无外边距。
   若后台开启「手机端铺满屏幕」，聊天窗变为 100vh，把这里的 --cs-ratio 改成 1 */
.cs-panel.cs-ss-mobile { --cs-ratio: 0.85; --cs-inset-right: 0px; --cs-inset-bottom: 0px; }

/* PC 没有遮罩：点面板外即关闭 */
.cs-backdrop { display: none; }
@media (max-width: 767px) { .cs-backdrop { display: block; } }

@media (prefers-reduced-motion: reduce) {
    .cs-arr { transition: opacity 200ms ease; }
    .cs-eye { animation: none; }
    .cs-group, .cs-robot-pos, .cs-entry.cs-collapsed .cs-group, .cs-entry.cs-collapsed .cs-robot-pos, .cs-entry.cs-arrive .cs-robot-pos { transition-duration: 1ms; transition-delay: 0ms; }
    .cs-entry, .cs-entry:hover { scale: none; }
    .cs-panel, .cs-open .cs-panel { transition: opacity 200ms ease, visibility 0s linear 200ms; transform: none; opacity: 0; }
    .cs-open .cs-panel { opacity: 1; transition: opacity 200ms ease, visibility 0s; }
}

/* =====================================================================
   邀请弹窗：通过推荐链接 /pc/referral/{邀请码} 打开时显示（仅 PC，逻辑见 index.js initReferral）
   ===================================================================== */
.rf-modal { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; padding: 20px; }
.rf-modal[hidden] { display: none; }
.rf-open { overflow: hidden; }
.rf-backdrop { position: absolute; inset: 0; background: rgba(10, 20, 40, 0.45); animation: rf-fade 200ms ease-out; }
.rf-card {
    position: relative; width: 420px; max-width: 100%; padding: 36px 32px 24px; border-radius: 24px;
    border: 1px solid #fff; background: linear-gradient(180deg, #eaf5ff 0%, #fff 42%);
    box-shadow: 0 24px 60px rgba(0, 40, 100, 0.18); text-align: center;
    animation: rf-pop 280ms var(--ease-out);
}
.rf-close {
    position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: #9aa4b2;
    transition: background-color 160ms ease, color 160ms ease;
}
.rf-close svg { width: 20px; height: 20px; fill: currentColor; }
.rf-logo { width: 72px; height: 72px; margin: 0 auto; }
.rf-title { margin-top: 14px; font-size: 22px; line-height: 30px; font-weight: 600; }
.rf-title span { color: var(--blue); }
.rf-code { margin-top: 18px; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 18px; border-radius: 12px; background: #f2f7fd; }
.rf-code-label { flex: none; font-size: 14px; color: var(--text-2); }
.rf-code-value { flex: 1; min-width: 0; text-align: left; font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: 1px; color: #041427; overflow-wrap: anywhere; }
.rf-copy { flex: none; height: 30px; padding: 0 14px; border-radius: 15px; background: #fff; color: var(--blue); font-size: 13px; font-weight: 500; box-shadow: 0 1px 3px rgba(0, 60, 140, 0.08); }
.rf-status { margin-top: 16px; min-height: 22px; font-size: 14px; line-height: 22px; color: var(--text-2); }
.rf-status > span { display: none; align-items: center; justify-content: center; gap: 8px; }
.rf-trying .rf-s-trying, .rf-opened .rf-s-opened, .rf-missing .rf-s-missing, .rf-idle .rf-s-idle { display: inline-flex; }
.rf-spinner { width: 14px; height: 14px; border: 2px solid rgba(0, 139, 255, 0.25); border-top-color: var(--blue); border-radius: 50%; animation: btn-spin 0.7s linear infinite; }
.rf-actions { margin-top: 18px; display: flex; gap: 12px; }
.rf-btn { flex: 1; height: 44px; border-radius: 22px; font-size: 15px; font-weight: 500; }
.rf-btn-open { background: #fff; color: var(--blue); box-shadow: inset 0 0 0 1px rgba(0, 139, 255, 0.4); }
.rf-btn-download { background: var(--blue); color: #fff; }
.rf-tip { margin-top: 14px; font-size: 12px; line-height: 18px; color: var(--text-3); }
.rf-tip a { margin-left: 4px; color: var(--blue); }
.rf-close:focus-visible, .rf-copy:focus-visible, .rf-btn:focus-visible, .rf-tip a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
    .rf-close:hover { background: rgba(0, 0, 0, 0.05); color: var(--text); }
    .rf-copy:hover, .rf-btn-open:hover { background: #eaf5ff; }
    .rf-btn-download:hover { background: #0a80f0; }
    .rf-tip a:hover { text-decoration: underline; }
}
@keyframes rf-fade { from { opacity: 0; } }
@keyframes rf-pop { from { opacity: 0; transform: translateY(8px) scale(0.97); } }
@media (prefers-reduced-motion: reduce) {
    .rf-card { animation-name: rf-fade; }
}
