/* ═══════════════════════════════════════════════════════════
   宙斯云手机 · 首页样式 v2.0
   严格按 ready-v3.pen + 前端设计规范 v1.1 实现
   PC 基准 1920px，clamp 响应 1280–1920px，768px 以下移动端
   ═══════════════════════════════════════════════════════════ */

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    min-width: 1280px;
    font-family: 'Inter','PingFang SC',-apple-system,'Microsoft YaHei',sans-serif;
    background: var(--bg);
    color: var(--ink);
    overflow-x: hidden;
}

/* 顶部导航 / 汉堡 / 移动抽屉 → 见 layout.css（避免与全站 Grid 居中方案冲突） */

/* ══════════════════════════════ HERO ══════════════════════════════ */
.hero {
    width: 100%;
    background: var(--hero-bg, #ECEFF7);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 40px clamp(80px,12.5vw,240px);
    gap: 20px;
    min-height: 700px;
}
.hero-content-row {
    display: flex; align-items: center;
    gap: clamp(20px,2.08vw,40px);
    width: 100%; max-width: 1440px;
}
.hero-left {
    width: clamp(480px,36vw,630px);
    flex-shrink: 0;
    display: flex; flex-direction: column;
}
.hero-text-group { display: flex; flex-direction: column; gap: clamp(32px,3.125vw,60px); padding-left: clamp(20px,2.083vw,40px); }
.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    height: 36px; padding: 0 16px;
    background: var(--surface, #fff); border-radius: 24px; width: fit-content;
}
.hero-badge-dot { width: 8px; height: 8px; border-radius: 4px; background: var(--accent); flex-shrink: 0; }
.hero-badge-text { font-size: clamp(13px,1.042vw,20px); font-weight: 500; color: var(--ink-strong, #0B2D5C); white-space: nowrap; }
.hero-h1-wrap { display: flex; flex-direction: column; gap: 12px; }
.hero-h1-main { font-size: clamp(36px,3.229vw,62px); font-weight: 800; color: var(--ink-strong, #0B2D5C); line-height: 1.1; display: block; }
.hero-h1-sub-wrap { padding-left: clamp(56px,10.417vw,200px); }
.hero-h1-sub  { font-size: clamp(30px,2.8125vw,54px); font-weight: 700; color: var(--brand); line-height: 1.1; display: block; }
.hero-slogan  { font-size: clamp(18px,1.458vw,28px); font-weight: 800; color: var(--ink-strong, #0B2D5C); }
.feature-tags { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; overflow: hidden; }
.feature-tag  {
    display: flex; align-items: center; gap: 6px;
    padding: clamp(5px,.365vw,7px) clamp(8px,.625vw,12px);
    border-radius: var(--radius-sm);
}
.feature-tag-dot  { width: 6px; height: 6px; border-radius: 3px; flex-shrink: 0; }
.feature-tag-text { font-size: clamp(13px,.938vw,18px); font-weight: 600; color: var(--ink-strong, #0B2D5C); white-space: nowrap; }
.tag-teal { background: var(--accent-tint, #E6F8F6); } .tag-teal .feature-tag-dot { background: var(--accent); }
.tag-blue { background: var(--brand-tint, #EAF0FB); } .tag-blue .feature-tag-dot { background: var(--brand); }
.download-row {
    display: flex; align-items: center; gap: 12px; flex-wrap: nowrap;
    width: min(1152px, 100%);
}
.dl-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    height: clamp(46px,3.333vw,64px);
    flex: 1 1 clamp(180px,14.53vw,279px); min-width: 0;
    border-radius: 32px; cursor: pointer; border: none; outline: none;
    transition: opacity .2s; text-decoration: none;
}
.dl-btn:hover { opacity: .88; text-decoration: none; }
.dl-btn-icon  { width: clamp(20px,1.354vw,26px); height: clamp(20px,1.354vw,26px); flex-shrink: 0; color: #fff; }
.dl-btn-text  { font-size: clamp(15px,1.042vw,20px); font-weight: 600; color: #fff; white-space: nowrap; }
.btn-android { background: #0078D4; }
.btn-pc  { background: var(--brand-deep, #0E3A6C); }
.btn-web { background: var(--accent); }
.btn-ios { background: #1C1C1E; }
.hero-right {
    flex: 1; min-width: 0;
    max-width: clamp(400px,40vw,768px);
    position: relative;
}
.hero-phone-img { width: 100%; height: auto; display: block; }

/* ══════════════════════════════ FEATURES (Bento) ══════════════════════════════ */
.features {
    width: 100%; background: var(--bg);
    padding: 46px clamp(60px,12.5vw,240px);
    display: flex; flex-direction: column; gap: 12px;
}
.sec-header { display: flex; align-items: flex-end; gap: 20px; }
.sec-title { font-size: clamp(24px,1.979vw,38px); font-weight: 800; color: var(--ink); line-height: 1.1; }
.sec-sub   { font-size: 16px; font-weight: 400; color: var(--ink-3); white-space: nowrap; }
.bento-container { display: flex; gap: 32px; width: 100%; }
.bento-col { flex: 1; display: flex; flex-direction: column; gap: 32px; }
.bento-card {
    border-radius: var(--radius-lg);
    padding: clamp(20px,1.875vw,36px);
    min-height: 200px; height: auto;
    display: flex; align-items: center; justify-content: space-between; overflow: hidden;
}
.bento-text { display: flex; flex-direction: column; gap: 12px; flex: 1; padding-right: 20px; }
.bento-title { font-size: clamp(20px,1.667vw,32px); font-weight: 700; line-height: 1.2; }
.bento-desc  { font-size: clamp(13px,.833vw,16px); font-weight: 400; color: var(--ink-2); line-height: 1.6; }
.bento-bar   { width: 32px; height: 4px; border-radius: 2px; }
.bento-illust {
    width: clamp(130px,10.417vw,200px); height: clamp(130px,10.417vw,200px);
    border-radius: 16px; flex-shrink: 0; overflow: hidden;
}

/* ══════════════════════════════ SCENARIOS ══════════════════════════════ */
.scenarios {
    width: 100%; background: var(--alt-bg);
    padding: 46px clamp(60px,12.5vw,240px);
    display: flex; flex-direction: column; gap: 12px;
}
.sc-header { display: flex; align-items: flex-end; gap: 20px; }
.sc-title { font-size: clamp(24px,1.979vw,38px); font-weight: 800; color: var(--ink); line-height: 1.1; }
.sc-grid  { display: flex; gap: 24px; }
.sc-card  {
    flex: 1; background: var(--surface);
    border-radius: 16px; padding: clamp(16px,1.25vw,24px) clamp(14px,1.458vw,28px);
    display: flex; flex-direction: column; gap: 12px; height: 260px;
}
.sc-icon  {
    width: clamp(48px,3.333vw,64px); height: clamp(48px,3.333vw,64px);
    border-radius: 14px; flex-shrink: 0; overflow: hidden;
}
.sc-card-title { font-size: clamp(18px,1.458vw,28px); font-weight: 700; color: var(--ink); line-height: 1.2; }
.sc-card-desc  { font-size: 14px; font-weight: 400; color: var(--ink-2); line-height: 1.7; }

/* ══════════════════════════════ RECOMMEND ══════════════════════════════ */
.recommend {
    width: 100%; background: var(--bg);
    padding: 46px clamp(60px,12.5vw,240px);
    display: flex; flex-direction: column; gap: 12px;
}
.rec-header {
    display: flex; align-items: flex-end; justify-content: space-between; width: 100%;
}
.rec-title-group { display: flex; align-items: flex-end; gap: 20px; }
.rec-title { font-size: clamp(24px,1.979vw,38px); font-weight: 800; color: var(--ink); line-height: 1.1; }
.rec-sub   { font-size: 16px; font-weight: 400; color: var(--ink-3); white-space: nowrap; }
.rec-more  { font-size: 14px; font-weight: 600; color: var(--brand); cursor: pointer; white-space: nowrap; text-decoration: none; }
.rec-more:hover { text-decoration: underline; }
.rec-search {
    background: var(--surface); border-radius: var(--radius); height: 40px;
    padding: 0 6px 0 16px; display: flex; align-items: center; gap: 10px;
    border: 1px solid var(--line);
}
.rec-search-input {
    border: none; background: transparent; flex: 1; min-width: 0;
    font-size: 14px; color: var(--ink); outline: none;
}
.rec-search-input::placeholder { color: var(--ink-3); }
.rec-search-icon { flex-shrink: 0; color: var(--ink-3); font-size: 15px; display: flex; align-items: center; }
.rec-search-btn {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: var(--brand, #1A5490);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}
.rec-search-btn:hover { background: #164878; }
.rec-search-btn:active { transform: scale(0.96); }
.rec-search-text { font-size: 14px; color: var(--ink-3); }
.rec-empty-hint {
    text-align: center;
    padding: 28px 20px 8px;
    border-radius: 12px;
    background: var(--surface-2, #f7f9fc);
    border: 1px dashed var(--border, #e2e8f0);
}
.rec-empty-hint__text {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--ink-3);
    line-height: 1.6;
}
.rec-empty-hint__link {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand, #1a5490);
    text-decoration: none;
}
.rec-empty-hint__link:hover { text-decoration: underline; }
.rec-grid { display: flex; gap: 24px; }
.rec-card {
    flex: 1; background: var(--surface); border-radius: 16px;
    padding: 14px 16px; display: flex; align-items: center; gap: 20px;
    min-width: 0;
}
.rec-card-left {
    display: flex; align-items: center; gap: 20px;
    width: clamp(150px,10.938vw,210px); flex-shrink: 0;
}
.rec-card-icon {
    width: clamp(40px,2.5vw,48px); height: clamp(40px,2.5vw,48px);
    border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 700; color: #fff; overflow: hidden;
}
.rec-card-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.rec-card-name { font-size: clamp(14px,1.042vw,20px); font-weight: 700; color: var(--ink); }
.rec-card-desc { font-size: 16px; color: var(--ink-2); line-height: 1.8; }

/* 首页推荐卡片 · 配置行（对齐推荐配置页 rc-meta-row--spread） */
.rec-meta-rows {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.rec-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}
.rec-meta-row--compact {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px 12px;
}
.rec-meta-row--compact .rec-tier-badge { justify-self: end; }
.rec-meta-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--ink-3, #8A98AE);
    justify-self: start;
    white-space: nowrap;
}
.rec-meta-dot {
    width: 16px;
    height: 16px;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.rec-meta-dot--rec::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: #22C55E;
}
.rec-meta-dot--min::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: #EAB308;
}
.rec-tier-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
}
.rec-tier-badge--rec { background: #ECFDF3; color: #16A34A; }
.rec-tier-badge--min { background: #FFFBEB; color: #CA8A04; }

/* ══════════════════════════════ NEWS ══════════════════════════════ */
.news {
    width: 100%; background: var(--alt-bg);
    padding: 42px clamp(60px,12.5vw,240px) 46px;
    display: flex; flex-direction: column; gap: 12px;
}
.news-header { display: flex; align-items: flex-end; justify-content: space-between; width: 100%; }
.news-title-group { display: flex; flex-direction: column; gap: 10px; }
.news-title { font-size: clamp(24px,1.979vw,38px); font-weight: 800; color: var(--ink); }
.news-more  { font-size: 14px; font-weight: 600; color: var(--brand); cursor: pointer; text-decoration: none; }
.news-more:hover { text-decoration: underline; }
.news-grid  { display: flex; gap: 24px; }
.news-card-wrap { flex: 1; display: flex; flex-direction: column; }
.paper-stack { position: relative; height: 10px; }
.paper-line  { position: absolute; height: 2px; border-radius: 1px; }
.news-card   { background: var(--surface); border-radius: 16px; overflow: hidden; }
.news-body   { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; min-height: 116px; }
.news-row-top { display: flex; align-items: flex-start; gap: 10px; }
.news-tag {
    border-radius: 11px; height: 25px; min-width: 60px; padding: 0 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: clamp(14px,.938vw,18px); font-weight: 600; flex-shrink: 0;
}
.news-card-title { font-size: clamp(15px,.938vw,18px); font-weight: 700; color: var(--ink); line-height: 1.45; }
.news-date { font-size: clamp(13px,.833vw,16px); color: var(--ink-3); }

/* ══════════════════════════════ PARTNERS ══════════════════════════════ */
.partners {
    width: 100%; background: var(--bg);
    padding: 36px clamp(60px,12.5vw,240px);
    display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
}
.partners-head   { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.partners-title  { font-size: clamp(24px,1.979vw,38px); font-weight: 800; color: var(--ink); line-height: 1.1; }
.partners-row    { display: flex; align-items: center; justify-content: space-evenly; flex-wrap: wrap; width: 100%; gap: 16px; }
.partner-card    {
    background: var(--surface); border-radius: 10px;
    height: 78px; width: clamp(140px,10.417vw,200px);
    display: flex; align-items: center; justify-content: center;
    flex: 0 0 auto; overflow: hidden;
}
.partner-placeholder { font-size: 14px; color: var(--ink-3); }
.partner-card a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 0; box-sizing: border-box; }
.partner-card img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* ══════════════════════════════ CONTACT ══════════════════════════════ */
.contact {
    width: 100%; background: var(--alt-bg);
    padding: 56px clamp(60px,12.5vw,240px);
    display: flex; flex-direction: column; gap: 12px;
}
.contact-header { display: flex; align-items: flex-end; gap: 20px; }
.contact-title  { font-size: clamp(24px,1.979vw,38px); font-weight: 800; color: var(--ink); line-height: 1.1; }
.contact-sub    { font-size: 16px; color: var(--ink-3); white-space: nowrap; }
.contact-grid   { display: flex; gap: 14px; justify-content: space-between; }
.contact-card   {
    flex: 1; border-radius: 14px; padding: clamp(10px,.729vw,14px) clamp(8px,.625vw,12px);
    display: flex; flex-direction: column; gap: 10px; align-items: center;
}
.contact-tag-row  { display: flex; align-items: center; justify-content: center; gap: 8px; height: 32px; }
.contact-badge    {
    border-radius: var(--radius-full); padding: 3px 8px;
    font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.contact-card-name { font-size: clamp(14px,.938vw,18px); font-weight: 700; color: var(--ink); }
.contact-platform-icon { width: 32px; height: 32px; flex-shrink: 0; }
.contact-qr {
    width: 120px; height: 120px; border-radius: 8px;
    background: #F5F7FA;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.contact-qr img { width: 110px; height: 110px; object-fit: contain; }
.contact-desc { font-size: clamp(12px,.729vw,14px); color: var(--ink-3); text-align: center; }
.contact-mobile-id { display: none; }

/* 查看按钮：desktop 默认隐藏，mobile 按 media query 显示 */
.btn-split-view { display: none; width: 48px; align-items: center; justify-content: center; gap: 3px; cursor: pointer; }
.btn-split-view span { font-size: 11px; font-weight: 600; color: #fff; }
/* WeChat 卡片 split 两侧辅助（desktop 隐藏，仅 mobile 展开） */
.contact-split-side { display: none; }

/* ── QR 查看弹窗 ── */
.qr-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.5);
    display: none; align-items: center; justify-content: center;
    z-index: 99999; padding: 20px;
}
.qr-modal-overlay.is-open { display: flex; }
.qr-modal-card {
    background: #fff; border-radius: 16px; width: 100%; max-width: 320px;
    display: flex; flex-direction: column; overflow: hidden;
}
.qr-modal-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    padding: 16px 20px 12px;
}
.qr-modal-title  { font-size: 16px; font-weight: 700; color: var(--ink); }
.qr-modal-account { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.qr-modal-close  {
    width: 28px; height: 28px; border-radius: 50%; border: none; cursor: pointer;
    background: #F0F2F5; color: #6B7280; font-size: 16px; line-height: 1;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.qr-modal-divider { height: 1px; background: #E6ECF3; }
.qr-modal-body   {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    padding: 24px 20px 20px;
}
.qr-modal-img-wrap { width: 160px; height: 160px; border-radius: 12px; overflow: hidden; background: #F5F7FA; }
/* !important 覆盖 contact-card img 的内联 width/height 样式 */
.qr-modal-img-wrap svg { width: 100%; height: 100%; }
.qr-modal-img-wrap img { width: 100% !important; height: 100% !important; border-radius: 0 !important; background: transparent !important; }
.qr-modal-hint   { font-size: 12px; color: #8A98AE; text-align: center; margin: 0; }
.qr-modal-actions { display: flex; flex-direction: column; gap: 10px; padding: 0 20px 20px; }
.qr-modal-btn-dl {
    width: 100%; height: 42px; border-radius: 10px; border: none; cursor: pointer;
    background: #D65C2A; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.qr-modal-btn-dl span { font-size: 13px; font-weight: 700; color: #fff; }
.qr-modal-btn-copy {
    width: 100%; height: 42px; border-radius: 10px; border: none; cursor: pointer;
    background: #F4F6FA; display: flex; align-items: center; justify-content: center;
}
.qr-modal-btn-copy span { font-size: 13px; font-weight: 600; color: #4A5568; }
.qr-modal-footer {
    display: flex; align-items: center; justify-content: center; gap: 4px;
    padding: 10px 20px 16px; font-size: 11px; color: #8A98AE;
}
.contact-btn {
    width: min(250px,100%); height: 34px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; border: none; outline: none; transition: opacity .2s;
}
.contact-btn:hover { opacity: .88; }
.contact-btn span { font-size: 14px; font-weight: 600; color: #fff; }
.contact-btn-split {
    width: min(250px,100%); height: 34px; border-radius: var(--radius-sm);
    display: flex; overflow: hidden; cursor: pointer; transition: opacity .2s;
}
.contact-btn-split:hover { opacity: .88; }
/* 无联系链接时：PC 端不可见但保留占位（移动端仍显示"查看"按钮） */
.contact-btn-split.no-link-btn { visibility: hidden; }
@media (max-width: 768px) {
    .contact-btn-split.no-link-btn { visibility: visible; }
    .contact-btn-split.no-link-btn .btn-split-view { flex: 1; border-radius: 8px; }
}
.btn-split-main {
    flex: 1; display: flex; align-items: center; justify-content: center;
    text-decoration: none;
}
.btn-split-main span { font-size: 14px; font-weight: 600; color: #fff; }
.btn-split-div   { width: 1px; background: rgba(255,255,255,.4); }
.btn-split-copy  {
    width: 62px; display: flex; align-items: center; justify-content: center; gap: 3px;
}
.btn-split-copy span { font-size: 12px; font-weight: 600; color: #fff; }

/* ══════════════════════════════ FOOTER ══════════════════════════════ */
.footer {
    width: 100%; background: var(--footer-bg);
    padding: 42px clamp(60px,12.5vw,240px) 28px;
    display: flex; flex-direction: column; gap: 12px;
}
.footer-top  { display: flex; gap: clamp(30px,3.125vw,60px); width: 100%; }
.footer-brand { display: flex; flex-direction: column; gap: 8px; min-width: 280px; }
.footer-brand-logo {
    display: flex; align-items: center; gap: 10px; height: 40px;
}
.footer-logo-mark {
    width: 40px; height: 40px;
    border-radius: 8px; flex-shrink: 0;
    display: block; object-fit: contain;
}
.footer-brand-name { font-size: clamp(17px,1.094vw,21px); font-weight: 600; color: #fff; }
.footer-brand-desc { font-size: clamp(12px,.729vw,14px); color: var(--footer-muted); line-height: 1.5; width: auto; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col-title  { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.footer-col-link   { font-size: 13px; color: var(--footer-muted); cursor: pointer; text-decoration: none; }
.footer-col-link:hover { color: #fff; }
.footer-wechat-row {
    background: var(--footer-divider); border-radius: 8px;
    padding: 10px 14px; display: flex; align-items: center; gap: 8px;
}
.wechat-icon {
    width: 20px; height: 20px; background: #07C160; border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; color: #fff; font-weight: 700; flex-shrink: 0;
}
.footer-follow-text { display: flex; flex-direction: column; gap: 1px; }
.footer-follow-label { font-size: 13px; color: var(--footer-muted); }
.footer-follow-sub   { font-size: 11px; color: #5F7390; }
.footer-divider { width: 100%; height: 1px; background: var(--footer-divider); }
.footer-bottom {
    display: flex; align-items: center; justify-content: space-between; padding-top: 4px;
}
.footer-legal { font-size: 11px; color: var(--footer-legal); }
.footer-legal a { color: var(--footer-legal); text-decoration: none; }
.footer-legal a:hover { color: #fff; }

/* ══════════════════════════════ FIXED SIDEBAR ══════════════════════════════ */
.fixed-sidebar {
    position: fixed; right: 0; top: 50%;
    transform: translateY(-50%); z-index: 500;
}
.sidebar-inner {
    width: 64px; background: var(--surface);
    border-radius: 12px 0 0 12px;
    box-shadow: -3px 0 20px rgba(0,0,0,.13), 0 0 0 1px rgba(0,0,0,.06);
    overflow: hidden;
}
.sb-btn {
    width: 64px; height: 68px;
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 5px;
    cursor: pointer; transition: background .15s; position: relative;
    background: var(--surface);
}
.sb-btn:first-child { border-radius: 12px 0 0 0; }
.sb-btn:last-child  { border-radius: 0 0 0 12px; }
.sb-btn:hover { background: #EEF4FB; }
/* 图标底托：每个按钮独立配色，默认态就有视觉重量 */
.sb-icon-chip {
    width: 34px; height: 34px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; line-height: 1; transition: background .15s;
}
.sb-btn-buy  .sb-icon-chip { background: #FFF0E8; color: #D65C2A; }
.sb-btn-svc  .sb-icon-chip { background: var(--brand-tint, #E6F1FB); color: var(--brand, #1A5490); }
.sb-btn-comm .sb-icon-chip { background: var(--accent-tint, #E6FAF8); color: #007F75; }
.sb-text {
    font-size: 10px; font-weight: 700; line-height: 1.25; text-align: center;
    color: var(--ink-2); transition: color .15s;
}
.sb-div { width: 100%; height: 1px; background: var(--line); }
/* 激活态：整个按钮变蓝 + 左侧白色指示条 */
.sb-btn.sb-active { background: var(--brand) !important; }
.sb-btn.sb-active::before {
    content: ''; position: absolute;
    left: 0; top: 20%; height: 60%;
    width: 3px; border-radius: 0 2px 2px 0;
    background: rgba(255,255,255,.8);
}
.sb-btn.sb-active .sb-icon-chip { background: rgba(255,255,255,.18); color: #fff; }
.sb-btn.sb-active .sb-text      { color: #fff; }

/* ── 侧边栏弹出面板 ── */
.sb-popup {
    position: fixed; right: 68px; top: 50%; transform: translateY(-50%);
    width: 200px; background: #fff; border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,.14); padding: 14px;
    display: none; flex-direction: column; gap: 10px; z-index: 501;
    max-height: calc(100vh - 80px); overflow-y: auto;
}
.sb-popup.open { display: flex; }
.sb-popup-title {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 700; color: var(--brand);
    padding-bottom: 6px; border-bottom: 1px solid #EEF2F7;
    margin-bottom: 2px;
}
.sb-popup-title span:first-child { font-size: 15px; line-height: 1; }
.sb-popup-section { display: flex; flex-direction: column; gap: 8px; }
.sb-popup-row { display: flex; align-items: center; gap: 8px; }
.sb-popup-icon { width: 24px; height: 24px; border-radius: 6px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.sb-popup-label-text { font-size: 13px; font-weight: 600; color: #1A1A2E; }
.sb-popup-qr-wrap {
    width: 100%; aspect-ratio: 1; border-radius: 10px;
    background: #F5F7FA; overflow: hidden; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; position: relative;
}
.sb-popup-qr-wrap img { width: 100%; height: 100%; object-fit: contain; display: none; position: absolute; inset: 0; }
.sb-popup-qr-wrap img.loaded { display: block; }
.sb-popup-qr-label {
    font-size: 11px; color: #9CA3AF; text-align: center; pointer-events: none;
}
.sb-popup-qr-wrap img.loaded + .sb-popup-qr-label { display: none; }
.sb-popup-btn {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 32px; border-radius: 8px;
    font-size: 12px; font-weight: 600; color: #fff;
    border: none; cursor: pointer; text-decoration: none; flex-shrink: 0;
}
.sb-popup-divider { height: 1px; background: #E6ECF3; margin: 4px -4px; }
.sb-popup-btn-row { display: flex; gap: 8px; }
.sb-popup-btn-row .sb-popup-btn { flex: 1; }
.sb-popup-copy-btn {
    width: 58px; height: 32px; border-radius: 8px;
    background: #EEF2F7; border: none; cursor: pointer;
    font-size: 11px; font-weight: 600; color: #4A5A72; flex-shrink: 0;
    transition: background .2s, color .2s;
}
/* 覆盖 .btn-split-copy span 的全局白字规则 */
.sb-popup-copy-btn span { color: #4A5A72; }
.sb-popup-copy-btn.copied { background: #07C160; color: #fff; }
.sb-popup-copy-btn.copied span { color: #fff; }

/* ══════════════════════════════ BACK TO TOP ══════════════════════════════ */
.back-to-top {
    position: fixed; right: 8px; bottom: 80px;
    width: 48px; height: 48px;
    background: var(--brand); border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 500;
    font-size: 20px; color: #fff; font-weight: 700;
    opacity: 0; transition: opacity .3s, background .2s;
    user-select: none; border: none;
}
.back-to-top.visible { opacity: 1; }
.back-to-top:hover { background: var(--brand-light); }

/* ══════════════════════════════ 超宽屏锁定 ══════════════════════════════ */
@media (min-width: 1921px) {
    .nav,.features,.scenarios,.recommend,.news,.partners,.contact,.footer {
        padding-left: 240px; padding-right: 240px;
    }
    .hero { padding-left: 240px; padding-right: 240px; }
    .hero-left { width: 630px; }
    .hero-right { max-width: 768px; }
    .dl-btn { height: 64px; }
    .dl-btn-icon { width: 30px; height: 30px; }
    .dl-btn-text { font-size: 20px; }
    .hero-h1-main { font-size: 62px; }
    .hero-h1-sub  { font-size: 54px; }
    .hero-slogan  { font-size: 28px; }
    .sec-title    { font-size: 38px; }
    .bento-illust { width: 200px; height: 200px; }
    .bento-title  { font-size: 32px; }
    .bento-card   { min-height: 240px; }
}

/* ═══════════════════════════════════════════════════
   移动端断点 768px
   ═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* ── Body ── */
    body { min-width: 0; }

    /* ── HERO ──
       设计稿顺序：文字组 → 下载按钮 → 手机图
       用 display:contents 让 hero-content-row 的子元素直接参与
       hero 的 flex 排列，再用 order 控制顺序
    ── */
    .hero {
        flex-direction: column; height: auto;
        padding: 32px 20px 24px; gap: 16px;
        align-items: stretch; min-height: 0;
    }
    .hero-content-row { display: contents; }
    .hero-left   { order: 1; width: 100%; }
    .download-row { order: 2; }
    .hero-right  { order: 3; width: 100%; height: 220px; max-width: none; }

    .hero-text-group { gap: 16px !important; padding-left: 0; }
    /* Badge: 全宽（与 hero-text-group 等宽），12px/w500 */
    .hero-badge { width: 100%; }
    .hero-badge-text { font-size: 12px; font-weight: 500; }
    /* 标题组：居中对齐，行距 2px（对应设计稿 gap:2） */
    .hero-h1-wrap { align-items: center; gap: 2px; }
    .hero-h1-main { font-size: 34px; text-align: center; }
    .hero-h1-sub-wrap { padding-left: 0; }
    .hero-h1-sub  { font-size: 26px; text-align: center; color: var(--brand); }
    .hero-slogan  { font-size: 14px; font-weight: 800; text-align: center; }
    /* Feature tags: 10px/w600，圆点 5×5，gap 5px，padding 6px 10px */
    .feature-tags { gap: 1px; flex-wrap: nowrap; justify-content: space-between; }
    .feature-tag  { width: 83px; padding: 6px 10px; justify-content: center; gap: 5px; }
    .feature-tag-dot  { width: 5px; height: 5px; border-radius: 3px; }
    .feature-tag-text { font-size: 10px; }
    /* 下载按钮 2×2：列间距 8px，行间距 16px（对应设计稿两行独立 frame，各间距 16px） */
    .download-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 8px; row-gap: 16px; width: 100%;
    }
    .dl-btn {
        width: 100%; height: 42px;
        border-radius: 22px; flex: none;
    }
    .dl-btn-text { font-size: 13px; }
    /* 移动端电脑版按钮与安卓同色（#0078D4），对应设计稿 */
    .btn-pc { background: #0078D4; }
    /* 手机图 */
    .hero-phone-img {
        width: 100%; height: 220px;
        object-fit: cover; border-radius: 16px;
        position: static;
    }

    /* ── FEATURES ── */
    .features { padding: 12px 20px; }
    /* 设计稿标题区垂直堆叠，标题统一 20px */
    .sec-header { flex-direction: column; align-items: flex-start; gap: 4px; }
    .sec-title  { font-size: 20px; }
    .sec-sub    { white-space: normal; font-size: 13px; }
    .bento-container { flex-direction: column; gap: 12px; }
    .bento-col { gap: 12px; }
    .bento-card {
        min-height: auto; padding: 5px 16px;
        border-radius: 16px;
    }
    /* bento-text gap: 8px（设计稿值） */
    .bento-text { gap: 8px; padding-right: 12px; }
    .bento-illust { width: 80px; height: 80px; flex-shrink: 0; }
    .bento-title  { font-size: 15px; }
    .bento-desc   { font-size: 12px; line-height: 1.5; }

    /* ── SCENARIOS ── */
    .scenarios { padding: 12px 20px; }
    /* 设计稿标题区垂直堆叠，标题统一 20px */
    .sc-header { flex-direction: column; align-items: flex-start; gap: 4px; }
    .sc-title   { font-size: 20px; }
    .sc-grid {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 10px;
    }
    /* 场景卡片：仅展示图标+标题，居中；隐藏描述文字 */
    .sc-card { height: auto; min-height: 100px; align-items: center; text-align: center; }
    .sc-card:nth-child(1),.sc-card:nth-child(2),.sc-card:nth-child(3) { grid-column: span 2; }
    .sc-card:nth-child(4) { grid-column: 1 / span 3; }
    .sc-card:nth-child(5) { grid-column: 4 / span 3; }
    .sc-icon  { width: 40px; height: 40px; border-radius: 10px; }
    .sc-card-title { font-size: 14px; }
    .sc-card-desc  { display: none; }

    /* ── RECOMMEND ── */
    .recommend { padding: 12px 20px; }
    /* 标题组与"查看全部"底部对齐 */
    .rec-header { flex-direction: row; align-items: flex-end; }
    /* rec-title-group：标题在上、副标题在下，纵向堆叠 */
    .rec-title-group { flex-direction: column; align-items: flex-start; gap: 2px; }
    .rec-title  { font-size: 20px; line-height: 1.2; }
    /* 设计稿：副标题显示，换行 */
    .rec-sub    { display: block; font-size: 11px; white-space: normal; }
    /* 移动端仅展示标题行 + 搜索框，不展示卡片 */
    .rec-grid   { display: none; }

    /* ── NEWS ── */
    .news { padding: 12px 20px; }
    .news-title { font-size: 20px; }
    /* 设计稿：新闻卡片合并为统一圆角容器 + 分割线，隐藏纸堆装饰 */
    .paper-stack { display: none; }
    .news-grid {
        flex-direction: column; gap: 0;
        background: var(--surface);
        border-radius: 14px; overflow: hidden;
    }
    .news-card-wrap { flex: none; }
    .news-card-wrap + .news-card-wrap .news-card {
        border-top: 1px solid var(--line);
    }
    .news-card { border-radius: 0; overflow: visible; }
    /* 移动端新闻卡片：单行横排 [标签][日期][标题] */
    .news-body {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
        padding: 12px 20px;
        min-height: 0;
    }
    /* 拆解 row-top，让 tag + title 直接成为 body 的 flex 子项 */
    .news-row-top { display: contents; }
    .news-tag   { order: 1; font-size: 11px; height: 22px; min-width: 44px; flex-shrink: 0; }
    .news-date  {
        order: 2;
        font-size: 11px;
        flex: 0 0 72px;
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
    }
    .news-card-title {
        order: 3;
        font-size: 12px; font-weight: 600;
        word-break: break-word; white-space: normal;
        overflow: visible; text-overflow: unset;
        flex: 1;
        min-width: 0;
        line-height: 1.3;
    }

    /* ── PARTNERS ── */
    .partners { padding: 12px 20px; }
    .partners-title { font-size: 20px; }
    .partners-row {
        flex-wrap: wrap; justify-content: center; gap: 10px;
    }
    .partner-card { width: calc(33.33% - 8px); min-width: 90px; height: 56px; flex: none; }

    /* ── CONTACT ── */
    .contact {
        padding: 16px 20px; gap: 12px;
        background: #2d8ee80d;   /* 设计稿浅蓝底 */
    }
    .contact-header { flex-direction: column; align-items: flex-start; gap: 4px; }
    .contact-title  { font-size: 20px; }
    .contact-sub    { white-space: normal; font-size: 12px; }
    /* 2 列网格 */
    .contact-grid { flex-wrap: wrap; gap: 10px; }
    .contact-card {
        flex: 0 0 calc(50% - 5px); min-width: 0;
        padding: 12px; gap: 8px; border-radius: 12px;
    }
    /* 第 5 张（QQ群）全宽 */
    .contact-card:last-child { flex: 0 0 100%; }
    /* 移动端：隐藏二维码 + desc，显示账号文字 */
    .contact-qr   { display: none; }
    .contact-desc { display: none; }
    .contact-mobile-id {
        display: block;
        font-size: 11px; color: var(--ink-3); text-align: center;
    }
    .contact-platform-icon { width: 28px; height: 28px; }
    .contact-btn-split { width: 100%; height: 28px; }
    .btn-split-main span { font-size: 12px; }
    /* mobile：隐藏复制，显示查看 */
    .contact-card .btn-split-copy { display: none !important; }
    .contact-card .btn-split-view { display: flex; }
    /* WeChat 卡片：桌面隐藏的 split 侧边显示出来 */
    .contact-split-side { display: flex; }

    /* ── FOOTER ── */
    .footer { padding: 28px 20px 20px; gap: 16px; }
    /*
     * grid 布局：
     *  行1: [品牌(1fr)] [产品(auto)] [支持(auto)]
     *  行2: [联系我们(1fr)] [关注我们(1fr)]
     */
    .footer-top {
        display: grid;
        grid-template-columns: 1fr auto auto;
        grid-template-rows: auto auto;
        gap: 16px 12px;
        align-items: start;
    }
    .footer-brand                         { grid-area: 1 / 1 / 2 / 2; min-width: 0; }
    .footer-top > .footer-col:nth-child(2) { grid-area: 1 / 2 / 2 / 3; }
    .footer-top > .footer-col:nth-child(3) { grid-area: 1 / 3 / 2 / 4; }
    .footer-top > .footer-col:nth-child(4) { grid-area: 2 / 1 / 3 / 2; display: flex; }
    .footer-top > .footer-col:nth-child(5) { grid-area: 2 / 2 / 3 / 4; display: flex; }
    /* 字号 */
    .footer-brand-logo { height: 32px; gap: 8px; }
    .footer-logo-mark  { width: 30px; height: 30px; border-radius: 6px; }
    .footer-brand-name { font-size: 14px; }
    .footer-brand-desc { font-size: 11px; line-height: 1.6; width: auto; }
    .footer-col-title  { font-size: 12px; }
    .footer-col-link   { font-size: 11px; }
    .footer-wechat-row { padding: 8px 10px; }
    .footer-follow-label { font-size: 11px; }
    .footer-follow-sub   { font-size: 10px; }
    /* 版权底部：居中堆叠，协议单独最后一行 */
    .footer-bottom {
        flex-direction: column; gap: 4px; align-items: center; text-align: center;
    }
    .footer-legal { font-size: 10px; text-align: center; }

    /* ── SIDEBAR & BACK-TO-TOP ── */
    .fixed-sidebar { display: block; top: 65%; }
    .sidebar-inner { width: 48px; border-radius: 10px 0 0 10px; }
    .sb-btn        { width: 48px; height: 52px; }
    .sb-btn:first-child { border-radius: 10px 0 0 0; }
    .sb-btn:last-child  { border-radius: 0 0 0 10px; }
    .sb-text       { font-size: 8px; }           /* 移动端字号缩小 */
    .sb-icon-chip  { width: 30px; height: 30px; border-radius: 8px; font-size: 15px; }
    /* 移动端弹窗：向左展开，宽度适配屏幕 */
    .sb-popup      { width: 180px; right: 48px; display: none; }
    .sb-popup.open { display: flex; }
    .back-to-top   { right: 16px; bottom: 20px; width: 40px; height: 40px; font-size: 16px; }
}

/* ═══════════════════════════════════════
   二维码浮窗（PC 端 hover 展示）
   ═══════════════════════════════════════ */
/* Android 下载二维码浮窗（简单垂直布局） */
#androidQrPopup {
    display: none;
    position: fixed;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 99999;
    text-align: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#androidQrPopup.show {
    display: block;
    animation: qrFadeIn 0.25s ease;
}

#androidQrcodeCanvas {
    width: 200px;
    height: 200px;
    margin: 0 auto 12px;
    border-radius: 8px;
    overflow: hidden;
}

#androidQrPopup p {
    margin: 0;
    font-size: 14px;
    color: var(--brand, #1A5490);
    font-weight: 500;
    line-height: 1.5;
}

/* iOS 下载二维码浮窗（水平布局 + 说明） */
#iosQrPopup {
    display: none;
    position: fixed;
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 99999;
    max-width: 420px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#iosQrPopup.show {
    display: block;
    animation: qrFadeIn 0.25s ease;
}

#iosQrPopup > div {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

#iosQrPopup > div > div:first-child {
    flex-shrink: 0;
    text-align: center;
}

#iosQrcodeCanvas {
    width: 160px;
    height: 160px;
    margin: 0 auto 8px;
    border-radius: 8px;
    overflow: hidden;
}

#iosQrPopup p {
    margin: 0;
    font-size: 12px;
    color: var(--brand, #1A5490);
    font-weight: 500;
}

#iosQrPopup > div > div:last-child {
    min-width: 180px;
    text-align: left;
}

#iosQrPopup > div > div:last-child > p:first-child {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

#iosQrPopup > div > div:last-child > div {
    font-size: 12px;
    line-height: 2.1;
    color: #555;
}

#iosQrPopup > div > div:last-child > div p {
    margin: 2px 0;
    color: #555;
}

#iosQrPopup > div > div:last-child > div strong {
    color: var(--brand, #1A5490);
    font-weight: 600;
}

/* QR 浮窗淡入动画 */
@keyframes qrFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 移动端隐藏 QR 浮窗（仅 PC 端 hover 展示） */
@media (max-width: 768px) {
    #androidQrPopup,
    #iosQrPopup {
        display: none !important;
    }
}

/* ═══════════════════════════════
   小屏手机 480px
   ═══════════════════════════════ */
@media (max-width: 480px) {
    .hero-h1-main { font-size: 28px; }
    .hero-h1-sub  { font-size: 24px; }
    .feature-tag  { width: 78px; }
    .feature-tag-text { font-size: 10px; }
    .contact-card { flex: 0 0 calc(50% - 5px); }
}
