/* ==========================================================================
   爆文大师 · 设计系统 v2026-09-28
   仅负责"皮肤"：颜色 / 圆角 / 阴影 / 动效 / 排版
   布局仍由 Tailwind 工具类承担，避免与业务逻辑耦合
   ========================================================================== */

/* 兜底：不依赖 Tailwind 也能隐藏元素 */
.hidden{display:none}

/* ---------- 1. 设计令牌 ---------- */
:root {
    --ink-900: #060A14;
    --ink-800: #0B1020;
    --ink-700: #121A38;
    --ink-600: #1B2450;

    --brand-400: #818CF8;
    --brand-500: #6366F1;
    --brand-600: #4F46E5;
    --brand-700: #4338CA;
    --accent-400: #22D3EE;

    --rose-500: #F43F5E;
    --emerald-500: #10B981;
    --amber-500: #F59E0B;
    --blue-500: #3B82F6;

    --surface: #FFFFFF;
    --surface-2: #F7F8FC;
    --surface-3: #EEF1F8;
    --line: rgba(15, 23, 42, .08);
    --line-strong: rgba(15, 23, 42, .14);

    --text-1: #0F172A;
    --text-2: #475569;
    --text-3: #64748B;

    --r-xs: 8px;
    --r-sm: 11px;
    --r-md: 14px;
    --r-lg: 18px;
    --r-xl: 24px;
    --r-2xl: 30px;

    --sh-1: 0 1px 2px rgba(6, 10, 20, .04), 0 4px 14px rgba(6, 10, 20, .05);
    --sh-2: 0 18px 40px -18px rgba(6, 10, 20, .28);
    --sh-3: 0 30px 70px -30px rgba(6, 10, 20, .45);
    --sh-brand: 0 12px 30px -12px rgba(99, 102, 241, .6);

    --ease: cubic-bezier(.22, .61, .36, 1);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
            "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 2. 基础 ---------- */
* { touch-action: manipulation; }

html, body { height: 100%; }

body {
    font-family: var(--font);
    color: var(--text-1);
    background: var(--surface-2);
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.005em;
}

@supports (height: 100dvh) {
    body.app-shell { height: 100dvh; }
}

::selection { background: rgba(99, 102, 241, .18); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background-color: rgba(100, 116, 139, .28);
    border-radius: 99px;
    border: 2px solid transparent;
    background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background-color: rgba(100, 116, 139, .5); background-clip: content-box; }

/* ---------- 3. 环境光背景 ---------- */
.ambient {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(1200px 700px at 78% -10%, rgba(99, 102, 241, .10), transparent 60%),
        radial-gradient(900px 600px at 12% 8%, rgba(34, 211, 238, .08), transparent 55%),
        linear-gradient(180deg, #F8F9FD 0%, #F2F4FB 100%);
}

.ambient__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .5;
    will-change: transform;
}
.ambient__blob--1 {
    width: 520px; height: 520px;
    top: -220px; left: -140px;
    background: radial-gradient(circle, rgba(99, 102, 241, .5), transparent 70%);
    animation: drift1 22s var(--ease) infinite alternate;
}
.ambient__blob--2 {
    width: 460px; height: 460px;
    bottom: -200px; right: -120px;
    background: radial-gradient(circle, rgba(34, 211, 238, .42), transparent 70%);
    animation: drift2 26s var(--ease) infinite alternate;
}
.ambient__blob--3 {
    width: 380px; height: 380px;
    top: 40%; left: 55%;
    background: radial-gradient(circle, rgba(244, 63, 94, .22), transparent 70%);
    animation: drift3 30s var(--ease) infinite alternate;
}
.ambient__grid {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-image:
        linear-gradient(rgba(15, 23, 42, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, .035) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(900px 600px at 60% 0%, #000 20%, transparent 75%);
    mask-image: radial-gradient(900px 600px at 60% 0%, #000 20%, transparent 75%);
}

@keyframes drift1 { to { transform: translate3d(90px, 60px, 0) scale(1.12); } }
@keyframes drift2 { to { transform: translate3d(-80px, -50px, 0) scale(1.08); } }
@keyframes drift3 { to { transform: translate3d(60px, -70px, 0) scale(1.15); } }

@media (prefers-reduced-motion: reduce) {
    .ambient__blob { animation: none; }
}
/* ---------- 4. 主内容区 ---------- */
.app-main {
    position: relative;
    z-index: 1;
    flex: 1;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.wrap { padding: 22px 18px 40px; max-width: 1000px; margin: 0 auto; }
.wrap--wide { max-width: 1080px; }
.wrap--narrow { max-width: 720px; }
@media (min-width: 768px) { .wrap { padding: 34px 32px 60px; } }

/* ---------- 5. 侧边栏 ---------- */
.sidebar {
    position: relative;
    z-index: 20;
    width: 268px;
    background:
        radial-gradient(600px 300px at 20% -10%, rgba(99, 102, 241, .35), transparent 60%),
        linear-gradient(180deg, var(--ink-800) 0%, var(--ink-900) 100%);
    border-right: 1px solid rgba(255, 255, 255, .06);
    color: #fff;
}

.sidebar::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(99, 102, 241, .5), transparent);
}

.sidebar__brand { display: flex; align-items: center; gap: 12px; padding: 22px 20px 20px; }

.brand-mark {
    width: 42px; height: 42px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-size: 17px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700) 55%, #7C3AED);
    box-shadow: 0 8px 22px -8px rgba(99, 102, 241, .9), inset 0 1px 0 rgba(255, 255, 255, .35);
    flex-shrink: 0;
}
.brand-mark--sm { width: 34px; height: 34px; border-radius: 11px; font-size: 14px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text__name { font-size: 15px; font-weight: 700; letter-spacing: .01em; }
.brand-text__sub {
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .38);
    margin-top: 2px;
}

.sidebar__user { margin: 0 14px 6px; }
.sidebar__user-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 12px;
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.sidebar__user-meta { min-width: 0; flex: 1; }
.sidebar__user-name {
    font-size: 13.5px; font-weight: 600; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar__user-role { font-size: 11.5px; margin-top: 2px; color: rgba(255, 255, 255, .5); }

.sidebar__nav { flex: 1; padding: 16px 14px; display: flex; flex-direction: column; gap: 5px; }
.sidebar__label {
    font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
    color: rgba(255, 255, 255, .3); padding: 0 10px 8px;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    border-radius: var(--r-md);
    color: rgba(255, 255, 255, .62);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background .22s var(--ease), color .22s var(--ease),
                border-color .22s var(--ease), transform .22s var(--ease);
}
.nav-item__icon { width: 18px; text-align: center; font-size: 14px; }
.nav-item__text { flex: 1; }
.nav-item__chev { font-size: 10px; opacity: 0; transform: translateX(-4px); transition: all .22s var(--ease); }

.nav-item:hover { background: rgba(255, 255, 255, .07); color: #fff; transform: translateX(2px); }
.nav-item:hover .nav-item__chev { opacity: .55; transform: translateX(0); }

.nav-item.is-active {
    background: linear-gradient(135deg, rgba(99, 102, 241, .95), rgba(124, 58, 237, .9));
    color: #fff;
    border-color: rgba(255, 255, 255, .16);
    box-shadow: 0 10px 26px -12px rgba(99, 102, 241, .95), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.nav-item.is-active .nav-item__chev { opacity: .8; transform: translateX(0); }

.sidebar__foot { padding: 14px; border-top: 1px solid rgba(255, 255, 255, .07); }

/* ---------- 6. 头像 ---------- */
.avatar {
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, var(--brand-500), #7C3AED);
    box-shadow: 0 6px 18px -8px rgba(99, 102, 241, .95), inset 0 1px 0 rgba(255, 255, 255, .3);
    flex-shrink: 0;
    -webkit-user-select: none;
    user-select: none;
}
.avatar--sm { width: 34px; height: 34px; font-size: 13px; }
.avatar--xl {
    width: 82px; height: 82px;
    font-size: 32px;
    margin: 0 auto 16px;
    box-shadow: 0 18px 40px -16px rgba(99, 102, 241, .95), inset 0 1px 0 rgba(255, 255, 255, .35);
}
/* ---------- 7. 按钮 ---------- */
.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border: none;
    border-radius: var(--r-md);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    overflow: hidden;
    background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-600) 45%, #7C3AED 100%);
    box-shadow: var(--sh-brand), inset 0 1px 0 rgba(255, 255, 255, .25);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease);
    -webkit-user-select: none;
    user-select: none;
}
.btn-primary::after {
    content: "";
    position: absolute;
    top: 0; left: -60%;
    width: 45%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent);
    transform: skewX(-18deg);
    transition: left .6s var(--ease);
}
.btn-primary:hover {
    transform: translateY(-1px);
    filter: saturate(1.08);
    box-shadow: 0 18px 38px -14px rgba(99, 102, 241, .95), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-primary:hover::after { left: 120%; }
.btn-primary:active { transform: translateY(0) scale(.985); }
.btn-primary:disabled,
.btn-primary[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.btn-lg { padding: 13px 26px; font-size: 15px; }
.btn-block { width: 100%; }

.btn-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 15px;
    border-radius: var(--r-md);
    border: 1px solid rgba(99, 102, 241, .22);
    background: rgba(99, 102, 241, .09);
    color: var(--brand-700);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s var(--ease);
}
.btn-soft:hover { background: rgba(99, 102, 241, .16); border-color: rgba(99, 102, 241, .35); transform: translateY(-1px); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 15px;
    border-radius: var(--r-md);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .7);
    color: var(--text-2);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s var(--ease);
}
.btn-ghost:hover { background: #fff; border-color: var(--line-strong); color: var(--text-1); }
.btn-ghost:disabled, .btn-ghost[disabled] { opacity: .5; cursor: not-allowed; }

.sidebar .btn-ghost {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .66);
}
.sidebar .btn-ghost:hover { background: rgba(244, 63, 94, .16); border-color: rgba(244, 63, 94, .4); color: #fff; }

.btn-ghost--danger { color: var(--rose-500); border-color: rgba(244, 63, 94, .22); background: rgba(244, 63, 94, .07); }
.btn-ghost--danger:hover { background: rgba(244, 63, 94, .14); border-color: rgba(244, 63, 94, .38); color: #E11D48; }

.btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: var(--r-sm); }

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 36px; height: 36px;
    min-width: 36px;
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .75);
    color: var(--text-2);
    font-size: 14px;
    cursor: pointer;
    transition: all .2s var(--ease);
}
.icon-btn:hover { background: #fff; color: var(--brand-600); border-color: rgba(99, 102, 241, .3); }
.sidebar .icon-btn { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .7); }

/* ---------- 8. 表单控件 ---------- */
.field {
    width: 100%;
    padding: 11px 13px;
    font-family: inherit;
    font-size: 13.5px;
    color: var(--text-1);
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.field::-webkit-input-placeholder { color: #A9B2C3; }
.field::placeholder { color: #A9B2C3; }
.field:hover { border-color: #C7CEDD; }
.field:focus { border-color: var(--brand-500); box-shadow: 0 0 0 3.5px rgba(99, 102, 241, .16); }

select.field {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 15px;
    padding-right: 36px;
    font-weight: 600;
    cursor: pointer;
}

.field--auto { width: auto; min-width: 150px; flex: 1 1 160px; }
.field--area { resize: vertical; line-height: 1.75; }
.field--source { min-height: 146px; font-size: 14px; }
.field--title {
    font-size: 16px; font-weight: 700; line-height: 1.5;
    padding: 12px 36px 12px 14px; letter-spacing: 0;
}
.field--code {
    text-align: center; letter-spacing: .28em;
    font-weight: 700; font-size: 16px; padding: 13px;
}

.field-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 7px;
}
.field-block { margin-bottom: 16px; }
.req { color: var(--rose-500); }

/* 开关 */
.switch { display: flex; align-items: center; gap: 11px; cursor: pointer; -webkit-user-select: none; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track {
    position: relative;
    width: 42px; height: 24px;
    border-radius: 99px;
    background: #D3D9E6;
    transition: background .24s var(--ease);
    flex-shrink: 0;
}
.switch__thumb {
    position: absolute;
    top: 3px; left: 3px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(6, 10, 20, .3);
    transition: transform .24s var(--ease);
}
.switch input:checked + .switch__track { background: linear-gradient(135deg, var(--brand-500), #7C3AED); }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { box-shadow: 0 0 0 3.5px rgba(99, 102, 241, .2); }
.switch__label { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
/* ---------- 9. 面板 / 卡片 ---------- */
.panel {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-1);
    overflow: hidden;
    margin-bottom: 18px;
}

.panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 15px 18px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #FCFCFE, #F8F9FD);
}
.panel__head--result {
    background: linear-gradient(120deg, rgba(16, 185, 129, .09), rgba(99, 102, 241, .07));
    border-bottom-color: rgba(16, 185, 129, .22);
}
.panel__head-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.panel__title { font-size: 16px; font-weight: 700; color: var(--text-1); letter-spacing: -.01em; }
.panel__hint { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.panel__body { padding: 18px; }
.panel__foot { border-top: 1px solid var(--line); background: #FBFCFE; }
.panel--center { padding: 30px 20px; text-align: center; }
.panel--result { margin-top: 22px; }

.stack { display: flex; flex-direction: column; gap: 16px; }
.row-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.row-wrap--between { justify-content: space-between; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.ml-2 { margin-left: 8px; }
.mr-1 { margin-right: 4px; }
.mr-2 { margin-right: 8px; }

.subpanel {
    padding: 14px;
    border-radius: var(--r-lg);
    border: 1px dashed rgba(99, 102, 241, .28);
    background: linear-gradient(180deg, rgba(99, 102, 241, .045), rgba(99, 102, 241, .015));
}

.tip { font-size: 12px; color: var(--text-3); line-height: 1.6; }

/* ---------- 10. 小元件 ---------- */
.tile {
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    border-radius: 13px;
    font-size: 17px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 8px 20px -10px rgba(6, 10, 20, .55), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.tile--sm { width: 34px; height: 34px; border-radius: 11px; font-size: 14px; }
.tile--violet { background: linear-gradient(135deg, var(--brand-500), #7C3AED); }
.tile--emerald { background: linear-gradient(135deg, #34D399, #059669); }
.tile--blue { background: linear-gradient(135deg, #60A5FA, #2563EB); }
.tile--rose { background: linear-gradient(135deg, #FB7185, #E11D48); }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .01em;
    white-space: nowrap;
}
.pill--muted { background: var(--surface-3); color: var(--text-2); }
.pill--success { background: rgba(16, 185, 129, .12); color: #047857; }
.pill--live { background: rgba(99, 102, 241, .12); color: var(--brand-700); }
.pill--warn { background: rgba(245, 158, 11, .14); color: #B45309; }
.pill--danger { background: rgba(244, 63, 94, .12); color: #BE123C; }
.pill--info { background: rgba(59, 130, 246, .12); color: #1D4ED8; }

.dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .22);
    display: inline-block;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-2);
    background: rgba(255, 255, 255, .75);
    border: 1px solid var(--line);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.chip i { color: var(--brand-500); font-size: 11px; }

/* ---------- 11. 顶部 Hero ---------- */
.hero { margin-bottom: 22px; }

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 13px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-700);
    background: rgba(99, 102, 241, .1);
    border: 1px solid rgba(99, 102, 241, .18);
    margin-bottom: 14px;
}

.hero__title {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -.025em;
    color: var(--text-1);
    margin-bottom: 10px;
}
.hero__title em {
    font-style: normal;
    background: linear-gradient(100deg, var(--brand-600), #7C3AED 45%, var(--accent-400));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero__sub { font-size: 14px; line-height: 1.7; color: var(--text-2); max-width: 620px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

@media (min-width: 768px) {
    .hero__title { font-size: 38px; }
}

/* ---------- 12. 功能卡片 ---------- */
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 18px; }
@media (min-width: 768px) {
    .feature-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
}

.feature-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    border-radius: var(--r-xl);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--sh-1);
    overflow: hidden;
    transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.feature-card__head { display: flex; align-items: center; justify-content: space-between; }
.feature-card__title { font-size: 16.5px; font-weight: 700; color: var(--text-1); }
.feature-card__desc { font-size: 13px; line-height: 1.65; color: var(--text-2); flex: 1; }

.feature-card--action { cursor: pointer; }
.feature-card--action::before {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, .06), transparent 55%);
    opacity: 0;
    transition: opacity .3s var(--ease);
}
.feature-card--action:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: rgba(99, 102, 241, .3); }
.feature-card--action:hover::before { opacity: 1; }

.feature-card--soon { opacity: .68; }
.feature-card--soon::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(15, 23, 42, .018) 10px, rgba(15, 23, 42, .018) 20px);
    pointer-events: none;
}
/* ---------- 13. 结果区 ---------- */
.title-block { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px dashed var(--line-strong); }
.title-block__row { display: flex; align-items: flex-end; gap: 12px; }
.title-block__main { flex: 1; min-width: 0; }
.title-block__copy { flex-shrink: 0; margin-bottom: 1px; }
.orig-title {
    font-size: 12.5px;
    color: var(--text-3);
    line-height: 1.6;
    padding: 9px 12px;
    border-radius: var(--r-sm);
    background: var(--surface-2);
    border-left: 3px solid rgba(99, 102, 241, .35);
    margin-bottom: 12px;
    word-break: break-word;
}

.prose-result { font-size: 15.5px; line-height: 1.95; color: #1F2937; letter-spacing: 0; }
.prose-result p { margin: 0 0 15px; }
.prose-result h1, .prose-result h2, .prose-result h3 {
    margin: 26px 0 12px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--text-1);
    letter-spacing: -.015em;
}
.prose-result h2 { font-size: 18px; padding-left: 12px; border-left: 4px solid var(--brand-500); border-radius: 2px; }
.prose-result h3 { font-size: 16px; }
.prose-result img {
    max-width: 100%;
    height: auto;
    border-radius: var(--r-md);
    margin: 16px 0;
    box-shadow: var(--sh-1);
    display: block;
}
.prose-result blockquote {
    margin: 16px 0;
    padding: 12px 16px;
    border-left: 3px solid var(--brand-500);
    background: var(--surface-2);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    color: var(--text-2);
}
.prose-result a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 3px; }
.prose-result ul, .prose-result ol { margin: 0 0 15px; padding-left: 22px; }
.prose-result li { margin-bottom: 6px; }

.link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 18px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-2);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all .22s var(--ease);
}
.link-row:hover { background: rgba(99, 102, 241, .05); color: var(--brand-700); }
.link-row--entry {
    padding: 14px 18px;
    border-radius: var(--r-lg);
    background: rgba(255, 255, 255, .7);
    border: 1px solid var(--line);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.link-row--entry:hover { transform: translateX(3px); border-color: rgba(99, 102, 241, .3); }

.original {
    max-height: 260px;
    overflow-y: auto;
    padding: 4px 18px 18px;
    font-size: 13px;
    line-height: 1.85;
    color: var(--text-2);
    word-break: break-word;
}

.cta-row { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 640px) {
    .cta-row { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- 14. 个人中心 ---------- */
.page-head { text-align: center; margin-bottom: 22px; }
.page-head__title { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.page-head__sub { font-size: 13px; color: var(--text-3); margin-top: 5px; }

.profile-name { font-size: 19px; font-weight: 700; letter-spacing: -.015em; }
.profile-handle { font-size: 13px; color: var(--text-3); margin-top: 3px; }

.action-grid { display: grid; grid-template-columns: 1fr 1fr; }
.action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 22px 14px;
    cursor: pointer;
    text-align: center;
    transition: background .22s var(--ease);
    border-right: 1px solid var(--line);
}
.action:last-child { border-right: none; }
.action:hover { background: rgba(99, 102, 241, .05); }
.action--danger:hover { background: rgba(244, 63, 94, .05); }
.action__label { font-size: 13.5px; font-weight: 600; color: var(--text-1); }
.action__sub { font-size: 11.5px; color: var(--text-3); line-height: 1.5; }

/* ---------- 15. 生成记录 ---------- */
.page--records { height: 100%; }
.page--records:not(.hidden) { display: flex; flex-direction: column; }

.records-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-shrink: 0;
    padding: 12px 16px;
    background: rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 5;
}
.records-bar__title { font-size: 15px; font-weight: 700; }

.records-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    -webkit-overflow-scrolling: touch;
}

.rec-card {
    position: relative;
    padding: 14px 15px;
    border-radius: var(--r-lg);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 1px 2px rgba(6, 10, 20, .03);
    cursor: pointer;
    transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.rec-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: rgba(99, 102, 241, .28); }
.rec-card:active { transform: translateY(0); }
.rec-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rec-card__main { flex: 1; min-width: 0; }
.rec-card__meta { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; flex-wrap: wrap; }
.rec-card__type { font-size: 11.5px; font-weight: 700; color: var(--text-3); display: inline-flex; align-items: center; gap: 5px; }
.rec-card__sep { color: #CBD5E1; font-size: 11px; }
.rec-card__model { font-size: 11.5px; color: var(--text-3); }
.rec-card__title {
    font-size: 14px; font-weight: 600; color: var(--text-1); line-height: 1.5;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rec-card__time { font-size: 11.5px; color: var(--text-3); margin-top: 5px; }
.rec-card__side { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.rec-card__chev { color: #CBD5E1; font-size: 12px; transition: transform .22s var(--ease); }
.rec-card:hover .rec-card__chev { transform: translateX(3px); color: var(--brand-500); }

.empty { text-align: center; color: var(--text-3); padding: 90px 20px; }
.empty i { font-size: 42px; opacity: .28; display: block; margin-bottom: 14px; }
.empty p { font-size: 14px; font-weight: 600; color: var(--text-2); }
.empty span { font-size: 12px; }

.records-more { text-align: center; padding: 14px; font-size: 12.5px; color: var(--text-3); }
.records-trigger { text-align: center; padding: 12px; font-size: 13px; color: var(--brand-600); cursor: pointer; font-weight: 600; }
.records-trigger:hover { color: var(--brand-700); }
/* ---------- 16. 弹窗 ---------- */
.modal {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 60;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(6, 10, 20, .5);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.modal:not(.hidden) { display: flex; animation: fadeIn .2s var(--ease); }

.modal__card {
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--r-2xl);
    background: #fff;
    box-shadow: var(--sh-3);
    border: 1px solid rgba(255, 255, 255, .6);
    animation: popIn .3s var(--ease);
}
.modal__card--sm { max-width: 420px; }

.modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 17px 20px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #FCFCFE, #F8F9FD);
}
.modal__title { font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; }
.modal__body { padding: 20px; }
.modal__body .field + .msg { margin-top: 10px; }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 0 20px 20px; }

.msg { font-size: 13px; line-height: 1.6; margin-top: 10px; }
.msg--error { color: var(--rose-500); }
.msg--ok { color: var(--emerald-500); }

@media (max-width: 640px) {
    .modal { align-items: flex-end; padding: 0; }
    .modal__card {
        max-width: none;
        border-radius: var(--r-2xl) var(--r-2xl) 0 0;
        max-height: 92vh;
        animation: sheetUp .32s var(--ease);
        padding-bottom: env(safe-area-inset-bottom);
    }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }

/* ---------- 17. 加载遮罩 ---------- */
.loading {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 70;
    align-items: center;
    justify-content: center;
    background: rgba(248, 249, 253, .82);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.loading:not(.hidden) { display: flex; }

.loading__box { text-align: center; }
.loading__ring {
    width: 46px; height: 46px;
    margin: 0 auto 14px;
    border-radius: 50%;
    border: 3px solid rgba(99, 102, 241, .18);
    border-top-color: var(--brand-500);
    border-right-color: #7C3AED;
    animation: spin .8s linear infinite;
}
.loading__text { font-size: 13.5px; font-weight: 600; color: var(--text-2); }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 18. 移动端导航 ---------- */
.mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, .8);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}
.mobile-bar__brand { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 700; }
.mobile-bar__actions { display: flex; align-items: center; gap: 8px; }

.mobile-nav {
    position: fixed;
    left: 12px; right: 12px; bottom: 12px;
    z-index: 30;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 7px;
    border-radius: 22px;
    background: rgba(11, 16, 32, .9);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 44px -16px rgba(6, 10, 20, .7);
    border: 1px solid rgba(255, 255, 255, .1);
    padding-bottom: max(7px, env(safe-area-inset-bottom));
}

.mobile-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 9px 4px;
    border: none;
    border-radius: 16px;
    background: transparent;
    color: rgba(255, 255, 255, .5);
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all .24s var(--ease);
}
.mobile-nav__item i { font-size: 16px; }
.mobile-nav__item.is-active {
    color: #fff;
    background: linear-gradient(135deg, rgba(99, 102, 241, .95), rgba(124, 58, 237, .9));
    box-shadow: 0 8px 20px -10px rgba(99, 102, 241, .95);
}

/* ---------- 19. 响应式收尾 ---------- */
@media (max-width: 768px) {
    textarea, select, button, input { font-size: 16px; }
    .field, .field--title, .field--area { font-size: 16px; }
    .field--area { line-height: 1.75; }

    .wrap { padding: 14px 14px 108px; }
    .hero__title { font-size: 25px; }
    .hero__sub { font-size: 13.5px; }
    .panel__body { padding: 15px; }
    .prose-result { font-size: 16px; line-height: 1.9; }

    .records-list { padding: 14px 14px 104px; }
    .page--records .records-more { padding-bottom: 96px; }
    .title-block__row { flex-direction: column; align-items: stretch; }
    .title-block__copy { align-self: flex-start; }
}

@media (min-width: 769px) {
    .mobile-nav { display: none; }
}

/* 老内核兜底 */
@supports not (inset: 0) {
    .fixed.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
}

/* iOS 底部安全区 */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    #merge-modal, #activate-modal, #loading-overlay {
        padding-bottom: max(0px, env(safe-area-inset-bottom));
    }
    .records-list { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
}
/* ---------- 20. 桌面端隐藏移动专属元素（双保险） ---------- */
@media (min-width: 769px) {
    .mobile-nav,
    .mobile-bar { display: none; }
}
/* ==========================================================================
   21. 生成进度
   解决"到底卡住没有"的等待焦虑。进度与耗时全部来自后端真实字段：
   status / created_at / started_at / finished_at
   ========================================================================== */
.progress { margin-top: 18px; border-color: rgba(99, 102, 241, .25); }

.gen-clock, .gen-percent { font-variant-numeric: tabular-nums; }
.gen-percent { font-weight: 700; color: var(--brand-600); }

/* ---- 进度轨道 ---- */
.progress-bar {
    position: relative;
    height: 8px;
    border-radius: 99px;
    background: var(--surface-3);
    overflow: hidden;
}
.progress-bar__fill {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 0;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--brand-500), #7C3AED, var(--accent-400));
    box-shadow: 0 0 16px -2px rgba(99, 102, 241, .8);
    transition: width .6s var(--ease);
}

/* 排队中：还不知道要多久，用流动条纹表示"在动"，不谎报百分比 */
.progress-bar.is-waiting .progress-bar__fill {
    width: 100%;
    background: repeating-linear-gradient(
        -45deg,
        rgba(99, 102, 241, .35) 0 10px,
        rgba(99, 102, 241, .12) 10px 20px
    );
    background-size: 28px 28px;
    animation: stripeMove 1s linear infinite;
    box-shadow: none;
}
@keyframes stripeMove { to { background-position: 28px 0; } }

.progress-bar.is-done .progress-bar__fill {
    background: linear-gradient(90deg, #10B981, #34D399);
    box-shadow: 0 0 16px -2px rgba(16, 185, 129, .8);
}
.progress-bar.is-error .progress-bar__fill {
    background: linear-gradient(90deg, #F43F5E, #FB7185);
    box-shadow: none;
}

/* ---- 步骤条 ---- */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 18px;
    padding: 0;
    list-style: none;
}

.step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    text-align: center;
}
.step::after {
    content: "";
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--surface-3);
    z-index: 0;
}
.step:last-child::after { display: none; }
.step.is-done::after { background: rgba(16, 185, 129, .5); }
.step.is-active::after { background: linear-gradient(90deg, var(--brand-500), var(--surface-3)); }

.step__dot {
    position: relative;
    z-index: 1;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
    background: var(--surface-3);
    color: var(--text-3);
    border: 2px solid #fff;
    transition: all .3s var(--ease);
}
.step__text { font-size: 11.5px; font-weight: 600; color: var(--text-3); transition: color .3s var(--ease); }

.step.is-done .step__dot { background: linear-gradient(135deg, #34D399, #059669); color: #fff; }
.step.is-done .step__text { color: #047857; }

.step.is-active .step__dot {
    background: linear-gradient(135deg, var(--brand-500), #7C3AED);
    color: #fff;
    animation: stepPulse 1.8s var(--ease) infinite;
}
.step.is-active .step__text { color: var(--brand-700); font-weight: 700; }

.step.is-error .step__dot { background: linear-gradient(135deg, #FB7185, #E11D48); color: #fff; }
.step.is-error .step__text { color: #BE123C; }

@keyframes stepPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(99, 102, 241, .18); }
    50% { box-shadow: 0 0 0 8px rgba(99, 102, 241, .06); }
}

@media (max-width: 480px) {
    .step__text { font-size: 10.5px; }
    .step__dot { width: 28px; height: 28px; font-size: 11px; }
    .step::after { top: 13px; }
}

/* 记录卡片耗时行 */
.rec-card__dur { font-size: 11.5px; color: var(--text-3); margin-top: 5px; }
.rec-card__dur i { font-size: 10px; margin-right: 3px; }

@media (prefers-reduced-motion: reduce) {
    .progress-bar.is-waiting .progress-bar__fill { animation: none; }
    .step.is-active .step__dot { animation: none; }
}

/* 22. 兜底工具类 */
.btn-self-start { align-self: flex-start; }
@media (min-width: 769px) {
    .hero { margin-bottom: 18px; }
}
/* ---------- 列表内进度（每篇文章自己的进度条） ---------- */
.rec-prog { margin-top: 10px; }
.rec-prog__row { display: flex; align-items: center; gap: 10px; }
.rec-prog__track {
    position: relative;
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: var(--surface-3);
    overflow: hidden;
}
.rec-prog__fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-500), var(--accent-400));
    transition: width .6s var(--ease);
}
.rec-prog.is-waiting .rec-prog__fill {
    width: 40%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, .8), transparent);
    animation: recProgSlide 1.3s linear infinite;
}
@keyframes recProgSlide {
    from { transform: translateX(-110%); }
    to   { transform: translateX(280%); }
}
.rec-prog__pct {
    flex-shrink: 0;
    min-width: 42px;
    text-align: right;
    font-size: 11.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--brand-600);
}
.rec-prog.is-waiting .rec-prog__pct { color: var(--text-2); font-weight: 600; }
.rec-prog__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 6px;
    font-size: 11.5px;
    color: var(--text-3);
}

/* ---------- 轻提示 toast ---------- */
.toast-wrap {
    position: fixed;
    left: 50%;
    bottom: 96px;
    transform: translateX(-50%);
    z-index: 400;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
    width: max-content;
    max-width: min(92vw, 440px);
}
.toast {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 18px;
    border-radius: var(--r-md);
    background: rgba(15, 23, 42, .94);
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.5;
    box-shadow: var(--sh-2);
    animation: toastIn .3s var(--ease);
}
.toast--success i { color: #34D399; }
.toast--danger  i { color: #F87171; }
.toast.is-out { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn  { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) scale(.97); } }
@media (min-width: 1024px) { .toast-wrap { bottom: 32px; } }
/* ---------- 记录列表底部留白：避开底部悬浮导航 + iOS 安全区 ----------
   注意：必须放在上面 @supports (padding-bottom: env(...)) 之后，
   否则 .records-list { padding-bottom: max(16px, env(...)) } 会按源码顺序把它覆盖掉，
   导致iPhone上最后一条记录被底部导航挡住。 */
@media (max-width: 768px) {
    .records-list { padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
    .page--records .records-more { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}
/* ==================== 文章库（爆文大师） ==================== */
/* 频道横滑标签 */
.lib-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 14px 10px;
    flex-shrink: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    background: rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.lib-tabs::-webkit-scrollbar { display: none; }
.lib-tab {
    flex: 0 0 auto;
    padding: 7px 15px;
    border-radius: 99px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text-2);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all .2s var(--ease);
}
.lib-tab:hover { border-color: rgba(99, 102, 241, .45); color: var(--text-1); }
.lib-tab.is-active {
    background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 16px -8px rgba(79, 70, 229, .8);
}

/* 榜单卡片 */
.lib-card {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 14px;
    border-radius: var(--r-lg);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 1px 2px rgba(6, 10, 20, .03);
    cursor: pointer;
    transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.lib-card:hover { transform: translateY(-1px); box-shadow: var(--sh-2); border-color: rgba(99, 102, 241, .35); }
.lib-card__rank {
    flex: 0 0 auto;
    width: 24px; height: 24px;
    margin-top: 1px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px;
    font-size: 12px; font-weight: 800;
    color: var(--text-3);
    background: rgba(15, 23, 42, .06);
    font-variant-numeric: tabular-nums;
}
.lib-card__rank.is-top1 { background: linear-gradient(135deg, #F59E0B, #EF4444); color: #fff; }
.lib-card__rank.is-top2 { background: linear-gradient(135deg, #FBBF24, #F59E0B); color: #fff; }
.lib-card__rank.is-top3 { background: linear-gradient(135deg, #FCD34D, #F59E0B); color: #7C2D12; }
.lib-card__main { flex: 1; min-width: 0; }
.lib-card__title {
    font-size: 14.5px;
    font-weight: 650;
    line-height: 1.5;
    color: var(--text-1);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}
.lib-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 7px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
}
.lib-card__meta i { margin-right: 3px; opacity: .75; }
.lib-card__hot { color: #E11D48; }
.lib-card__chev { flex: 0 0 auto; align-self: center; color: var(--text-3); font-size: 12px; }
.lib-card--nodata { opacity: .6; }

/* 榜单顶部状态条 */
.lib-note {
    display: flex; align-items: center; gap: 7px;
    padding: 9px 12px;
    border-radius: var(--r-md);
    background: rgba(99, 102, 241, .07);
    border: 1px solid rgba(99, 102, 241, .16);
    color: var(--text-2);
    font-size: 12.5px;
    line-height: 1.5;
}

/* 弹窗里的文章卡片 */
.lib-pick {
    padding: 13px 14px;
    margin-bottom: 16px;
    border-radius: var(--r-lg);
    background: linear-gradient(135deg, rgba(52, 211, 153, .1), rgba(99, 102, 241, .08));
    border: 1px solid rgba(52, 211, 153, .24);
}
.lib-pick__title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--text-1);
    word-break: break-word;
}
.lib-pick__meta {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin-top: 8px;
    font-size: 12px; font-weight: 600; color: var(--text-3);
    font-variant-numeric: tabular-nums;
}
