/* ============================================================
   云图床 · 全局样式
   ============================================================ */

:root {
    --bg: #f4f5fb;
    --bg-soft: #eef0f8;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e6e9f2;
    --primary: #6366f1;
    --primary-2: #8b5cf6;
    --primary-3: #a855f7;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #a855f7 100%);
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .05);
    --shadow-lg: 0 18px 50px rgba(79, 70, 229, .18);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
        'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-2); }
img { max-width: 100%; display: block; }
code { font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; }

.muted { color: var(--muted); }
.small { font-size: 12px; }
.center { text-align: center; }
.link { color: var(--primary); cursor: pointer; font-weight: 500; }

/* ============================================================
   按钮
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 18px; border: 1px solid transparent; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none;
    transition: all .18s ease; white-space: nowrap; line-height: 1.2;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(99, 102, 241, .28); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(99, 102, 241, .34); color: #fff; }
.btn-ghost { background: var(--card); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: #fff; border-color: #fecaca; color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-xs { padding: 5px 10px; font-size: 12px; border-radius: 8px; }

/* ============================================================
   顶部导航（公开页）
   ============================================================ */
.navbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}
.navbar-inner {
    max-width: 1120px; margin: 0 auto; padding: 0 24px; height: 64px;
    display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-logo {
    width: 34px; height: 34px; border-radius: 10px; background: var(--grad); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: 17px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, .35);
}
.brand-tag { font-size: 11px; font-weight: 600; color: var(--primary); background: #eef0ff; padding: 2px 8px; border-radius: 999px; }
.navbar-links { display: flex; align-items: center; gap: 22px; }
.navbar-links a { color: var(--muted); font-weight: 500; font-size: 14px; }
.navbar-links a:hover { color: var(--text); }
.navbar-links a.active { color: var(--primary); font-weight: 600; }
.navbar-links a.btn { color: #fff; }

/* ============================================================
   Hero / 首页
   ============================================================ */
.hero {
    background: radial-gradient(1200px 500px at 50% -10%, #eef0ff 0%, transparent 60%), var(--bg);
    padding: 72px 24px 64px;
}
.hero-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.hero-badge {
    display: inline-block; padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
    color: var(--primary); background: #eef0ff; margin-bottom: 22px;
}
.hero h1 {
    font-size: 46px; font-weight: 800; letter-spacing: -1.5px; line-height: 1.15; margin-bottom: 16px;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { color: var(--muted); font-size: 17px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; margin-top: 26px; }

.dropzone {
    max-width: 640px; margin: 0 auto; background: var(--card); border: 2px dashed #c7cbf2;
    border-radius: 20px; padding: 46px 24px; cursor: pointer; transition: all .2s ease;
    box-shadow: var(--shadow);
}
.dropzone:hover, .dropzone.dragging { border-color: var(--primary); background: #fafbff; transform: translateY(-2px); }
.dropzone.disabled { cursor: pointer; border-color: var(--border); background: #fbfbfd; }
.dz-icon { font-size: 40px; margin-bottom: 10px; }
.dz-title { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.dz-sub { color: var(--muted); font-size: 13px; }

.upload-result { max-width: 640px; margin: 24px auto 0; display: flex; flex-direction: column; gap: 10px; }

.upload-item {
    display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow); text-align: left;
}
.upload-item.error { border-color: #fecaca; }
.upload-item .ui-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; flex: none; }
.upload-item .ui-body { flex: 1; min-width: 0; }
.upload-item .ui-name { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload-item .ui-url { font-size: 12px; color: var(--muted); word-break: break-all; }
.upload-item .ui-actions { display: flex; gap: 6px; flex: none; }
.upload-item .ui-info { flex: 1; color: var(--muted); font-size: 13px; }

/* ============================================================
   特性区
   ============================================================ */
.features {
    max-width: 1120px; margin: 0 auto; padding: 40px 24px 72px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.feature {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 26px 22px; box-shadow: var(--shadow); transition: transform .2s ease;
}
.feature:hover { transform: translateY(-4px); }
.f-icon { font-size: 30px; margin-bottom: 12px; }
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14px; }

/* ============================================================
   页脚
   ============================================================ */
.site-footer { border-top: 1px solid var(--border); background: var(--card); margin-top: 20px; }
.footer-inner {
    max-width: 1120px; margin: 0 auto; padding: 24px; display: flex; justify-content: space-between;
    color: var(--muted); font-size: 13px;
}

/* ============================================================
   登录 / 注册
   ============================================================ */
.auth-wrap { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card {
    width: 100%; max-width: 400px; background: var(--card); border: 1px solid var(--border);
    border-radius: 20px; padding: 36px; box-shadow: var(--shadow-lg);
}
.auth-card h1 { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.auth-sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.auth-card label { display: block; font-size: 13px; font-weight: 600; color: #334155; margin: 14px 0 6px; }
.auth-card input {
    width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 14px; outline: none; transition: all .15s ease; background: #fff;
}
.auth-card input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, .14); }
.auth-card .btn { margin-top: 22px; }
.auth-foot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 18px; }

/* ============================================================
   应用布局（侧边栏 + 主区）
   ============================================================ */
.layout { display: flex; min-height: 100vh; }
.sidebar {
    width: 232px; flex: none; background: var(--card); border-right: 1px solid var(--border);
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.sidebar .brand { padding: 22px 20px; border-bottom: 1px solid var(--border); }
.side-nav { padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.side-nav a, .side-foot a {
    display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 10px;
    color: var(--muted); font-weight: 500; font-size: 14px; transition: all .15s ease;
}
.side-nav a span, .side-foot a span { font-size: 16px; }
.side-nav a:hover { background: var(--bg-soft); color: var(--text); }
.side-nav a.active { background: #eef0ff; color: var(--primary); font-weight: 600; }
.side-foot { padding: 14px 12px; border-top: 1px solid var(--border); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
    height: 64px; display: flex; align-items: center; justify-content: space-between;
    padding: 0 28px; background: rgba(255, 255, 255, .8); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 40;
}
.topbar-title { font-size: 17px; font-weight: 700; }
.topbar-user { display: flex; align-items: center; gap: 10px; }
.topbar-name { font-weight: 600; font-size: 14px; }
.avatar {
    width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
}
.content { padding: 28px; max-width: 1200px; width: 100%; margin: 0 auto; }

/* ============================================================
   统计卡片
   ============================================================ */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 22px; }
.stat-grid-4 { grid-template-columns: repeat(4, 1fr); }
.stat-card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px 22px; box-shadow: var(--shadow);
}
.stat-card.accent { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; border: none; }
.stat-card.accent .stat-label, .stat-card.accent .stat-note { color: rgba(255,255,255,.85); }
.stat-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.stat-label { font-size: 13px; color: var(--muted); font-weight: 500; }
.stat-icon { font-size: 20px; }
.stat-value { font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.stat-unit { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 2px; }
.stat-card.accent .stat-unit { color: rgba(255,255,255,.85); }
.stat-value.plan-name { font-size: 22px; }
.stat-note { font-size: 12px; color: var(--muted); margin-top: 6px; }

.progress { height: 7px; background: var(--bg-soft); border-radius: 999px; margin-top: 14px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--grad); border-radius: 999px; transition: width .5s ease; }
.progress-bar-2 { background: linear-gradient(90deg, #10b981, #34d399); }

/* ============================================================
   面板 / 卡片容器
   ============================================================ */
.panel {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px; box-shadow: var(--shadow); margin-bottom: 22px;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.panel-head h3 { font-size: 17px; font-weight: 700; }

.page-intro { text-align: center; margin-bottom: 26px; }
.page-intro h2 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.page-intro p { color: var(--muted); }

/* ============================================================
   提示条
   ============================================================ */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 20px; border: 1px solid transparent; }
.alert-success { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.alert-error { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.alert-warning { background: #fffbeb; color: #b45309; border-color: #fde68a; }

/* ============================================================
   空状态
   ============================================================ */
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-icon { font-size: 44px; margin-bottom: 10px; }
.empty p { margin-bottom: 16px; }

/* ============================================================
   缩略图 / 图片网格
   ============================================================ */
.thumb-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.thumb { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--bg-soft); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.thumb:hover img { transform: scale(1.06); }

.img-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.img-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .18s ease; }
.img-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.img-thumb { aspect-ratio: 4/3; background: var(--bg-soft); overflow: hidden; }
.img-thumb img { width: 100%; height: 100%; object-fit: cover; }
.img-body { padding: 14px; }
.img-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 6px; }
.img-meta { display: flex; gap: 12px; color: var(--muted); font-size: 12px; margin-bottom: 12px; }
.img-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.img-actions form { display: inline-flex; }

/* ============================================================
   分页
   ============================================================ */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.page {
    min-width: 34px; height: 34px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: 9px; color: var(--muted); font-size: 14px; background: #fff;
}
.page:hover { border-color: var(--primary); color: var(--primary); }
.page.active { background: var(--grad); color: #fff; border-color: transparent; }

/* ============================================================
   套餐卡片
   ============================================================ */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1000px; margin: 0 auto; }
.plan-card {
    position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 20px;
    padding: 28px 26px; box-shadow: var(--shadow); transition: transform .2s ease;
}
.plan-card:hover { transform: translateY(-4px); }
.plan-card.current { border: 2px solid var(--primary); box-shadow: 0 0 0 4px rgba(99, 102, 241, .1); }
.plan-flag { position: absolute; top: -12px; right: 22px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.plan-name { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.plan-price { display: flex; align-items: baseline; gap: 3px; margin-bottom: 12px; }
.plan-price .cur { font-size: 20px; font-weight: 700; }
.plan-price { font-size: 40px; font-weight: 800; letter-spacing: -1px; }
.plan-price .free { font-size: 34px; font-weight: 800; }
.plan-price .per { font-size: 14px; color: var(--muted); font-weight: 500; }
.plan-desc { color: var(--muted); font-size: 13px; margin-bottom: 18px; min-height: 40px; }
.plan-feats { list-style: none; margin-bottom: 22px; }
.plan-feats li { padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 14px; color: var(--muted); }
.plan-feats li b { color: var(--text); float: right; }
.plan-feats li:last-child { border-bottom: none; }

/* ============================================================
   令牌 / API
   ============================================================ */
.token-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.token-box {
    flex: 1; min-width: 220px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px;
    padding: 12px 14px; font-size: 13px; word-break: break-all; user-select: all;
}
.token-row form { display: inline-flex; }
.api-list { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.api-item { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 10px; flex-wrap: wrap; }
.method { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 6px; color: #fff; min-width: 48px; text-align: center; }
.method.post { background: #f59e0b; }
.method.get { background: #10b981; }
.code-title { margin: 18px 0 8px; font-size: 14px; }
.api-section {
    display: flex; align-items: center; gap: 10px;
    margin: 20px 0 12px;
    font-size: 16px; font-weight: 800; color: var(--text);
}
.api-section::before {
    content: ''; width: 4px; height: 20px; border-radius: 2px;
    background: var(--grad); flex-shrink: 0;
}
.code-block {
    background: #0f172a; color: #e2e8f0; border-radius: 12px; padding: 16px 18px;
    font-size: 13px; overflow-x: auto; line-height: 1.7; white-space: pre;
}

/* ============================================================
   API 文档（API 与令牌页内联）
   ============================================================ */
.api-doc { margin: 14px 0; padding: 16px 18px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.api-doc h4 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.api-doc h4 code { font-size: 14px; font-weight: 600; background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 3px 10px; color: var(--primary); }
.api-doc table { margin: 10px 0; }
.api-doc .code-block { margin: 10px 0; }
.doc-list { margin: 8px 0 4px 20px; color: var(--muted); }
.doc-list li { margin: 4px 0; }
.token-methods { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.token-methods li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.token-methods code {
    background: var(--bg-soft); border: 1px solid var(--border); border-radius: 6px;
    padding: 4px 10px; font-size: 13px; color: var(--text);
}
.tm-label { min-width: 70px; color: var(--muted); font-size: 13px; }
.status-code { display: inline-block; min-width: 40px; text-align: center; padding: 2px 9px; border-radius: 6px; font-weight: 700; font-size: 12px; }
.status-code.ok { background: #ecfdf5; color: #047857; }
.status-code.warn { background: #fffbeb; color: #b45309; }
.status-code.err { background: #fef2f2; color: #b91c1c; }

/* ============================================================
   余额充值
   ============================================================ */
.recharge-presets { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 20px; }
.recharge-presets form { display: inline-flex; }
.recharge-amount { min-width: 76px; padding: 12px 18px; font-size: 16px; font-weight: 700; }
.recharge-custom { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding-top: 18px; border-top: 1px dashed var(--border); }
.recharge-custom input[type="number"] { max-width: 200px; }

/* ============================================================
   表格
   ============================================================ */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th {
    text-align: left; padding: 12px 14px; font-size: 12px; text-transform: uppercase; letter-spacing: .4px;
    color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--border);
}
tbody td { padding: 13px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fafbfd; }
.row-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.row-actions form { display: inline-flex; }

.badge {
    display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 600; background: var(--bg-soft); color: var(--muted);
}
.badge-primary { background: #eef0ff; color: var(--primary); }
.badge-success { background: #ecfdf5; color: #047857; }
.badge-danger { background: #fef2f2; color: #b91c1c; }
.badge-btn { border: none; cursor: pointer; font-family: inherit; }

/* ============================================================
   表单
   ============================================================ */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="search"],
input:not([type]), input[type="url"],
textarea, select {
    width: 100%; padding: 10px 13px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 14px; outline: none; background: #fff; transition: all .15s ease; font-family: inherit;
}
input:focus, textarea:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, .13); }
textarea { resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.checks { display: flex; gap: 22px; margin: 6px 0 18px; flex-wrap: wrap; }
.check { display: flex; align-items: center; gap: 7px; font-size: 14px; color: var(--text); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--primary); }
.input-sm { width: auto; min-width: 120px; padding: 6px 9px; font-size: 13px; border-radius: 8px; }
.search-form { display: flex; gap: 8px; }
.search-form input { width: 220px; }

/* ============================================================
   Toast / 加载
   ============================================================ */
.toast {
    position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
    background: #0f172a; color: #fff; padding: 12px 22px; border-radius: 12px; font-size: 14px;
    opacity: 0; pointer-events: none; transition: all .3s ease; z-index: 999; box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: #059669; }
.toast.error { background: #dc2626; }

.spinner {
    width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: var(--primary);
    border-radius: 50%; animation: spin .7s linear infinite; flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   收银台 / 支付
   ============================================================ */
.pay-order { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 16px 18px; margin: 18px 0; }
.po-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; font-size: 14px; }
.po-row span { color: var(--muted); }
.pay-amount { color: #f43f5e; font-size: 20px; }
.pay-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 8px; }
.pay-method {
    display: flex; align-items: center; gap: 10px; padding: 15px 16px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); font-weight: 600; color: var(--text); transition: all .15s ease;
}
.pay-method:hover { border-color: var(--primary); background: #fafbff; color: var(--primary); transform: translateY(-1px); }
.pm-icon { font-size: 22px; }
.badge-warning { background: #fffbeb; color: #b45309; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 960px) {
    .features, .stat-grid, .stat-grid-4, .img-grid, .plan-grid { grid-template-columns: repeat(2, 1fr); }
    .thumb-grid { grid-template-columns: repeat(4, 1fr); }
    .form-grid { grid-template-columns: repeat(2, 1fr); }
    .content { padding: 20px; }
}
@media (max-width: 600px) {
    .hero h1 { font-size: 32px; }
    .features, .stat-grid, .stat-grid-4, .img-grid, .plan-grid, .form-grid { grid-template-columns: 1fr; }
    .thumb-grid { grid-template-columns: repeat(3, 1fr); }
    .navbar-links { gap: 12px; }
    .topbar { padding: 0 16px; }
    .content { padding: 16px; }
    .topbar-name { display: none; }
}
