/* ===================================
   Novel CMS - 暖纸墨棕主题样式
   参考：完本神站风格
   =================================== */

: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;
    --paper-line: #d0c4a8;
    --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;
}

*, *::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;
    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;
}

ul, ol {
    list-style: none;
}

table {
    border-collapse: collapse;
    width: 100%;
}

input, button, textarea, select {
    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;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes floatIn {
    0% { opacity: 0; transform: translateY(10px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

/* 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;
}
.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-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-symbol {
    font-size: 22px;
    font-weight: 800;
    color: #f5e6c8;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.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;
}

.search-box {
    flex: 1;
    margin: 0 50px;
}
.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;
    position: relative;
}
.user-area > a,
.user-area button {
    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;
    gap: 6px;
    line-height: 1.4;
    background: transparent;
    cursor: pointer;
}
.user-area > a:hover,
.user-area button:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}
.user-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px 5px 8px;
}
.user-avatar,
.user-avatar-default {
    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-avatar-default {
    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;
}
.user-info:hover .user-avatar,
.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 22px;
    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%;
}

.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-recommend-section .banner-slider {
    margin: 0;
}
.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 {
    flex: 1;
    min-width: 0;
}
.banner-info h3 {
    font-size: 26px;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.banner-info h3 a {
    color: var(--ink);
}
.banner-info h3 a:hover {
    color: var(--accent);
}
.banner-info .author {
    color: var(--ink-muted);
    margin-bottom: 14px;
    font-size: 14px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.banner-info .desc {
    color: var(--ink-light);
    line-height: 1.9;
    margin-bottom: 20px;
    max-height: 92px;
    overflow: hidden;
    font-size: 14px;
}

.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-header .section-subtitle {
    font-size: 12px;
    color: var(--ink-muted);
    margin-left: 12px;
    padding: 2px 10px;
    background: rgba(184, 134, 11, 0.08);
    border-radius: var(--radius-sm);
}
.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,
.similar-section .book-grid.mini {
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}
.book-grid.banner-recommend-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.book-grid.banner-recommend-grid .book-cover {
    width: 120px;
    height: 158px;
}
.book-grid.banner-recommend-grid .book-item h4 {
    font-size: 14px;
}
.book-grid.banner-recommend-grid .book-item .author {
    font-size: 12px;
}
.book-item {
    text-align: center;
    animation: floatIn 0.5s ease backwards;
}
.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;
}

.similar-section .book-grid.mini {
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}

.similar-section .book-card.mini {
    text-align: center;
}

.similar-section .book-card.mini .book-cover {
    width: 100px;
    height: 132px;
    margin: 0 auto 10px;
}

.similar-section .book-card.mini .book-info h3 {
    font-size: 14px;
    margin-bottom: 4px;
    line-height: 1.35;
}

.similar-section .book-card.mini .book-author {
    font-size: 12px;
    color: var(--ink-muted);
}

.book-item .book-extra {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 12px;
    flex-wrap: wrap;
}

.book-item .book-extra .category {
    color: var(--ink-muted);
}

.book-grid.small .book-item .desc {
    -webkit-line-clamp: 1;
}
.book-item h4 {
    font-size: 14px;
    margin-bottom: 4px;
    line-height: 1.4;
}
.book-item h4 a {
    color: var(--ink);
}
.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;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 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 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);
}
.data-table .status {
    text-align: center;
}
.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;
}

/* Status Badge */
.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);
}
.status-badge.paused {
    color: #666;
    background: #eee;
    border: 1px solid #ddd;
}
.status-badge.paused::before {
    background: #999;
}
.status-badge:hover {
    transform: translateY(-1px);
}

.category-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.4;
    white-space: nowrap;
    color: var(--accent);
    background: rgba(184, 134, 11, 0.08);
    border: 1px solid rgba(184, 134, 11, 0.22);
    transition: all var(--transition);
}

.category-tag:hover {
    background: rgba(184, 134, 11, 0.14);
    transform: translateY(-1px);
}

/* 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;
}

/* Breadcrumb */
.breadcrumb {
    padding: 16px 0;
    font-size: 13px;
    color: var(--ink-muted);
    letter-spacing: 0.02em;
}
.breadcrumb a {
    color: var(--ink-light);
}
.breadcrumb a:hover {
    color: var(--accent);
}

/* Buttons */
.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;
    background: transparent;
    color: var(--ink);
}
.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;
}
.btn-danger {
    background: #e74c3c;
    color: #fff;
}
.btn-danger:hover {
    background: #c0392b;
    color: #fff;
    transform: translateY(-2px);
}
.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
}
.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%);
}

/* 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);
}
.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;
}
.book-info-detail {
    flex: 1;
    min-width: 0;
}
.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-uploader {
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--ink-muted);
}
.book-uploader a {
    color: var(--accent);
    font-weight: 500;
}
.book-uploader a:hover {
    text-decoration: underline;
}
.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;
}

/* 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;
}

.vip-book-badge {
    display: inline-block;
    font-size: 12px;
    background: linear-gradient(135deg, #b8860b 0%, #d4a017 100%);
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 2px 6px rgba(184, 134, 11, 0.25);
}

.book-cover {
    position: relative;
}

.book-cover-mini {
    position: relative;
}

.vip-cover-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 10px;
    background: var(--accent);
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
    z-index: 2;
}

/* 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;
    flex-wrap: wrap;
    gap: 12px;
}
.reading-toolbar .breadcrumb {
    padding: 0;
}
.reading-controls {
    display: flex;
    gap: 18px;
    font-size: 12px;
    color: var(--ink-muted);
    flex-wrap: wrap;
}
.reading-controls a {
    color: var(--ink-muted);
    padding: 3px 8px;
    border-radius: 3px;
    transition: all var(--transition);
    font-size: 12px;
    cursor: pointer;
}
.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;
    flex-wrap: wrap;
}
.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;
}

.vip-chapter-notice {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border: 1px solid #f0dca0;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 24px;
    color: #7a5c1c;
}
.vip-notice-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 6px;
    color: #8a6a20;
}
.vip-chapter-notice p {
    margin: 0;
    text-indent: 0;
    font-size: 14px;
}

.vip-paywall {
    text-align: center;
    padding: 36px 24px;
    margin: 32px 0;
    background: var(--paper-card);
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
}
.paywall-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 12px;
}
.paywall-desc {
    color: var(--ink-light);
    margin-bottom: 20px;
    text-indent: 0;
}
.paywall-tip {
    font-size: 13px;
    color: var(--ink-muted);
    margin: -12px 0 20px;
    text-indent: 0;
}
.vip-paywall .btn {
    margin: 0 6px;
}

.unlock-form {
    margin-top: 16px;
}

.paywall-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.paywall-actions .btn {
    margin: 0;
}

.paywall-tip {
    color: var(--ink-light);
    font-size: 13px;
    margin: 0;
    text-indent: 0;
}

@media (max-width: 576px) {
    .paywall-actions {
        flex-direction: column;
        gap: 10px;
    }

    .paywall-actions .btn {
        width: 100%;
    }
}

.vip-chapter-unlocked {
    text-align: center;
    padding: 16px;
    margin-top: 24px;
    background: rgba(184, 134, 11, 0.08);
    border-radius: var(--radius-md);
    color: var(--accent);
    font-size: 14px;
}
.vip-chapter-unlocked p {
    margin: 0;
    text-indent: 0;
}

/* 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;
}

/* 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-full-list .rank-item {
    display: flex;
    gap: 22px;
    padding: 22px 0;
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition);
}
.rank-full-list .rank-item:last-child {
    border-bottom: none;
}
.rank-full-list .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-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-cover a {
    display: block;
    width: 100%;
    height: 100%;
}
.rank-book-info {
    flex: 1;
    min-width: 0;
}
.rank-book-info h4 {
    font-size: 17px;
    margin-bottom: 8px;
    font-weight: 600;
}
.rank-book-info h4 a {
    color: var(--ink);
}
.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;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.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);
}
.rank-book-info .latest a:hover {
    color: var(--accent-dim);
}

/* Search */
.search-page {
    padding-bottom: 20px;
}
.search-main {
    padding: 32px 0;
    text-align: center;
}
.search-main form {
    display: flex;
    justify-content: center;
    gap: 6px;
}
.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;
    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;
    min-width: 0;
}
.search-info h4 {
    font-size: 17px;
    margin-bottom: 8px;
    font-weight: 600;
}
.search-info h4 a {
    color: var(--ink);
}
.search-info h4 a:hover {
    color: var(--accent);
}
.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;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.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);
}
.search-info .tags {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.search-info .tags a {
    display: inline-block;
    padding: 3px 10px;
    background: var(--paper-warm);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-size: 12px;
    color: var(--ink-light);
    transition: all var(--transition);
}
.search-info .tags a:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.empty-tip {
    padding: 60px 0;
    text-align: center;
    color: var(--ink-muted);
}
.empty-tip strong {
    color: var(--accent);
}

.keyword-mark {
    color: var(--red-soft);
    font-weight: 600;
}

.suggest-list {
    position: absolute;
    z-index: 1000;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: var(--paper-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    display: none;
    text-align: left;
    overflow: hidden;
}
.suggest-list a {
    display: block;
    padding: 10px 16px;
    color: var(--ink);
    font-size: 14px;
    border-bottom: 1px solid var(--border-light);
}
.suggest-list a:last-child {
    border-bottom: none;
}
.suggest-list a:hover {
    background: var(--paper-warm);
    color: var(--accent);
}
.search-main {
    position: relative;
}

/* 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 span.current,
.pagination a.active {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
    color: #fff;
    border-color: var(--accent);
    font-weight: 600;
}

.pagination .ellipsis {
    border: none;
    background: transparent;
    color: var(--ink-muted);
    cursor: default;
    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);
}
.footer-info {
    font-size: 12px;
    line-height: 2;
    color: rgba(255, 255, 255, 0.35);
}

/* Alerts */
.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,
.alert-danger {
    background: #fde8db;
    color: #c05b2b;
    border: 1px solid #f5c6a8;
}

/* Auth Page */
.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;
}
.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-shadow 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: 100px;
}
.auth-form .form-input {
    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-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 */
.profile-page {
    padding: 20px 0 40px;
}
.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-avatar-section {
    text-align: center;
    flex-shrink: 0;
}
.profile-avatar-img,
.profile-avatar-default {
    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);
}
.profile-avatar-default {
    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;
    letter-spacing: 0.04em;
}
.profile-name {
    font-size: 22px;
    font-weight: 700;
    margin-top: 12px;
    color: #f5e6c8;
    letter-spacing: 0.04em;
}
.profile-meta {
    flex: 1;
    position: relative;
    z-index: 1;
}
.profile-meta p {
    font-size: 14px;
    color: rgba(245, 230, 200, 0.65);
    margin-bottom: 6px;
}
.profile-meta .vip-badge {
    display: inline-block;
    padding: 3px 12px;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    color: #ffd700;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
}
.profile-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.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;
}

/* Bookshelf */
.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-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-info {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}
.bookcase-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 6px;
}
.bookcase-title:hover {
    color: var(--accent);
}
.bookcase-meta {
    display: flex;
    gap: 14px;
    align-items: center;
    font-size: 13px;
    color: var(--ink-muted);
    margin-bottom: 6px;
}
.bookcase-read-info,
.bookcase-new-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    line-height: 1.6;
    flex-wrap: wrap;
}
.bookcase-read-info a,
.bookcase-new-info a {
    color: var(--ink);
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bookcase-read-info a:hover,
.bookcase-new-info a:hover {
    color: var(--accent);
}
.bookcase-new-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f44336;
    flex-shrink: 0;
    animation: statusPulse 1.5s ease-in-out infinite;
}
.bookcase-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    padding-top: 2px;
}

/* Public profile mini bookshelf */
.book-grid-mini {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 16px 12px;
}
.book-card-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.book-cover-mini {
    display: block;
    width: 80px;
    height: 106px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: var(--paper-warm);
    margin-bottom: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.book-cover-mini:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 14px rgba(0,0,0,0.12);
}
.book-cover-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.book-title-mini {
    font-size: 13px;
    color: var(--ink);
    text-decoration: none;
    line-height: 1.4;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}
.book-title-mini:hover {
    color: var(--accent);
}
.book-author-mini {
    font-size: 12px;
    color: var(--ink-muted);
    margin-top: 2px;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}
@media (max-width: 768px) {
    .book-grid-mini {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 12px 8px;
    }
    .book-cover-mini {
        width: 72px;
        height: 96px;
    }
    .book-title-mini,
    .book-author-mini {
        max-width: 72px;
    }
}

/* User Upload */
.upload-form {
    max-width: 720px;
}

.upload-form .form-row {
    margin-bottom: 18px;
}

.upload-form .form-label {
    display: block;
    font-size: 14px;
    color: var(--ink);
    margin-bottom: 6px;
    font-weight: 500;
}

.upload-form .form-label .required {
    color: #dc3545;
    margin-left: 2px;
}

.upload-form .form-input,
.upload-form .form-select,
.upload-form .form-textarea,
.upload-form .form-file {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--paper-line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: inset 0 1px 2px rgba(44, 36, 22, 0.04);
}

.upload-form .form-input:focus,
.upload-form .form-select:focus,
.upload-form .form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.12), inset 0 1px 2px rgba(44, 36, 22, 0.04);
}

.upload-form .form-textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.6;
}

.upload-form .form-hint {
    font-size: 12px;
    color: var(--ink-muted);
    margin-top: 4px;
    line-height: 1.5;
}

.upload-form .radio-group {
    display: flex;
    gap: 16px;
    padding: 10px 12px;
    border: 1px solid var(--paper-line);
    border-radius: 6px;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(44, 36, 22, 0.04);
}

.upload-form .radio-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--ink-body);
    cursor: pointer;
}

.upload-form .form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.upload-form .form-message {
    margin-top: 16px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
}

.upload-form .form-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.upload-form .form-message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.upload-form .form-message.info {
    background: #fff8e1;
    color: #b8860b;
    border: 1px solid #ffecb3;
}

.upload-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.upload-item {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: var(--paper-warm);
    border: 1px solid var(--paper-line);
    border-radius: 8px;
}

.upload-cover {
    width: 70px;
    height: 94px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--paper-muted);
}

.upload-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.upload-info {
    flex: 1;
    min-width: 0;
}

.upload-info h4 {
    margin: 0 0 6px;
    font-size: 15px;
}

.upload-info h4 a {
    color: var(--ink);
    text-decoration: none;
}

.upload-info h4 a:hover {
    color: var(--accent);
}

.upload-info .meta,
.upload-info .stats {
    font-size: 13px;
    color: var(--ink-muted);
    margin: 0 0 4px;
    line-height: 1.6;
}

.upload-info .meta span,
.upload-info .stats span {
    margin-right: 12px;
}

@media (max-width: 768px) {
    .upload-form .form-actions {
        flex-direction: column;
    }
    .upload-item {
        gap: 10px;
        padding: 10px;
    }
    .upload-cover {
        width: 60px;
        height: 80px;
    }
}

/* Comments */
.comment-section {
    margin-top: 8px;
}
.comment-total {
    font-size: 13px;
    color: var(--ink-muted);
    font-weight: 400;
    margin-left: auto;
}
.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-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,
.comment-avatar-text {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}
.comment-avatar-text {
    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;
}
.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);
}
.comment-nickname:hover {
    color: var(--accent);
}
.comment-time {
    font-size: 12px;
    color: var(--ink-muted);
    margin-left: auto;
}
.comment-content {
    font-size: 14px;
    color: var(--ink);
    line-height: 1.7;
    word-break: break-all;
    margin-bottom: 8px;
}
.comment-form {
    margin-top: 20px;
}
.comment-form textarea {
    width: 100%;
    padding: 12px 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: 80px;
    font-family: inherit;
    transition: border-color var(--transition);
}
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.06);
}
.comment-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

/* Forms inline */
.inline-form {
    display: inline;
}

/* Utility */
.text-muted {
    color: var(--ink-muted);
}
.text-primary {
    color: var(--status-serial);
}
.text-success {
    color: var(--status-full);
}
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1240px) {
    .container {
        width: auto;
        margin: 0 20px;
    }
    body {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
    }
    .search-box {
        order: 3;
        flex-basis: 100%;
        margin: 14px 0 0;
    }
    .main-content {
        flex-direction: column;
    }
    .content-right {
        width: 100%;
    }
    .book-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .book-grid.small {
        grid-template-columns: repeat(3, 1fr);
    }
    .book-grid.banner-recommend-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .book-grid.banner-recommend-grid .book-cover {
        width: 100px;
        height: 132px;
    }
    .book-detail {
        flex-direction: column;
    }
    .book-cover-large {
        margin: 0 auto;
    }
    .chapter-list {
        flex-direction: column;
    }
    .reading-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .filter-row {
        flex-direction: column;
    }
    .filter-label {
        line-height: 1.6;
        margin-bottom: 6px;
    }
    .rank-item {
        flex-wrap: wrap;
    }
    .search-main form {
        flex-direction: column;
        align-items: center;
    }
    .search-input-large {
        width: 100%;
    }
}

/* Comment images & replies */
.comment-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0;
}
.comment-image-thumb {
    display: block;
    width: 90px;
    height: 90px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--paper-card);
}
.comment-image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.comment-actions {
    margin: 6px 0 10px;
}
.comment-reply-btn {
    background: none;
    border: none;
    color: var(--ink-muted);
    font-size: 13px;
    cursor: pointer;
    padding: 0;
}
.comment-reply-btn:hover {
    color: var(--accent);
}
.comment-reply-list {
    margin: 12px 0 10px;
    padding: 12px 14px;
    background: var(--paper-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}
.comment-reply-item {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-light);
    position: relative;
}
.comment-reply-item:last-child {
    border-bottom: none;
}
.reply-nickname {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}
.reply-at {
    font-size: 12px;
    color: var(--accent);
    margin-left: 6px;
}
.reply-time {
    font-size: 12px;
    color: var(--ink-muted);
    margin-left: auto;
    float: right;
}
.reply-content {
    font-size: 13px;
    color: var(--ink);
    line-height: 1.6;
    margin-top: 4px;
}
.reply-images {
    margin: 6px 0;
}
.reply-inline {
    margin-top: 4px;
    font-size: 12px;
}
.comment-load-more-replies {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 13px;
    cursor: pointer;
    padding: 4px 0;
    margin-bottom: 8px;
}
.comment-load-more-replies:hover {
    text-decoration: underline;
}
.comment-form.reply-form {
    margin-top: 12px;
    padding: 12px;
    background: var(--paper-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}
.comment-form-files {
    margin: 10px 0;
}
.comment-file-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ink-muted);
    cursor: pointer;
}
.comment-file-label input[type="file"] {
    display: none;
}
.comment-image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.comment-image-preview .thumb {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}
.comment-image-preview .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.comment-form-actions {
    justify-content: flex-end;
    gap: 10px;
}

/* User center tabs */
.user-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}
.user-tabs a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--ink-muted);
    font-size: 14px;
    text-decoration: none;
}
.user-tabs a.active,
.user-tabs a:hover {
    color: var(--accent);
    background: var(--paper-card);
}

/* My comments */
.my-comment-item {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}
.my-comment-item:last-child {
    border-bottom: none;
}
.my-comment-meta {
    font-size: 12px;
    color: var(--ink-muted);
    margin-bottom: 6px;
}
.my-comment-meta a {
    color: var(--accent);
}
.my-comment-content {
    font-size: 14px;
    color: var(--ink);
    line-height: 1.6;
}
.my-comment-reply-info {
    font-size: 12px;
    color: var(--accent);
    margin-bottom: 4px;
}

/* Friends & messages */
.friend-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
    min-height: 400px;
}
.friend-sidebar {
    background: var(--paper-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
}
.friend-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.friend-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--ink);
}
.friend-row:hover,
.friend-row.active {
    background: var(--paper-warm);
}
.friend-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--border);
}
.friend-avatar-default {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}
.friend-name {
    flex: 1;
    font-size: 14px;
}
.friend-unread {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--status-serial);
}
.friend-main {
    background: var(--paper-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
}
.friend-search-form {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.friend-search-form input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--paper);
    color: var(--ink);
}
.friend-request-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}
.friend-request-item:last-child {
    border-bottom: none;
}

/* Messages */
.message-thread {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 480px;
    overflow-y: auto;
    padding: 8px;
    margin-bottom: 16px;
}
.message-bubble {
    display: flex;
    flex-direction: column;
    max-width: 75%;
}
.message-bubble.me {
    align-self: flex-end;
    align-items: flex-end;
}
.message-bubble.other {
    align-self: flex-start;
    align-items: flex-start;
}
.message-content {
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 1.5;
    background: var(--paper-warm);
}
.message-bubble.me .message-content {
    background: var(--accent);
    color: #fff;
}
.message-time {
    font-size: 11px;
    color: var(--ink-muted);
    margin-top: 4px;
}
.message-form {
    display: flex;
    gap: 10px;
}
.message-form textarea {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    resize: vertical;
    min-height: 60px;
    background: var(--paper);
    color: var(--ink);
}
.message-empty {
    text-align: center;
    color: var(--ink-muted);
    padding: 60px 20px;
}

@media (max-width: 768px) {
    .friend-layout {
        grid-template-columns: 1fr;
    }
    .friend-sidebar {
        min-height: auto;
    }
}

/* =====================
   Rising Rank (Home)
   ===================== */
.rising-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.rising-col {
    background: var(--paper-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}

.rising-col:hover {
    box-shadow: var(--shadow-md);
}

.rising-col .section-header {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.rising-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rising-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 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;
    padding-right: 6px;
    margin: 0 -6px;
    background: var(--paper-warm);
    border-radius: var(--radius-sm);
}

.rising-cover {
    width: 52px;
    height: 70px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    background: var(--paper-warm);
    transition: all var(--transition);
}

.rising-cover:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.rising-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rising-info {
    flex: 1;
    min-width: 0;
}

.rising-info .book-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 5px;
}

.rising-info .book-title:hover {
    color: var(--accent);
}

.rising-info .book-meta-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.rising-info .book-meta-line .author {
    font-size: 12px;
    color: var(--ink-muted);
}

.rising-info .book-meta-line .stat {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
}

.rising-info .latest-chapter {
    font-size: 12px;
    color: var(--accent);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.rising-info .latest-chapter:hover {
    text-decoration: underline;
}

.infinite-loading {
    text-align: center;
    padding: 16px;
    color: var(--ink-muted);
    font-size: 13px;
}

.loading-dots::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
}

/* =====================
   User Center Layout
   ===================== */
.user-center-page {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0;
}

.user-center-header {
    background: linear-gradient(135deg, #2c2416 0%, #1a1410 100%);
    border-radius: var(--radius-lg);
    padding: 32px 40px;
    margin-bottom: 24px;
    color: #f5e6c8;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(184, 134, 11, 0.2);
    box-shadow: var(--shadow-md);
}

.user-center-header::before {
    content: '';
    position: absolute;
    inset: 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;
}

.user-center-header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    position: relative;
    z-index: 1;
}

.user-center-avatar,
.user-center-avatar-default {
    width: 90px;
    height: 90px;
    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);
    flex-shrink: 0;
}

.user-center-avatar-default {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
    color: #fff;
    font-size: 34px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-center-header-info {
    flex: 1;
    min-width: 0;
}

.user-center-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #f5e6c8;
    letter-spacing: 0.03em;
}

.user-center-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: rgba(245, 230, 200, 0.65);
}

.user-center-header-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.user-center-vip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 12px;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    color: #ffd700;
    font-size: 12px;
    font-weight: 600;
}

.user-center-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 24px;
    padding: 14px;
    background: var(--paper-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.user-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    color: var(--ink-light);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
    border: 1px solid transparent;
    background: var(--paper-warm);
}

.user-nav-item:hover {
    background: var(--paper-card);
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.user-nav-item.active {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.25);
}

.user-center-content .section {
    background: var(--paper-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.user-sub-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
}

.user-sub-tabs a {
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    color: var(--ink-light);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
    background: var(--paper-warm);
    border: 1px solid transparent;
}

.user-sub-tabs a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.user-sub-tabs a.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.nav-message-link {
    position: relative;
}

.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #dc3545;
    color: #fff;
    font-size: 11px;
    line-height: 1;
    font-weight: 600;
}

.nav-badge.muted {
    background: var(--ink-muted);
}

.profile-quick-stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.quick-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 12px;
    background: var(--paper-warm);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: all var(--transition);
    text-decoration: none;
}

.quick-stat-card:hover {
    background: var(--paper-card);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.quick-stat-num {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.quick-stat-label {
    font-size: 13px;
    color: var(--ink-light);
    font-weight: 500;
}

.user-center-name {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.user-level-badge,
.header-level-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    border-radius: 20px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.header-level-badge {
    padding: 2px 7px;
    font-size: 11px;
}

/* Level card */
.level-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px;
    background: var(--paper-warm);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

.level-badge {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.level-info {
    flex: 1;
    min-width: 0;
}

.level-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
}

.level-points {
    font-size: 14px;
    color: var(--ink-light);
    margin-bottom: 10px;
}

.level-points strong {
    color: var(--accent);
    font-size: 18px;
}

.level-progress-wrap {
    height: 8px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}

.level-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
    border-radius: 4px;
    transition: width 0.4s ease;
}

.level-progress-tip {
    font-size: 12px;
    color: var(--ink-muted);
}

/* Profile level card with checkin */
.profile-level-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: stretch;
    margin-bottom: 24px;
}

.profile-level-card .level-card {
    margin: 0;
}

.profile-checkin-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: var(--paper-warm);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    min-width: 160px;
}

.checkin-today-status {
    font-size: 14px;
    color: var(--ink-light);
    font-weight: 500;
}

.checkin-today-status.checked {
    color: var(--status-full);
}

/* Settings page */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
}

.settings-left .section + .section,
.settings-right .section + .section {
    margin-top: 24px;
}

.avatar-setting {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.avatar-preview-wrap {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--paper-warm);
    border: 2px solid var(--border-light);
    flex-shrink: 0;
}

.avatar-preview-img,
.avatar-preview-default {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
    color: #fff;
    font-size: 34px;
    font-weight: 700;
}

.form-tip {
    font-size: 12px;
    color: var(--ink-muted);
    margin-top: 8px;
}

.form-tip.muted {
    color: var(--ink-light);
}

.form-tip strong {
    color: var(--accent);
}

.checkin-card {
    padding: 20px;
    background: var(--paper-warm);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

.checkin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.checkin-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px;
    background: var(--paper-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.checkin-num {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.checkin-label {
    font-size: 12px;
    color: var(--ink-muted);
}

.checkin-tip {
    margin-top: 10px;
    font-size: 12px;
    color: var(--ink-muted);
    text-align: center;
}

/* Level rules */
.level-rules-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.level-rule-item {
    padding: 14px;
    background: var(--paper-warm);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    opacity: 0.75;
    transition: all var(--transition);
}

.level-rule-item.active {
    opacity: 1;
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(184, 134, 11, 0.1);
}

.level-rule-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.level-rule-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 12px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.level-rule-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}

.level-rule-points {
    margin-left: auto;
    font-size: 12px;
    color: var(--ink-muted);
}

.level-rule-privileges {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 12px;
    font-size: 13px;
    color: var(--ink-light);
}

.point-rules-list {
    list-style: none;
}

.point-rules-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-light);
    font-size: 14px;
    color: var(--ink-light);
}

.point-rules-list li:last-child {
    border-bottom: none;
}

.point-rules-list strong {
    color: var(--accent);
    font-weight: 700;
}

/* Public profile level */
.public-level-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    margin-right: 8px;
}

@media (max-width: 768px) {
    .user-center-header {
        padding: 24px;
    }
    .user-center-header-inner {
        flex-direction: column;
        text-align: center;
    }
    .user-center-nav {
        gap: 8px;
        padding: 10px;
    }
    .user-nav-item {
        padding: 8px 14px;
        font-size: 13px;
    }
    .profile-quick-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    .profile-level-card {
        grid-template-columns: 1fr;
    }
    .settings-grid {
        grid-template-columns: 1fr;
    }
    .settings-right {
        order: -1;
    }
    .level-rule-privileges {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Responsive Enhancements
   =================================== */

/* Header mobile layout */
.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: #f5e6c8;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 150px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fffef9;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: 6px;
    z-index: 1001;
}

.user-area:hover .user-dropdown,
.user-info:hover + .user-dropdown,
.user-dropdown:hover {
    display: flex;
}

.user-dropdown a,
.user-dropdown button,
.user-dropdown form button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 12px;
    color: var(--ink);
    font-size: 13px;
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    text-align: left;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
    background: var(--paper-warm);
    color: var(--accent);
}

.user-area .btn-login,
.user-area .btn-register {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.75);
    background: transparent;
}

.user-area .btn-login:hover,
.user-area .btn-register:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

.header-logout-form {
    display: inline-flex;
    margin: 0;
    padding: 0;
}

.user-area .btn-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    border: 1px solid rgba(245, 90, 90, 0.35);
    color: rgba(255, 210, 210, 0.9);
    background: rgba(220, 53, 69, 0.12);
    cursor: pointer;
    line-height: 1.5;
}

.user-area .btn-logout:hover {
    color: #fff;
    background: rgba(220, 53, 69, 0.22);
    border-color: rgba(245, 90, 90, 0.55);
    transform: translateY(-1px);
}

@media (max-width: 1100px) {
    .header .container {
        flex-wrap: wrap;
        gap: 14px 0;
    }
    .search-box {
        order: 3;
        flex-basis: 100%;
        margin: 0;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    body {
        min-width: auto;
    }

    .container {
        width: 100%;
        padding: 0 14px;
        margin: 0 auto;
    }

    .header {
        padding: 14px 0;
    }

    .header .container {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px;
    }

    .header-left {
        gap: 10px;
    }

    .nav-toggle {
        display: flex;
    }

    .logo a {
        gap: 8px;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }

    .logo-symbol {
        font-size: 16px;
    }

    .logo-text {
        display: none;
    }

    .search-box {
        display: block;
        order: 3;
        flex-basis: 100%;
        margin: 10px 0 0;
        min-width: 0;
    }

    .search-box form {
        height: 40px;
        width: 100%;
    }

    .search-input {
        flex: 1;
        min-width: 0;
        padding: 9px 14px;
        font-size: 14px;
    }

    .search-btn {
        padding: 9px 18px;
        font-size: 14px;
        flex-shrink: 0;
    }

    .user-area {
        gap: 6px;
        position: relative;
    }

    .user-area > a.btn-login,
    .user-area > a.btn-register {
        padding: 6px 12px;
        font-size: 12px;
    }

    .user-info {
        padding: 4px 8px 4px 4px;
        gap: 6px;
    }

    .user-info .user-name {
        display: none;
    }

    .user-dropdown {
        display: none !important;
    }

    .user-area .btn-logout {
        padding: 6px 12px;
        font-size: 12px;
    }

    /* Mobile navigation */
    .nav {
        position: relative;
        top: auto;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        padding: 8px 0;
    }

    .nav.open .nav-list {
        display: flex;
    }

    .nav-list > li > a {
        padding: 12px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-list > li:last-child > a {
        border-bottom: none;
    }

    .nav-list > li.active > a::after,
    .nav-list > li > a:hover::after {
        display: none;
    }

    .sub-nav {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 0;
        background: rgba(0, 0, 0, 0.15);
        animation: none;
    }

    .nav-list > li.sub-open .sub-nav {
        display: block;
    }

    .sub-nav a {
        color: rgba(255, 255, 255, 0.75);
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .sub-nav a:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.04);
        padding-left: 28px;
    }

    .sub-nav a::before {
        display: none;
    }

    /* Main content */
    main.container {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .main-content {
        flex-direction: column;
        gap: 18px;
    }

    .content-right {
        width: 100%;
    }

    /* Banner */
    .banner-slider {
        margin: 14px 0;
        border-radius: var(--radius-md);
    }

    .banner-item.active {
        flex-direction: column;
        align-items: center;
        gap: 18px;
        padding: 20px;
        text-align: center;
    }

    .banner-cover {
        width: 120px;
        height: 160px;
    }

    .banner-info h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .banner-info .desc {
        max-height: 72px;
        font-size: 13px;
        margin-bottom: 14px;
    }

    .banner-dots {
        bottom: 12px;
    }

    /* Sections */
    .section {
        padding: 18px;
        margin: 14px 0;
        border-radius: var(--radius-md);
    }

    .section-header {
        margin-bottom: 14px;
        padding-bottom: 10px;
    }

    .section-header h2 {
        font-size: 16px;
    }

    .section-header h2::before {
        height: 16px;
    }

    .section-subtitle,
    .section-desc {
        display: none;
    }

    /* Book grids */
    .book-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px 10px;
    }

    .book-grid.small {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px 10px;
    }

    .book-grid.banner-recommend-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px 10px;
    }

    .book-cover {
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 4;
        margin-bottom: 8px;
    }

    .book-grid.small .book-cover {
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 4;
    }

    .book-grid.banner-recommend-grid .book-cover {
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 4;
    }

    .book-item h4 {
        font-size: 13px;
        line-height: 1.35;
    }

    .book-item .author {
        font-size: 11px;
    }

    .book-item .desc {
        display: none;
    }

    .book-item .book-extra {
        margin-top: 4px;
        gap: 4px;
    }

    .book-item .book-extra .category {
        font-size: 11px;
    }

    /* Rising section */
    .rising-section {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 14px;
    }

    .rising-col {
        padding: 16px;
    }

    .rising-list li {
        padding: 10px 0;
        gap: 10px;
    }

    .rising-cover {
        width: 44px;
        height: 60px;
    }

    .rising-info .book-title {
        font-size: 13px;
    }

    .rising-info .book-meta-line {
        gap: 6px;
    }

    .rising-info .latest-chapter {
        display: none;
    }

    /* Tables - horizontal scroll */
    .update-list {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -18px;
        padding: 0 18px;
    }

    .data-table {
        min-width: 720px;
    }

    .data-table th,
    .data-table td {
        padding: 10px 8px;
        font-size: 12.5px;
        white-space: nowrap;
    }

    /* Sidebar */
    .side-section {
        padding: 14px;
        margin-bottom: 14px;
    }

    .side-title {
        font-size: 14px;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    .rank-list li {
        padding: 8px 0;
    }

    .rank-num {
        width: 20px;
        height: 20px;
        line-height: 20px;
        font-size: 10px;
        margin-right: 10px;
    }

    .rank-name {
        font-size: 13px;
    }

    /* Book detail */
    .book-detail {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .book-cover-large {
        width: 150px;
        height: 200px;
        margin: 0 auto;
    }

    .book-info-detail h1 {
        font-size: 20px;
        text-align: center;
        margin-bottom: 12px;
    }

    .book-meta,
    .book-stats {
        justify-content: center;
        gap: 6px 14px;
        font-size: 12.5px;
    }

    .book-uploader {
        text-align: center;
        font-size: 12px;
    }

    .book-intro h3 {
        font-size: 14px;
    }

    .book-intro p {
        font-size: 13px;
        line-height: 1.8;
    }

    .book-actions {
        justify-content: center;
        gap: 10px;
    }

    .book-actions .btn,
    .book-actions .btn-read {
        padding: 9px 18px;
        font-size: 13px;
    }

    /* Chapter list */
    .chapter-list {
        flex-direction: column;
        gap: 0;
    }

    .chapter-col {
        column-count: 2;
        column-gap: 12px;
    }

    .chapter-col a {
        break-inside: avoid;
        padding: 7px 8px;
        font-size: 12.5px;
    }

    .chapter-col a:hover {
        padding-left: 8px;
    }

    /* Reading page */
    .reading-area {
        max-width: 100%;
        padding: 14px;
    }

    .reading-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 10px 0;
    }

    .reading-toolbar .breadcrumb {
        font-size: 12px;
    }

    .reading-controls {
        gap: 10px;
        font-size: 12px;
    }

    .chapter-nav {
        padding: 12px;
        gap: 8px;
    }

    .chapter-nav a,
    .chapter-nav span {
        font-size: 13px;
        padding: 5px 10px;
    }

    .nav-prev,
    .nav-next,
    .nav-center {
        flex: 1;
    }

    .nav-next {
        text-align: right;
    }

    .nav-center {
        text-align: center;
        padding: 0;
    }

    .chapter-title {
        font-size: 20px;
        margin: 18px 0 10px;
    }

    .chapter-info {
        font-size: 12px;
        gap: 10px;
    }

    .chapter-content {
        font-size: 16px;
        line-height: 1.9;
        padding: 0;
    }

    .chapter-content p {
        margin-bottom: 14px;
    }

    /* Filter bar */
    .filter-bar {
        padding: 14px;
    }

    .filter-row {
        flex-direction: column;
        gap: 8px;
    }

    .filter-label {
        width: auto;
        line-height: 1.4;
        font-size: 12px;
    }

    .filter-options a {
        padding: 5px 12px;
        font-size: 12px;
    }

    .rank-tabs {
        padding: 12px;
        gap: 6px;
    }

    .rank-tabs a {
        padding: 6px 12px;
        font-size: 12px;
    }

    /* Rank full list */
    .rank-full-list .rank-item {
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px 0;
    }

    .rank-num-wrap {
        width: 36px;
        padding-top: 0;
    }

    .rank-num-large {
        font-size: 20px;
    }

    .rank-cover {
        width: 72px;
        height: 96px;
    }

    .rank-book-info {
        flex: 1;
        min-width: 200px;
    }

    .rank-book-info h4 {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .rank-book-info .meta span,
    .rank-book-info .stats span {
        margin-right: 10px;
        font-size: 11.5px;
    }

    .rank-book-info .desc {
        font-size: 12px;
        margin: 6px 0;
    }

    .rank-book-info .latest {
        font-size: 12px;
    }

    /* Search */
    .search-main {
        padding: 20px 0;
    }

    .search-main form {
        flex-direction: column;
        gap: 10px;
    }

    .search-input-large {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
    }

    .search-btn-large {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }

    .search-item {
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px 0;
    }

    .search-cover {
        width: 72px;
        height: 96px;
    }

    .search-info {
        flex: 1;
        min-width: 200px;
    }

    .search-info h4 {
        font-size: 15px;
    }

    .search-info .meta span {
        margin-right: 10px;
        font-size: 11.5px;
    }

    .search-info .desc {
        font-size: 12px;
    }

    .hot-tags {
        padding: 12px 0;
        gap: 8px;
    }

    .hot-tag {
        padding: 6px 14px;
        font-size: 12px;
    }

    /* Pagination */
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
        padding: 18px 0;
    }

    .pagination a,
    .pagination span {
        min-width: 34px;
        height: 34px;
        padding: 0 10px;
        font-size: 12px;
    }

    /* User center */
    .user-center-page {
        margin: 14px auto;
    }

    .user-center-header {
        padding: 20px;
        margin-bottom: 16px;
    }

    .user-center-header-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .user-center-avatar,
    .user-center-avatar-default {
        width: 72px;
        height: 72px;
    }

    .user-center-avatar-default {
        font-size: 28px;
    }

    .user-center-name {
        font-size: 18px;
        justify-content: center;
    }

    .user-center-header-meta {
        justify-content: center;
        gap: 8px 12px;
        font-size: 12px;
    }

    .user-center-nav {
        gap: 6px;
        padding: 8px;
        margin-bottom: 16px;
    }

    .user-nav-item {
        padding: 7px 12px;
        font-size: 12px;
        gap: 4px;
    }

    .user-center-content .section {
        padding: 16px;
    }

    .profile-quick-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 16px;
    }

    .quick-stat-card {
        padding: 14px 8px;
    }

    .quick-stat-num {
        font-size: 20px;
    }

    .quick-stat-label {
        font-size: 12px;
    }

    .profile-level-card {
        gap: 14px;
        margin-bottom: 18px;
    }

    .profile-checkin-action {
        min-width: auto;
        padding: 14px;
    }

    .level-card {
        padding: 14px;
        gap: 14px;
    }

    .level-badge {
        width: 52px;
        height: 52px;
        font-size: 14px;
    }

    .level-name {
        font-size: 15px;
    }

    .level-points {
        font-size: 13px;
    }

    .level-points strong {
        font-size: 15px;
    }

    .level-progress-wrap {
        height: 6px;
    }

    .avatar-setting {
        gap: 14px;
    }

    .avatar-preview-wrap {
        width: 72px;
        height: 72px;
    }

    .checkin-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .checkin-num {
        font-size: 18px;
    }

    .user-sub-tabs {
        gap: 6px;
        margin-bottom: 14px;
        padding-bottom: 10px;
    }

    .user-sub-tabs a {
        padding: 6px 12px;
        font-size: 12px;
    }

    /* Bookshelf */
    .bookcase-item {
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px 0;
    }

    .bookcase-cover {
        width: 60px;
        height: 80px;
    }

    .bookcase-title {
        font-size: 14px;
    }

    .bookcase-meta,
    .bookcase-read-info,
    .bookcase-new-info {
        font-size: 12px;
    }

    .bookcase-read-info a,
    .bookcase-new-info a {
        max-width: 240px;
    }

    .bookcase-actions {
        flex-direction: row;
        width: 100%;
        justify-content: flex-start;
        padding-top: 0;
    }

    /* Public profile */
    .profile-card {
        flex-direction: column;
        gap: 20px;
        padding: 24px;
        text-align: center;
    }

    .profile-avatar-img,
    .profile-avatar-default {
        width: 80px;
        height: 80px;
    }

    .profile-avatar-default {
        font-size: 32px;
    }

    .profile-name {
        font-size: 18px;
    }

    .profile-meta p {
        font-size: 13px;
    }

    .profile-actions {
        justify-content: center;
    }

    .profile-section {
        padding: 16px;
    }

    .profile-section-title {
        font-size: 15px;
    }

    /* Comments */
    .comment-item {
        gap: 10px;
        padding: 14px 0;
    }

    .comment-avatar-col {
        width: 36px;
    }

    .comment-avatar,
    .comment-avatar-text {
        width: 36px;
        height: 36px;
    }

    .comment-avatar-text {
        font-size: 14px;
    }

    .comment-nickname {
        font-size: 13px;
    }

    .comment-time {
        font-size: 11px;
    }

    .comment-content {
        font-size: 13px;
    }

    .comment-form textarea {
        min-height: 70px;
        font-size: 13px;
    }

    .comment-image-thumb {
        width: 70px;
        height: 70px;
    }

    .reply-content {
        font-size: 12px;
    }

    /* Upload */
    .upload-form {
        max-width: 100%;
    }

    .upload-form .form-actions {
        flex-direction: column;
    }

    .upload-form .form-actions .btn {
        width: 100%;
    }

    /* Auth */
    .auth-page {
        padding: 20px 0;
        min-height: auto;
    }

    .auth-card {
        width: 100%;
        padding: 24px 18px;
        border-radius: var(--radius-md);
    }

    .auth-card h2 {
        font-size: 20px;
    }

    /* Footer */
    .footer {
        padding: 24px 0;
        margin-top: 24px;
    }

    .footer-links {
        gap: 4px;
        margin-bottom: 10px;
    }

    .footer-links a {
        font-size: 12px;
    }

    .footer-info {
        font-size: 11px;
    }

    /* Alerts */
    .alert {
        padding: 12px 14px;
        font-size: 13px;
    }

    /* Empty tip */
    .empty-tip {
        padding: 40px 0;
        font-size: 13px;
    }

    /* Breadcrumb */
    .breadcrumb {
        padding: 12px 0;
        font-size: 12px;
    }

    /* Similar section */
    .similar-section .book-grid.mini {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px 10px;
    }

    .similar-section .book-card.mini {
        text-align: center;
    }

    .similar-section .book-cover {
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 4;
        margin-bottom: 8px;
    }

    .similar-section .book-info h3 {
        font-size: 13px;
    }

    .similar-section .book-summary {
        display: none;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }

    .book-grid,
    .book-grid.small,
    .book-grid.banner-recommend-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px 8px;
    }

    .chapter-col {
        column-count: 1;
    }

    .rank-book-info {
        min-width: 100%;
        order: 3;
        flex-basis: 100%;
    }

    .rank-num-wrap {
        order: 1;
    }

    .rank-cover {
        order: 2;
    }

    .search-info {
        min-width: 100%;
        order: 2;
        flex-basis: 100%;
    }

    .search-cover {
        order: 1;
    }

    .user-center-nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .user-nav-item {
        justify-content: center;
        padding: 7px 4px;
        font-size: 11.5px;
    }

    .profile-quick-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .checkin-stats {
        grid-template-columns: 1fr;
    }

    .book-actions .btn,
    .book-actions .btn-read {
        flex: 1;
        min-width: 120px;
    }

    .book-meta span,
    .book-stats span {
        flex: 1 1 45%;
        text-align: center;
    }

    .chapter-nav {
        flex-wrap: wrap;
    }

    .nav-prev,
    .nav-next,
    .nav-center {
        flex: 1 1 45%;
        text-align: center;
    }

    .nav-center {
        flex-basis: 100%;
        order: -1;
    }

    .pagination a,
    .pagination span {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
    }

    .footer-links a {
        padding: 3px 6px;
    }
}

/* ===================================
   Scroll Entrance Animations
   =================================== */

/* 默认：无动画时保持可见，避免不支持 JS/IO 的浏览器内容消失 */
.scroll-animate {
    opacity: 1;
    transform: none;
    will-change: opacity, transform;
}

/* 当 JS 启用动画后，初始状态设为隐藏 */
.js-scroll-animate .scroll-animate {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.js-scroll-animate .scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 各种动画效果 */
.js-scroll-animate .scroll-animate.fade-up {
    transform: translateY(30px);
}

.js-scroll-animate .scroll-animate.fade-down {
    transform: translateY(-30px);
}

.js-scroll-animate .scroll-animate.fade-left {
    transform: translateX(-30px);
}

.js-scroll-animate .scroll-animate.fade-right {
    transform: translateX(30px);
}

.js-scroll-animate .scroll-animate.zoom-in {
    transform: scale(0.92);
}

.js-scroll-animate .scroll-animate.zoom-out {
    transform: scale(1.08);
}

.js-scroll-animate .scroll-animate.fade-in {
    transform: none;
}

/* 动画完成后的稳定状态 */
.js-scroll-animate .scroll-animate.is-visible {
    opacity: 1;
    transform: none;
}

/* 错开动画（用于列表项） */
.scroll-animate.delay-1 { transition-delay: 0.08s; }
.scroll-animate.delay-2 { transition-delay: 0.16s; }
.scroll-animate.delay-3 { transition-delay: 0.24s; }
.scroll-animate.delay-4 { transition-delay: 0.32s; }
.scroll-animate.delay-5 { transition-delay: 0.40s; }

/* 减少动态偏好：直接显示 */
@media (prefers-reduced-motion: reduce) {
    .js-scroll-animate .scroll-animate {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Friendly Links */
.friend-links-section {
    margin: 40px 0 30px;
    padding: 24px;
    background: var(--paper-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.friend-links-section .section-header {
    margin-bottom: 18px;
}

.friend-links-section .section-header h2 {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    position: relative;
    padding-left: 12px;
}

.friend-links-section .section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.friend-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    align-items: center;
}

.friend-links-list a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--paper-warm);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--ink-light);
    font-size: 13px;
    text-decoration: none;
    transition: all var(--transition);
}

.friend-links-list a:hover {
    background: var(--paper-card);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.friend-links-list a img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .friend-links-section {
        padding: 18px;
        margin: 28px 0 22px;
    }

    .friend-links-list {
        gap: 10px 14px;
    }

    .friend-links-list a {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* Promotion Landing */
.promo-landing-page {
    padding: 30px 0;
}

.promo-landing-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 28px;
    background: linear-gradient(135deg, var(--paper-card) 0%, var(--paper-warm) 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.promo-landing-header h1 {
    font-size: 22px;
    color: var(--ink);
    margin-bottom: 10px;
}

.promo-landing-header p {
    color: var(--ink-light);
    margin-bottom: 0;
}

.promo-code-box {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: var(--paper-warm);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    margin-top: 14px;
}

.promo-code-box code {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
}

.promo-qrcode {
    width: 160px;
    height: 160px;
    margin: 16px auto 0;
    background: #fff;
    padding: 8px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.promo-qrcode img,
.promo-qrcode canvas {
    width: 100% !important;
    height: 100% !important;
}

.promo-novel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.promo-novel-card {
    background: var(--paper-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: all var(--transition);
}

.promo-novel-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.promo-novel-cover {
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--paper-muted);
}

.promo-novel-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-novel-info {
    padding: 12px;
}

.promo-novel-info h4 {
    font-size: 14px;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.promo-novel-info h4 a {
    color: var(--ink);
}

.promo-novel-info h4 a:hover {
    color: var(--accent);
}

.promo-novel-info .author {
    font-size: 12px;
    color: var(--ink-muted);
    margin-bottom: 4px;
}

.promo-novel-info .stats {
    font-size: 12px;
    color: var(--ink-light);
}

.promo-register-bar {
    text-align: center;
    margin-top: 32px;
    padding: 24px;
    background: var(--paper-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

.promo-register-bar .btn {
    padding: 12px 32px;
    font-size: 15px;
}

@media (max-width: 768px) {
    .promo-landing-header {
        padding: 20px 16px;
    }

    .promo-landing-header h1 {
        font-size: 18px;
    }

    .promo-novel-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
    }

    .promo-qrcode {
        width: 140px;
        height: 140px;
    }
}

/* User promotion panel */
.promo-panel {
    background: var(--paper-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.promo-panel-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.promo-link-row {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.promo-link-row input {
    flex: 1;
    min-width: 220px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--paper-warm);
    color: var(--ink);
    font-size: 13px;
}

.promo-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.promo-stat-item {
    text-align: center;
    padding: 16px;
    background: var(--paper-warm);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
}

.promo-stat-num {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}

.promo-stat-label {
    font-size: 12px;
    color: var(--ink-light);
}

@media (max-width: 768px) {
    .promo-stats-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .promo-link-row input {
        width: 100%;
    }
}

