/* ========== 管理后台左右布局 ========== */
.admin-layout {
    display: flex;
    min-height: 100vh;
    padding-top: 72px; /* 顶部固定导航高度 */
}
.admin-sidebar {
    width: 236px;
    flex-shrink: 0;
    position: sticky;
    top: 72px;
    align-self: flex-start;
    height: calc(100vh - 72px);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 22px 14px;
    z-index: 10;
}
.admin-sidebar-title {
    display: flex; align-items: center; gap: 10px;
    font-size: 15px; font-weight: 700; padding: 4px 10px 20px;
    border-bottom: 1px solid var(--border-light); margin-bottom: 16px;
}
.sidebar-icon { font-size: 18px; }
.admin-user-card {
    display: flex; align-items: center; gap: 11px;
    padding: 12px; margin-bottom: 18px;
    background: rgba(var(--primary-rgb), 0.08);
    border: 1px solid rgba(var(--primary-rgb), 0.18);
    border-radius: 12px;
}
.admin-avatar {
    width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; color: var(--on-primary); font-size: 15px;
}
.admin-user-name { font-size: 13px; font-weight: 700; }
.admin-user-role { font-size: 11px; color: var(--text-dim); margin-top: 1px; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; overflow-y: auto; }
.admin-nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 12px; border-radius: 10px;
    color: var(--text-muted); background: transparent;
    font-size: 14px; text-align: left; transition: var(--transition);
    border: 1px solid transparent;
}
.admin-nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.admin-nav-item:hover { background: rgba(var(--surface-rgb), 0.05); color: var(--text); }
.admin-nav-item.active {
    background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.22), rgba(var(--primary-rgb), 0.08));
    color: var(--primary-light);
    border-color: rgba(var(--primary-rgb), 0.4);
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--primary);
}
.admin-nav-item.active svg { color: var(--primary-light); }
.admin-sidebar-foot { border-top: 1px solid var(--border-light); padding-top: 14px; margin-top: 10px; }
.admin-sidebar-foot a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 10px;
    color: var(--text-muted); font-size: 13px; transition: var(--transition);
}
.admin-sidebar-foot a:hover { background: rgba(var(--surface-rgb), 0.05); color: var(--text); }
.admin-sidebar-foot svg { width: 17px; height: 17px; }
.admin-content {
    flex: 1; min-width: 0;
    padding: 32px 36px 80px;
}

/* 后台概览：6 项指标单行高密度指标条，按语义配色 */
.stat-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}
.stat-strip .stat-card {
    position: relative;
    overflow: hidden;
    text-align: left;
    padding: 14px 16px;
    border-radius: 12px;
    background: radial-gradient(circle at 100% 0%, var(--accent-soft), transparent 65%), var(--bg-card, var(--bg-elevated));
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: var(--transition);
}
/* 覆盖通用 .card + .card 的堆叠间距，避免 grid 内卡片高度不齐 */
.stat-strip .stat-card + .stat-card { margin-top: 0; }
.stat-strip .stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent 70%);
}
.stat-strip .stat-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(0,0,0,.28);
    transform: translateY(-2px);
}
.stat-strip .stat-icon {
    position: absolute;
    top: 13px; right: 14px;
    width: 28px; height: 28px;
    color: var(--accent);
    opacity: .4;
    transition: var(--transition);
}
.stat-strip .stat-icon svg { width: 100%; height: 100%; display: block; }
.stat-strip .stat-card:hover .stat-icon { opacity: .8; transform: scale(1.1); }
.stat-strip .stat-card .num {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--accent);
    background: none;
    -webkit-text-fill-color: var(--accent);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stat-strip .stat-card .label {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}
.stat-strip .tone-users     { --accent: var(--primary-light); --accent-soft: rgba(var(--primary-light-rgb), .16); }
.stat-strip .tone-orders    { --accent: var(--success-text); --accent-soft: rgba(52,211,153,.16); }
.stat-strip .tone-revenue   { --accent: #fbbf24; --accent-soft: rgba(251,191,36,.16); }
.stat-strip .tone-parses    { --accent: #38bdf8; --accent-soft: rgba(56,189,248,.16); }
.stat-strip .tone-downloads { --accent: #22d3ee; --accent-soft: rgba(34,211,238,.16); }
.stat-strip .tone-visitors  { --accent: #c084fc; --accent-soft: rgba(192,132,252,.16); }
@media (max-width: 1200px) {
    .stat-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 后台表格更紧凑清晰 */
.admin-content th { padding: 12px 14px; border-bottom: 2px solid var(--border); }
.admin-content td { padding: 12px 14px; border-bottom: 1px solid var(--border-light); }
.admin-content tr:hover td { background: rgba(var(--primary-rgb), 0.04); }
.admin-content input, .admin-content select, .admin-content textarea {
    background: rgba(var(--surface-rgb), 0.06);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 7px 9px;
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    color-scheme: dark;
    outline: none;
}
.admin-content input:focus, .admin-content select:focus, .admin-content textarea:focus {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.08);
}
.admin-content select option { background: var(--bg-elevated); color: var(--text); }
.admin-content input::placeholder, .admin-content textarea::placeholder { color: var(--text-dim); }
.admin-content input[type=number] { font-variant-numeric: tabular-nums; }
/* 操作按钮横排，避免窄列中竖向堆叠 */
.admin-content .row-actions { flex-wrap: nowrap; gap: 6px; }
.admin-content .row-actions .btn { flex-shrink: 0; padding: 6px 10px; }
/* 订单状态：彩色胶囊下拉，保留可编辑能力 */
.admin-content .status-select {
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    min-width: 78px;
    text-align: center;
    text-align-last: center;
}
.admin-content .status-select.status-pending { background-color: rgba(245,158,11,0.16); color: var(--warn-text); border-color: rgba(245,158,11,0.35); }
.admin-content .status-select.status-paid { background-color: rgba(16,185,129,0.16); color: var(--success-text); border-color: rgba(16,185,129,0.35); }
.admin-content .status-select.status-cancelled { background-color: rgba(148,163,184,0.16); color: var(--text-muted); border-color: rgba(148,163,184,0.35); }
.admin-content .status-select.status-refunded { background-color: rgba(239,68,68,0.16); color: var(--error-text); border-color: rgba(239,68,68,0.35); }
/* 套餐表格：固定列宽，防止 textarea 撑破表格、操作列被挤出 */
.admin-content .table-plans { table-layout: fixed; min-width: 880px; }
.admin-content .table-plans th, .admin-content .table-plans td { padding: 10px 8px; overflow: hidden; }
.admin-content .table-plans input, .admin-content .table-plans textarea {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}
.admin-content .table-plans textarea { height: 52px; min-height: 44px; resize: vertical; line-height: 1.4; }
@media (max-width: 900px) {
    .admin-layout { flex-direction: column; padding-top: 72px; }
    .admin-sidebar { width: 100%; height: auto; position: static; padding: 14px; border-right: none; border-bottom: 1px solid var(--border); }
    .admin-sidebar-title { padding-bottom: 12px; margin-bottom: 10px; }
    .admin-nav { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
    .admin-nav-item { white-space: nowrap; padding: 9px 12px; }
    .admin-sidebar-foot { display: none; }
    .admin-content { padding: 24px 18px 60px; }
}

/* ========== 视频猎手 - 单页应用样式 ========== */

/* 视图切换 */
.view { display: none; }
.view.active { display: block; animation: viewIn 0.28s ease; }
@keyframes viewIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 登录注册弹窗 */
.auth-modal { position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center; padding: 20px; }
.auth-modal.open { display: flex; }
.auth-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(6px); }
.auth-modal-card {
    position: relative; z-index: 1; width: 100%; max-width: 430px;
    background: linear-gradient(160deg, rgba(var(--primary-rgb), 0.10), var(--bg-dark) 55%);
    border: 1px solid rgba(var(--primary-rgb), 0.25); border-radius: 22px;
    padding: 36px 34px; box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 60px rgba(var(--primary-rgb), 0.12);
    animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: calc(100vh - 40px); overflow-y: auto;
}
.auth-modal-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 22px 22px 0 0;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.auth-modal-close {
    position: absolute; top: 16px; right: 16px; width: 32px; height: 32px;
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    color: var(--text-dim); background: transparent; transition: var(--transition);
}
.auth-modal-close:hover { background: rgba(var(--surface-rgb), 0.08); color: var(--text); }
.auth-modal-close svg { width: 18px; height: 18px; }
.auth-modal-logo { font-size: 16px; font-weight: 800; margin-bottom: 20px; }
.auth-modal-logo span { margin-right: 6px; }
.auth-modal-card h2 { font-size: 22px; margin-bottom: 6px; }
.auth-modal-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.auth-tab {
    flex: 1; padding: 9px; border-radius: 10px; border: 1px solid var(--border);
    background: transparent; color: var(--text-muted); font-size: 13px; transition: var(--transition);
}
.auth-tab.active { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.auth-modal-foot { margin-top: 18px; font-size: 12px; color: var(--text-dim); text-align: center; }
body.modal-open { overflow: hidden; }

.avatar {
    width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 800; color: var(--on-primary);
}
.mini-stat {
    background: rgba(var(--surface-rgb), 0.03); border: 1px solid var(--border-light);
    border-radius: 12px; padding: 14px; text-align: center;
}
.mini-stat .num { font-size: 18px; font-weight: 700; }
.mini-stat .lab { font-size: 11px; color: var(--text-dim); margin-top: 4px; }

.btn-small { padding: 7px 14px; font-size: 13px; }
.user-menu { position: relative; }
.user-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 4px 8px 4px 4px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(var(--surface-rgb), 0.03);
    font-family: inherit; cursor: pointer;
    transition: var(--transition);
}
.user-pill:hover, .user-pill[aria-expanded="true"] {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.08);
}
.user-avatar {
    width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--on-primary); font-size: 12px; font-weight: 800;
}
.user-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; }
.user-caret { width: 14px; height: 14px; color: var(--text-dim); transition: transform .2s; }
.user-pill[aria-expanded="true"] .user-caret { transform: rotate(180deg); }
.user-dropdown {
    position: absolute; top: calc(100% + 10px); right: 0;
    min-width: 180px;
    background: var(--bg-card, var(--bg-elevated));
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0,0,0,.4);
    padding: 6px;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 100;
}
.user-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.user-dropdown-item {
    display: flex; align-items: center; gap: 10px;
    width: 100%; padding: 9px 11px;
    border: none; border-radius: 8px;
    background: transparent; color: var(--text);
    font-family: inherit; font-size: 13px; text-align: left;
    text-decoration: none; cursor: pointer;
    transition: var(--transition);
}
.user-dropdown-item svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--text-dim); }
.user-dropdown-item:hover { background: rgba(var(--primary-rgb), .14); color: var(--text); }
.user-dropdown-item:hover svg { color: var(--primary-light); }
.user-dropdown-item.danger:hover { background: rgba(239,68,68,.14); color: var(--error-text); }
.user-dropdown-item.danger:hover svg { color: var(--error-text); }
.user-dropdown-divider { height: 1px; background: var(--border); margin: 5px 4px; }
.app-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
}
.app-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 28px;
}
.app-logo {
    font-size: 18px;
    font-weight: 800;
    white-space: nowrap;
}
.app-logo span { margin-right: 6px; }
.app-nav { display: flex; gap: 22px; flex: 1; }
.app-nav a {
    color: var(--text-muted);
    font-size: 14px;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}
.app-nav a:hover, .app-nav a.active { color: var(--text); border-bottom-color: var(--primary); }
.app-user-area { display: flex; align-items: center; gap: 12px; }
.user-chip {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.vip-tag {
    font-size: 10px; font-weight: 700; letter-spacing: .3px;
    padding: 2px 7px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    white-space: nowrap;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--border); color: var(--text-muted); background: transparent; }
.btn-ghost:hover { color: var(--text); border-color: var(--primary); }
.btn-danger { background: rgba(239, 68, 68, 0.15); color: var(--error-text); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.app-main {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    /* 顶部导航为 fixed 72px，需预留空间避免标题被遮挡 */
    padding: 112px 24px 80px;
    min-height: 100vh;
}
.page-head { margin-bottom: 28px; }
.page-head h1 { font-size: 30px; margin-bottom: 8px; }
.page-head p { color: var(--text-muted); font-size: 14px; }

.card {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.06), transparent 42%), var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    backdrop-filter: blur(12px);
}
.card + .card { margin-top: 20px; }
.card h2 { font-size: 18px; margin-bottom: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head h2 { margin: 0; }
.card-head .btn { flex-shrink: 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .app-nav { display: none; }
}

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
    width: 100%;
    background: rgba(var(--surface-rgb), 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    color: var(--text);
    font-size: 14px;
    outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); }
.field textarea { min-height: 80px; resize: vertical; }

.tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.tab {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
}
.tab.active { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }

.stat-card { text-align: center; padding: 20px; }
.stat-card .num { font-size: 28px; font-weight: 800; background: linear-gradient(135deg, var(--grad-1), var(--grad-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-card .label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* 会员套餐页 */
#view-pricing .page-head h1 {
    font-size: 34px;
    background: linear-gradient(135deg, var(--grad-1) 20%, var(--grad-3));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.plan-card {
    --accent: var(--primary);
    --accent-soft: rgba(var(--primary-rgb), .14);
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 30px 24px 26px;
    overflow: hidden;
    transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s, box-shadow .35s;
}
.plan-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-warm), transparent);
}
.plan-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 50px rgba(0,0,0,.35), 0 0 30px var(--accent-soft);
}
.plan-card.tier-basic { --accent: #0E86C7; --accent-soft: rgba(56,189,248,.18); background: var(--plan-basic-bg); }
.plan-card.tier-popular { --accent: var(--secondary-light); --accent-soft: rgba(var(--secondary-rgb), .18); background: var(--plan-popular-bg); }
.plan-card.tier-premium { --accent: var(--premium-accent); --accent-soft: var(--premium-soft); background: var(--plan-premium-bg); }
.plan-card.tier-blue { --accent: #3B9AE1; --accent-soft: rgba(59,154,225,.18); --ribbon-from: #0EA5E9; --ribbon-to: #2563EB; background: var(--plan-basic-bg); }
.plan-card.tier-pink { --accent: #EC4899; --accent-soft: rgba(236,72,153,.18); --ribbon-from: #F472B6; --ribbon-to: #DB2777; background: var(--plan-popular-bg); }
.plan-card.tier-yellow { --accent: #F59E0B; --accent-soft: rgba(245,158,11,.18); --ribbon-from: #FBBF24; --ribbon-to: #EA580C; background: var(--plan-premium-bg); }
.plan-card.tier-purple { --accent: #8B5CF6; --accent-soft: rgba(139,92,246,.18); --ribbon-from: #A78BFA; --ribbon-to: #6D28D9; background: var(--plan-purple-bg); }
.plan-card.tier-green { --accent: #10B981; --accent-soft: rgba(16,185,129,.18); --ribbon-from: #34D399; --ribbon-to: #047857; background: var(--plan-green-bg); }
.plan-card.tier-orange { --accent: #F97316; --accent-soft: rgba(249,115,22,.18); --ribbon-from: #FB923C; --ribbon-to: #C2410C; background: var(--plan-orange-bg); }
.plan-card.tier-cyan { --accent: #06B6D4; --accent-soft: rgba(6,182,212,.18); --ribbon-from: #22D3EE; --ribbon-to: #0E7490; background: var(--plan-cyan-bg); }
.plan-card.tier-red { --accent: #EF4444; --accent-soft: rgba(239,68,68,.18); --ribbon-from: #F87171; --ribbon-to: #B91C1C; background: var(--plan-red-bg); }
.plan-card.hot { border-color: var(--primary); animation: hotCardGlow 3s ease-in-out infinite; }
@keyframes hotCardGlow {
    0%, 100% { box-shadow: 0 0 0 1px rgba(var(--primary-rgb), .35), 0 12px 40px rgba(var(--primary-rgb), .15); }
    50% { box-shadow: 0 0 0 1px rgba(var(--secondary-rgb), .5), 0 16px 55px rgba(var(--secondary-rgb), .25); }
}
.plan-ribbon {
    position: absolute; top: 15px; right: -34px;
    background: linear-gradient(135deg, var(--ribbon-from, #f59e0b), var(--ribbon-to, #ef4444));
    color: #fff; font-size: 11px; font-weight: 700;
    padding: 5px 38px; transform: rotate(38deg);
    box-shadow: 0 4px 12px var(--accent-soft);
}
.plan-icon-wrap {
    width: 56px; height: 56px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-soft);
    border: 1px solid var(--accent);
    margin-bottom: 18px;
    box-shadow: inset 0 0 20px var(--accent-soft);
}
.plan-icon { width: 30px; height: 30px; color: var(--accent); }
.plan-icon svg { width: 100%; height: 100%; display: block; }
.plan-icon-emoji { font-size: 27px; line-height: 1; display: block; text-align: center; }
.plan-name { font-size: 19px; font-weight: 700; }
.plan-price { margin: 12px 0 4px; font-size: 40px; font-weight: 800; color: var(--accent); line-height: 1.1; }
.plan-card.tier-premium .plan-price {
    background: var(--premium-price-gradient);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.plan-price small { font-size: 13px; color: var(--text-muted); font-weight: 400; }
.plan-origin { color: var(--text-dim); text-decoration: line-through; font-size: 13px; }
.plan-saving {
    display: inline-block; align-self: flex-start;
    margin-top: 10px; padding: 4px 11px;
    background: rgba(16,185,129,.14); color: var(--success-text);
    border-radius: 999px; font-size: 11px; font-weight: 700;
}
.plan-desc { font-size: 13px; color: var(--text-muted); margin-top: 14px; min-height: 40px; line-height: 1.5; }
.plan-features { list-style: none; margin: 18px 0 24px; flex: 1; }
.plan-features li { position: relative; font-size: 13px; color: var(--text-muted); padding: 7px 0 7px 26px; }
.plan-features li::before {
    content: '✓'; position: absolute; left: 0; top: 6px;
    width: 17px; height: 17px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-soft); color: var(--accent);
    border-radius: 50%; font-size: 10px; font-weight: 800;
}
.plan-btn { width: 100%; margin-top: auto; padding: 12px; font-weight: 600; }
.plan-card .plan-btn {
    background: linear-gradient(135deg, var(--ribbon-from, var(--primary)), var(--ribbon-to, var(--primary-dark)));
    border: 1px solid transparent;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
    box-shadow: 0 8px 22px var(--accent-soft);
    transition: transform .3s ease, box-shadow .3s ease, filter .3s ease;
}
.plan-card .plan-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 12px 28px var(--accent-soft);
    color: #fff;
}
.plan-card .plan-btn:active { transform: translateY(0); }

.table-wrap { overflow-x: auto; }
.table-plans { min-width: 1380px; }

.confirm-modal {
    position: fixed; inset: 0; z-index: 4000;
    display: none; align-items: center; justify-content: center; padding: 20px;
}
.confirm-modal.open { display: flex; }
.confirm-backdrop { position: absolute; inset: 0; background: rgba(8, 20, 34, .55); backdrop-filter: blur(4px); }
.confirm-card {
    position: relative; width: min(420px, 100%);
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 18px; padding: 24px; box-shadow: var(--shadow);
}
.confirm-card h3 { margin: 0 0 10px; font-size: 18px; color: var(--text); }
.confirm-card p { margin: 0 0 22px; font-size: 13px; line-height: 1.6; color: var(--text-muted); }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border-light); white-space: nowrap; }
th { color: var(--text-muted); font-weight: 600; }
td { color: var(--text); }
tr:hover td { background: rgba(var(--surface-rgb), 0.02); }
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; background: rgba(var(--primary-rgb), 0.18); color: var(--primary-light); }
.tag.ok { background: rgba(16,185,129,0.18); color: var(--success-text); }
.tag.warn { background: rgba(245,158,11,0.18); color: var(--warn-text); }
.tag.bad { background: rgba(239,68,68,0.18); color: var(--error-text); }

/* 批量下载进度：极简克制的单色渐变，高级质感 */
.progress-wrap {
    margin: 14px 0 10px;
    padding: 14px 18px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: rgba(var(--surface-rgb), .025);
}
.progress-wrap.finished { opacity: 0; transform: scaleY(.9); transition: opacity .5s ease, transform .5s ease; }
.progress-meta {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px; font-size: 13px; color: var(--text-muted);
}
.progress-label { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; letter-spacing: .02em; }
.progress-spinner {
    width: 14px; height: 14px; flex-shrink: 0;
    border: 2px solid rgba(var(--primary-light-rgb), .18);
    border-top-color: var(--primary-light, var(--primary-light));
    border-radius: 50%;
    animation: vhSpin .9s linear infinite;
}
.progress-percent {
    font-size: 15px; font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--text);
    letter-spacing: .03em;
}
.progress-bar {
    height: 6px; border-radius: 999px;
    background: rgba(var(--surface-rgb), .07); overflow: hidden;
}
.progress-bar > i {
    position: relative; display: block; height: 100%; border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--primary-light));
    background-size: 200% 100%;
    transition: width .5s cubic-bezier(.22,.61,.36,1);
    animation: progressFlow 3s ease-in-out infinite;
}
.progress-bar > i::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(var(--surface-rgb), .22), transparent);
    transform: translateX(-100%);
    animation: progressShine 3s ease-in-out infinite;
}
@keyframes vhSpin { to { transform: rotate(360deg); } }
@keyframes progressFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
@keyframes progressShine {
    0% { transform: translateX(-100%); }
    60%, 100% { transform: translateX(100%); }
}

/* 解析等待：按钮内 spinner + 阶段文案 + 流动条 */
.btn-spinner {
    display: inline-block; width: 13px; height: 13px; margin-right: 8px;
    vertical-align: -2px; border: 2px solid rgba(var(--surface-rgb), .35);
    border-top-color: var(--on-primary); border-radius: 50%;
    animation: vhSpin .8s linear infinite;
}
.btn.is-parsing { opacity: .9; cursor: wait; }
.parse-progress {
    display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
    font-size: 12px; color: var(--text-muted); margin-top: 10px;
}
.parse-pulse {
    width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%;
    background: var(--primary-light, var(--primary-light));
    animation: parsePulse 1.4s ease-in-out infinite;
}
.parse-stage { color: var(--text); }
.parse-dots {
    display: inline-block; min-width: 16px; color: var(--primary-light, var(--primary-light));
    font-variant-numeric: tabular-nums;
}
.parse-track {
    flex: 1 1 100%; height: 3px; border-radius: 999px; margin-top: 4px;
    background: rgba(var(--surface-rgb), .06); overflow: hidden;
}
.parse-track > i {
    display: block; width: 40%; height: 100%; border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
    animation: parseSlide 1.8s ease-in-out infinite;
}
@keyframes parsePulse {
    0%, 100% { opacity: .35; transform: scale(.8); }
    50% { opacity: 1; transform: scale(1.25); }
}
@keyframes parseSlide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}
.video-item.downloading {
    position: relative;
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), .16);
    animation: itemPulse .9s ease-in-out infinite;
}
.video-item.downloading::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 3px 0 0 3px;
    animation: barGlow .9s ease-in-out infinite;
}
@keyframes itemPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), .5), inset 0 0 20px rgba(var(--primary-rgb), .05); }
    50% { box-shadow: 0 0 0 6px rgba(var(--primary-rgb), .14), inset 0 0 30px rgba(var(--primary-rgb), .2); }
}
@keyframes barGlow {
    0%, 100% { opacity: .55; box-shadow: 0 0 6px var(--primary); }
    50% { opacity: 1; box-shadow: 0 0 16px var(--secondary); }
}
.video-item.done { background: rgba(16,185,129,.09); border-color: rgba(16,185,129,.35); }
.video-item.done .batch-result { animation: popIn .35s cubic-bezier(.34,1.56,.64,1); }
.video-item.failed { background: rgba(239,68,68,.07); border-color: rgba(239,68,68,.3); }
@keyframes popIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.empty { text-align: center; color: var(--text-dim); padding: 40px 0; font-size: 14px; }
.notice { background: rgba(var(--primary-rgb), 0.1); border: 1px solid rgba(var(--primary-rgb), 0.25); border-radius: 10px; padding: 12px 16px; font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.notice.warn { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.3); }

.global-toast {
    position: fixed;
    left: 50%;
    bottom: 32px;
    transform: translate(-50%, 20px);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px 22px;
    border-radius: 12px;
    font-size: 14px;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    box-shadow: var(--shadow);
}
.global-toast.show { opacity: 1; transform: translate(-50%, 0); }
.global-toast.warn { border-color: #f59e0b; }
.global-toast.error { border-color: var(--error); }
.global-toast.multiline {
    max-width: min(620px, calc(100vw - 40px));
    padding: 16px 22px;
    font-size: 14px;
    line-height: 1.75;
    text-align: left;
    white-space: normal;
    word-break: break-word;
    pointer-events: auto;
}
.global-toast.multiline.error { border-left: 3px solid var(--error); }
.global-toast.multiline.warn { border-left: 3px solid #f59e0b; }

/* 平台标签：必须先选平台，再按步骤获取链接 */
.platform-tabs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 14px; }
.platform-tab {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 15px; border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(var(--surface-rgb), 0.03);
    color: var(--text-muted); font-size: 13px; font-weight: 600;
    cursor: pointer; transition: var(--transition);
}
.platform-tab:hover { border-color: var(--primary); color: var(--text); transform: translateY(-1px); }
.platform-tab.active {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.28), rgba(var(--primary-rgb),0.18));
    border-color: var(--primary); color: var(--text);
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.2);
}
.platform-tab .platform-dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--primary-light); flex-shrink: 0;
}
.platform-tab.active .platform-dot { box-shadow: 0 0 8px var(--primary-light); }
.platform-guide {
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: rgba(var(--primary-rgb), 0.05);
    padding: 16px 18px;
}
.platform-guide h3 { font-size: 15px; margin: 0 0 4px; }
.platform-guide .guide-lead { font-size: 12.5px; color: var(--text-muted); margin: 0 0 14px; }
.platform-guide ol { margin: 0; padding-left: 22px; }
.platform-guide li {
    font-size: 13px; line-height: 1.75; color: var(--text-muted);
    margin-bottom: 11px; padding-left: 2px;
}
.platform-guide li:last-child { margin-bottom: 0; }
.platform-guide li strong { color: var(--text); }
.platform-guide .guide-example {
    display: inline-block; margin-top: 4px; padding: 3px 8px;
    background: rgba(0,0,0,0.25); border: 1px solid var(--border-light);
    border-radius: 6px; font-family: ui-monospace, monospace;
    font-size: 11.5px; color: var(--primary-light); word-break: break-all;
}
.platform-guide .guide-tip {
    margin-top: 14px; padding: 10px 12px; border-radius: 8px;
    background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.25);
    font-size: 12px; color: var(--warn-text); line-height: 1.6;
}
.platform-guide .guide-vip {
    margin-top: 10px; padding: 10px 12px; border-radius: 8px;
    background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.25);
    font-size: 12px; color: var(--error-text); line-height: 1.6;
}

/* 批量下载工具栏：全选 + 计数 + 下载 */
.batch-toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    padding: 8px 12px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: rgba(var(--surface-rgb), 0.02);
}
.batch-select-all {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
}
.batch-select-all input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.batch-toolbar #selectionInfo { font-size: 12px; color: var(--text-dim); }
.batch-toolbar .btn { margin-left: auto; }

/* 视频列表：紧凑行高与间距 */
.video-list { display: grid; gap: 6px; }
.video-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: rgba(var(--surface-rgb), 0.02);
}
.video-item input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.video-item img { width: 62px; height: 39px; object-fit: cover; border-radius: 5px; background: var(--bg-elevated); flex-shrink: 0; }
.video-item .vi-title { flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.4; }
.video-item .vi-meta { font-size: 11.5px; color: var(--text-dim); margin-top: 1px; }
.video-item .btn-view {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 10px;
    border: 1px solid rgba(var(--primary-rgb), 0.28);
    border-radius: 6px;
    background: rgba(var(--primary-rgb), 0.10);
    color: var(--primary-light);
    font-size: 12px;
    text-decoration: none;
    transition: var(--transition);
}
.video-item .btn-view:hover {
    background: rgba(var(--primary-rgb), 0.22);
    border-color: var(--primary);
    color: var(--text);
}

.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; align-items: end; }
.inline-form .field { margin: 0; }

/* ========== 帮助中心 ========== */
.help-layout { display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: start; }
.help-nav {
    position: sticky; top: 92px;
    display: flex; flex-direction: column; gap: 4px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 10px;
}
.help-nav-item {
    display: block; width: 100%; text-align: left;
    padding: 10px 13px; border-radius: 9px;
    font-size: 13px; color: var(--text-muted);
    transition: var(--transition); border: 1px solid transparent;
}
.help-nav-item:hover { background: var(--bg-card-hover); color: var(--text); }
.help-nav-item.active {
    background: rgba(var(--primary-rgb), 0.14); color: var(--primary-light);
    border-color: rgba(var(--primary-rgb), 0.28); font-weight: 600;
}
.help-content {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 30px 34px; min-height: 460px;
}
.help-panel { display: none; }
.help-panel.active { display: block; animation: helpFade .25s ease; }
@keyframes helpFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.help-section-title {
    font-size: 21px; font-weight: 800; margin-bottom: 22px;
    padding-bottom: 14px; border-bottom: 1px solid var(--border-light);
}
.help-panel p { color: var(--text-muted); font-size: 14px; line-height: 1.85; }
.help-panel h3 { font-size: 15px; font-weight: 700; margin: 6px 0 6px; }

/* 使用教程 */
.help-steps { display: flex; flex-direction: column; gap: 22px; }
.help-step { display: flex; gap: 16px; align-items: flex-start; }
.help-step-num {
    width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--on-primary); font-weight: 800; font-size: 16px;
    display: flex; align-items: center; justify-content: center;
}
.help-step h3 { margin: 3px 0 5px; }
.help-step p { margin: 0; }
.help-step strong, .help-tips strong { color: var(--text); }
.help-tips {
    margin-top: 26px; padding: 18px 20px;
    background: rgba(var(--primary-rgb), 0.07); border: 1px solid rgba(var(--primary-rgb), 0.18);
    border-radius: var(--radius-sm);
}
.help-tips h3 { margin: 0 0 10px; color: var(--primary-light); }
.help-tips ul { margin: 0; padding-left: 20px; }
.help-tips li { color: var(--text-muted); font-size: 13.5px; line-height: 1.9; }

/* 常见问题 */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
    background: rgba(var(--surface-rgb), 0.02); border: 1px solid var(--border-light);
    border-radius: var(--radius-sm); overflow: hidden;
}
.faq-item summary {
    padding: 14px 18px; cursor: pointer; list-style: none;
    font-size: 14px; font-weight: 600; color: var(--text);
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--primary-light); font-size: 18px; font-weight: 400; }
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { background: var(--bg-card-hover); }
.faq-item p { padding: 0 18px 16px; margin: 0; }

/* 更新记录 / 公告 */
.help-timeline { display: flex; flex-direction: column; gap: 0; }
.help-log { display: flex; gap: 18px; padding: 0 0 22px; position: relative; }
.help-log::before {
    content: ''; position: absolute; left: 92px; top: 8px; bottom: -4px;
    width: 1px; background: var(--border);
}
.help-log:last-child::before { display: none; }
.help-log-date { width: 84px; flex-shrink: 0; font-size: 12px; color: var(--primary-light); padding-top: 2px; }
.help-log strong { font-size: 14px; }
.help-log p { margin: 3px 0 0; }
.help-notice { display: flex; gap: 14px; padding: 18px; background: rgba(var(--primary-rgb), 0.06); border: 1px solid rgba(var(--primary-rgb), 0.18); border-radius: var(--radius-sm); }
.help-notice-tag { height: fit-content; padding: 3px 10px; border-radius: 20px; background: var(--error); color: #fff; font-size: 11px; font-weight: 700; }
.help-notice h3 { margin: 0 0 3px; }
.help-notice-time { font-size: 12px !important; color: var(--text-dim) !important; margin: 0 0 8px !important; }

/* 联系支持 */
.help-contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 20px 0; }
.help-contact-card { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: rgba(var(--surface-rgb), 0.02); }
.help-contact-icon { width: 40px; height: 40px; border-radius: 11px; background: rgba(var(--primary-rgb), 0.14); color: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 12px; }
.help-contact-card h3 { margin: 0 0 6px; }
.help-contact-card p { margin: 0 0 8px; }
.help-contact-card span { font-size: 12px; color: var(--success); }

/* 隐私 / 条款 / 关于 */
.help-legal h3, .help-about h3 { margin: 20px 0 7px; color: var(--text); font-size: 15px; }
.help-legal h3:first-child, .help-about h3:first-child { margin-top: 0; }
.help-legal p, .help-about p { margin: 0 0 8px; }
.help-legal-date { margin-top: 22px !important; color: var(--text-dim) !important; font-size: 12px !important; }
.help-about-slogan { color: var(--primary-light) !important; font-weight: 600; }
.help-about-stats { display: flex; gap: 14px; flex-wrap: wrap; margin: 20px 0; }
.help-about-stats div { flex: 1; min-width: 110px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); text-align: center; }
.help-about-stats strong { display: block; font-size: 22px; background: linear-gradient(135deg, var(--grad-1), var(--grad-3)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.help-about-stats span { font-size: 12px; color: var(--text-dim); }
.help-about ul { padding-left: 20px; margin: 0 0 16px; }
.help-about li { color: var(--text-muted); font-size: 13.5px; line-height: 1.9; }

@media (max-width: 800px) {
    .help-layout { grid-template-columns: 1fr; }
    .help-nav { position: static; flex-direction: row; flex-wrap: wrap; }
    .help-nav-item { width: auto; flex: 1 1 auto; text-align: center; padding: 8px 10px; }
    .help-content { padding: 22px 18px; }
}

/* ========== 赞赏感谢墙 ========== */
.donate-head { text-align: center; }
.donate-head h1 { background: linear-gradient(135deg, var(--grad-1), var(--grad-3)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.donate-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding: 32px 36px; margin-bottom: 20px; }
.donate-hero h2 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.donate-hero p { color: var(--text-muted); font-size: 13.5px; line-height: 1.8; }
.donate-qr-block { text-align: center; border-right: 1px solid var(--border-light); padding-right: 36px; }
.donate-qr-list { display: flex; justify-content: center; gap: 26px; margin: 20px 0 12px; }
.donate-qr-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.donate-qr-item span { font-size: 12px; color: var(--text-muted); }
.donate-qr {
    width: 190px; height: 190px; padding: 4px; border-radius: 12px;
    background: #fff; border: 1px solid rgba(var(--surface-rgb), 0.08);
    box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}
.donate-qr svg, .donate-qr img { width: 100%; height: 100%; display: block; object-fit: contain; }
.donate-qr-note { font-size: 11px !important; color: var(--text-dim) !important; }
.donate-stats-block { display: flex; flex-direction: column; justify-content: center; }
.donate-stats { display: flex; gap: 12px; margin: 18px 0 22px; }
.donate-stats div { flex: 1; padding: 16px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); text-align: center; background: rgba(var(--surface-rgb), 0.02); }
.donate-stats strong { display: block; font-size: 22px; background: linear-gradient(135deg, var(--grad-1), var(--grad-3)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.donate-stats span { font-size: 12px; color: var(--text-dim); }
.donate-use h3 { font-size: 14px; margin-bottom: 8px; }
.donate-use ul { padding-left: 20px; margin: 0; }
.donate-use li { color: var(--text-muted); font-size: 13px; line-height: 1.9; }
.donate-wall-card { padding: 24px 28px; }
.donate-wall-sub { color: var(--secondary); font-size: 13px; }
.donate-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 18px; }
.donor-card {
    display: flex; align-items: center; gap: 13px;
    padding: 15px 16px; border: 1px solid var(--border-light);
    border-radius: var(--radius-sm); background: rgba(var(--surface-rgb), 0.02);
    transition: var(--transition);
}
.donor-card:hover { border-color: rgba(var(--primary-rgb), 0.4); background: var(--bg-card-hover); transform: translateY(-2px); }
.donor-avatar {
    width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex; align-items: center; justify-content: center;
    color: var(--on-primary); font-weight: 800; font-size: 16px;
}
.donor-info { flex: 1; min-width: 0; }
.donor-name { font-size: 13.5px; font-weight: 700; }
.donor-message { font-size: 12px; color: var(--primary-light); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.donor-date { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.donor-amount { font-size: 15px; font-weight: 800; color: var(--success); white-space: nowrap; }

@media (max-width: 800px) {
    .donate-hero { grid-template-columns: 1fr; gap: 24px; padding: 22px 18px; }
    .donate-qr-block { border-right: none; border-bottom: 1px solid var(--border-light); padding-right: 0; padding-bottom: 22px; }
    .donate-qr { width: 168px; height: 168px; padding: 3px; }
}

/* ========== 首页优化：引导卡片 ========== */
.home-links.section { padding: 20px 0 60px; }
.home-link-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.home-link-card {
    display: flex; align-items: center; gap: 15px;
    padding: 20px 22px; border: 1px solid var(--border);
    border-radius: var(--radius); background: var(--bg-card);
    transition: var(--transition);
}
.home-link-card:hover { border-color: rgba(var(--primary-rgb), 0.45); background: var(--bg-card-hover); transform: translateY(-3px); }
.home-link-card > svg { width: 18px; height: 18px; color: var(--text-dim); margin-left: auto; flex-shrink: 0; transition: var(--transition); }
.home-link-card:hover > svg { color: var(--primary-light); transform: translateX(3px); }
.home-link-card h3 { font-size: 15px; margin: 0 0 3px; }
.home-link-card p { font-size: 12.5px; color: var(--text-muted); margin: 0; }
.home-link-icon {
    width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 800;
}
.home-link-icon.help { background: rgba(var(--primary-rgb), 0.14); color: var(--primary-light); }
.home-link-icon.donate { background: rgba(var(--secondary-rgb), 0.14); color: var(--secondary-light); }
@media (max-width: 700px) { .home-link-grid { grid-template-columns: 1fr; } }

/* ========== 帧溯 Framora：品牌补充样式 ========== */
body { transition: background-color .3s ease, color .3s ease; }

/* 主题切换按钮 */
.theme-toggle {
    width: 36px; height: 36px; margin-right: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: 10px;
    background: rgba(var(--surface-rgb), 0.03);
    color: var(--text-muted); transition: var(--transition);
}
.theme-toggle:hover {
    color: var(--primary); border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.08);
}
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* 首页品牌文案 */
.hero-tagline {
    position: relative;
    display: inline-block;
    font-size: clamp(20px, 2.4vw, 28px); font-weight: 700;
    letter-spacing: 1px; color: var(--primary);
    margin: -10px 0 24px;
}
.hero-tagline::after {
    content: '';
    position: absolute;
    left: 12%; right: 12%; bottom: -10px; height: 3px;
    border-radius: 3px;
    background: var(--grad-line);
}
.hero-note {
    margin-top: 20px; font-size: 12.5px; color: var(--text-dim);
    line-height: 1.8;
}

/* 关于帧溯 */
.about.section { padding: 20px 0 70px; }
.about-card {
    position: relative; overflow: hidden;
    padding: 42px 46px; border-radius: var(--radius);
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.10), rgba(var(--accent-warm-rgb), 0.04)), var(--bg-card);
    box-shadow: var(--shadow);
}
.about-card::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(circle at 100% 0%, rgba(var(--primary-rgb), 0.12), transparent 55%);
}
.about-card .section-header { position: relative; }
.about-card .section-desc { margin-bottom: 0; }
.about-copy { position: relative; max-width: 860px; margin: 26px auto 0; }
.about-copy p {
    color: var(--text-muted); font-size: 14.5px; line-height: 2;
    margin-bottom: 14px;
}
.about-warning {
    position: relative; max-width: 860px; margin: 24px auto 0;
    padding: 12px 16px; border-radius: 10px;
    background: rgba(var(--primary-rgb), 0.08);
    border: 1px solid rgba(var(--primary-rgb), 0.18);
    color: var(--text-muted) !important; font-size: 13px !important;
}
@media (max-width: 700px) {
    .about-card { padding: 26px 20px; }
    .hero-tagline { margin-top: -4px; }
}

/* ========== 配色精修：质感层次与点缀 ========== */
.platform-card,
.step-card,
.feature-card,
.faq-item,
.result-card,
.card,
.help-content,
.help-nav,
.donate-wall-card {
    box-shadow: var(--shadow-sm), var(--inset);
}

/* 公告标签使用暖色点缀，打破单一蓝色 */
.help-notice-tag {
    background: var(--accent-warm);
    color: var(--on-warm);
}

/* 主题切换时颜色平滑过渡 */
.header,
.card,
.platform-card,
.step-card,
.feature-card,
.faq-item,
.about-card,
.help-content,
.help-nav,
.theme-toggle {
    transition: background-color .35s ease, border-color .35s ease, color .35s ease, box-shadow .35s ease, transform .3s ease;
}

/* ========== 微信支付 ========== */
.wechat-pay-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 18px; border-radius: 12px;
    background: rgba(var(--primary-rgb), 0.10);
    border: 1px solid rgba(var(--primary-rgb), 0.22);
    color: var(--primary-light); font-weight: 700;
}
.wechat-pay-badge svg { width: 22px; height: 22px; color: #09BB07; }
.wechat-pay-box { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.wechat-qr {
    width: 180px; height: 180px; flex-shrink: 0;
    padding: 12px; border-radius: 14px;
    background: #fff; border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.wechat-qr img { width: 100%; height: 100%; display: block; }
.wechat-pay-info h3 { margin: 0 0 12px; font-size: 18px; }
.wechat-pay-info p { margin: 0 0 8px; color: var(--text-muted); font-size: 13.5px; }
.wechat-pay-info .pay-amount { color: var(--primary-light); font-size: 20px; }
.wechat-pay-info .pay-status { color: var(--primary-light) !important; font-weight: 600; }
.wechat-pay-info .pay-hint { color: var(--text-dim) !important; font-size: 12px !important; }
@media (max-width: 700px) { .wechat-pay-box { justify-content: center; text-align: center; } }

/* 会员套餐页：四卡紧凑布局 */
#planList.plan-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}
#planList.plan-grid > .empty { grid-column: 1 / -1; }
#view-pricing .plan-card {
    padding: 18px 14px 16px;
    border-radius: 14px;
}
#view-pricing .plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .32), 0 0 22px var(--accent-soft);
}
#view-pricing .plan-ribbon {
    top: 9px; right: -28px;
    padding: 3px 28px; font-size: 10px;
}
#view-pricing .plan-icon-wrap {
    width: 40px; height: 40px;
    border-radius: 12px; margin-bottom: 10px;
    box-shadow: inset 0 0 12px var(--accent-soft);
}
#view-pricing .plan-icon { width: 22px; height: 22px; }
#view-pricing .plan-icon-emoji { font-size: 20px; }
#view-pricing .plan-name { font-size: 16px; line-height: 1.3; }
#view-pricing .plan-price { margin: 8px 0 2px; font-size: 30px; }
#view-pricing .plan-price small { font-size: 11px; }
#view-pricing .plan-origin { font-size: 12px; }
#view-pricing .plan-saving { margin-top: 7px; padding: 3px 9px; font-size: 10px; }
#view-pricing .plan-desc {
    font-size: 12px; margin-top: 10px;
    min-height: 36px; line-height: 1.45;
}
#view-pricing .plan-features { margin: 12px 0 14px; }
#view-pricing .plan-features li { font-size: 12px; padding: 4px 0 4px 20px; }
#view-pricing .plan-features li::before {
    top: 4px; width: 14px; height: 14px; font-size: 9px;
}
#view-pricing .plan-btn { padding: 9px 10px; font-size: 13px; }
@media (max-width: 1080px) {
    #planList.plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    #planList.plan-grid { grid-template-columns: 1fr; }
}
