/* ============================================================
   ReadFlow · 清新风样式
   设计基调：薄荷绿 + 暖白，大留白、圆润、柔和投影
   ============================================================ */

:root {
    /* 背景 */
    --bg: #f5faf8;
    --bg-grad-1: #eef8f4;
    --bg-grad-2: #f2f7fd;

    /* 表面 */
    --surface: #ffffff;
    --surface-soft: #f8fcfb;

    /* 文字 */
    --ink: #172a26;
    --ink-2: #5a6f6a;
    --ink-3: #96aaa5;

    /* 线条 */
    --line: #e6f0ec;

    /* 主色：薄荷绿 */
    --brand: #2aa889;
    --brand-deep: #1f8a70;
    --brand-light: #7ed9c2;
    --brand-soft: #e6f7f1;

    /* 点缀 */
    --amber: #f0a05a;
    --amber-soft: #fdf1e3;
    --sky: #5aa9dd;
    --sky-soft: #e9f3fb;

    /* 圆角与投影 */
    --r-lg: 24px;
    --r-md: 18px;
    --r-sm: 12px;
    --shadow-sm: 0 2px 10px -4px rgba(26, 80, 68, .12);
    --shadow: 0 14px 34px -18px rgba(26, 80, 68, .28);
    --shadow-hover: 0 20px 44px -18px rgba(26, 80, 68, .34);

    --font: "PingFang SC", -apple-system, BlinkMacSystemFont, "Microsoft YaHei",
            "Hiragino Sans GB", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
    font-family: var(--font);
    color: var(--ink);
    background:
        radial-gradient(1200px 600px at 10% -10%, var(--bg-grad-1) 0%, transparent 60%),
        radial-gradient(900px 500px at 100% 0%, var(--bg-grad-2) 0%, transparent 55%),
        var(--bg);
    background-attachment: fixed;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ============================ 布局 ============================ */
.app { display: flex; min-height: 100vh; }

/* ---------- 侧边栏 ---------- */
.sidebar {
    width: 236px;
    flex: 0 0 236px;
    padding: 26px 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 26px;
    position: sticky;
    top: 0;
    height: 100vh;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(14px);
    border-right: 1px solid rgba(214, 234, 227, .8);
}

.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px; }
.brand-mark {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 13px;
    background: linear-gradient(145deg, var(--brand-light), var(--brand));
    color: #fff;
    font-size: 19px; font-weight: 700;
    box-shadow: 0 8px 18px -8px rgba(42, 168, 137, .8);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 16px; letter-spacing: .3px; }
.brand-text span { font-size: 11px; color: var(--ink-3); letter-spacing: 2px; }
.brand-center { justify-content: center; padding: 0; }

.nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 13px;
    border-radius: 14px;
    color: var(--ink-2);
    text-decoration: none;
    font-size: 14px;
    transition: background .18s, color .18s, transform .18s;
}
.nav-item svg { width: 19px; height: 19px; flex: 0 0 19px; }
.nav-item:hover { background: var(--brand-soft); color: var(--brand-deep); }
.nav-item.active {
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    color: #fff;
    font-weight: 600;
    box-shadow: 0 10px 22px -12px rgba(42, 168, 137, .95);
}

.side-foot { display: flex; flex-direction: column; gap: 10px; }
.sync-chip {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: var(--ink-2);
    padding: 9px 12px;
    border-radius: 12px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
}
.sync-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.sync-chip .dot.ok { background: var(--brand); box-shadow: 0 0 0 3px rgba(42, 168, 137, .18); }
.sync-chip .dot.fail { background: #e2654d; box-shadow: 0 0 0 3px rgba(226, 101, 77, .16); }

.ghost-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 14px;
    font-size: 13px;
    color: var(--ink-2);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .18s, color .18s, transform .18s;
}
.ghost-btn svg { width: 15px; height: 15px; }
.ghost-btn:hover { border-color: var(--brand-light); color: var(--brand-deep); }
.ghost-btn:active { transform: scale(.97); }

/* ---------- 主区 ---------- */
.main { flex: 1; min-width: 0; padding: 26px 38px 64px; max-width: 1180px; }

.topbar {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 16px; margin-bottom: 22px;
}
.topbar h1 { font-size: 25px; font-weight: 700; letter-spacing: -.3px; }
.sub { font-size: 13px; color: var(--ink-2); margin-top: 3px; }

.page { display: none; }
.page.active { display: block; animation: rise .34s cubic-bezier(.22, .8, .3, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ============================ 总览 Hero ============================ */
.hero {
    position: relative;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px;
    padding: 30px 34px;
    margin-bottom: 18px;
    border-radius: var(--r-lg);
    background:
        radial-gradient(600px 220px at 88% 10%, rgba(126, 217, 194, .38) 0%, transparent 70%),
        linear-gradient(135deg, #f2fbf7 0%, #eef7fd 100%);
    border: 1px solid rgba(206, 234, 226, .9);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute; right: -60px; bottom: -90px;
    width: 240px; height: 240px; border-radius: 50%;
    background: radial-gradient(circle, rgba(42, 168, 137, .12), transparent 65%);
}
.hero-copy { position: relative; z-index: 1; }
.pill {
    display: inline-block;
    padding: 3px 11px;
    font-size: 11px; letter-spacing: 1px;
    color: var(--brand-deep);
    background: rgba(255, 255, 255, .8);
    border: 1px solid rgba(126, 217, 194, .7);
    border-radius: 999px;
}
.hero h2 {
    font-size: 22px; font-weight: 700;
    margin: 10px 0 18px;
    letter-spacing: -.2px;
}
.hero-stats { display: flex; gap: 34px; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat b { font-size: 26px; font-weight: 700; letter-spacing: -.5px; line-height: 1.1; }
.hero-stat span { font-size: 12px; color: var(--ink-2); }

.hero-ring { position: relative; width: 132px; height: 132px; flex: 0 0 132px; z-index: 1; }
.hero-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { stroke: rgba(42, 168, 137, .14); stroke-width: 10; }
.ring-fg {
    stroke: url(#none);
    stroke: var(--brand);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 326.7;
    stroke-dashoffset: 326.7;
    transition: stroke-dashoffset .9s cubic-bezier(.22, .8, .3, 1);
    filter: drop-shadow(0 4px 8px rgba(42, 168, 137, .35));
}
.ring-label {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ring-label b { font-size: 22px; letter-spacing: -.5px; }
.ring-label span { font-size: 10px; color: var(--ink-3); letter-spacing: .5px; }

/* ============================ 统计卡片 ============================ */
.stat-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}
.stat-row-3 { grid-template-columns: repeat(3, 1fr); }

.stat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 16px 16px 14px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s;
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-k { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 6px; }
.stat-v { font-size: 23px; font-weight: 700; letter-spacing: -.6px; }
.stat-u { font-size: 11px; color: var(--ink-3); margin-left: 3px; }

/* ============================ 面板 / 图表 ============================ */
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 20px 22px 14px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 18px;
}
.panel-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 12px; margin-bottom: 6px;
}
.panel-head h3 { font-size: 15px; font-weight: 600; }
.panel-hint { font-size: 12px; color: var(--ink-3); }

.chart { width: 100%; height: 260px; }
.chart-tall { height: 330px; }

/* ============================ 工具栏 ============================ */
.toolbar {
    display: flex; align-items: center; gap: 10px;
    flex-wrap: wrap; margin-bottom: 18px;
}
.search {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 13px;
    min-width: 240px;
    transition: border-color .18s, box-shadow .18s;
}
.search svg { width: 16px; height: 16px; color: var(--ink-3); flex: 0 0 16px; }
.search:focus-within { border-color: var(--brand-light); box-shadow: 0 0 0 4px rgba(42, 168, 137, .1); }
.search input {
    border: none; outline: none; background: transparent;
    font-size: 13px; color: var(--ink); width: 100%;
    font-family: inherit;
}

select {
    appearance: none;
    padding: 9px 32px 9px 13px;
    font-size: 13px; font-family: inherit;
    color: var(--ink);
    background: var(--surface) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2396aaa5' stroke-width='2.4' stroke-linecap='round'><path d='m6 9 6 6 6-6'/></svg>") no-repeat right 11px center;
    border: 1px solid var(--line);
    border-radius: 13px;
    cursor: pointer;
    transition: border-color .18s;
}
select:hover { border-color: var(--brand-light); }

.count-chip {
    margin-left: auto;
    font-size: 12px; color: var(--ink-2);
    padding: 7px 13px;
    background: var(--brand-soft);
    border-radius: 999px;
}
.count-chip b { color: var(--brand-deep); }

.btn {
    padding: 9px 16px;
    font-size: 13px; font-family: inherit;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 13px;
    cursor: pointer;
    transition: all .18s;
}
.btn:hover { border-color: var(--brand-light); color: var(--brand-deep); }
.btn.primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    color: #fff; border: none;
    box-shadow: 0 10px 22px -12px rgba(42, 168, 137, .9);
}
.btn.primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn.primary:disabled { opacity: .6; cursor: default; transform: none; }
.btn.block { width: 100%; padding: 12px; }

/* 分段控件 */
.seg {
    display: inline-flex;
    padding: 4px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
}
.seg-btn {
    border: none; background: transparent;
    padding: 7px 18px;
    font-size: 13px; font-family: inherit;
    color: var(--ink-2);
    border-radius: 10px;
    cursor: pointer;
    transition: all .18s;
}
.seg-btn.active {
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    color: #fff; font-weight: 600;
}

/* ============================ 书架 ============================ */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 20px 16px;
}
.book-card { cursor: pointer; }
.book-cover {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(160deg, #e9f6f1, #dceef9);
    box-shadow: 0 10px 22px -14px rgba(26, 80, 68, .5);
    transition: transform .22s cubic-bezier(.22, .8, .3, 1), box-shadow .22s;
}
.book-card:hover .book-cover { transform: translateY(-5px) rotate(-.6deg); box-shadow: var(--shadow-hover); }
.book-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-fallback {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    padding: 14px;
    text-align: center;
    font-size: 13px; line-height: 1.45; font-weight: 600;
    color: #3f7d6d;
    background: linear-gradient(160deg, #e9f6f1, #e4f0fa);
}
.badge {
    position: absolute; top: 8px; left: 8px;
    padding: 2px 8px;
    font-size: 10px; font-weight: 500;
    color: #fff;
    border-radius: 999px;
    background: rgba(23, 42, 38, .55);
    backdrop-filter: blur(6px);
}
.badge.done { background: rgba(42, 168, 137, .88); }
.badge.read { background: rgba(90, 169, 221, .85); }
.badge.zero { background: rgba(150, 170, 165, .8); }

.book-meta { padding: 10px 2px 0; }
.book-title {
    font-size: 13px; font-weight: 600; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; min-height: 35px;
}
.book-author { font-size: 11px; color: var(--ink-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.bar { flex: 1; height: 4px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--brand-light), var(--brand)); }
.book-pct { font-size: 10px; color: var(--ink-3); min-width: 30px; text-align: right; }

.empty { padding: 60px 0; text-align: center; color: var(--ink-3); font-size: 13px; }

/* ============================ 笔记 ============================ */
.note-list { display: flex; flex-direction: column; gap: 12px; }
.note {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 17px 20px 16px 22px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s;
}
.note::before {
    content: "";
    position: absolute; left: 0; top: 16px; bottom: 16px;
    width: 3px; border-radius: 3px;
    background: linear-gradient(180deg, var(--brand-light), var(--brand));
}
.note:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.note-head { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.note-book { font-size: 12px; font-weight: 600; color: var(--brand-deep); }
.tag {
    margin-left: auto;
    font-size: 10px; padding: 2px 9px;
    border-radius: 999px;
    background: var(--brand-soft); color: var(--brand-deep);
}
.tag.thought { background: var(--amber-soft); color: #b9743a; }
.tag.note { background: var(--sky-soft); color: #3f7fae; }
.note-text { font-size: 14px; line-height: 1.75; color: var(--ink); }
.note-mark {
    margin-top: 9px; padding-left: 12px;
    border-left: 2px solid var(--line);
    font-size: 12px; color: var(--ink-2);
}
.note-chapter { margin-top: 9px; font-size: 11px; color: var(--ink-3); }

/* ============================ 同步中心 ============================ */
.sync-hero {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px;
    padding: 26px 30px;
    margin-bottom: 18px;
    border-radius: var(--r-lg);
    background: linear-gradient(135deg, #f2fbf7, #eef7fd);
    border: 1px solid rgba(206, 234, 226, .9);
    box-shadow: var(--shadow-sm);
}
.sync-hero h2 { font-size: 20px; font-weight: 700; margin: 9px 0 3px; }

.status-pill {
    display: inline-block;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-deep);
}
.status-pill.success { background: var(--brand-soft); color: var(--brand-deep); }
.status-pill.failed { background: #fdeeea; color: #c9533a; }
.status-pill.partial { background: var(--amber-soft); color: #b9743a; }
.status-pill.running { background: var(--sky-soft); color: #3f7fae; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td {
    text-align: left;
    padding: 11px 10px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
.table th { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.table tbody tr:hover { background: var(--surface-soft); }
.table tbody tr:last-child td { border-bottom: none; }

/* ============================ 登录 ============================ */
.login {
    position: fixed; inset: 0; z-index: 90;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    background:
        radial-gradient(800px 500px at 20% 0%, #e6f7f1 0%, transparent 60%),
        radial-gradient(700px 500px at 90% 100%, #e9f3fb 0%, transparent 60%),
        var(--bg);
}
.login.hidden { display: none; }
.login-card {
    width: 100%; max-width: 372px;
    padding: 38px 34px 30px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: 0 30px 70px -30px rgba(26, 80, 68, .38);
    display: flex; flex-direction: column; gap: 6px;
}
.login-sub { text-align: center; font-size: 13px; color: var(--ink-2); margin: 14px 0 20px; }
.login-card form { display: flex; flex-direction: column; gap: 14px; }
.login-card label { display: flex; flex-direction: column; gap: 6px; }
.login-card label span { font-size: 12px; color: var(--ink-2); }
.login-card input {
    padding: 11px 14px;
    font-size: 14px; font-family: inherit;
    color: var(--ink);
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: none;
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.login-card input:focus {
    background: var(--surface);
    border-color: var(--brand-light);
    box-shadow: 0 0 0 4px rgba(42, 168, 137, .12);
}
.login-err { min-height: 18px; font-size: 12px; color: #c9533a; text-align: center; }

/* ============================ Toast ============================ */
.toast {
    position: fixed; left: 50%; bottom: 34px;
    transform: translate(-50%, 20px);
    padding: 10px 20px;
    font-size: 13px;
    color: #fff;
    background: rgba(23, 42, 38, .9);
    border-radius: 999px;
    opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s;
    z-index: 120;
    backdrop-filter: blur(8px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================ 响应式 ============================ */
@media (max-width: 1080px) {
    .stat-row { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
    .sidebar {
        position: fixed; z-index: 40;
        width: 68px; flex-basis: 68px;
        padding: 18px 10px;
        align-items: center;
    }
    .brand-text, .nav-item span, .sync-chip span:last-child, .side-foot .ghost-btn { display: none; }
    .nav-item { justify-content: center; padding: 12px; }
    .sync-chip { justify-content: center; padding: 10px; }
    /* 侧边栏已 fixed 脱离文档流，改用内边距占位，避免 margin 导致横向溢出 */
    .main { margin-left: 0; padding: 20px 16px 60px 84px; max-width: none; }
    .hero { flex-direction: column; align-items: flex-start; padding: 24px; }
    .hero-ring { align-self: center; }
    .hero-stats { gap: 24px; }
    .stat-row { grid-template-columns: repeat(2, 1fr); }
    .chart { height: 220px; }
    .book-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 16px 12px; }
    .topbar h1 { font-size: 21px; }
}

@media (max-width: 520px) {
    .hero-stats { flex-wrap: wrap; gap: 18px 28px; }
    .toolbar { gap: 8px; }
    .search { min-width: 100%; }
    .count-chip { margin-left: 0; }
}

/* ============================ 细节补充 ============================ */
.chart-heat { height: 212px; }

/* 宽屏下笔记双栏，减少右侧空白 */
@media (min-width: 1200px) {
    .note-list {
        display: block;
        columns: 2;
        column-gap: 14px;
    }
    .note-list .note {
        break-inside: avoid;
        margin-bottom: 14px;
        display: block;
    }
}

/* ============================================================
   小程序同款能力：每日划线 / 书架体检 / 阅读结构
   ============================================================ */

/* ---------- 每日划线 ---------- */
.hl-panel .hl-body {
    padding: 2px 0 0;
}

.hl-text {
    font-size: 17px;
    line-height: 1.85;
    color: var(--ink);
    letter-spacing: .01em;
    padding-left: 16px;
    border-left: 3px solid var(--brand-light);
}

.hl-from {
    margin-top: 12px;
    padding-left: 16px;
    font-size: 12px;
    color: var(--ink-3);
}

.hl-ops {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.panel-foot {
    margin: 14px 0 0;
    font-size: 11px;
    color: var(--ink-3);
    line-height: 1.7;
}

/* ---------- 书架体检 ---------- */
.ck-summary {
    background: linear-gradient(135deg, var(--bg-grad-1), var(--bg-grad-2));
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 22px 24px;
    margin-bottom: 18px;
}

.ck-rate {
    display: flex;
    gap: 28px;
}

.ck-rate-item b {
    display: block;
    font-size: 30px;
    font-weight: 800;
    color: var(--brand-deep);
    line-height: 1.15;
}

.ck-rate-item span {
    font-size: 12px;
    color: var(--ink-2);
}

.ck-sum-line {
    margin: 14px 0 0;
    font-size: 13px;
    color: var(--ink-2);
    line-height: 1.6;
}

#ck-seg .seg-btn b {
    margin-left: 4px;
    font-weight: 600;
    opacity: .7;
}

.ck-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ck-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 16px 18px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ck-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--brand-light);
}

.ck-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.5;
}

.ck-author {
    font-size: 11px;
    color: var(--ink-3);
    margin-top: 3px;
}

.ck-bar {
    height: 5px;
    background: var(--brand-soft);
    border-radius: 3px;
    margin: 12px 0 9px;
    overflow: hidden;
}

.ck-bar i {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--brand-light), var(--brand));
}

.ck-meta {
    font-size: 11px;
    color: var(--ink-3);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ck-meta .sep {
    color: #cfdcd8;
}

/* ---------- 阅读结构 / 作者集中度 ---------- */
.struct-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 2px;
}

.struct-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 7px;
}

.struct-name {
    flex: 1;
    font-size: 13px;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.struct-val {
    font-size: 11px;
    color: var(--ink-3);
    white-space: nowrap;
}

.struct-track {
    height: 8px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 5px;
    overflow: hidden;
}

.struct-fill {
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg, #9adfc9, var(--brand));
}

.struct-rank {
    width: 20px;
    font-size: 11px;
    color: #b6c7c1;
    flex: none;
}
