/* ========== 设计令牌 ========== */
:root {
    --brand: #C8102E;
    --brand-2: #E63946;
    --brand-soft: #FEF2F3;
    --brand-line: #F4D8DC;
    --gold: #B8860B;
    --gold-soft: #FBF6E7;
    --text: #0F172A;
    --text-2: #334155;
    --muted: #64748B;
    --line: #E2E8F0;
    --line-2: #EEF2F7;
    --bg: #F6F7F9;
    --bg-card: #FFFFFF;
    --ok: #047857;
    --ok-soft: #ECFDF5;
    --warn: #B45309;
    --warn-soft: #FFFBEB;
    --info: #1D4ED8;
    --info-soft: #EFF6FF;
    --danger: #B91C1C;
    --danger-soft: #FEF2F2;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(15,23,42,.04);
    --shadow: 0 4px 16px rgba(15,23,42,.06);
    --shadow-lg: 0 12px 32px rgba(15,23,42,.08);
}

/* ========== 基础 ========== */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 14px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font-family: inherit; font-size: 14px; outline: none; border: none; color: inherit; }
code { font-family: ui-monospace, "SFMono-Regular", "Menlo", Consolas, monospace; font-size: .92em; }

.container { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* ========== 顶部导航 ========== */
.navbar {
    background: #FFFFFF;
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(180%) blur(10px);
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.navbar .brand {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: .3px;
}
.navbar .brand-mark {
    width: 28px; height: 28px;
    border-radius: 7px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 800;
    box-shadow: 0 4px 10px rgba(200,16,46,.25);
}
.navbar .nav-links { display: flex; gap: 4px; }
.navbar .nav-links a {
    padding: 8px 12px;
    font-size: 14px;
    color: var(--text-2);
    border-radius: 8px;
    transition: background .15s;
}
.navbar .nav-links a:hover { background: var(--bg); color: var(--brand); }

/* ========== 通用卡片 ========== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 22px;
    margin: 16px 0;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 4px;
}
.card-subtitle { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* 装饰性卡片标题左侧竖条 */
.card-title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 14px;
    background: linear-gradient(180deg, var(--brand), var(--brand-2));
    border-radius: 2px;
}

/* ========== 按钮 ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 22px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .15s ease, background .15s, color .15s, border-color .15s;
    user-select: none;
    white-space: nowrap;
    line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    box-shadow: 0 6px 16px rgba(200,16,46,.22);
}
.btn-primary:hover { box-shadow: 0 8px 22px rgba(200,16,46,.32); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn-block { display: flex; width: 100%; }
.btn-outline { background: #fff; border: 1px solid var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand-soft); }
.btn-gray { background: #F1F5F9; color: var(--text-2); }
.btn-gray:hover { background: #E2E8F0; }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 8px; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--ok); color: #fff; }

/* ========== 表单 ========== */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-2);
    margin-bottom: 6px;
    font-weight: 600;
}
.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    color: var(--text);
    font-size: 14px;
}
.form-control::placeholder { color: #94A3B8; }
.form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(200,16,46,.10); }
textarea.form-control { min-height: 96px; resize: vertical; line-height: 1.55; }

/* ========== Hero ========== */
.hero {
    background: linear-gradient(135deg, #1A1F2E 0%, #2A2F40 100%);
    color: #fff;
    padding: 56px 20px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px 220px at 20% 0%, rgba(200,16,46,.30), transparent 60%),
        radial-gradient(500px 200px at 100% 100%, rgba(230,57,70,.25), transparent 60%);
    pointer-events: none;
}
.hero > * { position: relative; }
.hero .eyebrow {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 14px;
    color: #FCD7DC;
}
.hero h1 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: .5px;
    line-height: 1.35;
}
.hero .slogan {
    font-size: 14px;
    opacity: .88;
    line-height: 1.85;
    max-width: 520px;
    margin: 0 auto;
}
.hero .tags { margin: 22px 0 4px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.hero .tag {
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.16);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    color: #fff;
    letter-spacing: .3px;
}

/* ========== 特性 ========== */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 18px 0;
}
.feature {
    background: #fff;
    padding: 18px 12px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--line);
}
.feature .ic {
    width: 36px; height: 36px;
    margin: 0 auto 8px;
    border-radius: 10px;
    background: var(--brand-soft);
    color: var(--brand);
    display: inline-flex; align-items: center; justify-content: center;
}
.feature .ic svg { width: 20px; height: 20px; }
.feature .name { font-weight: 700; color: var(--text); font-size: 14px; }
.feature .desc { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ========== 套餐 ========== */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 14px;
}
.plan {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 14px;
    position: relative;
    transition: border-color .15s, box-shadow .15s, transform .12s;
    cursor: pointer;
    display: block;
}
.plan:hover { transform: translateY(-2px); border-color: var(--brand-line); box-shadow: var(--shadow); }
.plan.recommended { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.plan .badge {
    position: absolute;
    top: -9px;
    right: 12px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .4px;
    box-shadow: 0 4px 10px rgba(200,16,46,.30);
}
.plan .plan-name { font-size: 14px; font-weight: 700; color: var(--text); }
.plan .plan-desc { font-size: 12px; color: var(--muted); margin: 4px 0 10px; min-height: 28px; }
.plan .plan-price { font-size: 26px; color: var(--brand); font-weight: 800; line-height: 1.1; }
.plan .plan-price small { font-size: 12px; font-weight: 500; color: var(--muted); }
.plan .plan-perday { font-size: 11px; color: var(--muted); margin-top: 2px; }
.plan .plan-level {
    display: inline-block;
    background: var(--gold-soft);
    color: var(--gold);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    margin-top: 8px;
    border: 1px solid #EAD9A6;
}

/* ========== 提示框 ========== */
.alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin: 12px 0;
    font-size: 13px;
    line-height: 1.7;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.alert > svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; }
.alert .alert-body { flex: 1; min-width: 0; }
.alert-success { background: var(--ok-soft); color: #065F46; border: 1px solid #BBF7D0; }
.alert-success > svg { color: var(--ok); }
.alert-danger  { background: var(--danger-soft); color: #991B1B; border: 1px solid #FECACA; }
.alert-danger > svg { color: var(--danger); }
.alert-info    { background: var(--info-soft); color: #1E40AF; border: 1px solid #BFDBFE; }
.alert-info > svg { color: var(--info); }
.alert-warning { background: var(--warn-soft); color: #92400E; border: 1px solid #FDE68A; }
.alert-warning > svg { color: var(--warn); }

/* ========== 表格 ========== */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 480px; }
.table th, .table td {
    padding: 10px 10px;
    text-align: left;
    border-bottom: 1px solid var(--line-2);
    vertical-align: middle;
}
.table th { background: #F8FAFC; font-weight: 600; color: var(--text-2); font-size: 12px; letter-spacing: .3px; }
.table tr:last-child td { border-bottom: none; }

/* 信息表（非 .table） */
.info-table { width: 100%; font-size: 13px; }
.info-table td { padding: 7px 0; vertical-align: top; }
.info-table .lbl { color: var(--muted); width: 90px; white-space: nowrap; }

/* ========== 徽章 ========== */
.tag-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.6;
    border: 1px solid transparent;
}
.tag-vip    { background: #FEF3C7; color: #92400E; border-color: #FDE68A; }
.tag-svip   { background: #FDE68A; color: #78350F; border-color: #FCD34D; }
.tag-ssvip  { background: linear-gradient(135deg,#FBBF24,#F59E0B); color: #fff; border: none; }
.tag-sssvip { background: linear-gradient(135deg,#A78BFA,#7C3AED); color: #fff; border: none; }
.tag-paid     { background: var(--ok-soft); color: #065F46; border-color: #A7F3D0; }
.tag-pending  { background: #FEF2F2; color: #991B1B; border-color: #FECACA; }
.tag-refunded { background: #EEF2FF; color: #3730A3; border-color: #C7D2FE; }
.tag-on       { background: var(--ok-soft); color: #065F46; border-color: #A7F3D0; }
.tag-off      { background: #F1F5F9; color: var(--muted); border-color: var(--line); }

/* ========== 底部 ========== */
.footer {
    text-align: center;
    color: #94A3B8;
    font-size: 12px;
    padding: 28px 16px 36px;
    line-height: 2;
    border-top: 1px solid var(--line-2);
    margin-top: 28px;
    background: #FCFCFD;
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--brand); }

/* ========== 走马灯/公告 ========== */
.marquee {
    background: var(--warn-soft);
    color: #92400E;
    padding: 10px 14px;
    font-size: 13px;
    border-radius: var(--radius);
    margin: 14px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #FDE68A;
}
.marquee svg { flex: 0 0 16px; width: 16px; height: 16px; color: var(--warn); }

/* ========== 二维码 ========== */
.qrcode-wrap { text-align: center; padding: 14px; }
.qrcode-wrap #qrcode { display: inline-block; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.qrcode-wrap img, .qrcode-wrap canvas { width: 220px; height: 220px; }

/* ========== 后台 ========== */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-side { width: 220px; background: #0F172A; color: #fff; }
.admin-side .brand { padding: 18px 18px; font-weight: 700; border-bottom: 1px solid #1E293B; letter-spacing: .5px; }
.admin-side a { display: block; padding: 12px 18px; color: #CBD5E1; border-left: 3px solid transparent; }
.admin-side a:hover, .admin-side a.active { background: #1E293B; color: #fff; border-left-color: var(--brand); }
.admin-main { flex: 1; padding: 24px; background: var(--bg); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-card { background: #fff; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); }
.stat-card .label { font-size: 12px; color: var(--muted); }
.stat-card .value { font-size: 22px; font-weight: 700; color: var(--text); margin-top: 4px; line-height: 1.2; }

/* ========== 测评/评价 ========== */
.review {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.7;
    border-left: 3px solid var(--line);
    background: #FAFBFC;
}
.review .author { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.review.r-1 { border-left-color: #F59E0B; background: #FFFBEB; color: #78350F; }
.review.r-2 { border-left-color: #10B981; background: #ECFDF5; color: #065F46; }
.review.r-3 { border-left-color: #3B82F6; background: #EFF6FF; color: #1E40AF; }

/* ========== FAQ ========== */
.faq details {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0 14px;
    margin-top: 8px;
    background: #fff;
}
.faq summary {
    cursor: pointer;
    padding: 12px 0;
    font-weight: 600;
    color: var(--text);
    list-style: none;
    position: relative;
    padding-right: 24px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+';
    position: absolute;
    right: 0; top: 50%; transform: translateY(-50%);
    color: var(--muted);
    font-weight: 400;
    font-size: 18px;
    line-height: 1;
}
.faq details[open] summary::after { content: '−'; }
.faq details p { font-size: 13px; color: var(--text-2); padding: 0 0 12px; line-height: 1.85; }

/* ========== 分销卡片 ========== */
.commission-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFAF5 100%);
    border: 1px solid var(--brand-line);
}
.commission-head {
    display: flex; justify-content: space-between; align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.commission-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 14px;
}
.commission-stats .stat-card { padding: 12px; }
.commission-stats .stat-card .value { font-size: 17px; }
.commission-stats .stat-card .sub { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* Tab */
.tabs {
    display: flex;
    gap: 4px;
    margin-top: 14px;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.tabs .tab {
    padding: 10px 14px;
    font-weight: 600;
    cursor: pointer;
    color: var(--muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font-size: 13px;
    white-space: nowrap;
    transition: color .15s, border-color .15s;
}
.tabs .tab.active { color: var(--brand); border-bottom-color: var(--brand); }

/* 分销规则提示 */
.rule-box {
    margin-top: 10px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 12.5px;
    color: var(--text-2);
    line-height: 1.95;
}
.rule-box .row { display: flex; gap: 8px; align-items: flex-start; }
.rule-box svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 4px; color: var(--brand); }

/* ========== Hero CTA / 章节标题 ========== */
.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title .sub { font-size: 12px; color: var(--muted); font-weight: 400; }

/* ========== 图标小工具 ========== */
.ic-circle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand);
}
.ic-circle svg { width: 13px; height: 13px; }

/* 邀请码展示 */
.invite-link {
    display: flex; gap: 8px;
}
.invite-link .form-control { flex: 1; min-width: 0; }

/* ========== 留言 ========== */
.msg-list { max-height: 320px; overflow-y: auto; padding: 4px 2px; }
.msg-row { margin: 10px 0; }
.msg-row.me { text-align: right; }
.msg-bubble {
    display: inline-block;
    max-width: 80%;
    padding: 9px 13px;
    border-radius: 12px;
    text-align: left;
    line-height: 1.6;
    word-break: break-word;
}
.msg-bubble.them { background: #F1F5F9; color: var(--text); border-bottom-left-radius: 4px; }
.msg-bubble.me   { background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.msg-time { font-size: 11px; color: var(--muted); margin-top: 3px; }

/* ========== 推广横幅 ========== */
.promo-banner {
    background: linear-gradient(135deg, #FFFAF5 0%, #FFF1E0 100%);
    border: 1px solid #F6CBA5;
    color: #7A3E12;
}
.promo-banner h3 {
    font-size: 16px;
    font-weight: 700;
    color: #B45309;
    display: flex; align-items: center; gap: 8px;
}
.promo-banner .lead {
    font-size: 13px;
    margin-top: 8px;
    line-height: 1.85;
    color: #7A3E12;
}
.promo-banner .lead b { color: var(--brand); }
.promo-banner .hl { color: var(--brand); font-weight: 800; font-size: 16px; }

/* ========== 退款条款盒 ========== */
.terms-box {
    border: 1px dashed #FDBA74;
    background: #FFFBF5;
    color: #7C2D12;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 12.5px;
    line-height: 1.85;
}
.terms-box .term-title { font-weight: 700; color: var(--warn); display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }

/* ========== 邀请提示条 ========== */
.invite-bar {
    background: var(--gold-soft);
    color: #78350F;
    padding: 10px 16px;
    text-align: center;
    font-size: 13px;
    border-bottom: 1px solid #EAD9A6;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.invite-bar svg { width: 16px; height: 16px; color: var(--gold); }

/* ========== 响应式：≤ 720px ========== */
@media (max-width: 720px) {
    body { font-size: 14px; }

    /* 导航 */
    .navbar { padding: 10px 0; }
    .navbar .brand { font-size: 15px; }
    .navbar .brand-mark { width: 26px; height: 26px; font-size: 12px; }
    .navbar .nav-links a { padding: 6px 8px; font-size: 13px; }

    /* 主容器 */
    .container { padding: 0 12px; }
    .card { padding: 16px; border-radius: 14px; margin: 12px 0; }
    .card-title { font-size: 15px; }

    /* Hero */
    .hero { padding: 40px 16px 36px; }
    .hero h1 { font-size: 24px; line-height: 1.35; }
    .hero .slogan { font-size: 13px; }
    .hero .tag { font-size: 11px; padding: 4px 10px; }

    /* 特性 4 -> 2 */
    .features { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .feature { padding: 14px 10px; }

    /* 套餐 4 -> 2 */
    .plan-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .plan { padding: 14px 12px; }
    .plan .plan-price { font-size: 22px; }
    .plan .plan-desc { min-height: auto; }

    /* 表单 */
    .form-control { padding: 10px 12px; font-size: 14px; }

    /* 按钮 */
    .btn { padding: 11px 18px; font-size: 14px; }

    /* 表格强制横向滚动 */
    .table { min-width: 540px; font-size: 12.5px; }
    .table th, .table td { padding: 8px 8px; }

    /* 分销统计 4 -> 2 */
    .commission-stats { grid-template-columns: repeat(2, 1fr); }
    .commission-stats .stat-card .value { font-size: 16px; }

    /* 后台统计 */
    .stat-grid { grid-template-columns: repeat(2, 1fr); }

    /* 后台侧栏 */
    .admin-wrap { flex-direction: column; }
    .admin-side { width: 100%; display: flex; overflow-x: auto; }
    .admin-side .brand { white-space: nowrap; }
    .admin-side a { white-space: nowrap; border-left: none; border-bottom: 3px solid transparent; }
    .admin-side a.active, .admin-side a:hover { border-left: none; border-bottom-color: var(--brand); }
    .admin-main { padding: 14px; }

    /* QR */
    .qrcode-wrap img, .qrcode-wrap canvas { width: 200px; height: 200px; }

    /* 邀请输入框 + 按钮在小屏不挤压 */
    .invite-link { flex-direction: column; }
    .invite-link .btn { width: 100%; }

    /* 查询表单：input + button */
    .search-form { display: flex; gap: 8px; }
    .search-form .form-control { flex: 1; min-width: 0; }

    /* hero eyebrow */
    .hero .eyebrow { font-size: 11px; }
}

/* 极窄屏（折叠屏 / 360 以下） */
@media (max-width: 360px) {
    .plan-grid { grid-template-columns: 1fr; }
    .features { grid-template-columns: 1fr 1fr; }
}

/* ========== 紧凑 Hero（首页一屏优化） ========== */
.hero-compact {
    background: linear-gradient(135deg, #1A1F2E 0%, #2A2F40 100%);
    color: #fff;
    padding: 22px 16px 18px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-compact::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(420px 160px at 20% 0%, rgba(200,16,46,.30), transparent 60%),
        radial-gradient(380px 160px at 100% 100%, rgba(230,57,70,.22), transparent 60%);
    pointer-events: none;
}
.hero-compact > * { position: relative; }
.hero-compact h1 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .4px;
    line-height: 1.3;
    margin: 0;
}
.hero-compact h1 .accent { color: #FCD7DC; }
.hero-compact .sub {
    margin-top: 6px;
    font-size: 12.5px;
    opacity: .82;
    line-height: 1.55;
}
.hero-compact .mini-tags {
    margin-top: 10px;
    display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
}
.hero-compact .mini-tags span {
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.16);
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    color: #fff;
    letter-spacing: .3px;
}

/* ========== 快捷入口（一屏可点 4 个 modal） ========== */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 12px 0;
}
.quick-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 6px;
    text-align: center;
    cursor: pointer;
    transition: transform .12s, box-shadow .15s, border-color .15s;
    position: relative;
    color: var(--text);
}
.quick-item:hover { transform: translateY(-2px); border-color: var(--brand-line); box-shadow: var(--shadow); }
.quick-item:active { transform: translateY(0); }
.quick-item .qi-ic {
    width: 32px; height: 32px;
    border-radius: 9px;
    margin: 0 auto 4px;
    background: var(--brand-soft);
    color: var(--brand);
    display: inline-flex; align-items: center; justify-content: center;
}
.quick-item .qi-ic svg { width: 18px; height: 18px; }
.quick-item .qi-name { font-size: 12.5px; font-weight: 700; line-height: 1.25; }
.quick-item .qi-sub { font-size: 10.5px; color: var(--muted); margin-top: 2px; line-height: 1.2; }
.quick-item .qi-dot {
    position: absolute;
    top: 6px; right: 6px;
    width: 8px; height: 8px;
    background: var(--brand);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(200,16,46,.18);
}

/* ========== 精简 marquee（一屏优化） ========== */
.marquee.compact { padding: 7px 10px; font-size: 12px; margin: 10px 0; }
.marquee.compact b { color: var(--warn); }

/* ========== 精简用户反馈 ========== */
.review.compact { padding: 8px 12px; font-size: 12px; margin-top: 6px; line-height: 1.55; }
.review.compact .author { font-size: 11px; margin-top: 2px; }

/* ========== Modal（弹层） ========== */
.modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(2px);
    z-index: 1000;
    display: none;
    align-items: flex-end;
    justify-content: center;
    animation: modalFadeIn .18s ease-out;
}
.modal-mask.open { display: flex; }
.modal-mask .modal-box {
    background: #fff;
    width: 100%;
    max-width: 560px;
    max-height: 88vh;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalSlideUp .22s cubic-bezier(.2,.8,.25,1);
}
.modal-mask .modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
}
.modal-mask .modal-head .title {
    font-size: 15px; font-weight: 700; color: var(--text);
    display: flex; align-items: center; gap: 6px;
}
.modal-mask .modal-close {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: #F1F5F9;
    color: var(--text-2);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: background .15s;
}
.modal-mask .modal-close:hover { background: #E2E8F0; }
.modal-mask .modal-body {
    padding: 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
}
.modal-mask .modal-foot {
    padding: 10px 16px 14px;
    border-top: 1px solid var(--line-2);
    background: #FCFCFD;
    flex-shrink: 0;
}
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalSlideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* 桌面端居中显示 */
@media (min-width: 720px) {
    .modal-mask { align-items: center; }
    .modal-mask .modal-box { border-radius: 16px; max-height: 80vh; }
}

/* ≤ 720 屏，快捷入口及评价更紧凑 */
@media (max-width: 720px) {
    .quick-grid { gap: 6px; }
    .quick-item { padding: 10px 4px; }
    .quick-item .qi-ic { width: 28px; height: 28px; }
    .quick-item .qi-ic svg { width: 16px; height: 16px; }
    .quick-item .qi-name { font-size: 12px; }
    .quick-item .qi-sub { display: none; }
}
