/* ==========================================================================
   基础与设计令牌
   ========================================================================== */
:root {
    --brand: #1d4ed8;
    --brand-2: #2563eb;
    --brand-ink: #1e3a8a;
    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #64748b;
    --line: #e3e8f0;
    --bg: #f6f8fb;
    --card: #ffffff;
    --ok: #0f9d58;
    --ok-bg: #ecfdf3;
    --warn: #b45309;
    --warn-bg: #fff7ed;
    --bad: #dc2626;
    --bad-bg: #fef2f2;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .18);
    --shadow-lg: 0 2px 4px rgba(15, 23, 42, .04), 0 24px 48px -24px rgba(15, 23, 42, .28);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-ink); }

h1, h2, h3, h4 { margin: 0; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0; }

img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container-sm { width: 100%; max-width: 460px; margin: 0 auto; padding: 0 24px; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.text-center { text-align: center; }
.right { margin-left: auto; }
.flex { display: flex; align-items: center; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }

/* ==========================================================================
   按钮 / 表单 / 卡片
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 20px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: .18s ease;
    white-space: nowrap;
    font-family: inherit;
}
.btn:hover { border-color: #cdd6e4; color: var(--ink); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.btn-primary {
    background: linear-gradient(180deg, var(--brand-2), var(--brand));
    border-color: var(--brand);
    color: #fff;
    box-shadow: 0 8px 18px -10px rgba(29, 78, 216, .8);
}
.btn-primary:hover { color: #fff; border-color: var(--brand-ink); box-shadow: 0 10px 22px -10px rgba(29, 78, 216, .9); }

.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: #eef2f9; color: var(--ink); }

.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }

.field { margin-bottom: 16px; }
.field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
}

.input, .textarea, .select {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: .16s ease;
}
.textarea { height: auto; min-height: 132px; padding: 12px 14px; line-height: 1.7; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.input:focus, .textarea:focus, .select:focus {
    border-color: #93b4f8;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.card-pad { padding: 24px; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: #eef2f9;
    color: var(--ink-2);
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }

.alert {
    padding: 12px 14px;
    border-radius: 10px;
    background: #eef4ff;
    border: 1px solid #d8e4ff;
    color: #1e40af;
    font-size: 13px;
}
.alert-error { background: var(--bad-bg); border-color: #fbd5d5; color: #b91c1c; }
.alert-ok { background: var(--ok-bg); border-color: #c6f0d8; color: #067647; }

/* ==========================================================================
   顶栏（站点）
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(15, 23, 42, .5); }
.site-header .inner { display: flex; align-items: center; height: 66px; gap: 28px; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: 16px; letter-spacing: -.02em; }
.logo-mark {
    width: 32px; height: 32px; border-radius: 9px;
    background: linear-gradient(145deg, #2563eb, #1e3a8a);
    display: grid; place-items: center; color: #fff;
    box-shadow: 0 6px 14px -8px rgba(30, 58, 138, .9);
}
.logo-mark svg { width: 18px; height: 18px; }

.nav { display: flex; align-items: center; gap: 26px; margin-left: 8px; }
.nav a { color: var(--ink-2); font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--brand); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.menu-btn { display: none; width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--ink); }

/* ==========================================================================
   落地页
   ========================================================================== */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 460px at 82% -10%, rgba(59, 130, 246, .35), transparent 62%),
        radial-gradient(700px 420px at 8% 10%, rgba(30, 64, 175, .45), transparent 60%),
        linear-gradient(160deg, #0b1c3f 0%, #12306b 52%, #1b4aa4 100%);
    color: #fff;
    padding: 84px 0 96px;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 78%);
    pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    height: 30px; padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
    color: #dbeafe;
}
.hero h1 { margin-top: 20px; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.15; letter-spacing: -.025em; font-weight: 800; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #93c5fd, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-top: 18px; color: rgba(226, 236, 255, .82); font-size: 16px; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-actions .btn { height: 46px; padding: 0 24px; }
.hero-actions .btn-light { background: #fff; border-color: #fff; color: var(--brand-ink); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .6); }
.hero-actions .btn-outline { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .35); color: #fff; }
.hero-actions .btn-outline:hover { background: rgba(255, 255, 255, .14); }

.hero-meta { display: flex; gap: 26px; margin-top: 38px; flex-wrap: wrap; }
.hero-meta div strong { display: block; font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.hero-meta div span { font-size: 12.5px; color: rgba(214, 228, 255, .7); }

.hero-card {
    background: rgba(255, 255, 255, .97);
    border-radius: 16px;
    padding: 26px;
    color: var(--ink);
    box-shadow: 0 40px 80px -40px rgba(2, 12, 35, .85);
    border: 1px solid rgba(255, 255, 255, .6);
}
.hero-card h3 { font-size: 17px; }
.hero-card .hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.hero-card .input { height: 46px; }
.hero-result { margin-top: 16px; border-radius: 12px; border: 1px solid var(--line); background: #f8fafd; padding: 14px 16px; min-height: 96px; font-size: 13.5px; }
.hero-result .loading { color: var(--muted); }

.section { padding: 76px 0; }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(25px, 3vw, 32px); letter-spacing: -.02em; }
.section-head p { margin-top: 12px; color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 24px; transition: .2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #d6e0f0; }
.feature .ico {
    width: 40px; height: 40px; border-radius: 10px;
    display: grid; place-items: center;
    background: #eef4ff; color: var(--brand);
    margin-bottom: 16px;
}
.feature h3 { font-size: 15.5px; }
.feature p { margin-top: 8px; color: var(--muted); font-size: 13.5px; }

.api-box { background: #0b1220; border-radius: 16px; padding: 28px; color: #e2e8f0; box-shadow: var(--shadow-lg); }
.api-box .row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.api-box h3 { color: #fff; font-size: 16px; }
.endpoint { display: flex; align-items: center; gap: 10px; background: #111c31; border: 1px solid #1e293b; border-radius: 10px; padding: 12px 14px; font-size: 13px; overflow-x: auto; }
.method { background: #2563eb; color: #fff; border-radius: 6px; padding: 2px 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; }
pre.code {
    margin: 0;
    background: #111c31;
    border: 1px solid #1e293b;
    border-radius: 10px;
    padding: 16px;
    overflow-x: auto;
    font-size: 12.5px;
    line-height: 1.75;
    color: #cbd5e1;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
pre.code .k { color: #93c5fd; }
pre.code .s { color: #86efac; }
pre.code .n { color: #fca5a5; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.step .num { font-size: 13px; font-weight: 700; color: var(--brand); letter-spacing: .08em; }
.step h3 { margin-top: 10px; font-size: 16px; }
.step p { margin-top: 8px; color: var(--muted); font-size: 13.5px; }

.site-footer { background: #0b1220; color: #94a3b8; padding: 56px 0 28px; }
.site-footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 34px; border-bottom: 1px solid #1e293b; }
.site-footer h4 { color: #e2e8f0; font-size: 13.5px; margin-bottom: 14px; letter-spacing: .02em; }
.site-footer a { color: #94a3b8; font-size: 13.5px; display: inline-block; margin-bottom: 10px; }
.site-footer a:hover { color: #fff; }
.site-footer .bottom { padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; }

/* ==========================================================================
   登录页
   ========================================================================== */
.auth-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 48px 20px;
    background:
        radial-gradient(700px 380px at 90% 0%, rgba(37, 99, 235, .14), transparent 60%),
        radial-gradient(600px 360px at 0% 100%, rgba(30, 58, 138, .12), transparent 60%),
        var(--bg);
}
.auth-card { width: 100%; max-width: 430px; }
.auth-brand { text-align: center; margin-bottom: 24px; }
.auth-brand .logo { justify-content: center; font-size: 18px; }
.auth-brand .logo-mark { width: 42px; height: 42px; border-radius: 12px; }
.auth-brand .logo-mark svg { width: 22px; height: 22px; }
.auth-tabs { display: flex; padding: 4px; background: #eef2f9; border-radius: 10px; margin-bottom: 22px; }
.auth-tabs button {
    flex: 1; height: 36px; border: 0; background: transparent; border-radius: 8px;
    font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; font-family: inherit;
}
.auth-tabs button.active { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(15, 23, 42, .08); }
.captcha-row { display: flex; gap: 10px; }
.captcha-row .input { flex: 1; }
.captcha-row img { width: 130px; height: 44px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; background: #f4f7fc; }

/* ==========================================================================
   用户中心布局
   ========================================================================== */
.app { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.sidebar {
    background: #fff; border-right: 1px solid var(--line);
    padding: 22px 16px; display: flex; flex-direction: column; gap: 6px;
    position: sticky; top: 0; height: 100vh;
}
.sidebar .logo { padding: 0 8px 18px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav a {
    display: flex; align-items: center; gap: 10px;
    height: 40px; padding: 0 12px; border-radius: 9px;
    color: var(--ink-2); font-size: 13.5px; font-weight: 500;
}
.side-nav a svg { width: 17px; height: 17px; opacity: .7; }
.side-nav a:hover { background: #f2f5fa; color: var(--ink); }
.side-nav a.active { background: #eef4ff; color: var(--brand); font-weight: 600; }
.side-nav a.active svg { opacity: 1; }
.side-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }

.main { padding: 28px 32px 56px; min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; letter-spacing: -.02em; }
.page-head p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; box-shadow: var(--shadow); }
.stat .label { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.stat .value { margin-top: 8px; font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.stat .value small { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.stat .sub { margin-top: 6px; font-size: 12px; color: var(--muted); }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-head h2 { font-size: 15.5px; }
.panel-body { padding: 22px; }

.query-form { display: flex; gap: 10px; flex-wrap: wrap; }
.query-form .input { flex: 1; min-width: 220px; }

.result-card { margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.result-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: #f8fafd; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.result-head .qq { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.result-body { padding: 18px; }
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 8px 14px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); word-break: break-all; }
.raw-msg { margin-top: 14px; padding: 12px 14px; background: #f8fafd; border: 1px solid var(--line); border-radius: 10px; font-size: 12.5px; color: var(--ink-2); }

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th {
    text-align: left; font-weight: 600; color: var(--muted); font-size: 12.5px;
    padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fbfcfe;
}
table.data td { padding: 11px 12px; border-bottom: 1px solid #f1f4f9; white-space: nowrap; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #fafcff; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); flex-wrap: wrap; }

.token-box {
    display: flex; align-items: center; gap: 10px;
    background: #f8fafd; border: 1px dashed #cfd9ea; border-radius: 10px;
    padding: 12px 14px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px; overflow-x: auto;
}
.token-box span { white-space: nowrap; }

.bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-top: 8px; }
.bar-chart .bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; height: 100%; }
.bar-chart .bar i {
    display: block; width: 100%; max-width: 34px; border-radius: 6px 6px 3px 3px;
    background: linear-gradient(180deg, #60a5fa, #2563eb); min-height: 3px;
    transition: height .35s ease;
}
.bar-chart .bar em { font-style: normal; font-size: 11px; color: var(--muted); }

.progress { height: 6px; background: #eef2f9; border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #60a5fa, #2563eb); transition: width .3s ease; }

.toast-wrap { position: fixed; top: 18px; right: 18px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
    min-width: 220px; max-width: 360px;
    background: #0f172a; color: #fff; border-radius: 10px;
    padding: 12px 16px; font-size: 13.5px; box-shadow: 0 18px 40px -18px rgba(2, 8, 20, .8);
    animation: toast-in .2s ease;
}
.toast.ok { background: #065f46; }
.toast.err { background: #991b1b; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.modal-mask { position: fixed; inset: 0; background: rgba(8, 15, 30, .48); backdrop-filter: blur(2px); display: grid; place-items: center; z-index: 120; padding: 20px; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 460px; box-shadow: 0 40px 80px -30px rgba(2, 8, 20, .6); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 16px; }
.modal-body { padding: 22px; }
.modal-foot { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }

/* 文档页 */
.doc { max-width: 900px; margin: 0 auto; padding: 40px 24px 80px; }
.doc h1 { font-size: 28px; letter-spacing: -.02em; }
.doc h2 { font-size: 19px; margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); }
.doc h3 { font-size: 15.5px; margin-top: 22px; }
.doc p, .doc li { color: var(--ink-2); font-size: 14px; }
.doc p { margin-top: 10px; }
.doc ul, .doc ol { margin: 10px 0 0; padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc .table-wrap { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; }
.doc pre.code { margin-top: 14px; background: #0b1220; color: #cbd5e1; }
.doc .toc { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-top: 24px; }
.doc .toc a { font-size: 13.5px; display: inline-block; margin-right: 18px; }
.doc table.data th, .doc table.data td { font-size: 13px; }

/* 响应式 */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .feature-grid, .steps { grid-template-columns: repeat(2, 1fr); }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .site-footer .top { grid-template-columns: 1fr 1fr; }
    .api-box .row { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .nav { display: none; }
    .nav.open {
        display: flex; position: absolute; top: 66px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: #fff; border-bottom: 1px solid var(--line);
        padding: 8px 24px 16px; box-shadow: 0 20px 40px -30px rgba(15, 23, 42, .6);
    }
    .nav.open a { padding: 12px 0; border-bottom: 1px solid #f1f4f9; }
    .menu-btn { display: grid; place-items: center; }

    .app { grid-template-columns: 1fr; }
    .sidebar {
        position: static; height: auto; flex-direction: column;
        border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 16px;
    }
    .sidebar .logo { border-bottom: 0; padding-bottom: 8px; margin-bottom: 6px; }
    .side-nav { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
    .side-nav a { white-space: nowrap; height: 36px; }
    .side-foot { display: none; }
    .main { padding: 20px 16px 48px; }
}

@media (max-width: 640px) {
    body { font-size: 14.5px; }
    .container, .container-sm { padding: 0 16px; }
    .site-header .inner { height: 58px; gap: 8px; }
    .logo { font-size: 14px; white-space: nowrap; }
    .logo-mark { width: 28px; height: 28px; border-radius: 8px; }
    .logo-mark svg { width: 16px; height: 16px; }
    .header-actions { gap: 6px; }
    .header-actions .btn { height: 34px; padding: 0 12px; font-size: 13px; }
    .menu-btn { width: 34px; height: 34px; }
    .hero { padding: 56px 0 64px; }
    .feature-grid, .steps { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat { padding: 14px 16px; }
    .stat .value { font-size: 21px; }
    .section { padding: 52px 0; }
    .site-footer .top { grid-template-columns: 1fr; gap: 20px; }
    .kv { grid-template-columns: 82px 1fr; }
    .hero-card { padding: 20px; }
    .panel-body, .card-pad { padding: 16px; }
    .panel-head { padding: 14px 16px; }
    .btn { height: 40px; padding: 0 16px; }
}
