/* =========================================================
   链流云 · 链接提交系统 样式表
   ========================================================= */

:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #64748b;
    --line: #e6ebf4;
    --line-2: #eef2f9;
    --primary: #2563eb;
    --primary-2: #4f46e5;
    --primary-soft: #eef4ff;
    --green: #0e9f6e;
    --green-soft: #e7f8f0;
    --amber: #b45309;
    --amber-soft: #fef4d6;
    --red: #dc2626;
    --red-soft: #fee7e7;
    --radius: 18px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
    --shadow: 0 18px 40px -28px rgba(15, 23, 42, .45);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: #1d4ed8; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }

p { margin: 0; }

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

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

.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 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; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.flex-center { display: flex; align-items: center; gap: 8px; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.wrap { flex-wrap: wrap; }
.hidden { display: none !important; }

/* ---------------- 顶栏 ---------------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}

.topbar-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -.02em;
    color: var(--ink);
}

.brand:hover { color: var(--ink); }

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    box-shadow: 0 8px 18px -8px rgba(37, 99, 235, .9);
}

.brand-mark svg { width: 19px; height: 19px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; flex: 1; }

.nav a {
    padding: 8px 14px;
    border-radius: 9px;
    color: var(--ink-2);
    font-weight: 500;
    font-size: 14px;
    transition: .16s;
}

.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }

.topbar-actions { display: flex; align-items: center; gap: 10px; }

.user-chip {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 12px 5px 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
}

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #dbeafe, #e0e7ff);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.nav-toggle { display: none; }

/* ---------------- 按钮 ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 18px;
    border-radius: 11px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: transform .16s, box-shadow .16s, background .16s, color .16s, border-color .16s;
    white-space: nowrap;
    text-decoration: none;
}

.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.disabled { opacity: .55; cursor: not-allowed; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    box-shadow: 0 10px 22px -14px rgba(37, 99, 235, .95);
}

.btn-primary:hover { color: #fff; box-shadow: 0 14px 26px -14px rgba(37, 99, 235, 1); transform: translateY(-1px); }

.btn-light { background: #fff; border-color: var(--line); color: var(--ink-2); box-shadow: var(--shadow-sm); }
.btn-light:hover { border-color: #cbd5e1; color: var(--ink); }

.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); }

.btn-danger { background: var(--red-soft); color: #b91c1c; border-color: #fbcaca; }
.btn-danger:hover { background: #fdd8d8; color: #991b1b; }

.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { color: #fff; background: #0b8c60; }

.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn-lg { height: 50px; padding: 0 26px; font-size: 15px; border-radius: 13px; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; padding: 0; color: var(--primary); font: inherit; cursor: pointer; }
.btn-link:hover { text-decoration: underline; }

.btn-group { display: inline-flex; gap: 8px; flex-wrap: wrap; }

/* ---------------- 表单 ---------------- */
.field { margin-bottom: 18px; }

.label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
    margin-bottom: 8px;
}

.label .opt { font-weight: 400; color: var(--muted); font-size: 12px; }

.input, .select, .textarea {
    width: 100%;
    padding: 11px 14px;
    font-family: inherit;
    font-size: 14px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 11px;
    outline: none;
    transition: border-color .16s, box-shadow .16s;
}

.input { height: 44px; }
.select { height: 44px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.textarea { min-height: 150px; resize: vertical; line-height: 1.8; }

.input:focus, .select:focus, .textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.input::placeholder, .textarea::placeholder { color: #a3aec2; }
.input:disabled, .input[readonly] { background: var(--surface-2); color: var(--muted); }

.field-hint { margin-top: 6px; font-size: 12px; color: var(--muted); }
.field-error { margin-top: 6px; font-size: 12px; color: var(--red); }

.input-group { display: flex; gap: 10px; align-items: stretch; }
.input-group .input { flex: 1; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }

.checkbox { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--primary); }

.captcha-row { display: flex; gap: 10px; }
.captcha-row .input { flex: 1; }

.captcha-img {
    height: 44px;
    width: 124px;
    border-radius: 11px;
    border: 1px solid var(--line);
    cursor: pointer;
    object-fit: cover;
    background: #fff;
}

/* ---------------- 卡片 / 版块 ---------------- */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line-2);
}

.card-title { font-size: 16px; font-weight: 700; }
.card-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.card-body { padding: 24px; }
.card-foot { padding: 16px 24px; border-top: 1px solid var(--line-2); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }

.page { padding: 36px 0 64px; }
.page-narrow { max-width: 860px; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.page-title { font-size: 26px; }
.page-sub { color: var(--muted); margin-top: 4px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------------- 提示 / 徽章 ---------------- */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 13.5px;
    line-height: 1.6;
    margin-bottom: 16px;
    border: 1px solid transparent;
}

.alert-success { background: var(--green-soft); color: #067a55; border-color: #c2eedd; }
.alert-error { background: var(--red-soft); color: #b91c1c; border-color: #fbcaca; }
.alert-info { background: var(--primary-soft); color: #1d4ed8; border-color: #d5e3ff; }
.alert-warn { background: var(--amber-soft); color: #92400e; border-color: #fbe3ad; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.7;
    white-space: nowrap;
}

.badge-green { background: var(--green-soft); color: #067a55; }
.badge-amber { background: var(--amber-soft); color: #92400e; }
.badge-red { background: var(--red-soft); color: #b91c1c; }
.badge-blue { background: var(--primary-soft); color: #1d4ed8; }
.badge-gray { background: #f1f5f9; color: #475569; }

.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------------- 表格 ---------------- */
.table-wrap { width: 100%; overflow-x: auto; }

.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }

.table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .03em;
    color: var(--muted);
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line-2);
    vertical-align: middle;
    color: var(--ink-2);
}

.table tbody tr:hover td { background: #fbfcff; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .cell-strong { font-weight: 600; color: var(--ink); }
.table .cell-url { max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }

.empty { padding: 56px 24px; text-align: center; color: var(--muted); }
.empty-icon { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-2); color: #94a3b8; }
.empty-title { font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }

.pagination { display: flex; align-items: center; gap: 6px; justify-content: center; padding: 20px 0 4px; flex-wrap: wrap; }
.page-btn {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 13px;
    color: var(--ink-2);
}
.page-btn:hover { border-color: #c7d2fe; color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-btn.disabled { color: #cbd5e1; background: var(--surface-2); pointer-events: none; }
.page-ellipsis { color: var(--muted); padding: 0 4px; }

/* ---------------- 统计卡 ---------------- */
.stat {
    position: relative;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
}

.stat-label { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.stat-value { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin-top: 8px; color: var(--ink); }
.stat-value small { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.stat-hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.stat-icon {
    position: absolute;
    right: 18px;
    top: 18px;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: var(--primary-soft);
    color: var(--primary);
}
.stat-icon.green { background: var(--green-soft); color: var(--green); }
.stat-icon.amber { background: var(--amber-soft); color: var(--amber); }
.stat-icon.red { background: var(--red-soft); color: var(--red); }

/* ---------------- 首页 ---------------- */
.hero {
    position: relative;
    padding: 72px 0 60px;
    overflow: hidden;
    background:
        radial-gradient(760px 380px at 8% -10%, #dbe9ff 0%, rgba(219, 233, 255, 0) 62%),
        radial-gradient(620px 360px at 92% 4%, #e6e6ff 0%, rgba(230, 230, 255, 0) 60%),
        linear-gradient(180deg, #f8faff 0%, var(--bg) 100%);
}

.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 6px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-2);
    box-shadow: var(--shadow-sm);
}

.eyebrow .tag { background: var(--primary); color: #fff; padding: 2px 8px; border-radius: 999px; font-size: 11px; }

.hero h1 {
    margin: 20px 0 16px;
    font-size: 50px;
    line-height: 1.14;
    letter-spacing: -.035em;
}

.gradient-text {
    background: linear-gradient(118deg, #2563eb 10%, #7c3aed 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub { font-size: 16px; line-height: 1.8; color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

.hero-points { display: flex; gap: 22px; margin-top: 28px; flex-wrap: wrap; }
.hero-point { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); }
.hero-point svg { color: var(--green); flex: none; }

/* 首页右侧演示卡 */
.demo-card {
    position: relative;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 40px 80px -50px rgba(15, 23, 42, .55), 0 2px 6px rgba(15, 23, 42, .04);
}

.demo-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.demo-title { font-size: 13px; font-weight: 700; color: var(--ink); }
.demo-tabs { display: flex; gap: 6px; }
.demo-tab { width: 26px; height: 6px; border-radius: 99px; background: #eef2f9; }
.demo-tab.on { background: var(--primary); width: 34px; }

.demo-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.demo-metric { padding: 14px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line-2); }
.demo-metric span { font-size: 11.5px; color: var(--muted); }
.demo-metric strong { display: block; font-size: 20px; letter-spacing: -.02em; margin-top: 3px; }
.demo-metric strong em { font-style: normal; font-size: 12px; color: var(--muted); font-weight: 500; }

.demo-list { border: 1px solid var(--line-2); border-radius: 13px; overflow: hidden; }
.demo-row { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-bottom: 1px solid var(--line-2); font-size: 12.5px; color: var(--ink-2); }
.demo-row:last-child { border-bottom: 0; }
.demo-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }
.demo-row .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-badge { font-size: 11px; padding: 1px 8px; border-radius: 999px; background: var(--green-soft); color: #067a55; }
.demo-badge.wait { background: var(--amber-soft); color: #92400e; }

.demo-float {
    position: absolute;
    right: -18px;
    bottom: -22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 16px;
    box-shadow: 0 24px 40px -30px rgba(15, 23, 42, .6);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    font-weight: 600;
}

.demo-float .ok { width: 26px; height: 26px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }

/* 数据条 */
.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 56px;
}

.stat-strip div { background: #fff; padding: 22px 24px; }
.stat-strip strong { display: block; font-size: 24px; letter-spacing: -.02em; }
.stat-strip span { font-size: 12.5px; color: var(--muted); }

/* 版块 */
.section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: 32px; letter-spacing: -.03em; }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 15px; }

.feature {
    padding: 26px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    transition: .2s;
}

.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #dbe6fb; }
.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--primary-soft);
    color: var(--primary);
    margin-bottom: 16px;
}
.feature h3 { font-size: 15.5px; margin-bottom: 8px; }
.feature p { font-size: 13.5px; color: var(--muted); line-height: 1.75; }

/* 套餐卡 */
.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 26px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    transition: .2s;
}

.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.plan.featured { border-color: #bfd3ff; box-shadow: 0 24px 50px -40px rgba(37, 99, 235, .8); }
.plan-flag {
    position: absolute;
    top: -11px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
}
.plan-name { font-size: 15px; font-weight: 700; }
.plan-desc { font-size: 12.5px; color: var(--muted); margin-top: 4px; min-height: 20px; }
.plan-price { margin: 16px 0 4px; font-size: 34px; font-weight: 700; letter-spacing: -.035em; }
.plan-price em { font-style: normal; font-size: 15px; font-weight: 600; vertical-align: super; margin-right: 2px; }
.plan-price span { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.plan-list { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 9px; font-size: 13.5px; color: var(--ink-2); }
.plan-list li { display: flex; align-items: center; gap: 8px; }
.plan-list svg { color: var(--green); flex: none; }
.plan .btn { margin-top: auto; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px 22px;
}
.faq summary { cursor: pointer; font-weight: 600; font-size: 14.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin-top: 12px; color: var(--muted); font-size: 13.5px; line-height: 1.8; }

/* CTA */
.cta {
    position: relative;
    padding: 48px;
    border-radius: 24px;
    background: linear-gradient(130deg, #0f172a 0%, #1e2b52 55%, #253a72 100%);
    color: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}
.cta h2 { color: #fff; font-size: 28px; letter-spacing: -.02em; }
.cta p { color: rgba(255, 255, 255, .72); margin-top: 8px; }
.cta::after { content: ""; position: absolute; right: -60px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(99, 132, 255, .35), transparent 70%); }

/* ---------------- 页脚 ---------------- */
.footer { padding: 48px 0 32px; border-top: 1px solid var(--line); background: #fff; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer p { color: var(--muted); font-size: 13px; line-height: 1.9; }
.footer h4 { font-size: 13px; margin-bottom: 12px; color: var(--ink); }
.footer-links { display: grid; gap: 8px; font-size: 13px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line-2); display: flex; justify-content: space-between; gap: 16px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }

/* ---------------- 登录 / 注册 ---------------- */
main.auth-wrap { max-width: none; padding: 0; }
.auth-wrap { min-height: calc(100vh - 68px); display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.auth-side {
    position: relative;
    padding: 64px 56px;
    background: linear-gradient(150deg, #0f172a 0%, #1c2b52 60%, #243a6e 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}
.auth-side::after {
    content: "";
    position: absolute;
    width: 460px; height: 460px;
    right: -160px; bottom: -180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(96, 130, 255, .38), transparent 68%);
}
.auth-side h2 { color: #fff; font-size: 32px; line-height: 1.3; letter-spacing: -.03em; max-width: 420px; }
.auth-side p { color: rgba(255, 255, 255, .7); margin-top: 14px; max-width: 400px; line-height: 1.85; }
.auth-side .brand { color: #fff; }
.auth-side .brand:hover { color: #fff; }
.auth-points { display: grid; gap: 14px; margin-top: 36px; position: relative; z-index: 1; }
.auth-point { display: flex; gap: 12px; font-size: 13.5px; color: rgba(255, 255, 255, .82); align-items: flex-start; }
.auth-point .num { width: 22px; height: 22px; border-radius: 7px; background: rgba(255, 255, 255, .12); display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }
.auth-main { display: grid; place-items: center; padding: 56px 24px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 26px; letter-spacing: -.03em; }
.auth-card .auth-sub { color: var(--muted); margin: 6px 0 28px; font-size: 13.5px; }
.auth-foot { margin-top: 22px; text-align: center; font-size: 13px; color: var(--muted); }
.auth-notice { font-size: 12.5px; color: var(--muted); background: var(--surface-2); border: 1px dashed var(--line); border-radius: 11px; padding: 12px 14px; margin-top: 20px; line-height: 1.7; }

/* ---------------- 用户中心 ---------------- */
.uc-hero {
    position: relative;
    padding: 30px 32px;
    border-radius: 22px;
    background: linear-gradient(130deg, #101a33 0%, #1e2f5c 58%, #27407c 100%);
    color: #fff;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 28px;
    align-items: center;
}
.uc-hero::after { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(110, 145, 255, .35), transparent 70%); }
.uc-hero h2 { color: #fff; font-size: 22px; }
.uc-hero .sub { color: rgba(255, 255, 255, .66); font-size: 13px; margin-top: 6px; }
.uc-amounts { display: flex; gap: 36px; margin-top: 24px; position: relative; z-index: 1; flex-wrap: wrap; }
.uc-amount span { display: block; font-size: 12px; color: rgba(255, 255, 255, .6); }
.uc-amount strong { font-size: 26px; letter-spacing: -.02em; }
.uc-amount strong em { font-style: normal; font-size: 12px; color: rgba(255, 255, 255, .6); font-weight: 500; margin-left: 4px; }
.uc-side { position: relative; z-index: 1; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 15px; padding: 18px; }
.uc-side .row { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: rgba(255, 255, 255, .72); padding: 6px 0; }
.uc-side .row strong { color: #fff; font-size: 13px; }
.uc-side .row + .row { border-top: 1px dashed rgba(255, 255, 255, .12); }
.progress { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .16); overflow: hidden; margin-top: 10px; }
.progress i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #60a5fa, #a78bfa); }

.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.quick-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--ink-2);
    font-weight: 600;
    font-size: 13.5px;
    transition: .18s;
}
.quick-action:hover { border-color: #c7d8ff; color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.quick-action .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }

/* 订单 / 二维码 */
.qr-panel {
    text-align: center;
    padding: 32px 24px;
    border: 1px dashed #cbd7ee;
    border-radius: 16px;
    background: linear-gradient(180deg, #fbfdff, #f6f9ff);
}
.qr-image { width: 208px; height: 208px; margin: 0 auto 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); padding: 8px; object-fit: contain; }
.qr-placeholder { width: 208px; height: 208px; margin: 0 auto 14px; border-radius: 12px; border: 1px dashed #c7d2e6; display: grid; place-items: center; color: var(--muted); font-size: 12.5px; background: #fff; text-align: center; padding: 20px; line-height: 1.7; }
.qr-amount { font-size: 30px; font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.qr-amount em { font-style: normal; font-size: 15px; vertical-align: super; }

.summary-list { display: grid; gap: 0; }
.summary-list .row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; font-size: 13.5px; border-bottom: 1px dashed var(--line-2); }
.summary-list .row:last-child { border-bottom: 0; }
.summary-list .row span { color: var(--muted); }
.summary-list .row strong { font-weight: 600; color: var(--ink); text-align: right; }

/* ---------------- 后台 ---------------- */
.admin-body { background: #f4f6fb; }

.admin-shell { display: flex; min-height: 100vh; }

.sidebar {
    width: 236px;
    flex: none;
    background: linear-gradient(180deg, #0b1220 0%, #111d35 100%);
    color: rgba(255, 255, 255, .78);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 22px 22px 26px; color: #fff; font-weight: 700; font-size: 15.5px; }
.sidebar-brand .brand-mark { background: linear-gradient(135deg, #3b82f6, #7c3aed); }
.sidebar-brand small { display: block; font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, .45); letter-spacing: .04em; }

.side-nav { padding: 0 12px; display: grid; gap: 3px; }
.side-label { padding: 16px 12px 8px; font-size: 11px; letter-spacing: .08em; color: rgba(255, 255, 255, .35); text-transform: uppercase; }
.side-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .74);
    transition: .16s;
}
.side-nav a svg { width: 17px; height: 17px; opacity: .8; flex: none; }
.side-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side-nav a.active { background: linear-gradient(100deg, rgba(59, 130, 246, .95), rgba(99, 102, 241, .9)); color: #fff; box-shadow: 0 12px 22px -16px rgba(59, 130, 246, 1); }
.side-nav a .count { margin-left: auto; background: rgba(255, 255, 255, .16); color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 999px; }

.sidebar-foot { margin-top: auto; padding: 18px 22px; font-size: 11.5px; color: rgba(255, 255, 255, .35); border-top: 1px solid rgba(255, 255, 255, .07); }

.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.admin-topbar {
    height: 64px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 30;
}

.admin-topbar .crumbs { font-size: 13px; color: var(--muted); }
.admin-topbar .crumbs strong { color: var(--ink); font-weight: 600; }
.admin-content { padding: 26px 28px 48px; }

.admin-page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-page-head h1 { font-size: 20px; }
.admin-page-head p { font-size: 13px; color: var(--muted); margin-top: 3px; }

.toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line-2);
}
.toolbar .input, .toolbar .select { height: 38px; }
.toolbar .input { width: auto; min-width: 200px; }
.toolbar .select { width: auto; min-width: 130px; }

.form-panel { padding: 24px; }
.form-panel .form-grid { gap: 0 20px; }
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line-2); }

.settings-tabs { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.settings-tabs a { padding: 8px 14px; border-radius: 9px; font-size: 13px; color: var(--ink-2); background: #fff; border: 1px solid var(--line); }
.settings-tabs a.active { background: var(--primary-soft); border-color: #c9dcff; color: var(--primary); font-weight: 600; }

.thumb-box { display: flex; gap: 16px; align-items: flex-start; }
.thumb-preview { width: 132px; height: 132px; border-radius: 12px; border: 1px dashed var(--line); background: #fff; display: grid; place-items: center; overflow: hidden; color: var(--muted); font-size: 12px; }
.thumb-preview img { width: 100%; height: 100%; object-fit: contain; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 44px; }
    .hero h1 { font-size: 40px; }
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-side { display: none; }
    .uc-hero { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .quick-actions { grid-template-columns: repeat(2, 1fr); }
    .stat-strip { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .sidebar { width: 68px; }
    .sidebar-brand span, .side-nav a span, .side-label, .sidebar-foot { display: none; }
    .sidebar-brand { justify-content: center; padding: 20px 0; }
    .side-nav a { justify-content: center; padding: 12px 0; }
    .side-nav a .count { display: none; }
}

@media (max-width: 820px) {
    .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -24px rgba(15, 23, 42, .5); }
    .nav.open { display: flex; }
    .nav-toggle { display: inline-flex; margin-left: auto; }
    .topbar-inner { gap: 12px; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 32px; }
    .section { padding: 52px 0; }
    .section-head h2 { font-size: 25px; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .cta { padding: 30px; }
    .cta h2 { font-size: 22px; }
    .admin-content { padding: 18px 16px 40px; }
    .admin-topbar { padding: 0 16px; }
    .page { padding: 24px 0 48px; }
    .uc-hero { padding: 24px; }
    .stat-strip { grid-template-columns: 1fr; }
    .demo-float { display: none; }
    .card-body { padding: 18px; }
    .form-panel { padding: 18px; }
    .quick-actions { grid-template-columns: 1fr; }
    .table th, .table td { padding: 12px; }
}

@media (max-width: 520px) {
    .container { padding: 0 16px; }
    .hero { padding: 44px 0 36px; }
    .hero-actions .btn { flex: 1; }
    .grid-4 { grid-template-columns: 1fr; }
    .topbar-actions .btn-light { display: none; }
}

/* ---------------- 悬浮微信客服 ---------------- */
.cs-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.cs-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px 11px 14px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(22, 163, 74, .32);
    transition: transform .18s ease, box-shadow .18s ease;
}
.cs-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(22, 163, 74, .4); }
.cs-btn:active { transform: translateY(0); }
.cs-btn:focus-visible { outline: 3px solid rgba(34, 197, 94, .35); outline-offset: 2px; }
.cs-btn-icon { display: grid; place-items: center; width: 26px; height: 26px; }
.cs-btn-icon svg { width: 24px; height: 24px; }

.cs-card {
    position: relative;
    width: 304px;
    max-width: calc(100vw - 32px);
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 22px 50px -18px rgba(15, 23, 42, .3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(.96);
    transform-origin: bottom right;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.cs-float.open .cs-card { opacity: 1; visibility: visible; transform: none; }

.cs-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.cs-close:hover { background: var(--surface-2); color: var(--ink); }

.cs-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.cs-desc { margin-top: 2px; font-size: 12.5px; color: var(--muted); }

.cs-qr {
    margin-top: 12px;
    padding: 12px;
    text-align: center;
    background: var(--surface-2);
    border: 1px dashed var(--line);
    border-radius: 12px;
}
.cs-qr img {
    display: block;
    width: 100%;
    max-width: 196px;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
    background: #fff;
}
.cs-qr-tip { display: block; margin-top: 8px; font-size: 11.5px; color: var(--muted); }

.cs-id {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 10px;
    background: var(--surface-2);
    border-radius: 10px;
}
.cs-id-label { flex: none; font-size: 12px; color: var(--muted); }
.cs-id-val {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 13px;
    color: var(--ink);
}
.cs-id .btn { flex: none; padding: 5px 10px; font-size: 12px; }

.cs-note { margin: 10px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); }

@media (max-width: 640px) {
    .cs-float { right: 14px; bottom: 14px; gap: 10px; }
    .cs-btn { padding: 12px; border-radius: 50%; }
    .cs-btn-text { display: none; }
    .cs-card { padding: 16px; }
    .cs-qr img { max-width: 168px; }
}
