/* =============================================================
   基础样式与用户端样式
   手写 CSS，无外部依赖；企业级克制的视觉语言
   ============================================================= */

:root {
    --bg: #f5f7fa;
    --bg-soft: #fafbfd;
    --card: #ffffff;
    --border: #e6eaf2;
    --border-strong: #d8dee9;
    --text: #1e293b;
    --text-2: #5a6b82;
    --text-3: #94a3b8;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-soft: #eff5ff;
    --primary-line: #c7dbff;
    --green: #16a34a;
    --green-soft: #e9f8ef;
    --orange: #d97706;
    --orange-soft: #fef6e7;
    --red: #dc2626;
    --red-soft: #fdeeee;
    --purple: #7c3aed;
    --purple-soft: #f3eeff;
    --pink: #db2777;
    --pink-soft: #fdeef5;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
    --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 30px -18px rgba(15, 23, 42, .18);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
            "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

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

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

h1, h2, h3, h4, h5, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------------- 按钮 ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 38px; padding: 0 16px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    background: #fff;
    color: var(--text);
    font-size: 13.5px; font-weight: 500;
    white-space: nowrap; cursor: pointer;
    transition: background .16s, border-color .16s, color .16s, box-shadow .16s, transform .06s;
}
.btn:active { transform: translateY(.5px); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 6px 16px -8px rgba(37, 99, 235, .7); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.btn-ghost { background: #fff; border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: #b9c4d6; background: #fbfcfe; color: var(--text); }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-lg { height: 44px; padding: 0 22px; font-size: 14.5px; border-radius: 10px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-xs { height: 26px; padding: 0 9px; font-size: 12px; border-radius: 6px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }

.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px;
    border-radius: 7px; border: 1px solid transparent;
    background: transparent; color: var(--text-2);
    cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.icon-btn:hover { background: var(--primary-soft); color: var(--primary); }
.icon-btn-danger:hover { background: var(--red-soft); color: var(--red); }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; }
.icon-btn:disabled:hover { background: transparent; color: var(--text-2); }

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

/* ---------------- 表单 ---------------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.field > label { font-size: 13px; font-weight: 600; color: #384a63; }
.req { color: var(--red); }

.input, .textarea, .select {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 13.5px;
    color: var(--text);
    transition: border-color .16s, box-shadow .16s, background .16s;
}
.textarea { height: auto; padding: 11px 12px; line-height: 1.7; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #a9b4c4; }
.input:focus, .textarea:focus, .select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.input:disabled, .select:disabled { background: #f4f6fa; color: var(--text-3); cursor: not-allowed; }
.input-sm { height: 34px; font-size: 13px; }
.select {
    appearance: none;
    padding-right: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 11px center;
    cursor: pointer;
}
.select-sm { height: 34px; font-size: 13px; }
.textarea.code { font-family: var(--mono); font-size: 12.5px; background: #fbfcfe; }
.hint { font-size: 12px; color: var(--text-3); line-height: 1.6; }
.hint-warn { display: flex; gap: 5px; align-items: flex-start; color: #9a6a08; background: var(--orange-soft); padding: 8px 10px; border-radius: 7px; }
.hint-warn svg { flex: none; margin-top: 2px; }

.input-prefix { display: flex; align-items: stretch; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.input-prefix:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.input-prefix .prefix, .input-prefix .suffix {
    display: flex; align-items: center; padding: 0 10px;
    background: #f6f8fb; color: var(--text-3); font-size: 12.5px; white-space: nowrap;
}
.input-prefix .prefix { border-right: 1px solid var(--border); }
.input-prefix .suffix { border-left: 1px solid var(--border); }
.input-prefix .input { border: none; border-radius: 0; box-shadow: none; }
.input-prefix .input:focus { box-shadow: none; }

.input-eye { position: relative; }
.input-eye .input { padding-right: 40px; }
.eye-btn {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
    border: none; background: transparent; color: var(--text-3); cursor: pointer; border-radius: 6px;
}
.eye-btn:hover { color: var(--text); background: #f1f5f9; }

.checkbox { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--text-2); margin-bottom: 14px; }
.checkbox input { margin-top: 2px; accent-color: var(--primary); }

.radio-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.radio-pill { position: relative; cursor: pointer; }
.radio-pill input { position: absolute; opacity: 0; pointer-events: none; }
.radio-pill span {
    display: inline-flex; align-items: center; height: 34px; padding: 0 16px;
    border: 1px solid var(--border-strong); border-radius: 20px;
    font-size: 13px; color: var(--text-2); background: #fff; transition: all .15s;
}
.radio-pill input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); font-weight: 600; }

/* ---------------- 提示条 ---------------- */
.alert {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 14px 16px; border-radius: var(--radius);
    border: 1px solid; margin-bottom: 18px; font-size: 13px;
}
.alert strong { display: block; margin-bottom: 2px; }
.alert p { color: inherit; opacity: .9; }
.alert-ico { flex: none; margin-top: 1px; }
.alert-error { background: var(--red-soft); border-color: #f8d3d3; color: #b91c1c; }
.alert-warn { background: var(--orange-soft); border-color: #f6e2bd; color: #96620a; }
.alert-info { background: var(--primary-soft); border-color: var(--primary-line); color: #1e40af; }
.alert-compact { padding: 10px 12px; margin-bottom: 14px; }

.flash-stack { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.flash {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px; border-radius: var(--radius-sm);
    font-size: 13px; border: 1px solid; animation: flashIn .2s ease;
}
@keyframes flashIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.flash-success { background: var(--green-soft); border-color: #cdeed9; color: #15803d; }
.flash-error { background: var(--red-soft); border-color: #f8d3d3; color: #b91c1c; }
.flash-warning { background: var(--orange-soft); border-color: #f6e2bd; color: #96620a; }
.flash-ico { flex: none; display: flex; }
.flash-close { margin-left: auto; border: none; background: transparent; color: currentColor; opacity: .55; cursor: pointer; display: flex; padding: 2px; }
.flash-close:hover { opacity: 1; }

/* ---------------- 状态与标签 ---------------- */
.status {
    display: inline-flex; align-items: center; gap: 5px;
    height: 23px; padding: 0 9px 0 8px;
    border-radius: 12px; font-size: 12px; font-weight: 500; white-space: nowrap;
}
.status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.status-ok { background: var(--green-soft); color: #15803d; }
.status-warn { background: var(--orange-soft); color: #b45309; }
.status-danger { background: var(--red-soft); color: #b91c1c; }
.status-info { background: var(--primary-soft); color: #1d4ed8; }
.status-muted { background: #f1f5f9; color: #64748b; }

.tag {
    display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
    border-radius: 6px; font-size: 11.5px; font-weight: 500; white-space: nowrap;
}
.tag-month { background: var(--primary-soft); color: #1d4ed8; }
.tag-year { background: var(--purple-soft); color: #6d28d9; }
.tag-forever { background: var(--green-soft); color: #15803d; }
.tag-plain { background: #f1f5f9; color: #475569; }

.chip {
    display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
    border-radius: 12px; font-size: 12px; font-weight: 500;
}
.chip-soft { background: var(--primary-soft); color: #1d4ed8; }

/* ---------------- 表格 ---------------- */
.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
    text-align: left; font-weight: 600; font-size: 12px; color: var(--text-3);
    padding: 12px 16px; background: #fafbfd; border-bottom: 1px solid var(--border);
    white-space: nowrap; letter-spacing: .2px;
}
.table td { padding: 13px 16px; border-bottom: 1px solid #f0f3f8; vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: #fafcff; }
.table .ta-r { text-align: right; }
.table .ta-c { text-align: center; }
.table .muted { color: var(--text-3); }
.table .nowrap { white-space: nowrap; }
.table .w-check { width: 38px; }
.table .strong { font-weight: 600; }
.inline-form { display: inline-flex; }
.row-actions { display: inline-flex; align-items: center; gap: 2px; }
.link { color: var(--primary); }
.link:hover { text-decoration: underline; }

.pager {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 16px; border-top: 1px solid var(--border); flex-wrap: wrap;
}
.pager-info { font-size: 12.5px; color: var(--text-3); }
.pager-links { display: flex; gap: 6px; }
.pager-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 30px; height: 30px; padding: 0 10px;
    border: 1px solid var(--border-strong); border-radius: 7px;
    font-size: 12.5px; color: var(--text-2); background: #fff;
}
.pager-btn:hover { border-color: var(--primary); color: var(--primary); }
.pager-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------------- 空状态 ---------------- */
.empty-state { padding: 56px 20px; text-align: center; }
.empty-icon {
    width: 52px; height: 52px; margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 14px; background: var(--primary-soft); color: var(--primary);
}
.empty-title { font-size: 14px; font-weight: 600; color: var(--text-2); }
.empty-desc { margin-top: 6px; font-size: 12.5px; color: var(--text-3); }

/* ---------------- 表单排版 ---------------- */
.form-card { padding: 22px 24px 24px; }
.form-section { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px dashed var(--border); }
.form-section:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 8px; }
.form-section-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.form-section-head h3 { font-size: 15px; font-weight: 600; letter-spacing: .2px; }
.form-section-head p { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.form-step {
    flex: none; width: 26px; height: 26px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-soft); color: var(--primary);
    font-size: 12.5px; font-weight: 700;
}
.form-actions { padding-top: 6px; }
.form-actions-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------------- 标签页 ---------------- */
.tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.tab {
    display: inline-flex; align-items: center; gap: 6px;
    height: 34px; padding: 0 14px;
    border: 1px solid var(--border-strong); border-radius: 8px;
    background: #fff; color: var(--text-2); font-size: 13px; cursor: pointer;
    transition: all .15s;
}
.tab:hover { border-color: #b9c4d6; }
.tab.active { background: var(--primary-soft); border-color: var(--primary-line); color: var(--primary); font-weight: 600; }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeIn .18s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------------- 拖拽上传 ---------------- */
.dropzone {
    position: relative;
    border: 1.5px dashed var(--border-strong); border-radius: var(--radius);
    background: #fbfcfe; padding: 30px 20px; text-align: center;
    transition: border-color .16s, background .16s;
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--primary); background: var(--primary-soft); }
.dropzone-ico { display: inline-flex; color: var(--primary); margin-bottom: 8px; }
.dropzone-title { font-size: 13.5px; font-weight: 600; color: var(--text); }
.dropzone-desc { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.dropzone-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone-file {
    display: none; margin-top: 10px; font-size: 12.5px; color: var(--primary);
    font-family: var(--mono); word-break: break-all;
}
.dropzone.has-file .dropzone-file { display: block; }
.dropzone.has-file { border-color: var(--primary); background: var(--primary-soft); }

/* ---------------- 侧栏卡片 ---------------- */
.side-col { display: flex; flex-direction: column; gap: 16px; }
.side-card { padding: 18px 20px; }
.side-title {
    display: flex; align-items: center; gap: 7px;
    font-size: 13.5px; font-weight: 600; margin-bottom: 12px; color: #334155;
}
.side-title svg { color: var(--primary); }
.side-text { font-size: 12.5px; color: var(--text-2); line-height: 1.8; }
.tips { display: flex; flex-direction: column; gap: 8px; }
.tips li {
    position: relative; padding-left: 14px;
    font-size: 12.5px; color: var(--text-2); line-height: 1.7;
}
.tips li::before {
    content: ""; position: absolute; left: 0; top: 8px;
    width: 5px; height: 5px; border-radius: 50%; background: var(--primary-line);
}
.side-card-muted { background: var(--bg-soft); }
.code-block {
    font-family: var(--mono); font-size: 12px; line-height: 1.9;
    color: var(--text-2); background: #f7f9fc; border: 1px solid var(--border);
    border-radius: 8px; padding: 12px 14px; overflow-x: auto; margin: 0;
}
.kv-list { display: flex; flex-direction: column; gap: 10px; }
.kv-list > div { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; }
.kv-list dt { color: var(--text-3); }
.kv-list dd { color: var(--text); text-align: right; }

/* =============================================================
   用户端外壳
   ============================================================= */
.body-public { background: #fff; }

.site-header {
    position: sticky; top: 0; z-index: 40;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 62px; }
.site-brand { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 600; }
.site-brand:hover { color: var(--text); }
.site-brand-logo {
    width: 30px; height: 30px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(140deg, #2563eb, #4f46e5); color: #fff;
    box-shadow: 0 6px 14px -8px rgba(37, 99, 235, .9);
}
.site-brand-name { font-size: 15px; letter-spacing: .2px; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav-link {
    padding: 7px 12px; border-radius: 8px;
    font-size: 13.5px; color: var(--text-2);
}
.site-nav-link:hover { background: #f4f7fc; color: var(--text); }
.site-nav-link.active { color: var(--primary); background: var(--primary-soft); font-weight: 500; }
.site-nav-toggle { display: none; border: none; background: transparent; color: var(--text); cursor: pointer; padding: 6px; }

.site-main { min-height: calc(100vh - 62px - 92px); }

.site-footer { border-top: 1px solid var(--border); background: #fafbfd; }
.footer-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 92px; font-size: 12.5px; color: var(--text-3); flex-wrap: wrap; gap: 8px;
}
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--text-3); }
.footer-links a:hover { color: var(--primary); }

/* ---------------- 首页 ---------------- */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(1000px 400px at 15% -10%, #eef4ff 0%, rgba(255,255,255,0) 60%),
        radial-gradient(800px 360px at 88% 0%, #f3f0ff 0%, rgba(255,255,255,0) 60%),
        #fff;
    border-bottom: 1px solid var(--border);
}
.hero-inner {
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px;
    align-items: center; padding: 68px 20px 76px;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    height: 28px; padding: 0 12px; border-radius: 14px;
    background: #fff; border: 1px solid var(--border);
    font-size: 12.5px; color: var(--text-2); box-shadow: var(--shadow-sm);
}
.hero-badge svg { color: var(--orange); }
.hero-copy h1 {
    margin: 18px 0 14px; font-size: 40px; line-height: 1.22; letter-spacing: -.5px; font-weight: 700;
}
.hero-accent { background: linear-gradient(100deg, #2563eb, #6d28d9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-desc { font-size: 14.5px; line-height: 1.85; color: var(--text-2); max-width: 520px; }
.hero-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 34px; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat strong { font-size: 22px; font-weight: 700; letter-spacing: -.3px; }
.hero-stat span { font-size: 12.5px; color: var(--text-3); }

.hero-visual { position: relative; }
.mock-window {
    border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
    background: #fff; box-shadow: 0 30px 60px -30px rgba(15, 23, 42, .28);
}
.mock-bar {
    display: flex; align-items: center; gap: 6px;
    height: 36px; padding: 0 12px; background: #f8fafd; border-bottom: 1px solid var(--border);
}
.mock-bar i { width: 8px; height: 8px; border-radius: 50%; background: #e2e8f0; }
.mock-bar i:first-child { background: #fecaca; }
.mock-bar i:nth-child(2) { background: #fde68a; }
.mock-bar i:nth-child(3) { background: #bbf7d0; }
.mock-url {
    margin-left: 10px; font-family: var(--mono); font-size: 11px; color: var(--text-3);
    background: #fff; border: 1px solid var(--border); border-radius: 5px; padding: 2px 8px;
}
.mock-body { padding: 18px; display: flex; flex-direction: column; gap: 9px; }
.mock-line { height: 9px; border-radius: 5px; background: #eef2f8; }
.mock-line.w40 { width: 40%; } .mock-line.w50 { width: 50%; }
.mock-line.w60 { width: 60%; height: 12px; background: #e2e8f0; }
.mock-line.w70 { width: 70%; } .mock-line.w85 { width: 85%; }
.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 6px 0; }
.mock-card { height: 52px; border-radius: 8px; background: linear-gradient(150deg, #eef4ff, #f5f3ff); }
.mock-badge {
    position: absolute; bottom: -14px; left: 22px;
    display: inline-flex; align-items: center; gap: 7px;
    background: #fff; border: 1px solid var(--border); border-radius: 20px;
    padding: 7px 14px; font-size: 12.5px; color: var(--text-2);
    box-shadow: 0 12px 24px -14px rgba(15, 23, 42, .3);
}
.dot-online { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .16); display: inline-block; }

.section { padding: 62px 0; }
.section-alt { background: #fafbfd; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; margin-bottom: 34px; }
.section-head h2 { font-size: 24px; font-weight: 700; letter-spacing: -.2px; }
.section-head p { margin-top: 8px; font-size: 13.5px; color: var(--text-3); }

.entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.entry-card {
    display: flex; flex-direction: column; gap: 10px;
    padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg);
    background: #fff; color: var(--text); box-shadow: var(--shadow-sm);
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
.entry-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -26px rgba(15, 23, 42, .3); border-color: #cbd9f5; color: var(--text); }
.entry-icon {
    width: 42px; height: 42px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-soft); color: var(--primary);
}
.entry-card h3 { font-size: 15.5px; font-weight: 600; }
.entry-card p { font-size: 13px; color: var(--text-2); line-height: 1.8; flex: 1; }
.entry-link { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--primary); font-weight: 500; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.step { position: relative; padding: 24px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.step-no {
    display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 700;
    color: var(--primary); background: var(--primary-soft); border-radius: 6px; padding: 2px 8px; margin-bottom: 12px;
}
.step h4 { font-size: 14.5px; font-weight: 600; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--text-2); line-height: 1.8; }
.step code { background: #f1f5f9; border-radius: 4px; padding: 1px 5px; font-size: 12px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature { display: flex; gap: 13px; }
.feature-ico {
    flex: none; width: 38px; height: 38px; border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    background: #f1f6ff; color: var(--primary);
}
.feature h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.feature p { font-size: 12.5px; color: var(--text-2); line-height: 1.8; }

/* ---------------- 用户端页面 ---------------- */
.page-wrap { padding: 32px 20px 64px; }
.page-wrap-narrow { max-width: 720px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-title { font-size: 22px; font-weight: 700; letter-spacing: -.2px; }
.page-sub { margin-top: 5px; font-size: 13px; color: var(--text-3); }
.page-head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.grid-2-wide { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.span-2 { grid-column: 1 / -1; }

.search-card { padding: 18px 20px; margin-bottom: 20px; }
.search-form { display: flex; gap: 10px; }
.search-input { position: relative; flex: 1; }
.search-input .input { padding-left: 38px; height: 42px; }
.search-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); display: flex; }
.search-hint { margin-top: 10px; font-size: 12px; color: var(--text-3); }
.search-hint code { background: #f1f5f9; border-radius: 4px; padding: 1px 5px; }

.empty-card { padding: 8px; }

.result-card { padding: 24px; }
.result-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.result-slug { font-size: 20px; font-weight: 700; letter-spacing: -.2px; }
.result-link { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--primary); margin-top: 4px; word-break: break-all; }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 20px 0; }
.result-item { display: flex; flex-direction: column; gap: 5px; }
.result-label { font-size: 12px; color: var(--text-3); }
.result-value { font-size: 13.5px; font-weight: 600; }
.result-note { display: flex; gap: 8px; align-items: flex-start; padding: 12px 14px; border-radius: 9px; font-size: 12.5px; line-height: 1.7; }
.note-warn { background: var(--orange-soft); color: #96620a; }
.note-danger { background: var(--red-soft); color: #b91c1c; }
.note-info { background: var(--primary-soft); color: #1e40af; }
.result-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

.success-card { padding: 26px 28px; }
.success-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.success-ico {
    flex: none; width: 50px; height: 50px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    background: var(--green-soft); color: var(--green);
}
.success-head h2 { font-size: 19px; font-weight: 700; }
.success-head p { font-size: 13px; color: var(--text-3); margin-top: 3px; }
.success-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 18px 0; border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border); margin-bottom: 18px; }
.success-item { display: flex; flex-direction: column; gap: 5px; }
.success-item span { font-size: 12px; color: var(--text-3); }
.success-item strong { font-size: 14px; }
.text-success { color: var(--green); }
.success-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

.link-box { background: #f8fbff; border: 1px solid var(--primary-line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 4px; }
.link-label { display: block; font-size: 12px; color: #1e40af; margin-bottom: 8px; }
.link-row { display: flex; gap: 8px; flex-wrap: wrap; }
.link-row .input { flex: 1; min-width: 200px; background: #fff; }

/* ---------------- 通用提示页 ---------------- */
.body-blank { background: var(--bg); }
.notice-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.notice-card {
    width: 100%; max-width: 460px; background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 40px 36px; text-align: center; box-shadow: var(--shadow);
}
.notice-ico {
    width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-soft); color: var(--primary);
}
.notice-card h1 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.notice-card p { font-size: 13px; color: var(--text-2); line-height: 1.8; margin-bottom: 22px; }
.notice-code { display: block; margin-top: 20px; font-size: 11.5px; color: #cbd5e1; font-family: var(--mono); }

/* =============================================================
   响应式
   ============================================================= */
@media (max-width: 980px) {
    .hero-inner { grid-template-columns: 1fr; padding: 44px 20px 60px; gap: 36px; }
    .hero-copy h1 { font-size: 32px; }
    .hero-visual { max-width: 520px; }
    .entry-grid, .steps, .feature-grid { grid-template-columns: 1fr; }
    .grid-2, .grid-2-wide { grid-template-columns: 1fr; }
    .result-grid, .success-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .wrap { padding: 0 16px; }
    .hero-copy h1 { font-size: 27px; }
    .hero-stats { gap: 22px; }
    .section { padding: 44px 0; }
    .site-nav {
        position: absolute; top: 62px; left: 0; right: 0;
        flex-direction: column; gap: 0; padding: 8px 16px 14px;
        background: #fff; border-bottom: 1px solid var(--border);
        box-shadow: 0 12px 24px -20px rgba(15, 23, 42, .4);
        display: none;
    }
    .site-nav.open { display: flex; }
    .site-nav-toggle { display: flex; margin-left: auto; }
    .site-nav-link { padding: 10px 12px; border-radius: 8px; }
    .search-form { flex-direction: column; }
    .result-grid, .success-grid { grid-template-columns: 1fr; }
    .page-wrap { padding: 22px 16px 44px; }
    .form-card { padding: 18px 16px; }
    .success-card { padding: 20px 18px; }
    .form-actions-row .btn, .success-actions .btn { flex: 1; }
    .footer-inner { height: auto; padding: 20px 0; flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- 输入框组合（如密钥后面跟复制按钮） ---------- */
.input-group { display: flex; align-items: center; gap: 8px; }
.input-group .input { flex: 1 1 auto; min-width: 0; }
.input-group .btn { flex: 0 0 auto; height: 40px; padding: 0 12px; }

/* ---------- 复选行（开关式设置项） ---------- */
.switch-row { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 13.5px; color: #384a63; cursor: pointer; }
.switch-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }

/* ---------- 有序提示列表 ---------- */
.tips-ordered { list-style: none; counter-reset: tip; }
.tips-ordered li { counter-increment: tip; padding-left: 26px; }
.tips-ordered li::before {
    content: counter(tip);
    position: absolute; left: 0; top: 2px;
    width: 18px; height: 18px; border-radius: 50%;
    background: #eef4ff; color: var(--primary);
    font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}

/* ---------- 危险操作（描边红） ---------- */
.btn-danger-ghost { background: #fff; border-color: #f3c9c9; color: var(--red); }
.btn-danger-ghost:hover { background: #fef2f2; border-color: #eab0b0; color: var(--red); }
