/* ===================================
   完本神站 - 主样式表 v3.0
   设计理念：经典阅读美学 | 纸张质感 | 极致细节
   配色：暖白 + 墨棕 + 古铜金
   仅适配桌面端 (1200px+)
   =================================== */

/* === CSS Variables === */
:root {
    /* 主色系 - 古书香调 */
    --ink: #2c2416;
    --ink-light: #5c4a32;
    --ink-muted: #8b7355;
    --paper: #fdfaf4;
    --paper-warm: #faf6ed;
    --paper-card: #fffef9;
    --accent: #b8860b;
    --accent-light: #d4a745;
    --accent-dim: #8b6914;
    --border: #e8e0d0;
    --border-light: #f0ebe0;
    --shadow-sm: 0 1px 3px rgba(44, 36, 22, 0.04);
    --shadow-md: 0 4px 16px rgba(44, 36, 22, 0.06);
    --shadow-lg: 0 8px 32px rgba(44, 36, 22, 0.08);
    --shadow-xl: 0 16px 48px rgba(44, 36, 22, 0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* 状态色 - 完结 */
    --status-full: #1a6b4a;
    --status-full-bg: #d4ede3;
    --status-full-border: #a3d9c1;
    --status-full-icon: #0f5238;
    /* 状态色 - 连载 */
    --status-serial: #c05b2b;
    --status-serial-bg: #fde8db;
    --status-serial-border: #f5c6a8;
    --status-serial-icon: #a3461a;
    --red-soft: #c0392b;
}

/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 15px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", -apple-system, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.7;
    min-width: 1200px;
    letter-spacing: 0.01em;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--paper-warm);
}
::-webkit-scrollbar-thumb {
    background: var(--ink-muted);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--ink-light);
}

a {
    color: var(--ink);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    vertical-align: middle;
    image-rendering: auto;
}

ul, ol {
    list-style: none;
}

table {
    border-collapse: collapse;
    width: 100%;
}

input, button {
    outline: none;
    font-family: inherit;
    letter-spacing: inherit;
}

::selection {
    background: rgba(184, 134, 11, 0.18);
    color: var(--ink);
}

.container {
    width: 1200px;
    margin: 0 auto;
}

/* === Animation Keyframes === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes floatIn {
    0% { opacity: 0; transform: translateY(10px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* === Header === */
.header {
    background: linear-gradient(135deg, #1a1410 0%, #2c2416 35%, #1f1913 65%, #2c2416 100%);
    padding: 24px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(ellipse at 18% 50%, rgba(184, 134, 11, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse at 82% 50%, rgba(212, 167, 69, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.015) 0%, transparent 70%);
    pointer-events: none;
}
/* 顶部细金线 */
.header::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(212, 167, 69, 0.3) 20%, 
        rgba(212, 167, 69, 0.5) 50%, 
        rgba(212, 167, 69, 0.3) 80%, 
        transparent 100%);
    pointer-events: none;
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.logo {
    flex-shrink: 0;
    animation: fadeIn 0.8s ease;
}
.logo a {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #f5e6c8;
    transition: all var(--transition);
    position: relative;
}
.logo a:hover {
    color: var(--accent-light);
    transform: translateY(-1px);
}
/* Logo 图标容器 */
.logo-icon {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.25) 0%, rgba(212, 167, 69, 0.15) 100%);
    border: 1.5px solid rgba(212, 167, 69, 0.35);
    border-radius: 12px;
    transition: all var(--transition);
    box-shadow: 0 0 20px rgba(184, 134, 11, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.logo a:hover .logo-icon {
    border-color: rgba(212, 167, 69, 0.6);
    box-shadow: 0 0 30px rgba(184, 134, 11, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: rotate(-3deg) scale(1.05);
}
.logo-icon img {
    height: 28px;
    width: auto;
    transition: transform var(--transition);
}
.logo-icon .logo-symbol {
    font-size: 22px;
    font-weight: 800;
    color: #f5e6c8;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
/* Logo 文字区域 */
.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.logo-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.logo-subtitle {
    font-size: 10.5px;
    font-weight: 400;
    color: rgba(245, 230, 200, 0.55);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.logo img {
    height: 44px;
    transition: transform var(--transition);
}
.logo a:hover img {
    transform: scale(1.05);
}

.search-box {
    flex: 1;
    margin: 0 50px;
    animation: fadeInUp 0.6s ease;
}
.search-box form {
    display: flex;
}
.search-input {
    flex: 1;
    padding: 11px 18px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-size: 14px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transition: all var(--transition);
    backdrop-filter: blur(4px);
}
.search-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}
.search-input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-light);
    box-shadow: 0 0 0 3px rgba(212, 167, 69, 0.12);
}
.search-btn {
    padding: 11px 28px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
    color: #fff;
    border: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.search-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.5s;
}
.search-btn:hover::after {
    transform: translateX(100%);
}
.search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.3);
}
.user-area {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.user-area a {
    color: rgba(255, 255, 255, 0.75);
    padding: 8px 16px;
    font-size: 13px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    line-height: 1.4;
}
.user-area a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}
.user-area .user-info {
    gap: 8px;
    padding: 5px 14px 5px 8px;
}
.user-area .user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
    transition: border-color var(--transition);
}
.user-area .user-avatar-default {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
}
.user-area .user-info:hover .user-avatar,
.user-area .user-info:hover .user-avatar-default {
    border-color: rgba(255, 255, 255, 0.5);
}

/* === Navigation === */
.nav {
    background: linear-gradient(180deg, #2c2416 0%, #242016 100%);
    border-bottom: 1px solid rgba(184, 134, 11, 0.18);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}
.nav-list {
    display: flex;
}
.nav-list > li {
    position: relative;
}
.nav-list > li > a {
    display: block;
    padding: 14px 24px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14.5px;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: all var(--transition);
    position: relative;
}
.nav-list > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-light);
    transition: width var(--transition);
}
.nav-list > li.active > a,
.nav-list > li > a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}
.nav-list > li.active > a::after,
.nav-list > li > a:hover::after {
    width: 60%;
}

/* ═══════════════════════════════════════════════
   求书导航按钮 — 鎏金暗纹 · Gilt Inscription
   设计理念：回归导航栏之内，用克制到极致的材质感取胜。
   不求惊艳一瞥，但求越看越耐看——真正的奢侈是懂得克制。
   ═══════════════════════════════════════════════ */

.nav-qiushu {
    margin-left: auto !important;
}

/* —— 按钮主体 —— */
.nav-qiushu > a {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 6px 16px !important;
    margin: 8px 4px 8px 0;
    height: auto;
    line-height: 1 !important;

    /* 底色：极微弱的暖调，几乎看不出来但潜意识感知得到 */
    background:
        linear-gradient(180deg,
            rgba(180,125,30,0.09) 0%,
            rgba(160,110,25,0.06) 50%,
            rgba(140,95,20,0.04) 100%
        ) !important;

    color: #e8d5aa !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: 0.06em;

    /* 极细金线描边，不怒自威 */
    border: 1px solid rgba(190,140,40,0.28) !important;
    border-radius: 4px !important;

    box-shadow:
        0 1px 3px rgba(0,0,0,0.18),
        0 0 0 1px rgba(0,0,0,0.06),
        inset 0 1px 0 rgba(255,255,255,0.03);

    transition:
        background 0.35s ease,
        border-color 0.35s ease,
        color 0.35s ease,
        box-shadow 0.35s ease;

    position: relative;
    overflow: hidden;
    isolation: isolate;
    cursor: pointer;
}

/* —— 左侧小金条：hover 时点亮 —— */
.nav-qiushu > a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: rgba(200,145,35,0.35);
    border-radius: 0 1px 1px 0;
    z-index: 1;
    pointer-events: none;
    transition: all 0.35s ease;
}

/* —— ::after 由全局导航样式定义，这里清掉不参与 —— */
.nav-qiushu > a::after {
    display: none !important;
}

/* —— 光痕扫描层 —— */
.qs-sweep {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: 3px;
}
.qs-sweep::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 25%;
    height: 200%;
    background: linear-gradient(105deg,
        transparent 0%,
        transparent 33%,
        rgba(255,255,245,0.04) 45%,
        rgba(255,255,240,0.10) 50%,
        rgba(255,255,245,0.04) 55%,
        transparent 67%,
        transparent 100%
    );
    transform: skewX(-12deg);
    animation: qsSweep 6s ease-in-out infinite;
}

/* —— 图标 —— */
.qs-icon {
    position: relative;
    z-index: 2;
    opacity: 0.82;
    transition: opacity 0.35s ease, filter 0.35s ease;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
    flex-shrink: 0;
    stroke-width: 1.8;
}

/* —— 文字 —— */
.nav-qiushu > a > span {
    position: relative;
    z-index: 2;
    transition: all 0.35s ease;
}

/* ═══════════════════ HOVER 态 ═══════════════════ */
.nav-qiushu > a:hover {
    background:
        linear-gradient(180deg,
            rgba(210,150,35,0.18) 0%,
            rgba(185,130,30,0.14) 50%,
            rgba(160,110,25,0.10) 100%
        ) !important;
    border-color: rgba(215,160,50,0.50) !important;
    color: #fff5dd !important;
    box-shadow:
        0 2px 8px rgba(0,0,0,0.25),
        0 0 20px rgba(190,130,30,0.15),
        inset 0 1px 0 rgba(255,255,255,0.05);
}
.nav-qiushu > a:hover::before {
    background: rgba(225,160,45,0.72);
    top: 4px;
    bottom: 4px;
}
.nav-qiushu > a:hover .qs-icon {
    opacity: 0.95;
    filter: drop-shadow(0 0 6px rgba(220,150,30,0.45));
}
.nav-qiushu > a:hover > span {
    text-shadow: 0 0 12px rgba(220,150,35,0.30);
}
/* hover 时光痕加速 */
.nav-qiushu > a:hover .qs-sweep::after {
    animation-duration: 3.5s;
}

/* ═══════════════════ ACTIVE 态 ═══════════════════ */
.nav-qiushu.active > a {
    background:
        linear-gradient(180deg,
            rgba(220,160,40,0.22) 0%,
            rgba(195,140,35,0.18) 50%,
            rgba(170,120,28,0.14) 100%
        ) !important;
    border-color: rgba(220,165,50,0.58) !important;
    color: #fff8e6 !important;
    box-shadow:
        0 1px 6px rgba(0,0,0,0.28),
        0 0 18px rgba(200,140,35,0.18),
        inset 0 1px 0 rgba(255,255,255,0.05);
}
.nav-qiushu.active > a::before {
    background: rgba(225,160,45,0.80);
    top: 3px;
    bottom: 3px;
}
.nav-qiushu.active > a .qs-icon {
    opacity: 0.95;
    filter: drop-shadow(0 0 7px rgba(220,150,30,0.42));
}
.nav-qiushu.active > a .qs-sweep::after {
    animation-duration: 4.5s;
}

/* ═══════════════════ 光痕扫描关键帧 ═══════════════════ */
@keyframes qsSweep {
    0%   { left: -100%; }
    22%  { left: -100%; }
    40%  { left: 120%; }
    40.01% { left: -100%; }
    100% { left: -100%; }
}

.sub-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    background: #fffef9;
    box-shadow: var(--shadow-xl);
    min-width: 150px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    border: 1px solid var(--border);
    border-top: 2px solid var(--accent);
    overflow: hidden;
    animation: floatIn 0.2s ease;
}
.nav-list > li:hover .sub-nav {
    display: block;
}
.sub-nav a {
    display: block;
    padding: 10px 22px;
    color: var(--ink);
    font-size: 13px;
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition);
    position: relative;
}
.sub-nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: var(--accent);
    transition: width var(--transition);
}
.sub-nav a:hover {
    color: var(--accent);
    background: var(--paper-warm);
    padding-left: 28px;
}
.sub-nav a:hover::before {
    width: 3px;
}
.sub-nav a:last-child {
    border-bottom: none;
}

/* === Banner === */
.banner-slider {
    position: relative;
    margin: 24px 0;
    background: linear-gradient(135deg, #fffef9 0%, #faf6ed 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}
.banner-item {
    display: none;
    padding: 36px 40px;
}
.banner-item.active {
    display: flex;
    gap: 36px;
    animation: fadeInUp 0.5s ease;
}
.banner-cover {
    width: 160px;
    height: 214px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition), box-shadow var(--transition);
}
.banner-cover:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}
.banner-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.banner-info h3 {
    font-size: 26px;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.banner-info h3 a {
    color: var(--ink);
    transition: color var(--transition);
}
.banner-info h3 a:hover {
    color: var(--accent);
}
.banner-info .author {
    color: var(--ink-muted);
    margin-bottom: 14px;
    font-size: 14px;
    display: flex;
    gap: 16px;
}
.banner-info .desc {
    color: var(--ink-light);
    line-height: 1.9;
    margin-bottom: 20px;
    max-height: 92px;
    overflow: hidden;
    font-size: 14px;
}
.btn-read {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 32px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.btn-read::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.12) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.5s;
}
.btn-read:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.35);
}
.btn-read:hover::after {
    transform: translateX(100%);
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}
.dot {
    width: 10px;
    height: 10px;
    background: var(--border);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition);
}
.dot:hover {
    background: var(--ink-muted);
}
.dot.active {
    background: var(--accent);
    width: 28px;
    border-radius: 5px;
}

/* === Section === */
.section {
    background: var(--paper-card);
    border-radius: var(--radius-md);
    padding: 24px;
    margin: 20px 0;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: box-shadow var(--transition);
}
.section:hover {
    box-shadow: var(--shadow-md);
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}
.section-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}
.section-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-header h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dim) 100%);
    border-radius: 2px;
}
.section-header .more {
    font-size: 13px;
    color: var(--ink-muted);
    transition: all var(--transition);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
}
.section-header .more:hover {
    color: var(--accent);
    background: rgba(184, 134, 11, 0.06);
}
.section-desc {
    font-size: 12px;
    color: var(--ink-muted);
    margin-left: 12px;
    font-weight: 400;
}

/* === Book Grid === */
.book-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.book-grid.small {
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}
.book-item {
    text-align: center;
    animation: floatIn 0.5s ease backwards;
}
.book-item:nth-child(1) { animation-delay: 0.05s; }
.book-item:nth-child(2) { animation-delay: 0.1s; }
.book-item:nth-child(3) { animation-delay: 0.15s; }
.book-item:nth-child(4) { animation-delay: 0.2s; }
.book-item:nth-child(5) { animation-delay: 0.25s; }
.book-item:nth-child(6) { animation-delay: 0.3s; }
.book-item:nth-child(7) { animation-delay: 0.35s; }
.book-item:nth-child(8) { animation-delay: 0.4s; }

.book-cover {
    display: block;
    width: 140px;
    height: 184px;
    margin: 0 auto 12px;
    overflow: hidden;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    background: var(--paper-warm);
    transition: all var(--transition);
    position: relative;
}
.book-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(44, 36, 22, 0.03) 100%);
    pointer-events: none;
}
.book-cover:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}
.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.book-cover:hover img {
    transform: scale(1.06);
}
.book-grid.small .book-cover {
    width: 100px;
    height: 132px;
}
.book-item h4 {
    font-size: 14px;
    margin-bottom: 4px;
    line-height: 1.4;
}
.book-item h4 a {
    color: var(--ink);
    transition: color var(--transition);
}
.book-item h4 a:hover {
    color: var(--accent);
}
.book-item .author {
    font-size: 12px;
    color: var(--ink-muted);
}
.book-item .desc {
    font-size: 12px;
    color: var(--ink-light);
    margin-top: 6px;
    line-height: 1.5;
    max-height: 3em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}


/* === Main Content Layout === */
.main-content {
    display: flex;
    gap: 24px;
}
.content-left {
    flex: 1;
    min-width: 0;
}
.content-right {
    width: 300px;
    flex-shrink: 0;
}

/* === Data Table === */
.update-list {
    overflow: hidden;
}
.data-table {
    width: 100%;
}
.data-table th {
    padding: 12px 10px;
    background: var(--paper-warm);
    font-weight: 600;
    text-align: left;
    font-size: 13px;
    color: var(--ink-light);
    border-bottom: 2px solid var(--border);
    letter-spacing: 0.02em;
}
.data-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--border-light);
    font-size: 13.5px;
    transition: background var(--transition);
}
.data-table tbody tr {
    transition: all var(--transition);
}
.data-table tbody tr:hover td {
    background: var(--paper-warm);
}
.data-table .book-name {
    font-weight: 600;
}
.data-table .book-name a {
    color: var(--ink);
}
.data-table .book-name a:hover {
    color: var(--accent);
}
.data-table .chapter a {
    color: var(--ink-light);
    font-size: 12.5px;
}
.data-table .chapter a:hover {
    color: var(--accent);
}
/* === 状态徽章（全局通用） === */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.4;
    white-space: nowrap;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.status-badge::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    animation: statusPulse 2s ease-in-out infinite;
}
/* 已完结 */
.status-badge.full {
    color: var(--status-full);
    background: var(--status-full-bg);
    border: 1px solid var(--status-full-border);
}
.status-badge.full::before {
    background: var(--status-full-icon);
    box-shadow: 0 0 4px var(--status-full);
}
/* 连载中 */
.status-badge.serial {
    color: var(--status-serial);
    background: var(--status-serial-bg);
    border: 1px solid var(--status-serial-border);
}
.status-badge.serial::before {
    background: var(--status-serial-icon);
    box-shadow: 0 0 4px var(--status-serial);
}
/* 徽章 hover */
.status-badge:hover {
    transform: translateY(-1px);
}
.status-badge.full:hover {
    box-shadow: 0 2px 8px rgba(26, 107, 74, 0.18);
}
.status-badge.serial:hover {
    box-shadow: 0 2px 8px rgba(192, 91, 43, 0.18);
}
@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

/* 表格中的状态列兼容 */
.data-table .status {
    text-align: center;
}
.data-table .status.full,
.data-table .status.serial {
    padding: 0;
    background: none;
    border-radius: 0;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}
.data-table .words,
.data-table .time {
    color: var(--ink-muted);
    font-size: 12px;
}
.data-table .author {
    color: var(--ink-light);
    font-size: 12.5px;
}
.data-table .sort {
    color: var(--ink-muted);
    font-size: 12px;
}

/* === Sidebar === */
.side-section {
    background: var(--paper-card);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: box-shadow var(--transition);
}
.side-section:hover {
    box-shadow: var(--shadow-md);
}
.side-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    letter-spacing: 0.03em;
    position: relative;
}
.side-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 28px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

/* === Rank List (Sidebar) === */
.rank-list li {
    display: flex;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition);
}
.rank-list li:last-child {
    border-bottom: none;
}
.rank-list li:hover {
    padding-left: 4px;
}
.rank-num {
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    background: var(--paper-warm);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--ink-muted);
    flex-shrink: 0;
    margin-right: 12px;
    transition: all var(--transition);
}
.rank-num.top {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
    color: #fff;
}
.rank-list li:hover .rank-num {
    transform: scale(1.1);
}
.rank-info {
    flex: 1;
    min-width: 0;
}
.rank-name {
    display: block;
    font-size: 13.5px;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color var(--transition);
}
.rank-name:hover {
    color: var(--accent);
}
.rank-stat {
    font-size: 11px;
    color: var(--ink-muted);
    margin-top: 2px;
    display: block;
}

/* === Rising Section === */
.rising-section {
    display: flex;
    gap: 24px;
}
.rising-col {
    flex: 1;
    background: var(--paper-card);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: box-shadow var(--transition);
}
.rising-col:hover {
    box-shadow: var(--shadow-md);
}
.rising-list li {
    display: flex;
    padding: 13px 0;
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition);
}
.rising-list li:last-child {
    border-bottom: none;
}
.rising-list li:hover {
    padding-left: 6px;
}
.rising-list .rank-num {
    margin-top: 2px;
}
.rising-info {
    flex: 1;
    min-width: 0;
}
.rising-info .book-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    transition: color var(--transition);
}
.rising-info .book-title:hover {
    color: var(--accent);
}
.rising-info .book-desc {
    font-size: 12px;
    color: var(--ink-light);
    margin: 6px 0;
    line-height: 1.6;
}
.rising-info .latest-chapter {
    font-size: 12px;
    color: var(--accent);
    transition: color var(--transition);
}
.rising-info .latest-chapter:hover {
    color: var(--accent-dim);
}

/* === Breadcrumb === */
.breadcrumb {
    padding: 16px 0;
    font-size: 13px;
    color: var(--ink-muted);
    letter-spacing: 0.02em;
}
.breadcrumb a {
    color: var(--ink-light);
    transition: color var(--transition);
}
.breadcrumb a:hover {
    color: var(--accent);
}

/* === Book Detail === */
.book-detail {
    display: flex;
    gap: 32px;
    background: var(--paper-card);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    position: relative;
}
.btn-edit-book {
    position: absolute;
    top: 20px;
    right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    background: transparent;
    border: 1px solid var(--accent-light);
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.03em;
}
.btn-edit-book:hover {
    background: var(--accent-light);
    color: #fff;
    border-color: var(--accent);
}
.btn-edit-book svg {
    flex-shrink: 0;
}
@media (max-width: 640px) {
    .btn-edit-book {
        top: 12px;
        right: 12px;
        padding: 5px 10px;
        font-size: 12px;
    }
}
.book-cover-large {
    width: 200px;
    height: 264px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    background: var(--paper-warm);
    transition: all var(--transition);
}
.book-cover-large:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}
.book-cover-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.book-cover-large:hover img {
    transform: scale(1.04);
}
.book-info-detail {
    flex: 1;
}
.book-info-detail h1 {
    font-size: 26px;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.3;
}
.book-meta {
    margin-bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
}
.book-meta span {
    font-size: 13.5px;
    color: var(--ink-light);
}
.book-stats {
    margin-bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
}
.book-stats span {
    font-size: 13px;
    color: var(--ink-muted);
}
/* 贡献者区块 */
.book-contributors {
    margin-bottom: 18px;
    padding: 14px 16px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e8ecf0;
}
.book-contributors h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--ink);
    letter-spacing: 0.03em;
}
.contributor-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.contributor-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s;
}
.contributor-item:hover {
    border-color: var(--primary);
    box-shadow: 0 1px 6px rgba(59, 130, 246, .12);
}
.contributor-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.contributor-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}
.contributor-title {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 8px;
    font-weight: 500;
    line-height: 1.4;
}
.contributor-role {
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 10px;
    font-weight: 500;
}
.contributor-stat {
    font-size: 11px;
    color: var(--ink-muted);
}
.role-uploader { background: #dbeafe; color: #1d4ed8; }
.role-continuer { background: #dcfce7; color: #15803d; }
.role-editor { background: #fef3c7; color: #a16207; }

.book-intro {
    margin-bottom: 24px;
}
.book-intro h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--ink);
    letter-spacing: 0.03em;
}
.book-intro p {
    font-size: 14px;
    color: var(--ink-light);
    line-height: 1.9;
}
.book-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 28px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    cursor: pointer;
    border: none;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.5s;
}
.btn:hover::after {
    transform: translateX(100%);
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
    color: #fff;
}
.btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.35);
}
.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
}
.btn-outline:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.2);
}
.btn-outline::after {
    display: none;
}
.text-primary {
    color: var(--status-serial);
}
.text-success {
    color: var(--status-full);
}
.latest-chapter-link {
    font-size: 15px;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 16px;
}
.latest-chapter-link a {
    color: var(--accent);
    font-weight: 500;
}
.latest-chapter-link .update-time {
    color: var(--ink-muted);
    font-size: 12px;
}

/* === Chapter List === */
.chapter-list {
    display: flex;
    gap: 20px;
}
.chapter-col {
    flex: 1;
}
.chapter-col a {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--ink-light);
    border-bottom: 1px dashed var(--border-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-radius: 3px;
    transition: all var(--transition);
}
.chapter-col a:hover {
    color: var(--accent);
    background: rgba(184, 134, 11, 0.04);
    padding-left: 16px;
}
.vip-tag {
    display: inline-block;
    font-size: 10px;
    background: var(--accent);
    color: #fff;
    padding: 1px 5px;
    border-radius: 3px;
    vertical-align: middle;
    margin-left: 5px;
    font-weight: 600;
}

/* === Reading Area === */
.reading-area {
    max-width: 880px;
    margin: 0 auto;
    padding: 24px;
}
.reading-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 20px;
}
.reading-controls {
    display: flex;
    gap: 18px;
    font-size: 12px;
    color: var(--ink-muted);
}
.reading-controls a {
    color: var(--ink-muted);
    padding: 3px 8px;
    border-radius: 3px;
    transition: all var(--transition);
    font-size: 12px;
}
.reading-controls a:hover {
    color: var(--accent);
    background: rgba(184, 134, 11, 0.06);
}
.reading-controls a.active {
    color: var(--accent);
    font-weight: 700;
    background: rgba(184, 134, 11, 0.1);
}

.chapter-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: var(--paper-warm);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    border: 1px solid var(--border-light);
}
.chapter-nav.bottom {
    margin-top: 32px;
}
.nav-prev,
.nav-next {
    flex: 1;
}
.nav-next {
    text-align: right;
}
.nav-center {
    text-align: center;
    padding: 0 24px;
}
.chapter-nav a {
    color: var(--ink-light);
    font-size: 14px;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    display: inline-block;
}
.chapter-nav a:hover {
    color: var(--accent);
    background: rgba(184, 134, 11, 0.06);
}
.chapter-nav span {
    color: var(--ink-muted);
    font-size: 14px;
}

.chapter-title {
    text-align: center;
    font-size: 24px;
    margin: 24px 0 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.4;
}
.chapter-info {
    text-align: center;
    font-size: 12.5px;
    color: var(--ink-muted);
    margin-bottom: 32px;
    display: flex;
    justify-content: center;
    gap: 20px;
}
.chapter-content {
    font-size: 17px;
    line-height: 2.1;
    color: var(--ink);
    padding: 0 8px;
    letter-spacing: 0.02em;
}
.chapter-content p {
    margin-bottom: 18px;
    text-indent: 2em;
}

/* === Filter Bar === */
.filter-bar {
    background: var(--paper-card);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}
.filter-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}
.filter-row:last-child {
    margin-bottom: 0;
}
.filter-label {
    width: 56px;
    flex-shrink: 0;
    font-size: 13px;
    color: var(--ink-light);
    line-height: 30px;
    font-weight: 600;
}
.filter-options {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.filter-options a {
    display: inline-block;
    padding: 5px 14px;
    font-size: 13px;
    color: var(--ink-light);
    border-radius: var(--radius-sm);
    background: var(--paper-warm);
    border: 1px solid transparent;
    transition: all var(--transition);
}
.filter-options a:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(184, 134, 11, 0.04);
}
.filter-options a.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* === Rank Tabs === */
.rank-tabs {
    background: var(--paper-card);
    border-radius: var(--radius-md);
    padding: 14px 22px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.rank-tabs a {
    padding: 7px 16px;
    font-size: 13px;
    color: var(--ink-light);
    border-radius: var(--radius-sm);
    background: var(--paper-warm);
    border: 1px solid transparent;
    transition: all var(--transition);
}
.rank-tabs a:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(184, 134, 11, 0.04);
}
.rank-tabs a.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.tab-sep {
    color: var(--border);
    margin: 0 6px;
}

/* === Rank Full List === */
.rank-item {
    display: flex;
    gap: 22px;
    padding: 22px 0;
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition);
}
.rank-item:last-child {
    border-bottom: none;
}
.rank-item:hover {
    padding-left: 8px;
    padding-right: 8px;
    background: var(--paper-warm);
    border-radius: var(--radius-sm);
    margin: 0 -8px;
    border-bottom-color: transparent;
}
.rank-item:last-child:hover {
    border-bottom-color: transparent;
}
.rank-num-wrap {
    width: 52px;
    flex-shrink: 0;
    text-align: center;
    padding-top: 6px;
}
.rank-num-large {
    font-size: 26px;
    font-weight: 800;
    color: var(--ink-muted);
    letter-spacing: -0.02em;
}
.rank-num-large.top {
    color: var(--accent);
}
.rank-cover {
    width: 100px;
    height: 132px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    background: var(--paper-warm);
    transition: all var(--transition);
}
.rank-cover:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.rank-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rank-book-info {
    flex: 1;
}
.rank-book-info h4 {
    font-size: 17px;
    margin-bottom: 8px;
    font-weight: 600;
}
.rank-book-info h4 a {
    color: var(--ink);
    transition: color var(--transition);
}
.rank-book-info h4 a:hover {
    color: var(--accent);
}
.rank-book-info .meta span {
    margin-right: 16px;
    font-size: 12.5px;
    color: var(--ink-muted);
}
.rank-book-info .desc {
    font-size: 13px;
    color: var(--ink-light);
    line-height: 1.7;
    margin: 8px 0;
}
.rank-book-info .stats span {
    margin-right: 16px;
    font-size: 12px;
    color: var(--ink-muted);
}
.rank-book-info .latest {
    margin-top: 6px;
    font-size: 12.5px;
}
.rank-book-info .latest a {
    color: var(--accent);
    transition: color var(--transition);
}
.rank-book-info .latest a:hover {
    color: var(--accent-dim);
}

/* === Search === */
.search-page {}
.search-main {
    padding: 32px 0;
    text-align: center;
}
.search-input-large {
    width: 520px;
    padding: 14px 22px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    background: var(--paper-card);
    color: var(--ink);
    transition: all var(--transition);
}
.search-input-large:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(184, 134, 11, 0.08);
}
.search-btn-large {
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-left: 6px;
    transition: all var(--transition);
}
.search-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.35);
}

.hot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 18px 0;
    justify-content: center;
}
.hot-tag {
    display: inline-block;
    padding: 7px 18px;
    background: var(--paper-warm);
    border-radius: 20px;
    font-size: 13px;
    color: var(--ink-light);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}
.hot-tag:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.2);
}

.search-results {}
.search-item {
    display: flex;
    gap: 22px;
    padding: 22px 0;
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition);
}
.search-item:last-child {
    border-bottom: none;
}
.search-item:hover {
    padding-left: 8px;
    padding-right: 8px;
    background: var(--paper-warm);
    border-radius: var(--radius-sm);
    margin: 0 -8px;
}
.search-cover {
    width: 100px;
    height: 132px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    background: var(--paper-warm);
    transition: all var(--transition);
}
.search-cover:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.search-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.search-info {
    flex: 1;
}
.search-info h4 {
    font-size: 17px;
    margin-bottom: 8px;
    font-weight: 600;
}
.search-info .meta span {
    margin-right: 16px;
    font-size: 12.5px;
    color: var(--ink-muted);
}
.search-info .desc {
    font-size: 13px;
    color: var(--ink-light);
    line-height: 1.7;
    margin: 8px 0;
}
.search-info .stats span {
    margin-right: 16px;
    font-size: 12px;
    color: var(--ink-muted);
}
.search-info .latest {
    margin-top: 6px;
    font-size: 12.5px;
}
.search-info .latest a {
    color: var(--accent);
}

.empty-tip {
    padding: 60px 0;
    text-align: center;
    color: var(--ink-muted);
}
.empty-tip strong {
    color: var(--accent);
}
.empty-tip ul {
    display: inline-block;
    text-align: left;
    margin-top: 12px;
}
.empty-tip ul li {
    padding: 3px 0;
    font-size: 13px;
}

/* === Pagination === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 24px 0;
    margin-top: 12px;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--ink-light);
    background: var(--paper-card);
    transition: all var(--transition);
    font-weight: 500;
}
.pagination a:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(184, 134, 11, 0.04);
    transform: translateY(-1px);
}
.pagination a.active {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
    color: #fff;
    border-color: var(--accent);
    font-weight: 600;
}
.pagination .dots {
    border: none;
    background: none;
    min-width: auto;
    padding: 0 4px;
}

/* === Footer === */
.footer {
    background: linear-gradient(180deg, #242016 0%, #1a1410 100%);
    color: var(--ink-muted);
    padding: 32px 0;
    margin-top: 40px;
    text-align: center;
    border-top: 3px solid rgba(184, 134, 11, 0.2);
}
.footer-links {
    margin-bottom: 14px;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    padding: 3px 8px;
    transition: all var(--transition);
    border-radius: 3px;
}
.footer-links a:hover {
    color: var(--accent-light);
    background: rgba(255, 255, 255, 0.04);
}

/* ========== 友情链接/书盟成员 板块 ========== */
.fl-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 20px;
}
.fl-tab {
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-muted);
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}
.fl-tab:hover {
    color: var(--accent);
    border-color: var(--accent);
}
.fl-tab.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    font-weight: 600;
}
.fl-more {
    margin-left: auto;
    font-size: 13px;
    color: var(--ink-muted);
    text-decoration: none;
    transition: color var(--transition);
}
.fl-more:hover {
    color: var(--accent);
}
.fl-panel {
    display: none;
}
.fl-panel.active {
    display: block;
}
.fl-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.fl-list li {
    min-width: 120px;
}
.fl-list a {
    color: var(--ink);
    font-size: 14px;
    text-decoration: none;
    transition: color var(--transition);
    display: block;
    padding: 6px 0;
}
.fl-list a:hover {
    color: var(--accent);
}

/* 独立友链页 */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.link-card {
    display: block;
    padding: 20px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition);
    background: var(--paper-card);
}
.link-card:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 12px rgba(184, 134, 11, 0.1);
    transform: translateY(-2px);
}
.link-card.alliance {
    border-left: 3px solid var(--accent);
}
.link-card-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
}
.link-card:hover .link-card-name {
    color: var(--accent);
}
.link-card-url {
    font-size: 12px;
    color: var(--ink-muted);
    word-break: break-all;
}

/* ========== 静态内容页通用样式 ========== */
.content-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 20px 0 40px;
}
.content-page-hero {
    text-align: center;
    padding: 40px 0 32px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-light);
}
.content-page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.content-page-desc {
    font-size: 15px;
    color: var(--ink-muted);
    line-height: 1.7;
}
.content-page-section {
    margin-bottom: 32px;
}
.content-page-section h2 {
    font-size: 19px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 14px;
    padding-left: 14px;
    border-left: 3px solid var(--accent);
}
.content-page-section p {
    font-size: 15px;
    line-height: 1.85;
    color: var(--ink-light);
    margin-bottom: 12px;
}
.content-page-section ul {
    padding-left: 20px;
    margin-bottom: 8px;
}
.content-page-section ul li {
    font-size: 14.5px;
    line-height: 2;
    color: var(--ink-light);
}
.content-page-section a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}
.content-page-section a:hover {
    color: var(--accent-dim);
    text-decoration: underline;
}

/* 特色卡片网格（关于我们） */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}
.feature-card {
    padding: 28px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--paper-card);
    transition: all var(--transition);
}
.feature-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(184, 134, 11, 0.08);
}
.feature-icon {
    color: var(--accent);
    margin-bottom: 14px;
}
.feature-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}
.feature-card p {
    font-size: 13.5px;
    color: var(--ink-muted);
    line-height: 1.6;
}

/* 反馈表单 */
.feedback-form {
    max-width: 640px;
}
.feedback-form .form-group {
    margin-bottom: 18px;
}
.feedback-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 6px;
}
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    color: var(--ink);
    background: var(--paper-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition);
    box-sizing: border-box;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.08);
}
.form-textarea {
    resize: vertical;
    min-height: 140px;
}
.form-select {
    cursor: pointer;
}

.btn-primary {
    padding: 11px 32px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition);
}
.btn-primary:hover {
    background: var(--accent-dim);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(184, 134, 11, 0.3);
}
.footer-info {
    font-size: 12px;
    line-height: 2;
    color: rgba(255, 255, 255, 0.35);
}

/* === Reading Themes === */
body.theme-yellow .reading-area {
    background: #faf3e0;
    border-radius: var(--radius-md);
}
body.theme-yellow .chapter-content {
    color: #4a3b2a;
}
body.theme-green .reading-area {
    background: #edf5ec;
    border-radius: var(--radius-md);
}
body.theme-green .chapter-content {
    color: #2e3b2e;
}
body.theme-dark .reading-area {
    background: #1e1e1e;
    border-radius: var(--radius-md);
}
body.theme-dark .chapter-content {
    color: #c8c8c8;
}
body.theme-dark .chapter-title {
    color: #ddd;
}
body.theme-dark .chapter-info {
    color: #888;
}
body.theme-dark .chapter-nav {
    background: #2a2a2a;
    border-color: #333;
}
body.theme-dark .chapter-nav a {
    color: #aaa;
}

.font-small .chapter-content {
    font-size: 15px;
}
.font-medium .chapter-content {
    font-size: 17px;
}
.font-large .chapter-content {
    font-size: 19px;
}

/* ===================================
   个人中心 / 登录注册
   =================================== */

/* === Alert === */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}
.alert-success {
    background: #d4ede3;
    color: #1a6b4a;
    border: 1px solid #a3d9c1;
}
.alert-error {
    background: #fde8db;
    color: #c05b2b;
    border: 1px solid #f5c6a8;
}

/* === Profile Page === */
.profile-page {
    padding: 20px 0 40px;
}

/* --- Profile Card (顶部用户卡片) --- */
.profile-card {
    display: flex;
    align-items: center;
    gap: 40px;
    background: linear-gradient(135deg, #2c2416 0%, #1a1410 100%);
    border-radius: var(--radius-lg);
    padding: 40px 48px;
    margin-bottom: 28px;
    color: #f5e6c8;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(184, 134, 11, 0.2);
}
.profile-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(184, 134, 11, 0.1) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 30%, rgba(212, 167, 69, 0.05) 0%, transparent 50%);
    pointer-events: none;
}
.profile-card-left {
    flex-shrink: 0;
}
.profile-avatar-section {
    text-align: center;
}
.avatar-form-inline {
    display: inline-block;
}
.profile-avatar-wrapper {
    position: relative;
    display: inline-block;
}
.profile-avatar-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(212, 167, 69, 0.4);
    box-shadow: 0 0 30px rgba(184, 134, 11, 0.2);
    transition: all var(--transition);
}
.profile-avatar-default {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
    color: #fff;
    font-size: 38px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(212, 167, 69, 0.4);
    box-shadow: 0 0 30px rgba(184, 134, 11, 0.2);
    letter-spacing: 0.04em;
}
.avatar-upload-trigger {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 32px;
    height: 32px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    border: 2px solid #2c2416;
    transition: all var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.avatar-upload-trigger:hover {
    background: var(--accent-light);
    transform: scale(1.1);
}
.profile-name {
    font-size: 22px;
    font-weight: 700;
    margin-top: 12px;
    color: #f5e6c8;
    letter-spacing: 0.04em;
}
.profile-uid {
    font-size: 13px;
    color: rgba(245, 230, 200, 0.5);
    margin-top: 4px;
}
.profile-card-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-self: stretch;
}

/* --- 修炼体系信息（称号 + 经验进度） --- */
.profile-lineage-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 280px;
}
.lineage-rank-display {
    text-align: center;
}
.rank-label {
    display: block;
    font-size: 13px;
    color: rgba(245, 230, 200, 0.5);
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.rank-title {
    display: block;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.3;
    margin-bottom: 4px;
}
.rank-stage {
    display: inline-block;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(245, 230, 200, 0.55);
}

/* --- 经验进度区域 --- */
.lineage-exp-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.exp-label {
    display: block;
    font-size: 13px;
    color: rgba(245, 230, 200, 0.5);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
}
.lineage-exp-progress-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}
.lineage-exp-progress-bar {
    flex: 1;
    height: 14px;
    background: rgba(255,255,255,0.08);
    border-radius: 7px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.06);
}
.lineage-exp-progress-fill {
    height: 100%;
    border-radius: 7px;
    transition: width 0.6s cubic-bezier(0.25, 0.8, 0.25, 1.2);
    position: relative;
    /* 内发光效果 */
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 0 10px rgba(184, 134, 11, 0.3);
    min-width: 0;
}
/* 进度条条纹效果 */
.lineage-exp-progress-fill:not([style*="width:0"]) {
    background-image: linear-gradient(
        45deg,
        rgba(255,255,255,0.1) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255,255,255,0.1) 50%,
        rgba(255,255,255,0.1) 75%,
        transparent 75%,
        transparent
    );
    background-size: 20px 20px;
    animation: expBarStripe 0.8s linear infinite;
}
@keyframes expBarStripe {
    0% { background-position: 0 0; }
    100% { background-position: 20px 0; }
}
.lineage-exp-percent {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-light);
    min-width: 42px;
    text-align: right;
}
.lineage-exp-num {
    font-size: 12px;
    color: rgba(245, 230, 200, 0.45);
    text-align: center;
}
.lineage-max-badge {
    display: inline-block;
    padding: 6px 20px;
    background: linear-gradient(135deg, rgba(255,215,0,0.15) 0%, rgba(218,165,32,0.1) 100%);
    border: 1px solid rgba(255,215,0,0.3);
    border-radius: 20px;
    color: #ffd700;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    text-align: center;
    animation: maxBadgeGlow 2s ease-in-out infinite;
}
@keyframes maxBadgeGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(255,215,0,0.2); }
    50% { box-shadow: 0 0 20px rgba(255,215,0,0.4); }
}

/* --- Profile Content Layout --- */
.profile-content {
    display: flex;
    gap: 28px;
}
.profile-main {
    flex: 1;
    min-width: 0;
}
.profile-sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* --- Profile Section --- */
.profile-section {
    background: var(--paper-card);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}
.profile-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    letter-spacing: 0.03em;
    position: relative;
}
.profile-section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

/* --- Avatar Upload Form --- */
.avatar-form-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.avatar-upload-btn {
    cursor: pointer;
    position: relative;
}
.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
    gap: 5px;
}
.avatar-form-hint {
    font-size: 12px;
    color: var(--ink-muted);
}

/* --- Name Form --- */
.name-form-row {
    display: flex;
    gap: 12px;
    align-items: center;
}
.form-input {
    flex: 1;
    padding: 9px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--ink);
    background: var(--paper-card);
    transition: all var(--transition);
    max-width: 260px;
}
.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.08);
    background: #fff;
}

/* --- Quick Links --- */
.profile-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.profile-link-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--paper-warm);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
    color: var(--ink);
}
.profile-link-item:hover {
    background: rgba(184, 134, 11, 0.04);
    border-color: var(--accent);
    transform: translateX(4px);
    color: var(--ink);
}
.link-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.12) 0%, rgba(212, 167, 69, 0.08) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}
.link-text {
    flex: 1;
}
.link-text strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}
.link-text small {
    display: block;
    font-size: 12px;
    color: var(--ink-muted);
    margin-top: 2px;
}
.link-arrow {
    font-size: 16px;
    color: var(--ink-muted);
    transition: all var(--transition);
}
.profile-link-item:hover .link-arrow {
    color: var(--accent);
    transform: translateX(3px);
}

/* --- Info List (Sidebar) --- */
.info-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}
.info-list li:last-child {
    border-bottom: none;
}
.info-label {
    font-size: 13px;
    color: var(--ink-muted);
}
.info-value {
    font-size: 13px;
    color: var(--ink);
    font-weight: 500;
}

/* ===================================
   经验记录
   =================================== */
.exp-log-empty {
    text-align: center;
    padding: 28px 16px;
    color: var(--ink-muted);
    font-size: 13px;
}
.exp-log-list {
    max-height: 420px;
    overflow-y: auto;
}
.exp-log-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}
.exp-log-item:nth-child(even) {
    background: var(--paper-warm);
}
.exp-log-item:hover {
    background: rgba(184, 134, 11, 0.04);
}
.exp-log-icon {
    font-size: 16px;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}
.exp-log-desc {
    flex: 1;
    font-size: 13px;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.exp-log-amount {
    font-size: 14px;
    font-weight: 700;
    color: #059669;
    flex-shrink: 0;
    min-width: 36px;
    text-align: right;
}
.exp-log-time {
    font-size: 12px;
    color: var(--ink-muted);
    flex-shrink: 0;
    min-width: 60px;
    text-align: right;
}

/* ===================================
   登录 / 注册 页面
   =================================== */
.auth-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}
.auth-card {
    width: 440px;
    background: var(--paper-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}
.auth-card h2 {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ink);
    letter-spacing: 0.04em;
}
.auth-subtitle {
    text-align: center;
    font-size: 13px;
    color: var(--ink-muted);
    margin-bottom: 28px;
}
.auth-form .form-group {
    margin-bottom: 18px;
}
.auth-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-light);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}
.auth-form .form-input {
    width: 100%;
    max-width: 100%;
}
.auth-form .captcha-row {
    display: flex;
    gap: 12px;
}
.auth-form .captcha-row .form-input {
    flex: 1;
}
.auth-form .captcha-img {
    height: 42px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid var(--border);
    transition: border-color var(--transition);
}
.auth-form .captcha-img:hover {
    border-color: var(--accent);
}
.auth-form .btn {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    margin-top: 4px;
}
.auth-form .form-error {
    color: var(--red-soft);
    font-size: 13px;
    margin-bottom: 14px;
    padding: 10px 14px;
    background: #fde8db;
    border-radius: var(--radius-sm);
    border: 1px solid #f5c6a8;
}
.auth-form .form-success {
    color: var(--status-full);
    font-size: 13px;
    margin-bottom: 14px;
    padding: 10px 14px;
    background: #d4ede3;
    border-radius: var(--radius-sm);
    border: 1px solid #a3d9c1;
}
.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--ink-muted);
}
.auth-footer a {
    color: var(--accent);
    font-weight: 600;
}
.auth-footer a:hover {
    color: var(--accent-dim);
}

/* === 个人中心 - 昵称修改提示 === */
.profile-section-hint {
    font-size: 13px;
    color: var(--ink-muted);
    margin: 0 0 12px 0;
    padding: 8px 12px;
    background: #fdf5e6;
    border-left: 3px solid var(--accent-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* === 修炼体系 - 称号展示 === */
.profile-lineage {
    margin: 6px 0 12px;
}
.lineage-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}
.profile-title-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.profile-title-label {
    font-size: 12px;
    color: #8b8ba0;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.profile-title-value {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}
.profile-title-stage {
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
}

/* 经验条 */
.profile-exp-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.profile-exp-bar {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
    max-width: 200px;
}
.profile-exp-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}
.profile-exp-text {
    font-size: 11px;
    color: #6b6b80;
    white-space: nowrap;
}

/* === 神境/高阶 流光特效 === */
@keyframes lineage-glow-xuanhuan {
    0%, 100% { text-shadow: 0 0 10px #ffd700, 0 0 20px #ff8c00, 0 0 40px #ffd700, 0 0 80px #ff8c00; }
    50% { text-shadow: 0 0 20px #fff, 0 0 40px #ffd700, 0 0 60px #ff8c00, 0 0 100px #ff4500; }
}
@keyframes lineage-glow-shenyuan {
    0%, 100% { text-shadow: 0 0 10px #e040fb, 0 0 20px #7c4dff, 0 0 40px #e040fb, 0 0 80px #7c4dff; }
    50% { text-shadow: 0 0 20px #ea80fc, 0 0 40px #e040fb, 0 0 60px #7c4dff, 0 0 100px #651fff; }
}
@keyframes lineage-glow-bailan {
    0%, 100% { text-shadow: 0 0 10px #ff9800, 0 0 20px #ff5722, 0 0 40px #ff9800, 0 0 80px #ff5722; }
    50% { text-shadow: 0 0 20px #ffcc02, 0 0 40px #ff9800, 0 0 60px #ff5722, 0 0 100px #e91e63; }
}

/* 流光拖尾 */
@keyframes lineage-trail-xuanhuan {
    0% { filter: drop-shadow(0 0 4px #ffd700); }
    25% { filter: drop-shadow(2px 0 8px #ff8c00); }
    50% { filter: drop-shadow(0 2px 8px #ffd700); }
    75% { filter: drop-shadow(-2px 0 8px #ff4500); }
    100% { filter: drop-shadow(0 0 4px #ffd700); }
}
@keyframes lineage-trail-shenyuan {
    0% { filter: drop-shadow(0 0 4px #e040fb); }
    25% { filter: drop-shadow(2px 0 8px #7c4dff); }
    50% { filter: drop-shadow(0 2px 8px #e040fb); }
    75% { filter: drop-shadow(-2px 0 8px #651fff); }
    100% { filter: drop-shadow(0 0 4px #e040fb); }
}
@keyframes lineage-trail-bailan {
    0% { filter: drop-shadow(0 0 4px #ff9800); }
    25% { filter: drop-shadow(2px 0 8px #ff5722); }
    50% { filter: drop-shadow(0 2px 8px #ff9800); }
    75% { filter: drop-shadow(-2px 0 8px #e91e63); }
    100% { filter: drop-shadow(0 0 4px #ff9800); }
}

.lineage-glow {
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}
.lineage-glow-xuanhuan {
    animation-name: lineage-glow-xuanhuan, lineage-trail-xuanhuan;
}
.lineage-glow-shenyuan {
    animation-name: lineage-glow-shenyuan, lineage-trail-shenyuan;
}
.lineage-glow-bailan {
    animation-name: lineage-glow-bailan, lineage-trail-bailan;
}

/* 流光称号处 Hover 放大效果 */
.profile-title-value.lineage-glow {
    transition: transform 0.3s ease;
}
.profile-title-value.lineage-glow:hover {
    transform: scale(1.1);
}

/* 评论区称号徽章发光动画 */
.comment-title.lineage-glow {
    animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3) drop-shadow(0 0 6px rgba(255,255,255,0.4)); }
}

/* ===================================
   评论区
   =================================== */

/* --- 评论区块 --- */
.comment-section {
    margin-top: 8px;
}
.comment-total {
    font-size: 13px;
    color: var(--ink-muted);
    font-weight: 400;
    margin-left: auto;
}

/* --- 评论发表框 --- */
.comment-post-box {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    background: var(--paper-warm);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    margin-bottom: 20px;
}
.comment-post-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}
.comment-post-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}
.comment-post-body {
    flex: 1;
    min-width: 0;
}
.comment-post-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}
.comment-hint {
    font-size: 12px;
    color: var(--ink-muted);
}

/* --- 评论文本域 --- */
.comment-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--ink);
    background: var(--paper-card);
    resize: vertical;
    min-height: 36px;
    line-height: 1.6;
    font-family: inherit;
    transition: border-color var(--transition);
}
.comment-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.06);
    background: #fff;
}
.reply-textarea {
    min-height: 32px;
    font-size: 13px;
}

/* --- 未登录提示 --- */
.comment-login-tip {
    text-align: center;
    padding: 24px;
    background: var(--paper-warm);
    border-radius: var(--radius-md);
    border: 1px dashed var(--border);
    color: var(--ink-muted);
    font-size: 14px;
    margin-bottom: 20px;
}
.comment-login-tip a {
    color: var(--accent);
    font-weight: 600;
}
.comment-login-tip a:hover {
    color: var(--accent-dim);
}

/* --- 评论列表 --- */
.comment-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.comment-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--ink-muted);
    font-size: 14px;
}

/* --- 单条评论 --- */
.comment-item {
    display: flex;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-light);
}
.comment-item:last-child {
    border-bottom: none;
}

/* --- 评论头像 --- */
.comment-avatar-col {
    flex-shrink: 0;
    width: 44px;
}
.comment-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}
.comment-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}
.comment-avatar-text {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* --- 评论内容区 --- */
.comment-body-col {
    flex: 1;
    min-width: 0;
}
.comment-user-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
    line-height: 1.5;
}
.comment-nickname {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
}
.comment-nickname:hover {
    color: var(--accent);
}
.comment-gender {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}
.gender-icon {
    display: block;
}
.gender-male {
    /* 蓝色男生图标 - 颜色在SVG内联定义 */
}
.gender-female {
    /* 粉色女生图标 - 颜色在SVG内联定义 */
}
.comment-title {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 2px 9px;
    border-radius: 10px;
    line-height: 1.5;
    vertical-align: middle;
}
.comment-time {
    font-size: 12px;
    color: var(--ink-muted);
    margin-left: auto;
}
.comment-reply-to {
    font-size: 13px;
    color: var(--ink-muted);
}
.comment-reply-to .reply-to-name {
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
}
.comment-reply-to .reply-to-name:hover {
    text-decoration: underline;
}
.comment-content {
    font-size: 14px;
    color: var(--ink);
    line-height: 1.7;
    word-break: break-all;
    margin-bottom: 8px;
}

/* --- 评论操作按钮 --- */
.comment-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}
.comment-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: none;
    background: none;
    color: var(--ink-muted);
    font-size: 13px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    line-height: 1;
}
.comment-btn:hover {
    background: var(--paper-warm);
    color: var(--ink);
}
.comment-btn-like.liked {
    color: #e74c3c;
}
.comment-btn-like.liked:hover {
    color: #c0392b;
}
.comment-btn-reply:hover {
    color: var(--accent);
}
.comment-btn-report {
    color: var(--ink-muted);
    margin-left: auto;
}
.comment-btn-report:hover {
    color: #e74c3c;
}
.like-count {
    font-size: 12px;
}
.comment-btn-cancel {
    color: var(--ink-muted);
    font-size: 12px;
}
.comment-btn-cancel:hover {
    color: var(--ink);
}
.comment-btn-submit {
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    padding: 5px 14px;
    font-weight: 500;
}
.comment-btn-submit:hover {
    background: var(--accent-dim);
    color: #fff;
}

/* --- 回复表单 --- */
.comment-reply-form {
    margin-top: 8px;
    margin-bottom: 4px;
}
.reply-form-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 8px;
}

/* --- 回复列表 --- */
.comment-replies {
    margin-top: 12px;
    padding-left: 16px;
    border-left: 2px solid var(--border-light);
    display: flex;
    flex-direction: column;
}
.comment-reply-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
}
.comment-reply-item:first-child {
    padding-top: 0;
}
.comment-reply-item:last-child {
    padding-bottom: 0;
}
.comment-reply-item .comment-avatar-text {
    width: 32px;
    height: 32px;
    font-size: 14px;
}

/* ===================================
   举报弹窗
   =================================== */
.report-popup {
    background: var(--paper-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 28px 20px;
    width: 520px;
    max-width: 94vw;
    max-height: 85vh;
    overflow-y: auto;
}
.report-popup-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 4px;
}
.report-popup-sub {
    font-size: 13px;
    color: var(--ink-muted);
    margin: 0 0 16px;
}
.report-reason-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 360px;
    overflow-y: auto;
}
.report-reason-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1.5px solid var(--border-light);
    border-radius: 10px;
    cursor: pointer;
    transition: all .15s;
    background: var(--paper-warm);
}
.report-reason-item:hover {
    border-color: #c9a96e;
    background: rgba(184, 134, 11, 0.04);
}
.report-reason-item:has(input:checked) {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.05);
}
.report-reason-item input[type="radio"] {
    accent-color: #e74c3c;
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.report-reason-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.report-reason-text strong {
    font-size: 14px;
    color: var(--ink);
    font-weight: 600;
}
.report-reason-text small {
    font-size: 12px;
    color: var(--ink-muted);
    line-height: 1.4;
}
.report-detail-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border-light);
    border-radius: 8px;
    font-size: 13px;
    color: var(--ink);
    background: var(--paper-warm);
    resize: vertical;
    min-height: 70px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color .2s;
}
.report-detail-textarea:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.06);
}
.report-popup-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}
#report-submit-btn {
    background: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
}
#report-submit-btn:hover {
    background: #c0392b;
    border-color: #c0392b;
}
#report-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===================================
   书架页面
   =================================== */

.section-count {
    font-size: 13px;
    color: var(--ink-muted);
    font-weight: 400;
    margin-left: auto;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 64px 20px;
}
.empty-icon {
    margin-bottom: 16px;
    color: var(--ink-muted);
}
.empty-text {
    font-size: 16px;
    color: var(--ink-muted);
    margin-bottom: 8px;
}
.empty-hint {
    font-size: 14px;
    color: var(--ink-muted);
}
.empty-hint a {
    color: var(--accent);
    font-weight: 500;
}
.empty-hint a:hover {
    color: var(--accent-dim);
}

/* 书架列表 */
.bookcase-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* 书架单条 */
.bookcase-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition);
}
.bookcase-item:last-child {
    border-bottom: none;
}
.bookcase-item:hover {
    background: var(--paper-warm);
    margin: 0 -12px;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: var(--radius-sm);
}
.bookcase-top {
    background: linear-gradient(90deg, rgba(184,134,11,0.04) 0%, transparent 100%);
}
.bookcase-top:hover {
    background: linear-gradient(90deg, rgba(184,134,11,0.08) 0%, var(--paper-warm) 100%);
}

/* 书架封面 */
.bookcase-cover {
    flex-shrink: 0;
    width: 72px;
    height: 96px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: var(--paper-warm);
}
.bookcase-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bookcase-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    background: linear-gradient(135deg, var(--paper-warm), var(--paper-card));
}

/* 书架书籍信息 */
.bookcase-info {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}
.bookcase-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.bookcase-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bookcase-title:hover {
    color: var(--accent);
}
.bookcase-top-badge {
    flex-shrink: 0;
    font-size: 11px;
    padding: 1px 8px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.bookcase-meta {
    display: flex;
    gap: 14px;
    align-items: center;
    font-size: 13px;
    color: var(--ink-muted);
    margin-bottom: 4px;
}
.bookcase-author {
    color: var(--ink);
}
.bookcase-status {
    font-size: 12px;
    padding: 1px 7px;
    border-radius: 8px;
}
.status-done {
    background: rgba(76,175,80,0.1);
    color: #4caf50;
}
.status-ongoing {
    background: rgba(33,150,243,0.1);
    color: #2196f3;
}

/* 阅读进度 */
.bookcase-read-info,
.bookcase-new-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    line-height: 1.6;
}
.read-label,
.new-label {
    color: var(--ink-muted);
    font-size: 12px;
}
.read-chapter,
.new-chapter {
    color: var(--ink);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 280px;
}
.read-chapter:hover,
.new-chapter:hover {
    color: var(--accent);
}
.read-time,
.new-time {
    font-size: 12px;
    color: var(--ink-muted);
    margin-left: 4px;
}
.new-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f44336;
    flex-shrink: 0;
    animation: newDotPulse 1.5s ease-in-out infinite;
}
@keyframes newDotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* 书架操作按钮 */
.bookcase-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    padding-top: 2px;
}
.bookcase-action-btns {
    display: flex;
    gap: 4px;
}
.bookcase-form {
    display: inline;
}
.btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    color: var(--ink-muted);
    cursor: pointer;
    border-radius: 6px;
    transition: all var(--transition);
}
.btn-link:hover {
    background: rgba(0,0,0,0.05);
}
.btn-remove:hover {
    color: #e74c3c;
    background: rgba(231,76,60,0.08);
}
.btn-top:hover {
    color: var(--accent);
}
.btn-top.active {
    color: var(--accent);
}

/* ===================================
   书籍详情页 - 书架按钮状态
   =================================== */

.btn-bookcase-added {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(184,134,11,0.06);
}
.btn-bookcase-added:hover {
    background: rgba(184,134,11,0.12);
}
.btn-bookcase-icon {
    margin-right: 2px;
}
.btn-bookcase-text {
    font-weight: 500;
}

/* ===================================
   签到页面
   =================================== */

/* 签到头部卡片 */
.signin-header-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 32px;
    background: var(--paper-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    margin-bottom: 20px;
}
.signin-header-card.signed {
    border-color: rgba(76,175,80,0.2);
    background: linear-gradient(135deg, rgba(76,175,80,0.04), var(--paper-card));
}
.signin-status-icon {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(184,134,11,0.08);
    color: var(--accent);
}
.signin-header-card.signed .signin-status-icon {
    background: rgba(76,175,80,0.1);
    color: #4caf50;
}
.signin-status-text {
    flex: 1;
}
.signin-status-text h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 6px 0;
}
.signin-status-text p {
    font-size: 14px;
    color: var(--ink-muted);
    margin: 0;
}
.btn-signin {
    font-size: 15px;
    padding: 10px 28px;
    font-weight: 600;
    flex-shrink: 0;
}

/* 签到统计数据行 */
.signin-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.signin-stat-card {
    background: var(--paper-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 18px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.signin-stat-num {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}
.signin-stat-label {
    font-size: 12px;
    color: var(--ink-muted);
}

/* 签到内容 */
.signin-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
}
.signin-main {
    min-width: 0;
}
.signin-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 签到日历 */
.signin-calendar {
    background: var(--paper-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 16px;
}
.signin-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 8px;
}
.signin-weekdays span {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-muted);
    padding: 4px 0;
}
.signin-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.signin-day {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    position: relative;
}
.signin-day.empty {
    cursor: default;
}
.signin-day.future {
    color: var(--ink-muted);
    opacity: 0.5;
}
.signin-day.today {
    border: 2px solid var(--accent);
    font-weight: 700;
}
.signin-day.signed {
    background: rgba(76,175,80,0.1);
    color: #4caf50;
}
.signin-day.signed.today {
    background: rgba(76,175,80,0.15);
    border-color: #4caf50;
}
.signin-day:not(.empty):not(.future):hover {
    background: var(--paper-warm);
}
.signin-calendar-tip {
    margin-top: 12px;
    padding: 10px 12px;
    background: rgba(184,134,11,0.06);
    border-radius: 6px;
    font-size: 13px;
    color: var(--accent-dim);
    text-align: center;
}

/* 签到规则 */
.signin-rules {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.signin-rule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--paper-card);
    font-size: 13px;
}
.signin-rule-item.milestone {
    background: rgba(184,134,11,0.03);
}
.rule-label {
    color: var(--ink);
}
.rule-value {
    color: var(--ink);
    font-weight: 500;
}
.rule-value.bonus {
    color: var(--accent);
    font-weight: 600;
}

/* 最近签到列表 */
.signin-recent-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.signin-recent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 13px;
}
.signin-recent-item:last-child {
    border-bottom: none;
}
.recent-date {
    color: var(--ink);
    font-weight: 500;
}
.recent-streak {
    color: var(--ink-muted);
    font-size: 12px;
}
.recent-exp {
    color: var(--accent);
    font-weight: 600;
}

.muted-text {
    font-size: 13px;
    color: var(--ink-muted);
    padding: 8px 0;
}

/* 签到快捷入口图标 */
.signin-link-icon {
    color: var(--accent);
}

/* ===================================
   签到排行榜
   =================================== */

.signin-rank-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.signin-rank-card {
    background: var(--paper-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
}
.signin-rank-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 12px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 6px;
}
.signin-rank-title svg {
    color: var(--accent);
    flex-shrink: 0;
}
.signin-rank-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.signin-rank-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 4px;
    border-radius: 6px;
    transition: background var(--transition);
}
.signin-rank-item:hover {
    background: var(--paper-warm);
}
.rank-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-muted);
    background: rgba(0,0,0,0.04);
}
.rank-num.rank-1 {
    background: linear-gradient(135deg, #f6a800, #e05200);
    color: #fff;
}
.rank-num.rank-2 {
    background: linear-gradient(135deg, #b0bec5, #78909c);
    color: #fff;
}
.rank-num.rank-3 {
    background: linear-gradient(135deg, #a0806a, #6d5040);
    color: #fff;
}
.signin-rank-item .rank-avatar-link { flex-shrink: 0; width: 28px; height: 28px; display: flex; align-items: center; }
.rank-name-link {
    flex: 1;
    min-width: 0;
    text-decoration: none;
}
.rank-avatar {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
}
.rank-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rank-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--paper-warm), rgba(184,134,11,0.1));
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
}
.rank-name {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rank-streak {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
}

/* 响应式 */
@media (max-width: 768px) {
    .signin-content {
        grid-template-columns: 1fr;
    }
    .signin-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .signin-header-card {
        flex-direction: column;
        text-align: center;
    }
    .signin-status-text h2 {
        font-size: 18px;
    }
    .signin-rank-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   成长权益说明页
   =================================== */

/* 权益导航链接 */
.lineage-privileges-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition);
}
.lineage-privileges-link:hover {
    color: var(--accent-dim);
}

/* 权益头部卡片 */
.privileges-hero {
    background: var(--paper-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 32px;
}
.privileges-hero-badge {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 28px;
    background: rgba(184,134,11,0.04);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(184,134,11,0.1);
}
.privileges-hero-title {
    font-size: 22px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 4px;
}
.privileges-hero-stage {
    font-size: 13px;
    color: var(--ink-muted);
}
.privileges-hero-cards {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.priv-hero-card {
    background: rgba(184,134,11,0.03);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.priv-hero-num {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.1;
}
.priv-hero-label {
    font-size: 13px;
    color: var(--ink-muted);
}
.priv-hero-sub {
    font-size: 11px;
    color: var(--ink-muted);
    opacity: 0.7;
}

/* 权益内容区 */
.privileges-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.privileges-desc {
    font-size: 13px;
    color: var(--ink-muted);
    margin: 0 0 14px 0;
    line-height: 1.6;
}
.privileges-desc.muted {
    font-size: 12px;
    text-align: center;
    margin: 14px 0 0 0;
}

/* 权益表格 */
.privileges-table-wrapper {
    overflow-x: auto;
}
.privileges-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.privileges-table thead th {
    background: var(--paper-warm);
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    color: var(--ink);
    font-size: 13px;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}
.privileges-table thead th:first-child {
    border-radius: var(--radius-sm) 0 0 0;
}
.privileges-table thead th:last-child {
    border-radius: 0 var(--radius-sm) 0 0;
}
.privileges-table tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-light);
    color: var(--ink);
    white-space: nowrap;
}
.privileges-table tbody tr:last-child td {
    border-bottom: none;
}
.privileges-table tbody tr:hover {
    background: var(--paper-warm);
}
.privileges-table .current-row {
    background: rgba(184,134,11,0.05);
}
.privileges-table .current-row:hover {
    background: rgba(184,134,11,0.08);
}
.privileges-table .exp-val {
    color: var(--accent);
    font-weight: 600;
}
.privileges-table .muted {
    color: var(--ink-muted);
    font-size: 12px;
}
.current-badge {
    display: inline-block;
    font-size: 11px;
    padding: 1px 8px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    margin-left: 6px;
    vertical-align: 1px;
}

@media (max-width: 768px) {
    .privileges-hero {
        flex-direction: column;
        padding: 20px;
    }
    .privileges-hero-cards {
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
    }
}

/* ===================================
   上传书籍页面
   =================================== */
.upload-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 10px 0 40px;
}
.upload-hero {
    text-align: center;
    padding: 28px 0 10px;
}
.upload-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}
.upload-desc {
    font-size: 14px;
    color: var(--ink-muted);
    line-height: 1.6;
}

/* 模式切换 */
.upload-mode-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 28px;
    border-bottom: 2px solid var(--border);
}
.upload-mode-tab {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}
.upload-mode-tab:hover {
    color: var(--accent);
}
.upload-mode-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: 600;
}

.upload-panel {
    display: none;
}
.upload-panel.active {
    display: block;
}

.upload-notice {
    padding: 14px 18px;
    background: rgba(184,134,11,0.06);
    border: 1px solid rgba(184,134,11,0.2);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--accent-dim);
    margin-bottom: 24px;
    line-height: 1.7;
}

.upload-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
}
.upload-form-grid .form-group {
    margin-bottom: 0;
}

/* 封面区域 */
.upload-cover-area {
    cursor: pointer;
}
.cover-preview {
    width: 140px;
    height: 180px;
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--ink-muted);
    font-size: 13px;
    transition: all var(--transition);
    overflow: hidden;
    background: var(--paper-warm);
}
.cover-preview:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.cover-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 单选框组 */
.form-radio-group {
    display: flex;
    gap: 24px;
    padding: 8px 0;
}
.form-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--ink);
    cursor: pointer;
    font-weight: 400;
}
.form-radio input[type="radio"] {
    accent-color: var(--accent);
}

/* 文件上传区域 */
.upload-file-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--ink-muted);
    background: var(--paper-warm);
}
.upload-file-area:hover {
    border-color: var(--accent);
    background: rgba(184,134,11,0.03);
}
.upload-file-area.dragover {
    border-color: var(--accent);
    background: rgba(184,134,11,0.06);
}
.upload-file-area svg {
    margin-bottom: 8px;
    opacity: 0.4;
}
.upload-file-area span {
    display: block;
    font-size: 14px;
}

/* 表单辅助文本 */
.form-hint {
    font-size: 12px;
    color: var(--ink-muted);
    margin-top: 5px;
    line-height: 1.5;
}
.required {
    color: #dc2626;
}

/* 提交行 */
.upload-submit-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}
.upload-hint-text {
    font-size: 13px;
    color: var(--ink-muted);
}
.btn-lg {
    padding: 12px 36px;
    font-size: 16px;
}

/* 结果展示 */
.upload-result {
    margin-top: 24px;
    padding: 24px;
    border-radius: var(--radius-md);
}
.upload-result-success {
    text-align: center;
    padding: 32px 20px;
    background: rgba(22,163,74,0.05);
    border: 1px solid rgba(22,163,74,0.2);
    border-radius: var(--radius-md);
    color: #16a34a;
}
.upload-result-success svg {
    margin-bottom: 12px;
}
.upload-result-success p {
    font-size: 15px;
    line-height: 1.7;
}
.upload-result-error {
    text-align: center;
    padding: 24px 20px;
    background: rgba(220,38,38,0.05);
    border: 1px solid rgba(220,38,38,0.2);
    border-radius: var(--radius-md);
    color: #dc2626;
    font-size: 14px;
}

/* === 友情链接 === */
.friend-links-section {
    margin-top: 8px;
}
.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 18px 20px;
    background: var(--paper-card);
    border: 0px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.friend-link {
    display: inline-block;
    font-size: 13px;
    color: var(--ink-light);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
  /*  background: var(--paper-warm);*/
    border: 0px solid var(--border);
    transition: all var(--transition);
    white-space: nowrap;
}
.friend-link:hover {
    color: var(--accent-dim);
    border-color: var(--accent-light);
    background: #fff8e8;
    transform: translateY(-1px);
}


