/* =========================================================
   蛛池管家 · 链接提交与蜘蛛抓取统计系统
   无外部依赖，兼容现代浏览器
   ========================================================= */

:root {
    --bg: #f4f7fc;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #64748b;
    --faint: #94a3b8;
    --line: #e5ebf4;
    --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: #feecec;
    --side: #101c33;
    --side-2: #172845;
    --radius: 16px;
    --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", Arial, sans-serif;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { 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; }
table { border-collapse: collapse; }
.icon { flex: none; vertical-align: middle; }

.text-muted { color: var(--muted); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.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; }
.break-all { word-break: break-all; }

/* ---------------- 品牌标记 ---------------- */
.brand-mark {
    width: 38px; height: 38px; flex: none; border-radius: 11px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; background: linear-gradient(135deg, #3b82f6, #6d47e8);
    box-shadow: 0 8px 18px -8px rgba(79, 70, 229, .9);
}

/* ---------------- 认证页 ---------------- */
.auth-body {
    min-height: 100vh; padding: 48px 20px;
    background: radial-gradient(900px 520px at 12% -5%, #1e3a72 0%, #101f3d 45%, #080f1e 100%);
}
.auth-wrap { width: 100%; max-width: 440px; margin: 0 auto; }
.auth-brand { display: flex; align-items: center; gap: 12px; color: #fff; margin-bottom: 24px; }
.auth-brand strong { display: block; font-size: 16px; letter-spacing: .01em; }
.auth-brand span:not(.brand-mark) { display: block; font-size: 12px; color: rgba(255,255,255,.55); }
.auth-card { background: var(--surface); border-radius: 22px; padding: 30px 30px 32px; box-shadow: 0 40px 80px -45px rgba(0,0,0,.85); }
.auth-card h1 { font-size: 22px; }
.auth-sub { color: var(--muted); font-size: 13.5px; margin: 6px 0 22px; }
.auth-foot { margin-top: 20px; text-align: center; font-size: 12px; color: rgba(255,255,255,.42); }
.auth-links { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-2); font-size: 13px; }

/* ---------------- 应用骨架 ---------------- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
    width: 232px; flex: none; display: flex; flex-direction: column;
    background: linear-gradient(180deg, var(--side) 0%, #0d1729 100%);
    color: #cbd5e1; position: sticky; top: 0; height: 100vh;
}
.side-brand { display: flex; align-items: center; gap: 11px; padding: 20px 18px 18px; border-bottom: 1px solid rgba(255,255,255,.07); }
.side-brand strong { display: block; color: #fff; font-size: 15px; }
.side-brand span:not(.brand-mark) { display: block; font-size: 11.5px; color: rgba(255,255,255,.45); letter-spacing: .04em; }
/* flex + 固定行高：避免 grid 隐式行被剩余高度拉伸，菜单项不再撑满整屏 */
.side-nav { padding: 22px 12px; display: flex; flex-direction: column; align-items: stretch; gap: 12px; flex: 1; overflow-y: auto; }
.side-link { position: relative; flex: none; display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 14px; border-radius: 10px; color: #aebbd0; font-size: 14px; transition: .15s; }
.side-link .icon { width: 20px; height: 20px; }
.side-link:hover { color: #fff; background: rgba(255,255,255,.06); text-decoration: none; }
.side-link.active { color: #4ade80; background: rgba(74,222,128,.09); }
.side-link.active::before { content: ''; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: #4ade80; }
.side-foot { padding: 14px 12px 18px; border-top: 1px solid rgba(255,255,255,.07); }
.side-foot .side-link { height: 42px; }
.side-version { margin: 12px 13px 0; font-size: 11px; color: rgba(255,255,255,.3); font-family: var(--mono); }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
    position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 14px 28px; min-height: 72px; background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.topbar-title h2 { font-size: 17px; }
.topbar-title p { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.topbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.topbar-user { font-size: 13px; color: var(--ink-2); font-weight: 600; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-size: 12px; white-space: nowrap; }
.chip strong { color: var(--ink); font-size: 13px; }
.chip-primary { color: var(--primary); background: var(--primary-soft); border-color: #dbe7ff; }
.chip-danger { color: var(--red); background: var(--red-soft); border-color: #fadada; }
.content { padding: 26px 28px 40px; flex: 1; }
.app-foot { padding: 16px 28px; text-align: center; font-size: 12px; color: var(--faint); border-top: 1px solid var(--line-2); }
.foot-sep { color: var(--faint); margin: 0 4px; opacity: .6; }
.app-foot a, .auth-foot a { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
.app-foot a:hover, .auth-foot a:hover { color: var(--primary); }

/* ---------------- 卡片 ---------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; border-bottom: 1px solid var(--line-2); }
.card-head h3 { font-size: 15px; }
.card-head p { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.card-body { padding: 20px; }
.card-body.tight { padding: 0; }

/* ---------------- 统计卡 ---------------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.stat::after { content: ''; position: absolute; right: -28px; top: -28px; width: 90px; height: 90px; border-radius: 50%; background: var(--primary-soft); opacity: .8; }
.stat.alt-green::after { background: var(--green-soft); }
.stat.alt-amber::after { background: var(--amber-soft); }
.stat.alt-purple::after { background: #f1eaff; }
.stat-label { font-size: 12.5px; color: var(--muted); position: relative; z-index: 1; }
.stat-value { font-size: 27px; font-weight: 750; letter-spacing: -.03em; line-height: 1.3; margin-top: 4px; position: relative; z-index: 1; }
.stat-hint { font-size: 12px; color: var(--faint); position: relative; z-index: 1; }

/* ---------------- 提示 ---------------- */
.alert { padding: 11px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 16px; border: 1px solid transparent; line-height: 1.7; }
.alert-info { background: var(--primary-soft); border-color: #dbe7ff; color: #1d4ed8; }
.alert-success { background: var(--green-soft); border-color: #cfeee0; color: #087a53; }
.alert-warn { background: var(--amber-soft); border-color: #f8e4b0; color: #92500b; }
.alert-error { background: var(--red-soft); border-color: #fadada; color: #b91c1c; }
.help-box { background: var(--surface-2); border: 1px dashed var(--line); border-radius: 12px; padding: 14px 16px; font-size: 13px; color: var(--ink-2); line-height: 1.85; }
.help-box strong { color: var(--ink); }

/* ---------------- 表单 ---------------- */
.field { margin-bottom: 16px; }
.label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.input, .select, .textarea {
    width: 100%; padding: 10px 12px; font-size: 14px; font-family: inherit; color: var(--ink);
    background: #fff; border: 1px solid #dbe3ef; border-radius: 10px; outline: none; transition: .15s;
}
.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: #a6b2c3; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #94a3b8 50%), linear-gradient(135deg, #94a3b8 50%, transparent 50%); background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.textarea { min-height: 92px; resize: vertical; line-height: 1.7; }
.textarea.bulk { min-height: 200px; font-size: 13px; line-height: 1.8; }
.field-hint { font-size: 12px; color: var(--faint); margin-top: 5px; }
.field-error { font-size: 12px; color: var(--red); margin-top: 5px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-actions { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.checkbox, .radio { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.checkbox input, .radio input { width: 15px; height: 15px; accent-color: var(--primary); }
.captcha-row { display: flex; gap: 10px; align-items: stretch; }
.captcha-row .input { flex: 1; min-width: 0; }
.captcha-img { width: 132px; height: 44px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; flex: none; background: #f3f7fd; }
.inline-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inline-form .input, .inline-form .select { width: auto; min-width: 130px; }

/* ---------------- 爬虫设置：IP 池卡片 ---------------- */
.spider-ip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.spider-ip-card { border: 1px solid var(--line); border-radius: 12px; padding: 15px 16px 14px; background: var(--surface-2); }
.spider-ip-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.spider-ip-head strong { font-size: 14px; color: var(--ink); }
.spider-ip-card .label { font-size: 12px; margin-bottom: 5px; }
.spider-ip-card .textarea.spider-ips { min-height: 84px; font-family: var(--mono); font-size: 12.5px; line-height: 1.65; background: #fff; }
.spider-ip-card .input.spider-ua { font-family: var(--mono); font-size: 12px; background: #fff; }
.spider-ip-card .field-hint { word-break: break-all; }

/* ---------------- 按钮 ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 13.5px; font-weight: 600; font-family: inherit; cursor: pointer; transition: .15s; white-space: nowrap; }
.btn:hover { border-color: #c8d5e8; background: var(--surface-2); text-decoration: none; color: var(--ink); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); border-color: transparent; box-shadow: 0 8px 18px -10px rgba(37,99,235,.9); }
.btn-primary:hover { color: #fff; background: linear-gradient(135deg, #1d4ed8, #4338ca); border-color: transparent; }
.btn-danger { color: var(--red); background: var(--red-soft); border-color: #fadada; }
.btn-danger:hover { color: #fff; background: var(--red); border-color: var(--red); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-sm { padding: 5px 10px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { padding: 11px 22px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------------- 表格 ---------------- */
.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; min-width: 720px; font-size: 13px; }
.table th { text-align: left; padding: 11px 16px; background: var(--surface-2); color: var(--muted); font-weight: 600; font-size: 12px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: #fafcff; }
.table .cell-url { max-width: 320px; word-break: break-all; }
.table .actions { white-space: nowrap; }
.table td .input, .table td .select { padding: 6px 9px; font-size: 12.5px; border-radius: 8px; }
.table td .select { background-position: calc(100% - 15px) 15px, calc(100% - 10px) 15px; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.badge-blue { background: var(--primary-soft); color: #1d4ed8; }
.badge-green { background: var(--green-soft); color: #087a53; }
.badge-gray { background: #eef1f6; color: #64748b; }
.badge-amber { background: var(--amber-soft); color: #92500b; }
.badge-red { background: var(--red-soft); color: #b91c1c; }
.empty-state { padding: 46px 20px; text-align: center; color: var(--faint); font-size: 13.5px; }
.empty-state strong { display: block; color: var(--ink-2); font-size: 15px; margin-bottom: 6px; }

/* ---------------- 工具条 / 批量操作 ---------------- */
.toolbar { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.toolbar .field { margin: 0; }
.toolbar .label { font-size: 12px; margin-bottom: 4px; }
.toolbar .input, .toolbar .select { min-width: 150px; }
.bulk-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; background: var(--primary-soft); border-bottom: 1px solid #dbe7ff; font-size: 13px; }
.bulk-bar .bulk-count { color: #1d4ed8; font-weight: 600; }
.bulk-bar .select, .bulk-bar .input { padding: 6px 9px; font-size: 12.5px; width: auto; min-width: 130px; }

/* ---------------- 分页 ---------------- */
.pagination { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 16px 20px; border-top: 1px solid var(--line-2); }
.page-info { font-size: 12.5px; color: var(--muted); margin-right: auto; }
.page-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 9px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 12.5px; }
.page-btn:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------------- 统计图表（纯 CSS） ---------------- */
.bar-list { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 88px 1fr 58px; align-items: center; gap: 12px; font-size: 12.5px; }
.bar-track { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #3b82f6, #6d47e8); min-width: 2px; }
.bar-value { text-align: right; color: var(--muted); font-family: var(--mono); }
.chart-cols { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-top: 10px; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.chart-bar { width: 100%; max-width: 46px; border-radius: 7px 7px 2px 2px; background: linear-gradient(180deg, #60a5fa, #4f46e5); min-height: 3px; transition: .2s; }
.chart-label { font-size: 11px; color: var(--faint); white-space: nowrap; }
.chart-count { font-size: 11px; color: var(--muted); font-family: var(--mono); }

/* ---------------- 代码 / 跟踪片段 ---------------- */
.code-box { position: relative; background: #0f1b30; color: #d7e5f7; border-radius: 11px; padding: 13px 44px 13px 14px; font-family: var(--mono); font-size: 12px; line-height: 1.8; word-break: break-all; }
.code-box.compact { padding: 8px 12px; font-size: 11.5px; line-height: 1.6; }
.copy-btn { position: absolute; right: 8px; top: 8px; padding: 3px 8px; font-size: 11px; border-radius: 6px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #e8f1ff; cursor: pointer; }

/* ---------------- 账户余额 / 充值弹窗 ---------------- */
.chip-balance { color: var(--green); background: var(--green-soft); border-color: #cfeee0; }
.balance-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.balance-amount { font-size: 34px; font-weight: 750; letter-spacing: -.03em; line-height: 1.3; }
.balance-amount small { font-size: 15px; font-weight: 600; color: var(--muted); margin-left: 6px; }
.modal-mask { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(9,17,32,.62); }
.modal-mask.open { display: flex; }
.modal { width: 100%; max-width: 400px; max-height: calc(100vh - 40px); overflow-y: auto; background: var(--surface); border-radius: 18px; box-shadow: 0 32px 80px -32px rgba(0,0,0,.7); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.modal-head h3 { font-size: 16px; }
.modal-close { border: 0; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px; }
.modal-close:hover { color: var(--ink); }
.modal-body { padding: 22px 20px 24px; text-align: center; }
.qr-box { width: 220px; height: 220px; margin: 0 auto 16px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; }
.qr-box img { width: 100%; height: 100%; object-fit: contain; }
.qr-empty { color: var(--faint); font-size: 12.5px; line-height: 1.8; }
.modal-label { font-size: 12.5px; color: var(--muted); text-align: left; margin: 14px 0 6px; }
.copy-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ink); word-break: break-all; text-align: left; }
.recharge-note { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--amber-soft); border: 1px solid #f8e4b0; color: #92500b; font-size: 12.5px; line-height: 1.8; text-align: left; }

/* ---------------- 用户端悬浮客服 ---------------- */
.cs-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cs-btn { width: 48px; height: 48px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; color: #fff; font-family: inherit; line-height: 1; text-decoration: none; cursor: pointer; box-shadow: 0 10px 26px -10px rgba(15,23,42,.6); transition: transform .18s, box-shadow .18s, filter .18s; }
.cs-btn:hover { color: #fff; text-decoration: none; transform: translateY(-2px); filter: brightness(1.07); box-shadow: 0 14px 30px -10px rgba(15,23,42,.7); }
.cs-btn:active { transform: translateY(0); }
.cs-btn .cs-ico { width: auto; height: auto; flex: none; display: inline-flex; align-items: center; justify-content: center; background: transparent; color: #fff; }
.cs-wechat { background: #07c160; }
.cs-tg { background: #229ed9; }
.cs-note { margin-top: 12px; font-size: 12.5px; color: var(--muted); text-align: left; }
.cs-toast { position: fixed; left: 50%; bottom: 96px; z-index: 120; transform: translate(-50%, 12px); max-width: min(88vw, 360px); padding: 10px 18px; border-radius: 10px; background: rgba(15,23,42,.92); color: #fff; font-size: 13px; text-align: center; box-shadow: 0 12px 30px -12px rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.cs-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 套餐卡片 / 订单支付弹窗 ---------------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow-sm); }
.plan.featured { border-color: var(--primary); box-shadow: 0 14px 34px -20px rgba(37,99,235,.95); }
.plan-flag { position: absolute; top: -11px; right: 18px; padding: 3px 12px; border-radius: 999px; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; font-size: 11.5px; font-weight: 600; }
.plan-name { font-size: 17px; font-weight: 700; color: var(--ink); }
.plan-desc { font-size: 12.5px; color: var(--muted); margin-top: 4px; min-height: 20px; }
.plan-price { font-size: 32px; font-weight: 750; letter-spacing: -.03em; color: var(--ink); line-height: 1.2; margin: 16px 0 2px; }
.plan-price em { font-size: 17px; font-style: normal; margin-right: 2px; }
.plan-price small { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan-list { list-style: none; padding: 0; margin: 14px 0 20px; display: grid; gap: 9px; font-size: 13px; color: var(--ink-2); }
.plan-list li { display: flex; align-items: center; gap: 8px; }
.plan-list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); flex: none; }
.plan-list strong { color: var(--ink); }
.plan .btn { margin-top: auto; }
.plan-foot { margin-top: 10px; text-align: center; font-size: 12px; color: var(--faint); }
.qr-amount { font-size: 30px; font-weight: 750; color: var(--ink); line-height: 1.2; }
.qr-amount em { font-size: 16px; font-style: normal; margin-right: 2px; }
.order-no { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--ink); }
.pay-summary { display: grid; gap: 9px; font-size: 13px; text-align: left; }
.pay-summary .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.pay-summary .row:last-child { border-bottom: 0; padding-bottom: 0; }
.pay-summary .row span { color: var(--muted); }
.pay-summary .row strong { color: var(--ink); }

/* ---------------- 门户首页 ---------------- */
.portal { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: radial-gradient(900px 560px at 50% -10%, #1e3a72 0%, #101f3d 48%, #080f1e 100%); }
.portal-inner { max-width: 720px; width: 100%; text-align: center; color: #fff; }
.portal-inner .brand-mark { width: 54px; height: 54px; border-radius: 16px; margin: 0 auto 20px; }
.portal-inner h1 { color: #fff; font-size: 30px; letter-spacing: -.03em; }
.portal-inner p.lead { color: rgba(255,255,255,.6); margin: 10px 0 34px; font-size: 14px; }
.portal-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; text-align: left; }
.portal-card { display: block; padding: 22px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: #fff; transition: .18s; }
.portal-card:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); color: #fff; text-decoration: none; }
.portal-card strong { display: block; font-size: 16px; margin-bottom: 6px; }
.portal-card span { font-size: 12.5px; color: rgba(255,255,255,.55); line-height: 1.7; }
.portal-foot { margin-top: 30px; font-size: 12px; color: rgba(255,255,255,.35); }

/* ---------------- 内链提取 ---------------- */
.extract-tip { background: #f3f7ff; border: 1px solid #e2ecff; border-left: 3px solid var(--primary); border-radius: 8px; padding: 10px 14px; margin-bottom: 22px; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.extract-row { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.extract-label { flex: none; width: 70px; text-align: right; padding-top: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.extract-control { flex: 1; min-width: 0; }
.extract-num { width: 170px; max-width: 100%; }
.extract-actions { margin-top: 6px; margin-bottom: 4px; }
.btn-success { color: #fff; background: #0e9f6e; border-color: #0e9f6e; box-shadow: 0 8px 18px -12px rgba(14,159,110,.9); }
.btn-success:hover { color: #fff; background: #0b8760; border-color: #0b8760; }
.btn-success:disabled { color: #fff; background: #0e9f6e; border-color: #0e9f6e; }
.extract-divider { height: 1px; background: var(--line-2); margin: 22px 0 18px; }
.extract-result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.extract-result-head h3 { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.extract-result { display: block; width: 100%; height: 260px; min-height: 160px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; color: var(--ink-2); font-size: 12px; line-height: 1.75; white-space: pre; overflow: auto; resize: vertical; outline: none; }
.extract-result:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.10); }
.extract-result-note { margin-top: 10px; font-size: 12px; color: var(--faint); line-height: 1.8; }
.extract-submit-link { margin-left: 6px; white-space: nowrap; }
.extract-empty { font-size: 12.5px; color: var(--faint); }

/* ---------------- 二级域名生成（复用内链提取版式） ---------------- */
.gen-choices { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding-top: 7px; min-height: 36px; }
.gen-hint { font-size: 12px; color: var(--faint); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-2 { grid-template-columns: 1fr; }
    .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .spider-ip-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
    .app-shell { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: static; }
    .side-brand { padding: 14px 16px; }
    .side-nav { flex: none; flex-direction: row; overflow-x: auto; padding: 10px 12px; gap: 8px; }
    .side-link { white-space: nowrap; height: 38px; padding: 0 12px; gap: 8px; font-size: 13px; }
    .side-link.active::before { display: none; }
    .side-foot { display: none; }
    .topbar { padding: 12px 16px; }
    .content { padding: 18px 16px 32px; }
    .form-grid { grid-template-columns: 1fr; }
    .portal-cards { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .stat-grid { grid-template-columns: 1fr; }
    .plan-grid { grid-template-columns: 1fr; }
    .auth-card { padding: 24px 20px; }
    .topbar-right .chip { display: none; }
    .cs-float { right: 14px; bottom: 14px; gap: 8px; }
    .cs-btn { width: 42px; height: 42px; }
    .cs-btn .cs-ico svg { width: 21px; height: 21px; }
    .extract-row { flex-direction: column; align-items: stretch; gap: 6px; }
    .extract-control { width: 100%; }
    .extract-label { width: auto; text-align: left; padding-top: 0; }
    .extract-num { width: 100%; }
    .extract-result { height: 240px; font-size: 11.5px; }
    .extract-result-head { flex-wrap: wrap; }
    .gen-choices { gap: 8px 14px; padding-top: 0; }
    .gen-hint { width: 100%; }
}
