/* ==========================================================================
   迅龙 XunL · 前台 + 控制台共用样式
   不依赖 Bootstrap：控制台页面要轻，首屏只这一个 CSS + 一个 JS。
   ========================================================================== */
:root {
    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --line-2: #cbd5e1;
    --bg: #f6f8fb;
    --card: #ffffff;
    --brand: #2f6bff;
    --brand-2: #1d4ed8;
    --brand-soft: #eaf0ff;
    --accent: #ff7a1a;
    --ok: #16a34a;
    --ok-soft: #e8f7ee;
    --warn: #d97706;
    --warn-soft: #fef3e2;
    --bad: #dc2626;
    --bad-soft: #fdecec;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .06);
    --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.3; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 8px;
       border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-size: 14px; font-weight: 500; cursor: pointer;
       transition: background .15s, border-color .15s, color .15s; white-space: nowrap; font-family: inherit; }
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: #ea6a0c; border-color: #ea6a0c; color: #fff; }
.btn-danger { color: var(--bad); }
.btn-danger:hover { border-color: var(--bad); color: var(--bad); background: var(--bad-soft); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 6px; }
.btn-lg { height: 46px; padding: 0 24px; font-size: 16px; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 14px; }
.field > label { display: block; font-weight: 500; margin-bottom: 6px; color: var(--ink-2); }
.field > label .req { color: var(--bad); margin-left: 2px; }
.field > label.check { display: inline-flex; font-weight: 400; color: var(--ink); margin-bottom: 4px; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.input, select.input, textarea.input { width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px;
       background: #fff; font: inherit; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; min-height: 80px; padding: 8px 12px; resize: vertical; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 107, 255, .15); }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; min-width: 0; }
.row > .shrink { flex: 0 0 auto; }
.check { display: inline-flex; align-items: center; gap: 6px; margin-right: 16px; cursor: pointer; user-select: none; }
.check input { width: 16px; height: 16px; accent-color: var(--brand); }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }

/* ---------- 徽标 ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 500;
         background: #f1f5f9; color: var(--ink-2); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.plain::before { display: none; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.brand { background: var(--brand-soft); color: var(--brand); }
.badge.pro { background: linear-gradient(120deg, #2f6bff, #7c3aed); color: #fff; }
.badge.pro::before { display: none; }

/* ---------- 卡片 / 表格 ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 20px 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.card-head h3 { margin: 0; font-size: 15px; }
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: 12.5px; color: var(--muted); font-weight: 500; background: #fafbfc; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table td .sub { display: block; font-size: 12px; color: var(--muted); }
.table .actions { white-space: nowrap; text-align: right; }
.table .actions .btn + .btn { margin-left: 6px; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .icon { font-size: 34px; margin-bottom: 8px; }
.empty h4 { color: var(--ink); font-size: 15px; margin-bottom: 4px; }

/* ---------- 提示条 ---------- */
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--brand-soft); color: var(--ink-2); font-size: 13.5px; }
.notice.warn { background: var(--warn-soft); }
.notice.bad { background: var(--bad-soft); }
.notice.ok { background: var(--ok-soft); }
.notice b { color: var(--ink); }

/* ---------- Toast / Modal ---------- */
#xl-toast { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 1000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; max-width: min(560px, calc(100vw - 32px)); padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff;
         box-shadow: 0 8px 24px rgba(15, 23, 42, .25); font-size: 14px; animation: toastIn .2s ease; }
.toast.bad { background: var(--bad); }
.toast.ok { background: #0f766e; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.modal-mask { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 900; display: flex; align-items: flex-start; justify-content: center;
              padding: 6vh 16px; overflow-y: auto; }
.modal { width: 100%; max-width: 620px; background: #fff; border-radius: 14px; box-shadow: 0 24px 64px rgba(15, 23, 42, .3); }
.modal.wide { max-width: 820px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-close { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; }
.modal-body { padding: 20px 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); background: #fafbfc; border-radius: 0 0 14px 14px; }

/* ==========================================================================
   控制台
   ========================================================================== */
.console { display: flex; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; width: 232px; flex: 0 0 232px; background: #fff; border-right: 1px solid var(--line);
        display: flex; flex-direction: column; }
.side .logo { display: flex; align-items: center; gap: 10px; padding: 18px 20px 14px; }
.logo-mark { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, #2f6bff, #7c3aed); color: #fff; display: grid;
             place-items: center; font-weight: 700; font-size: 16px; flex: 0 0 32px; }
.logo-text b { display: block; font-size: 15px; letter-spacing: .5px; }
.logo-text span { display: block; font-size: 11.5px; color: var(--muted); }
.side nav { flex: 1; overflow-y: auto; padding: 4px 10px 16px; }
.side .grp { font-size: 11.5px; color: var(--muted); padding: 14px 10px 6px; letter-spacing: .5px; }
.side nav a { display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 0 10px; border-radius: 8px; color: var(--ink-2); font-size: 13.5px; }
.side nav a:hover { background: #f1f5f9; color: var(--ink); }
.side nav a.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.side nav a .soon { font-size: 10.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; font-weight: 400; }
.side nav a .lock { font-size: 10.5px; color: #7c3aed; }
.side .foot { border-top: 1px solid var(--line); padding: 12px 14px; }
.plan-box { background: linear-gradient(135deg, #f0f4ff, #f6f0ff); border: 1px solid #e0e7ff; border-radius: 10px; padding: 10px 12px; font-size: 12.5px; }
.plan-box b { color: var(--ink); }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 50; height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
          padding: 0 28px; background: rgba(246, 248, 251, .9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar h1 { font-size: 18px; margin: 0; }
.topbar .who { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 600; }
.menu-btn { display: none; }
.content { padding: 24px 28px 48px; max-width: 1240px; width: 100%; }
.page-intro { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.page-intro p { margin: 0; color: var(--muted); max-width: 720px; }
.grid { display: grid; gap: 16px; }
.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)); }
.stat { padding: 16px 18px; }
.stat .k { font-size: 12.5px; color: var(--muted); }
.stat .v { font-size: 26px; font-weight: 700; margin-top: 2px; }
.stat .v small { font-size: 13px; color: var(--muted); font-weight: 400; }

.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps .dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; flex: 0 0 26px;
              font-size: 13px; font-weight: 700; color: var(--muted); }
.steps li.done .dot { border-color: var(--ok); background: var(--ok); color: #fff; }
.steps li.done .t { color: var(--muted); text-decoration: line-through; }
.steps .t { font-weight: 600; }
.steps .d { font-size: 12.5px; color: var(--muted); }
.steps .go { margin-left: auto; }
.progress { height: 6px; border-radius: 99px; background: #eef2f7; overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, #2f6bff, #7c3aed); border-radius: 99px; }

.scope-list { list-style: none; margin: 0; padding: 0; }
.scope-list li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.scope-list li:last-child { border-bottom: 0; }
.scope-list .ico { width: 20px; flex: 0 0 20px; text-align: center; font-weight: 700; }
.scope-list .ok .ico { color: var(--ok); }
.scope-list .no .ico { color: var(--bad); }
.scope-list .nm { font-weight: 600; }
.scope-list .nm code { font-weight: 400; color: var(--muted); margin-left: 6px; }
.scope-list .ds { font-size: 12.5px; color: var(--muted); }
.scope-list .act { margin-left: auto; }

.perm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; }
.perm-group { margin-bottom: 14px; }
.perm-group h5 { margin: 0 0 6px; font-size: 12.5px; color: var(--muted); }

.howto { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.howto li { position: relative; padding: 0 0 14px 34px; }
.howto li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%;
                    background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.copy { cursor: pointer; border-bottom: 1px dashed var(--line-2); }

.soon-hero { padding: 36px; display: flex; gap: 36px; align-items: center; }
.soon-hero .art { flex: 0 0 200px; height: 160px; border-radius: 16px; background: linear-gradient(135deg, #eaf0ff, #f3e8ff); display: grid; place-items: center; font-size: 56px; }
.ticks { list-style: none; padding: 0; margin: 14px 0 0; }
.ticks li { padding-left: 24px; position: relative; margin-bottom: 8px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

@media (max-width: 960px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
    .side { position: fixed; left: -260px; z-index: 200; transition: left .2s; box-shadow: 0 0 40px rgba(0, 0, 0, .15); }
    .side.open { left: 0; }
    .menu-btn { display: inline-flex; }
    .topbar { padding: 0 16px; }
    .content { padding: 16px 16px 40px; }
    .row { flex-direction: column; gap: 0; }
    .page-intro { flex-direction: column; }
    .soon-hero { flex-direction: column; padding: 24px; }
    .perm-grid { grid-template-columns: 1fr; }
    .table th, .table td { padding: 10px 12px; }
    .topbar .who .email { display: none; }
}

/* ==========================================================================
   前台
   ========================================================================== */
.site { background: #fff; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.pnav { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.pnav .wrap { display: flex; align-items: center; height: 64px; gap: 28px; }
.pnav .logo { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.pnav .links { display: flex; gap: 22px; flex: 1; }
.pnav .links a { color: var(--ink-2); font-size: 14.5px; }
.pnav .links a:hover { color: var(--brand); }
.pnav .cta { display: flex; gap: 10px; }
.hero { position: relative; padding: 84px 0 64px; overflow: hidden;
        background: radial-gradient(900px 420px at 80% -10%, rgba(124, 58, 237, .12), transparent 60%),
                    radial-gradient(800px 400px at 0% 0%, rgba(47, 107, 255, .12), transparent 60%), #fff; }
.hero .eyebrow { display: inline-flex; gap: 8px; align-items: center; padding: 4px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand);
                 font-size: 13px; font-weight: 500; margin-bottom: 18px; }
.hero h1 { font-size: 46px; letter-spacing: -.5px; margin-bottom: 18px; max-width: 820px; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, #2f6bff, #7c3aed); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; color: var(--ink-2); max-width: 680px; margin: 0 0 28px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .proof { margin-top: 22px; color: var(--muted); font-size: 13px; }
.hero-shot { margin-top: 48px; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 30px 80px -20px rgba(15, 23, 42, .25); background: #fff; overflow: hidden; }
.shot-bar { height: 36px; background: #f8fafc; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 6px; padding: 0 14px; }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.shot-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; }
.feed { padding: 18px; border-right: 1px solid var(--line); }
.feed .msg { display: flex; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; background: #fff; }
.feed .msg .ic { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; flex: 0 0 32px; font-size: 16px; }
.feed .msg b { display: block; font-size: 13.5px; }
.feed .msg span { font-size: 12.5px; color: var(--muted); }
.side-stats { padding: 18px; display: grid; gap: 10px; align-content: start; background: #fafbfc; }
.side-stats .s { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.side-stats .s .k { font-size: 12px; color: var(--muted); }
.side-stats .s .v { font-size: 20px; font-weight: 700; }
.bar-row { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-top: 6px; }
.bar-row .b { flex: 1; height: 6px; background: #eef2f7; border-radius: 9px; overflow: hidden; }
.bar-row .b i { display: block; height: 100%; background: var(--brand); }

.section { padding: 80px 0; }
.section.alt { background: var(--bg); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head h2 { font-size: 32px; }
.section-head p { color: var(--muted); font-size: 16px; margin: 0; }
.pains { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pain { padding: 22px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.pain .q { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.pain .a { font-size: 13.5px; color: var(--muted); }
.mods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.mod { padding: 26px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.mod .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; margin-bottom: 14px; }
.mod h3 { font-size: 18px; }
.mod p { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.mod ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 13.5px; }
.mod ul li { margin-bottom: 4px; }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: f; }
.flow .st { position: relative; padding: 22px; background: #fff; border-radius: 14px; border: 1px solid var(--line); }
.flow .st::before { counter-increment: f; content: "0" counter(f); font-size: 28px; font-weight: 800; color: #dbe5ff; display: block; margin-bottom: 6px; }
.flow .st b { display: block; margin-bottom: 4px; }
.flow .st span { color: var(--muted); font-size: 13.5px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { position: relative; padding: 28px; border-radius: 16px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.plan.hot { border: 2px solid var(--brand); box-shadow: 0 20px 50px -20px rgba(47, 107, 255, .45); }
.plan .tag { position: absolute; top: -12px; left: 28px; background: var(--brand); color: #fff; font-size: 12px; padding: 2px 10px; border-radius: 99px; }
.plan h3 { font-size: 18px; margin-bottom: 4px; }
.plan .for { color: var(--muted); font-size: 13px; margin-bottom: 16px; min-height: 40px; }
.plan .price { font-size: 38px; font-weight: 800; letter-spacing: -1px; }
.plan .price small { font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan .yr { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; min-height: 20px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.plan ul li { position: relative; padding-left: 22px; margin-bottom: 9px; font-size: 13.5px; color: var(--ink-2); }
.plan ul li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tool { display: block; padding: 18px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s; }
.tool:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.tool b { display: flex; align-items: center; gap: 6px; font-size: 14.5px; margin-bottom: 4px; }
.tool span { font-size: 12.5px; color: var(--muted); }
.tool .badge { height: 18px; font-size: 11px; padding: 0 6px; }
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 4px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-2); margin: 10px 0 0; }
.cta-band { padding: 64px 0; background: linear-gradient(120deg, #1d4ed8, #6d28d9); color: #fff; text-align: center; }
.cta-band h2 { font-size: 30px; }
.cta-band p { opacity: .85; margin: 0 0 24px; }
.cta-band .btn { background: #fff; color: var(--brand-2); border-color: #fff; }
.pfoot { padding: 40px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; background: #fff; }
.pfoot .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.pfoot a { color: var(--muted); margin-right: 16px; }
.matrix { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.matrix th, .matrix td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: center; font-size: 13.5px; }
.matrix th:first-child, .matrix td:first-child { text-align: left; }
.matrix thead th { background: #fafbfc; font-size: 14px; }
.matrix .grp td { background: #f8fafc; font-weight: 600; text-align: left; color: var(--ink-2); }
.matrix .y { color: var(--ok); font-weight: 700; }
.matrix .n { color: var(--line-2); }

/* ---------- 顶栏“免费工具”下拉（首页、工具页等所有前台页共用，必须放在这个文件） ---------- */
.pnav .links { align-items: center; }
.pnav .dd { position: relative; }
.pnav .dd-toggle .caret { font-size: 11px; color: var(--muted); }
.pnav .dd-panel { position: absolute; top: calc(100% + 14px); left: -24px; width: 760px; display: none; grid-template-columns: repeat(4, 1fr);
                  gap: 6px 18px; padding: 18px 20px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
                  box-shadow: 0 24px 60px -16px rgba(15, 23, 42, .25); z-index: 300; }
.pnav .dd::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px; }
.pnav .dd:hover .dd-panel, .pnav .dd.open .dd-panel { display: grid; }
.pnav .dd-col h6 { font-size: 12px; color: var(--muted); font-weight: 600; margin: 0 0 6px; letter-spacing: .3px; }
.pnav .dd-col a { display: flex; align-items: center; gap: 8px; padding: 6px 8px; margin: 0 -8px; border-radius: 7px; font-size: 13.5px; color: var(--ink-2); }
.pnav .dd-col a:hover, .pnav .dd-col a.on { background: var(--brand-soft); color: var(--brand); }
.pnav .dd-all { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; font-size: 13px; }
.ti { width: 20px; text-align: center; flex: 0 0 20px; font-size: 14px; }

@media (max-width: 960px) { .pnav .dd-panel { display: none !important; } }

/* 登录 / 注册 */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { background: linear-gradient(150deg, #1d4ed8 0%, #6d28d9 100%); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-art h2 { font-size: 30px; line-height: 1.35; margin: 0 0 16px; }
.auth-art ul { list-style: none; padding: 0; margin: 0; }
.auth-art li { padding-left: 26px; position: relative; margin-bottom: 12px; opacity: .92; }
.auth-art li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; }
.auth-art .logo-text span { color: rgba(255, 255, 255, .7); }
.auth-art .logo-mark { background: rgba(255, 255, 255, .18); }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: #fff; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box h1 { font-size: 24px; margin-bottom: 6px; }
.auth-box .sub { color: var(--muted); margin-bottom: 26px; }
.seg { display: flex; background: #f1f5f9; border-radius: 9px; padding: 3px; margin-bottom: 16px; }
.seg button { flex: 1; height: 32px; border: 0; background: transparent; border-radius: 7px; font: inherit; color: var(--ink-2); cursor: pointer; }
.seg button.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.choose { display: grid; gap: 8px; }
.choose button { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff;
                 font: inherit; cursor: pointer; text-align: left; }
.choose button:hover { border-color: var(--brand); }

@media (max-width: 960px) {
    .pains, .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mods, .plans, .flow { grid-template-columns: 1fr; }
    .hero h1 { font-size: 34px; }
    .shot-body { grid-template-columns: 1fr; }
    .side-stats { display: none; }
    .auth { grid-template-columns: 1fr; }
    .auth-art { display: none; }
    .pnav .links { display: none; }
}
@media (max-width: 560px) {
    .wrap { padding: 0 16px; }
    .pains, .tool-grid { grid-template-columns: 1fr; }
    .hero { padding: 48px 0 40px; }
    .hero h1 { font-size: 28px; }
    .hero p.lead { font-size: 16px; }
    .section { padding: 56px 0; }
    .section-head h2 { font-size: 24px; }
    .pnav .cta .btn-ghost { display: none; }
    .matrix th, .matrix td { padding: 10px 8px; font-size: 12.5px; }
}
