:root {
    --bg-body: #f5f7fb;
    --bg-card: #ffffff;
    --bg-sidebar: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    --primary: #333333;
    --primary-dark: #000000;
    --primary-light: #faf7f2;
    --accent: #b8860b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.03), 0 1px 3px 0 rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.02);
    --transition: all 0.2s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.5;
    min-width: 1280px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 20px 12px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
}
h1 { font-size: 2rem; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.btn-primary, .btn-outline, .btn-danger, .btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    background: none;
}
.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn-outline {
    border: 1px solid var(--border-medium);
    color: var(--text-secondary);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}
.btn-danger {
    background: var(--danger);
    color: white;
}
.btn-danger:hover {
    background: #dc2626;
}
.btn-sm {
    padding: 4px 12px;
    font-size: 0.75rem;
}
.btn-block {
    width: 100%;
    justify-content: center;
}

.site-header {
    background: #2c2c2c;
    border-bottom: 3px solid #b8860b;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 12px 0;
    gap: 16px;
}

.logo a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
}
.logo .site-logo-img {
    height: 48px;
    width: auto;
    max-width: 240px;
    display: block;
    object-fit: contain;
    transition: opacity 0.2s ease;
}
.logo .site-logo-img:hover {
    opacity: 0.85;
}
.logo .site-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}
.main-nav a {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.gold-badge {
    background: #fef9c3;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #854d0e;
}
.user-menu {
    position: relative;
}
.username {
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}
.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    min-width: 150px;
    box-shadow: var(--shadow-md);
    margin-top: 8px;
    z-index: 10;
}
.user-menu:hover .user-dropdown {
    display: block;
}
.user-dropdown a {
    display: block;
    padding: 8px 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.user-dropdown a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.logout-form { margin: 0; padding: 0; background: none; border: none; }
.logout-btn {
    background: none;
    border: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-align: left;
    width: 100%;
    padding: 0;
}
.user-dropdown .logout-btn {
    display: block;
    padding: 8px 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.user-dropdown .logout-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}
.lang-switch .lang-select {
    margin: 0 4px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 4px 8px;
    cursor: pointer;
}
.lang-switch .lang-select:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.lang-switch .lang-select option {
    color: #1a1a1a;
    background: #fff;
}
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.site-main {
    min-height: 70vh;
    padding: 0;
}

.hero-slider {
    margin-bottom: 16px;
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.hero-slider:empty { display:none; margin-bottom:0; }
.hero-slide img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 20px 0 20px;
    flex-wrap: wrap;
}
.section-header h2 {
    font-size: 1.5rem;
}
.view-all {
    color: var(--primary);
    font-size: 0.9rem;
}
.view-all i {
    margin-left: 4px;
}

.novel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 28px;
    margin: 30px 0;
}
.novel-grid.small-grid {
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 12px;
    margin: 0;
}
.novel-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.novel-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.card-cover {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
}
.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.novel-card:hover .card-cover img {
    transform: scale(1.03);
}
.status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}
.status-badge.ongoing {
    background: rgba(245,158,11,0.9);
    color: white;
}
.status-badge.finished {
    background: rgba(16,185,129,0.9);
    color: white;
}
.card-info {
    padding: 14px;
}
.card-info h3 {
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}
.card-info .author {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.card-stats {
    display: flex;
    gap: 12px;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.description-preview {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.novel-card.compact .card-info {
    padding: 8px;
}
.novel-card.compact h3 {
    font-size: 0.85rem;
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin: 40px 0;
}
.rank-box, .recommend-box {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.rank-list {
    list-style: none;
    margin-top: 16px;
}
.rank-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}
.rank-num {
    font-weight: 700;
    width: 30px;
    color: var(--primary);
}
.rank-value {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.rec-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}
.rec-item a {
    display: flex;
    align-items: center;
    gap: 12px;
}
.rec-item img {
    width: 45px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: #f1f5f9;
}
.rec-item span {
    font-weight: 500;
}

.library-hero {
    text-align: center;
    margin: 0 0 32px;
}
.library-hero h1 {
    margin-bottom: 8px;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}
.library-hero p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.filter-section {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 28px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
    width: 100%;
    box-sizing: border-box;
}
.filter-section .filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin-bottom: 18px;
    width: 100%;
}
.filter-section .filter-label {
    flex-shrink: 0;
    width: 80px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0;
}
.filter-section .filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
    width: 100%;
}
.filter-section .filter-option {
    flex: 0 0 auto;
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.85rem;
    background: var(--bg-sidebar);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}
.filter-section .filter-option:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}
.filter-section .filter-option.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.filter-section .filter-option-sub {
    font-size: 12px;
    padding: 3px 10px;
    background: #eef4fb;
    color: #1f4e79;
}
.filter-section .word-range-inputs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    flex: 1;
    width: 100%;
}
.filter-section .word-range-inputs input {
    width: 130px;
    padding: 8px 12px;
    border: 1px solid var(--border-medium);
    border-radius: 40px;
    background: white;
}
.filter-section .filter-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}
.btn-filter {
    flex: 1;
    padding: 10px 24px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    background: var(--primary);
    color: white;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.btn-filter:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}
.btn-reset {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-reset:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

.result-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.view-toggle {
    display: flex;
    gap: 8px;
}
.view-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.view-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.novel-list-container.list-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.novel-list-container.list-view .novel-item {
    display: flex;
    gap: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.novel-list-container.list-view .novel-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.novel-list-container.list-view .novel-cover {
    flex: 0 0 120px;
}
.novel-list-container.list-view .novel-cover img {
    width: 100%;
    border-radius: var(--radius-md);
    aspect-ratio: 2/3;
    object-fit: cover;
}
.novel-list-container.list-view .novel-info {
    flex: 1;
}
.novel-list-container.list-view .novel-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
}
.novel-list-container.list-view .novel-author {
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.novel-list-container.list-view .novel-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.novel-list-container.list-view .novel-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 12px;
}
.novel-list-container.list-view .novel-last {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.novel-list-container.list-view .novel-last a {
    color: var(--primary);
}
.novel-list-container.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 28px;
    margin: 32px 0;
}
.novel-list-container.grid-view .novel-item {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.novel-list-container.grid-view .novel-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.novel-list-container.grid-view .novel-cover img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
}
.novel-list-container.grid-view .novel-info {
    padding: 12px;
}
.novel-list-container.grid-view .novel-title {
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}
.novel-list-container.grid-view .novel-author {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.novel-list-container.grid-view .novel-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.novel-list-container.grid-view .novel-desc,
.novel-list-container.grid-view .novel-last {
    display: none;
}
.novel-list-container.grid-view .status-badge {
    padding: 2px 8px;
    font-size: 0.65rem;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
}
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
}
.page-link:hover,
.page-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.novel-detail-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    background: #fff;
    border: 1px solid #ece4d6;
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 16px;
    align-items: stretch;
}
.detail-cover {
    max-width: 260px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}
.detail-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 4px;
    background: #faf7f2;
}
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}
.detail-info {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.detail-info h1 {
    font-size: 1.6rem;
    margin: 0 0 12px;
    color: #333;
    font-weight: 700;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    overflow-wrap: anywhere;
    word-break: break-word;
    letter-spacing: 0.02em;
}
.detail-info h1 .vip-badge {
    background: #b8860b !important;
    color: #fff !important;
    padding: 2px 10px !important;
    border-radius: 3px !important;
    font-size: 0.7rem !important;
    font-weight: 500;
    letter-spacing: 0.05em;
}
.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 0 0 16px;
    color: #888;
    font-size: 0.88rem;
}
.meta-row i {
    margin-right: 5px;
    color: #b8860b;
    font-size: 0.85rem;
}
.meta-row span {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.author-link {
    color: #333;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.author-link:hover {
    color: #b8860b;
}
.stats-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 0 0 16px;
    color: #888;
    font-size: 0.88rem;
}
.stats-inline i {
    margin-right: 5px;
    color: #b8860b;
    font-size: 0.85rem;
}
.stats-inline span {
    display: inline-flex;
    align-items: center;
}
.stats-inline span > span,
.stats-inline span {
    font-variant-numeric: tabular-nums;
}
.stats-inline strong {
    color: #b8860b;
    font-weight: 600;
    margin: 0 2px;
}
.author-signature {
    margin: 0 0 16px 0;
    padding: 10px 28px;
    background: #faf7f2;
    border-left: 3px solid #b8860b;
    border-radius: 0 4px 4px 0;
    color: #666;
    font-size: 0.85rem;
    line-height: 1.6;
    font-style: italic;
    position: relative;
}
.author-signature i.quote-left {
    color: #b8860b;
    font-size: 1.1rem;
    position: absolute;
    left: 8px;
    top: 2px;
    font-style: normal;
}
.author-signature i.quote-right {
    color: #b8860b;
    font-size: 1.1rem;
    position: absolute;
    right: 8px;
    bottom: 0;
    font-style: normal;
}
.author-signature .muted {
    color: #aaa;
}
.stats-row {
    display: flex;
    gap: 16px;
    background: #faf7f2;
    border: 1px solid #ece4d6;
    padding: 14px 20px;
    border-radius: 4px;
    margin: 16px 0;
}
.stat {
    text-align: center;
    min-width: 0;
    flex: 1;
    overflow: hidden;
    border-right: 1px dotted #e0d8c5;
    padding: 4px 8px;
}
.stat:last-child { border-right: none; }
.stat span {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: #b8860b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: Georgia, serif;
}
.stat label {
    font-size: 0.78rem;
    color: #999;
    margin-top: 4px;
    white-space: nowrap;
}
.description {
    margin-top: 16px;
    background: #ffffff;
    border: 1px solid #ece4d6;
    border-radius: 4px;
    padding: 0;
    overflow: hidden;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}
.description h3 {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin: 0 !important;
    padding: 6px 20px !important;
    background: #faf7f2;
    border-bottom: 1px solid #f0e8d8;
    flex-shrink: 0;
    line-height: 1.4;
}
.description h3::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 14px;
    background: #b8860b;
    border-radius: 2px;
    margin-right: 8px;
}
.description p,
.description .description-content {
    line-height: 1.75;
    color: #666;
    font-size: 0.92rem;
    margin: 0 !important;
    padding: 6px 20px 16px !important;
    text-align: justify;
}
.description p::-webkit-scrollbar {
    width: 6px;
}
.description p::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}
.description p::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}
.description p::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}
.chapters-section {
    background: #fff;
    border: 1px solid #ece4d6;
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 16px;
}
.chapter-sort {
    display: flex;
    gap: 8px;
}
.sort-btn {
    background: none;
    border: 1px solid var(--border-light);
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
}
.sort-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
.chapters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
    width: 100%;
}
.chapter-item {
    width: 100%;
}
.chapter-item a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 12px !important;
    background: var(--bg-sidebar);
    border-radius: var(--radius-md);
    transition: background 0.2s;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    font-size: 1rem !important;
    text-decoration: none !important;
    color: inherit !important;
}
.chapter-item a .chapter-title-info {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    max-width: calc(100% - 100px) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    margin-right: 8px !important;
    text-align: left !important;
}
.chapter-item a .word-count {
    font-size: 0.7rem !important;
    color: var(--text-muted);
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    text-align: right !important;
}
.chapter-item a:hover {
    background: var(--border-light);
}
.related-novels {
    background: #fff;
    border: 1px solid #ece4d6;
    border-radius: 4px;
    padding: 20px 24px;
    margin-bottom: 16px;
}
.related-novels h3 {
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
    font-size: 0.95rem;
    color: #333;
}
.related-novels h3 i { color:#b8860b; margin-right:6px; }

.read-container {
    max-width: 1280px;
    margin: 16px auto;
    background: #fff;
    border: 1px solid #ece4d6;
    border-radius: 4px;
    padding: 16px 24px;
}
.read-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #ece4d6;
}
.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.breadcrumb a {
    color: var(--primary);
}
.read-controls {
    display: flex;
    gap: 10px;
}
.ctrl-btn {
    background: var(--bg-sidebar);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.2s;
}
.ctrl-btn:hover {
    background: var(--primary);
    color: white;
}
.chapter-content {
    font-size: 18px;
    line-height: 2;
    letter-spacing: 0.01em;
}
.chapter-content p {
    margin: 0 0 1.2em 0;
    text-indent: 2em;
}
.chapter-content p:last-child {
    margin-bottom: 0;
}
.chapter-title {
    text-align: center;
    margin-bottom: 16px;
    font-size: 1.4rem;
    color:#333;
}
.content-body p {
    margin-bottom: 1.5em;
}
.chapter-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #ece4d6;
}
.nav-btn {
    padding: 10px 24px;
    background: #faf7f2;
    border: 1px solid #ece4d6;
    border-radius: 4px;
    font-weight: 500;
    color:#333;
    text-decoration: none;
    display:inline-flex;
    align-items:center;
    gap:6px;
}
.nav-btn:hover { border-color:#b8860b; color:#b8860b; }
.nav-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}
body.dark-read {
    background: #0f172a;
}
body.dark-read .read-container {
    background: #1e293b;
    color: #e2e8f0;
}
body.dark-read .ctrl-btn,
body.dark-read .nav-btn {
    background: #334155;
    color: white;
}
body.dark-read .breadcrumb {
    color: #94a3b8;
}

.rank-header {
    text-align: center;
    margin-bottom: 40px;
}
.rank-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 30px;
}
.rank-tab {
    background: var(--bg-card);
    border: none;
    padding: 8px 24px;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.rank-tab.active {
    background: var(--primary);
    color: white;
}
.rank-list-large {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.rank-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}
.rank-number {
    font-size: 2rem;
    font-weight: 800;
    width: 60px;
    text-align: center;
    color: var(--text-muted);
}
.rank-number.top-three {
    color: var(--warning);
}
.rank-item-link {
    display: flex;
    gap: 16px;
    flex: 1;
}
.rank-item-link img {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}
.rank-info h3 {
    font-size: 1.1rem;
}
.rank-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}
.rank-score {
    font-weight: 600;
    color: var(--primary);
}

.author-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
    margin: 30px 0;
}
.author-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
}
.author-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.author-avatar i {
    font-size: 4rem;
    color: var(--text-muted);
}
.author-info h3 {
    margin: 12px 0 4px;
}
.author-info h3 a {
    color: var(--text-primary);
    text-decoration: none;
}
.author-info h3 a:hover {
    color: var(--primary);
}
.author-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.user-center-layout {
    display: flex;
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 20px 12px;
}
.user-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: sticky;
    top: 90px;
    height: fit-content;
}
.user-sidebar-header {
    padding: 24px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-light), white);
    border-bottom: 1px solid var(--border-light);
}
.user-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}
.user-sidebar-header h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}
.user-sidebar-header p {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.user-nav {
    padding: 16px 0;
}
.user-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: var(--text-secondary);
    transition: var(--transition);
    border-left: 3px solid transparent;
    border-radius: 40px;
    margin: 4px 12px;
}
.user-nav-item i {
    width: 20px;
    font-size: 1.1rem;
}
.user-nav-item:hover {
    background: var(--primary-light);
    color: var(--primary);
    transform: translateX(4px);
}
.user-nav-item.active {
    background: var(--primary);
    color: white;
    border-left: none;
    font-weight: 500;
}
.user-nav-divider {
    height: 1px;
    background: var(--border-light);
    margin: 12px 0;
}
.user-content {
    flex: 1;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 28px;
    min-height: 500px;
}
.user-content form {
    width: 100% !important;
    max-width: 100% !important;
    display: block;
    box-sizing: border-box;
    margin: 0;
}
.user-content .form-group {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}
.user-content .form-group label {
    min-width: 120px;
    max-width: 300px;
    width: 300px;
    text-align: left;
    font-weight: 500;
    white-space: nowrap;
    box-sizing: border-box;
}
.user-content .form-group input {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    outline: none;
    transition: border 0.2s;
    box-sizing: border-box;
}
.user-content .form-group input:focus {
    border-color: #409eff;
}
.user-content h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-light);
}
.user-info-card {
    background: var(--bg-sidebar);
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}
.user-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}
.stat-card {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    padding: 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform 0.2s;
}
.stat-card:hover {
    transform: translateY(-4px);
}
.stat-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 8px;
}
.stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}
.vip-badge {
    background: linear-gradient(135deg, #f9a825, #f57c00);
    padding: 2px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: bold;
    color: white;
}
.bookshelf-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.bookshelf-item {
    display: flex;
    gap: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}
.bookshelf-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.bookshelf-cover {
    width: 100px;
    flex-shrink: 0;
}
.bookshelf-cover img {
    width: 100%;
    border-radius: var(--radius-md);
    object-fit: cover;
    aspect-ratio: 2/3;
}
.bookshelf-info {
    flex: 1;
}
.bookshelf-info h3 {
    margin-bottom: 6px;
}
.bookshelf-info .author {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 8px;
}
.last-read {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.bookshelf-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}
.sign-card {
    background: linear-gradient(135deg, #fff, #fef9e6);
    border-radius: var(--radius-xl);
    padding: 32px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}
.sign-icon {
    font-size: 3rem;
    color: #f1c40f;
    margin-bottom: 16px;
}
.sign-reward-preview {
    background: white;
    border-radius: 60px;
    padding: 16px;
    margin: 20px auto;
    width: 80%;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05), 0 4px 6px rgba(0,0,0,0.02);
}
.reward-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: #e67e22;
}
.sign-btn {
    background: linear-gradient(95deg, #f39c12, #e67e22);
    border: none;
    padding: 12px 32px;
    border-radius: 40px;
    font-weight: bold;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
}
.sign-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(243,156,18,0.3);
}
.user-stats-mini {
    display: flex;
    justify-content: space-around;
    background: var(--bg-card);
    padding: 16px;
    border-radius: var(--radius-lg);
    margin: 20px 0;
}
.signed-badge {
    color: var(--success);
    font-weight: bold;
}
.rule-tip {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}
.vip-status-card {
    background: linear-gradient(145deg, #333, #1a1a1a);
    color: white;
    border-radius: var(--radius-xl);
    padding: 28px;
    text-align: center;
    margin-bottom: 30px;
    border: 1px solid #b8860b;
}
.vip-status-card i {
    font-size: 3rem;
    color: #b8860b;
}
.vip-status-card.active {
    background: linear-gradient(135deg, #b8860b, #8a6508);
    border-color: #b8860b;
}
.vip-exchange-box, .vip-pay-box {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}
.month-selector {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.vip-select {
    flex: 1;
    min-width: 200px;
    padding: 10px 14px;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    background: white;
    font-size: 0.9rem;
}
.vip-form button {
    width: auto;
    padding: 10px 30px;
}
.data-table {
    width: 100%;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border-collapse: collapse;
}
.data-table th, .data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}
.data-table th {
    background: var(--bg-sidebar);
    font-weight: 600;
}
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
form {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-xl);
    max-width: 500px;
    margin: 20px auto;
    box-shadow: var(--shadow-sm);
}
form div {
    margin-bottom: 20px;
}
label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}
input, select, textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    font-size: 1rem;
}
button[type="submit"] {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
}
.error {
    color: var(--danger);
    background: #fee2e2;
    padding: 12px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}
.success, .alert {
    color: var(--success);
    background: #dcfce7;
    padding: 12px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}
.empty-state {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
}
.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}
.site-footer {
    background: #2c2c2c;
    border-top: 3px solid #b8860b;
    padding: 16px 0;
    margin-top: 16px;
}
.footer-inner {
    text-align: center;
    color: #b8b8b8;
    font-size: 0.8rem;
    line-height: 1.8;
}
.footer-inner a {
    color: #d4c9a8;
}
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}
.search-overlay.active {
    visibility: visible;
    opacity: 1;
}
.search-modal {
    background: var(--bg-card, #fff);
    border-radius: var(--radius-xl, 28px);
    max-width: 90%;
    width: 500px;
    padding: 24px;
    box-shadow: var(--shadow-lg, 0 20px 25px -5px rgba(0,0,0,0.1));
    transform: scale(0.9);
    transition: transform 0.2s ease;
}
.search-overlay.active .search-modal {
    transform: scale(1);
}
.search-modal h3 {
    margin-bottom: 16px;
    font-size: 1.3rem;
}
.search-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}
.search-input-group input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-medium, #e2e8f0);
    border-radius: 40px;
    font-size: 1rem;
    outline: none;
    transition: 0.2s;
}
.search-input-group input:focus {
    border-color: var(--primary, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.search-modal button {
    background: var(--primary, #3b82f6);
    color: white;
    border: none;
    padding: 0 24px;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}
.search-modal button:hover {
    background: var(--primary-dark, #2563eb);
}
.search-close {
    text-align: right;
    margin-bottom: 8px;
}
.search-close button {
    background: transparent;
    color: var(--text-secondary, #475569);
    font-size: 1.2rem;
    padding: 4px 8px;
}
.search-tip {
    font-size: 0.75rem;
    color: var(--text-muted, #94a3b8);
    text-align: center;
}
.search-icon-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-secondary, #475569);
    transition: color 0.2s;
}
.search-icon-btn:hover {
    color: var(--primary, #3b82f6);
}
.btn-icon {
    background: #f1f5f9;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #475569;
}
.btn-icon:hover {
    background: var(--primary, #3b82f6);
    color: white;
}

.pay-method {
    margin: 15px 0;
}
.pay-method label {
    margin-right: 15px;
    font-weight: normal;
}
.pay-method input {
    margin-right: 5px;
}

.chapter-update-table {
    background: white;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    overflow-x: auto;
}
.update-table {
    width: 100%;
    border-collapse: collapse;
}
.update-table th,
.update-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}
.update-table th {
    background: var(--bg-sidebar);
    font-weight: 600;
}
.update-table tr:hover {
    background: var(--bg-sidebar);
}

.rank-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 12px;
}
.rank-col {
    flex: 1;
    min-width: 0;
}
.rank-box.empty-placeholder {
    min-height: 280px;
    background: #f9fafb;
    border-radius: 20px;
    border: 1px solid var(--border-light);
}
.random-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.8rem;
}
.random-tag {
    background: #f1f5f9;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    text-decoration: none;
    color: #334155;
}
.random-tag:hover {
    background: var(--primary);
    color: white;
}

.description-content {
    line-height: 1.6;
    color: #4b5563;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.description-content::-webkit-scrollbar {
    width: 5px;
}
.description-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.description-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.volume-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    background: #f5f7fa;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s;
}
.volume-header:hover {
    background: #e9edf2;
}
.volume-header .toggle-icon {
    font-size: 14px;
    transition: transform 0.2s;
}
.volume-header .toggle-icon.open {
    transform: rotate(90deg);
}
.volume-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}
.volume-chapter-count {
    font-size: 0.8rem;
    color: #6c757d;
}
.volume-chapters {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px 16px !important;
    padding: 12px 8px !important;
    margin-bottom: 10px !important;
}
.chapter-item {
    list-style: none;
    padding: 8px 12px;
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 8px;
    transition: all 0.2s;
    overflow: hidden;
}
.chapter-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59,130,246,0.1);
}
.chapter-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #1e293b;
    gap: 8px;
}
.chapter-item a:hover {
    color: #3b82f6;
}
.chapter-title-info {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}
.word-count {
    font-size: 0.7rem;
    color: #94a3b8;
    white-space: nowrap;
    flex-shrink: 0;
}
.chapter-item a .chapter-vip-badge {
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: 6px;
}

.search-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.search-header {
    text-align: center;
    margin-bottom: 32px;
}
.search-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.search-subtitle {
    color: #6c757d;
}
.search-captcha-box {
    max-width: 400px;
    margin: 20px auto;
    text-align: center;
}
.search-captcha-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 16px;
}
.search-captcha-input-group {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.search-captcha-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 48px;
}
.search-captcha-img {
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
}
.search-captcha-submit {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 48px;
    margin-top: 16px;
    cursor: pointer;
}
.search-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f9fafb;
    border-radius: 24px;
    margin-top: 32px;
}
.search-empty p {
    color: #6c757d;
}
.search-result-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 24px 0 20px;
}
.search-result-count {
    color: #4b5563;
}
.search-view-toggle {
    display: flex;
    gap: 8px;
}
.search-view-toggle .view-btn {
    background: #e2e8f0;
    border: none;
    padding: 6px 16px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}
.search-view-toggle .view-btn:first-child {
    background: #e2e8f0;
}
.search-view-toggle .view-btn:last-child {
    background: transparent;
    border: 1px solid #cbd5e1;
}
.search-novel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 28px;
}
.search-novel-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.2s;
    border: 1px solid #eef2f6;
}
.search-novel-card:hover {
    transform: translateY(-2px);
}
.search-novel-cover {
    position: relative;
}
.search-novel-cover img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
}
.search-novel-cover .status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    color: white;
}
.search-novel-info {
    padding: 12px;
}
.search-novel-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-novel-title a {
    text-decoration: none;
    color: #1e293b;
}
.search-novel-author {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 8px;
}
.search-novel-meta {
    display: flex;
    gap: 12px;
    font-size: 0.7rem;
    color: #94a3b8;
}
.search-novel-desc {
    display: none;
}
.search-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
}
.search-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #475569;
    text-decoration: none;
}
.search-pagination .page-link.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}
.search-welcome {
    text-align: center;
    padding: 60px 20px;
    background: #f9fafb;
    border-radius: 24px;
    margin-top: 32px;
}
.search-welcome p {
    color: #6c757d;
}

.author-detail-page {
    padding-bottom: 40px;
}

.author-profile-card {
    display: flex;
    gap: 32px;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 28px;
    align-items: center;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.05);
}
.author-profile-left {
    flex-shrink: 0;
}
.author-avatar-big {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3rem;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}
.author-profile-right {
    flex: 1;
    min-width: 0;
}
.author-name {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.author-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    letter-spacing: 0.3px;
}
.author-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.author-meta i {
    color: #94a3b8;
    margin-right: 6px;
}
.author-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    padding: 16px 0 0;
    border-top: 1px dashed #cbd5e1;
}
.astat {
    text-align: center;
}
.astat-value {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    color: #3b82f6;
    line-height: 1.2;
}
.astat-label {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 2px;
}

.author-section {
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.section-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef2f6;
}
.section-title i {
    color: #3b82f6;
}
.section-count {
    font-size: 0.85rem;
    font-weight: 400;
    color: #94a3b8;
}

.author-intro-box {
    color: #475569;
    line-height: 1.8;
    font-size: 0.95rem;
    padding: 4px 0;
    word-break: break-word;
}
.author-intro-empty {
    color: #94a3b8;
    font-style: italic;
    text-align: center;
    padding: 20px 0;
    margin: 0;
}
.author-intro-empty i {
    margin-right: 6px;
}

.author-novel-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.author-novel-item {
    display: flex;
    gap: 16px;
    padding: 14px;
    border: 1px solid #eef2f6;
    border-radius: 14px;
    transition: all 0.2s;
    background: #fafbfc;
    align-items: center;
}
.author-novel-item:hover {
    border-color: #3b82f6;
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.08);
}
.an-cover {
    flex-shrink: 0;
    width: 70px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.an-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.an-info {
    flex: 1;
    min-width: 0;
}
.an-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.an-title a {
    color: #1e293b;
    text-decoration: none;
}
.an-title a:hover {
    color: #3b82f6;
}
.an-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 8px;
}
.an-meta i {
    color: #94a3b8;
    margin-right: 3px;
}
.an-cat {
    background: #eff6ff;
    color: #3b82f6;
    padding: 1px 10px;
    border-radius: 12px;
    font-weight: 500;
}
.an-status {
    padding: 1px 10px;
    border-radius: 12px;
    font-weight: 500;
}
.an-status.ongoing {
    background: #fef3c7;
    color: #92400e;
}
.an-status.finished {
    background: #d1fae5;
    color: #065f46;
}
.an-latest {
    font-size: 0.82rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.an-latest i {
    color: #94a3b8;
}
.an-latest a {
    color: #3b82f6;
    text-decoration: none;
}
.an-latest a:hover {
    text-decoration: underline;
}
.an-empty {
    color: #cbd5e1;
}
.an-action {
    flex-shrink: 0;
}
.an-action .btn-primary {
    padding: 6px 18px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.vip-tag {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 1px 8px;
    border-radius: 10px;
    letter-spacing: 0.3px;
}
.vip-tag.small {
    font-size: 0.6rem;
    padding: 0 6px;
}

.author-timeline {
    list-style: none;
    margin: 0;
    padding: 8px 0 0;
    position: relative;
}
.author-timeline::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 20px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(to bottom, #dbeafe, #eff6ff);
    border-radius: 2px;
}
.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0 10px 4px;
    position: relative;
}
.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3b82f6;
    box-shadow: 0 0 0 4px #eff6ff;
    flex-shrink: 0;
    margin-top: 4px;
    z-index: 1;
}
.timeline-time {
    flex-shrink: 0;
    width: 90px;
    font-size: 0.8rem;
    color: #94a3b8;
    padding-top: 2px;
}
.timeline-content {
    flex: 1;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.tl-action {
    color: #94a3b8;
}
.tl-novel {
    color: #3b82f6;
    font-weight: 500;
    text-decoration: none;
}
.tl-novel:hover {
    text-decoration: underline;
}
.tl-volume {
    font-size: 0.75rem;
    background: #f1f5f9;
    color: #64748b;
    padding: 1px 8px;
    border-radius: 10px;
}
.tl-chapter {
    color: #1e293b;
    text-decoration: none;
}
.tl-chapter:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.sign-stats-row {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-light, #e2e8f0);
}
.sign-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary, #64748b);
    font-size: 0.9rem;
}
.sign-stat i { color: #f59e0b; }
.sign-stat strong { color: var(--text-primary, #0f172a); font-size: 1rem; }
.signed-banner {
    text-align: center;
    padding: 14px 18px;
    border-radius: 10px;
    background: #f0fdf4;
    color: #16a34a;
    font-weight: 500;
    margin-top: 8px;
}

.profile-page .alert {
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 18px;
    font-size: 0.88rem;
}
.profile-page .alert-success { background:#f6f9f6; color:#2d6a4f; border:1px solid #d8e8de; }
.profile-page .alert-error { background:#fbf3f3; color:#a83232; border:1px solid #f0d5d5; }
.profile-hero-card.home-card {
    background: #faf7f2 !important;
    border: 1px solid #ece4d6 !important;
    padding: 18px 22px;
    margin-bottom: 16px;
}
.profile-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 22px;
    background: #faf7f2;
    border: 1px solid #ece4d6;
    border-radius: 4px;
    margin-bottom: 16px;
}
.profile-hero-card .profile-hero {
    padding: 0;
    background: transparent;
    border: none;
    margin-bottom: 0;
}
.profile-avatar-wrap { display:flex; flex-direction:column; align-items:center; gap:6px; flex-shrink:0; }
.profile-avatar-preview {
    width: 60px; height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
    background: #e8e8e8;
}
.profile-avatar-name { font-weight: 600; color:#333; font-size: 0.88rem; }
.profile-hero-info { flex:1; display:grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; }
.profile-meta-label { color:#999; font-size:0.84rem; text-align:right; }
.profile-meta-value { color:#333; font-size:0.88rem; }
.vip-tag { background:#d4a017; color:#fff; padding:1px 8px; border-radius:3px; font-size:0.75rem; }
.normal-tag { background:#eee; color:#666; padding:1px 8px; border-radius:3px; font-size:0.75rem; }
.gold-tag { color:#b8860b; font-weight:600; }
.profile-section { margin-bottom: 22px; }
.profile-section-title {
    font-size: 0.92rem;
    margin: 0 0 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #333;
    color: #333;
    font-weight: 600;
}
.profile-section-title i { color:#b8860b; margin-right:6px; }
.profile-form-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px dotted #eee;
}
.profile-form-row > label {
    color:#666;
    font-size: 0.86rem;
    text-align: right;
    margin: 0;
}
.profile-form-row input,
.profile-form-row select,
.profile-form-row textarea {
    width: 100%;
    max-width: 400px;
    padding: 7px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 0.86rem;
    background: #fff;
    box-sizing: border-box;
    font-family: inherit;
}
.profile-form-row input:focus,
.profile-form-row select:focus,
.profile-form-row textarea:focus {
    outline: none;
    border-color: #b8860b;
}
.profile-form-row input:disabled { background:#f5f5f5; color:#999; }

.profile-form-row .vip-check-row { position: relative; display: flex; align-items: center; margin: 0; }
.profile-form-row input.vip-native {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: 0;
    overflow: hidden; opacity: 0; border: 0;
}
.vip-switch {
    position: relative; display: inline-block; flex: 0 0 auto; margin: 0;
    width: 46px; height: 24px;
    background: #d8d2c4; border-radius: 30px;
    cursor: pointer; transition: background .2s ease;
}
.vip-switch-knob {
    position: absolute; top: 3px; left: 3px;
    width: 18px; height: 18px; border-radius: 50%;
    background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25);
    transition: transform .2s ease;
}
input.vip-native:checked + .vip-switch { background: #b8860b; }
input.vip-native:checked + .vip-switch .vip-switch-knob { transform: translateX(22px); }
input.vip-native:focus-visible + .vip-switch { outline: 2px solid #b8860b; outline-offset: 2px; }
.profile-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #eee;
    align-items: center;
    flex-wrap: wrap;
}
.profile-actions .btn-primary,
.profile-actions .btn-outline {
    padding: 9px 24px;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    white-space: nowrap;
}
.profile-actions .btn-primary { background:#333; color:#fff; border:1px solid #333; width:auto !important; border-radius:4px !important; padding:9px 24px !important; }
.profile-actions .btn-primary:hover { background:#000; }
.profile-actions .btn-outline { background:#fff; color:#333; border:1px solid #ccc; width:auto !important; border-radius:4px !important; padding:9px 24px !important; }
.profile-actions .btn-outline:hover { background:#f5f5f5; border-color:#999; }

.email-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
    max-width: 400px;
}
.email-input-group input { flex: 1; max-width: none; }
.btn-send-code {
    padding: 7px 14px;
    background: #fff;
    color: #b8860b;
    border: 1px solid #d4a017;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.82rem;
    white-space: nowrap;
}
.btn-send-code:hover { background: #fdf6e3; }
.btn-send-code:disabled { color: #aaa; border-color: #ddd; cursor: not-allowed; }

.modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-box {
    background: #fff;
    width: 420px;
    max-width: 92vw;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0,0,0,.2);
    overflow: hidden;
}
.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #eee;
}
.modal-head h3 { margin:0; font-size: 1rem; color:#333; }
.modal-head h3 i { color:#b8860b; margin-right:6px; }
.modal-close {
    background: none; border: none; font-size: 1.4rem; color:#999; cursor: pointer; line-height: 1;
}
.modal-close:hover { color:#333; }
.modal-body { padding: 18px; }
.modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #eee;
}
.modal-foot .btn-primary,
.modal-foot .btn-outline {
    padding: 7px 18px;
    border-radius: 3px;
    font-size: 0.86rem;
    cursor: pointer;
}
.modal-foot .btn-primary { background:#333; color:#fff; border:1px solid #333; }
.modal-foot .btn-outline { background:#fff; color:#666; border:1px solid #ccc; }

.user-content .page-card {
    background: #fff;
    border: 1px solid #ece4d6;
    border-radius: 4px;
    padding: 20px 24px;
    margin-bottom: 16px;
}
.user-content .page-card h3.card-title {
    font-size: 0.95rem;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #333;
    color: #333;
}
.user-content .page-card h3.card-title i { color:#b8860b; margin-right:6px; }
.user-content .stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}
.user-content .stat-card {
    background: #faf7f2;
    border: 1px solid #ece4d6;
    border-radius: 4px;
    padding: 16px;
    text-align: center;
}
.user-content .stat-card .num { font-size: 1.4rem; font-weight: 600; color:#333; }
.user-content .stat-card .num i { color:#b8860b; margin-right:6px; }
.user-content .stat-card .label { color:#999; font-size: 0.82rem; margin-top: 4px; }
.user-content table.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.user-content table.data-table th,
.user-content table.data-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px dotted #eee;
}
.user-content table.data-table th {
    background: #faf7f2;
    color: #666;
    font-weight: 500;
}
.user-content .empty-tip {
    text-align: center;
    color: #999;
    padding: 40px 0;
}

.user-sidebar-header {
    background: #faf7f2 !important;
    border-bottom: 1px solid #ece4d6 !important;
    padding: 24px 16px !important;
}
.user-avatar-img {
    width: 72px; height: 72px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.user-avatar-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.user-sidebar-header h3 { margin: 0 0 4px; font-size: 1rem; color:#333; }
.user-sidebar-header p { margin: 0; font-size: 0.8rem; color:#999; }
.user-nav { padding: 12px 0; }
.user-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: #555 !important;
    font-size: 0.88rem;
    text-decoration: none;
    border-left: 3px solid transparent;
    border-radius: 0;
    margin: 0;
}
.user-nav-item i { width: 18px; color:#b8860b; }
.user-nav-item:hover {
    background: #faf7f2;
    color: #333 !important;
    transform: none;
}
.user-nav-item.active {
    background: #faf7f2;
    color: #333 !important;
    border-left-color: #b8860b;
    font-weight: 500;
}
.user-nav-item.active i { color:#b8860b; }

.user-sidebar .logout-form {
    background: transparent;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    max-width: none;
}
.user-sidebar .logout-btn {
    background: transparent;
    color: #555;
    border: none;
    border-radius: 0;
    width: 100%;
    margin: 0;
    padding: 10px 20px;
    font-size: 0.88rem;
    font-weight: 400;
    text-align: left;
    justify-content: flex-start;
    cursor: pointer;
}
.user-sidebar .logout-btn i { width: 18px; color: #b8860b; }
.user-sidebar .logout-btn:hover { background: #faf7f2; color: #333; transform: none; }
.user-sidebar .logout-btn:hover i { color: #c0392b; }

.user-content .btn-primary {
    background: #333 !important;
    color: #fff !important;
    border: 1px solid #333 !important;
    padding: 7px 18px;
    border-radius: 3px;
    font-size: 0.86rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.user-content .btn-primary:hover { background: #000 !important; }
.user-content .btn-outline {
    background: #fff !important;
    color: #333 !important;
    border: 1px solid #ccc !important;
    padding: 7px 18px;
    border-radius: 3px;
    font-size: 0.86rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.user-content .btn-outline:hover { background: #f5f5f5 !important; }
.user-content .btn-sm { padding: 5px 12px; font-size: 0.8rem; }

.avatar-upload-group {
    display: flex;
    align-items: center;
    gap: 14px;
}
.avatar-upload-preview {
    width: 56px; height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
    background: #eee;
}
.avatar-upload-group input[type=file] {
    padding: 6px;
    font-size: 0.84rem;
    color: #666;
}
.avatar-hint { color: #aaa; font-size: 0.78rem; }
.price-field { display: flex; align-items: center; gap: 10px; }
.price-hint { color: #aaa; font-size: 0.78rem; }

.text-success { color:#2d6a4f; }
.text-danger { color:#a83232; }

.profile-actions { display:flex; gap:10px; margin-top:18px; padding-top:14px; border-top:1px solid #eee; align-items:center; flex-wrap:wrap; justify-content:space-between; }
.profile-actions .btn-primary,
.profile-actions .btn-outline { padding:9px 24px; border-radius:4px; font-size:0.9rem; cursor:pointer; text-decoration:none; display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:38px; white-space:nowrap; }
.profile-actions .btn-primary { background:#333; color:#fff; border:1px solid #333; width:auto !important; border-radius:4px !important; padding:9px 24px !important; margin-right:auto; }
.profile-actions .btn-primary:hover { background:#000; }
.profile-actions .btn-outline { background:#fff; color:#333; border:1px solid #ccc; width:auto !important; border-radius:4px !important; padding:9px 24px !important; }
.profile-actions .btn-outline:hover { background:#f5f5f5; border-color:#999; }

.page-action-bar { display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; gap:8px; flex-wrap:wrap; }
.page-action-bar .btn-primary,
.page-action-bar .btn-outline { padding:8px 18px; border-radius:4px; font-size:0.88rem; cursor:pointer; text-decoration:none; display:inline-flex; align-items:center; gap:6px; }

.pagination { display:flex; align-items:center; gap:6px; margin-top:16px; flex-wrap:wrap; }
.pagination .page-link { display:inline-block; padding:6px 12px; border:1px solid #e5e5e5; border-radius:4px; font-size:13px; color:#555; text-decoration:none; background:#fff; }
.pagination .page-link:hover { border-color:#b8860b; color:#b8860b; }
.pagination .page-link.current { background:#333; color:#fff; border-color:#333; }
.pagination .page-link.disabled { color:#bbb; cursor:not-allowed; background:#fafafa; }
.pagination .page-link.disabled:hover { border-color:#e5e5e5; color:#bbb; }
.pagination .page-info { margin-left:10px; font-size:12px; color:#999; }

.vip-banner-card { display:flex; align-items:center; gap:24px; background:linear-gradient(135deg,#333,#1a1a1a); color:#fff; border-radius:10px; padding:28px 32px; margin-bottom:20px; border:1px solid #b8860b; }
.vip-banner-card.active { background:linear-gradient(135deg,#b8860b,#8a6508); border-color:#b8860b; }
.vip-banner-left i { font-size:3rem; color:#b8860b; }
.vip-banner-card.active .vip-banner-left i { color:#fff; }
.vip-banner-title { font-size:1.25rem; font-weight:600; margin-bottom:4px; }
.vip-banner-sub { font-size:0.88rem; opacity:0.85; }
.vip-rate-bar { display:flex; align-items:center; gap:14px; padding:12px 16px; background:#faf7f2; border-radius:6px; margin-bottom:18px; font-size:0.9rem; color:#555; }
.vip-rate-sep { color:#ccc; }

.recharge-summary-bar { display:flex; gap:20px; margin-bottom:18px; }
.recharge-summary-item { flex:1; background:#faf7f2; border:1px solid #eee; border:1px solid #eee; border-radius:6px; padding:14px 18px; }
.rs-label { display:block; font-size:0.8rem; color:#888; margin-bottom:4px; }
.rs-value { font-size:1.05rem; font-weight:600; color:#333; }

.section-header h2 { color:#222; font-weight:600; font-size:1.25rem; display:flex; align-items:center; gap:8px; }
.section-header h2 i { color:#b8860b; font-size:1.05rem; }
.view-all { color:#b8860b !important; font-size:0.85rem; text-decoration:none; }
.view-all:hover { color:#8a6508; }
.library-hero h1 { color:#222; }
.library-hero p { color:#777; }

.novel-card { background:#fff; border:1px solid #ececec; border-radius:6px; box-shadow:none; transition:all .15s; }
.novel-card:hover { border-color:#b8860b; box-shadow:0 4px 14px rgba(0,0,0,.06); transform:translateY(-2px); }
.card-info h3 { color:#222; font-size:0.95rem; }
.card-info .author { color:#888; }
.card-stats { color:#999; }

.vip-badge { background:#b8860b !important; color:#fff !important; padding:0 6px !important; border-radius:10px !important; font-size:0.6rem !important; margin-left:4px; display:inline-block; vertical-align:middle; }
.vip-chapter-badge { background:#b8860b !important; color:#fff !important; padding:0 6px !important; border-radius:10px !important; font-size:0.6rem !important; margin-left:4px; }

.rank-box, .recommend-box { background:#fff; border:1px solid #ececec; border-radius:6px; padding:20px; box-shadow:none; }
.rank-box h3, .recommend-box h3 { color:#222; font-size:1rem; font-weight:600; display:flex; align-items:center; gap:8px; padding-bottom:10px; border-bottom:1px solid #f0f0f0; }
.rank-box h3 i, .recommend-box h3 i { color:#b8860b; }
.rank-list li { border-bottom:1px solid #f5f5f5; padding:10px 0; }
.rank-list li a { color:#333; text-decoration:none; }
.rank-list li a:hover { color:#b8860b; }
.rank-num { color:#b8860b !important; font-weight:700; }
.rank-value { color:#999; }

.chapter-update-table { background:#fff; border:1px solid #ececec; border-radius:6px; overflow:hidden; }
.update-table { width:100%; border-collapse:collapse; }
.update-table th { background:#faf7f2; color:#555; font-weight:600; font-size:0.85rem; text-align:left; padding:11px 14px; border-bottom:1px solid #ececec; }
.update-table td { padding:11px 14px; border-bottom:1px solid #f5f5f5; font-size:0.88rem; color:#444; }
.update-table tr:hover td { background:#faf7f2; }
.update-table a { color:#333; text-decoration:none; }
.update-table a:hover { color:#b8860b; }

.filter-section { background:#fff; border:1px solid #ececec; border-radius:6px; padding:20px; box-shadow:none; }
.filter-section .filter-label { color:#555; }

.rank-box { font-size:13px; line-height:1.6; color:#555; }
.rank-box h3 { font-size:15px; font-weight:500; color:#333; }
.rank-list li { font-size:13px; line-height:1.6; }
.rank-list a { color:#555; font-weight:400; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; display:inline-block; max-width:60%; vertical-align:middle; }
.rank-list a:hover { color:#b8860b; }
.rank-value { color:#999; font-size:12px; }

.update-table { font-size:13px; line-height:1.6; color:#555; }
.update-table th { font-size:12px; font-weight:500; color:#888; }
.update-table td { font-size:13px; color:#555; }
.update-table a { color:#555; font-weight:400; }
.update-table a:hover { color:#b8860b; }

.btn-primary { background:#333; color:#fff; border:1px solid #333; }
.btn-primary:hover { background:#b8860b; border-color:#b8860b; }
.btn-outline { background:#fff; color:#333; border:1px solid #ccc; }
.btn-outline:hover { background:#faf7f2; border-color:#b8860b; color:#b8860b; }

.status-badge.ongoing { background:#b8860b !important; color:#fff !important; }
.status-badge.finished { background:#10b981 !important; color:#fff !important; }

.home-card { background:#fff; border:1px solid #ececec; border-radius:6px; padding:18px 22px; margin-bottom:12px; }
.home-card .section-header { margin-top:0; }
.home-card .novel-grid { margin:10px 0 0; grid-template-columns:repeat(6, 1fr) !important; gap:12px; }
.home-card .novel-card .card-cover img { aspect-ratio:3/4; }

.card-cover { position:relative; }
.card-cover > .vip-badge {
  position:absolute; top:6px; right:6px; z-index:2;
  background:#b8860b !important; color:#fff !important;
  padding:2px 8px !important; border-radius:10px !important;
  font-size:11px !important; font-weight:600;
  box-shadow:0 2px 4px rgba(0,0,0,.25);
  margin:0 !important;
}
.home-card .novel-card h3 { font-size:13px; font-weight:500; margin:6px 0 2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.home-card .novel-card .author { font-size:11px; color:#999; margin:0; }

.random-list { display:grid; grid-template-columns:repeat(5, 1fr); gap:0 16px; margin-top:6px; font-size:13px; line-height:1.5; }
.random-item { display:flex; align-items:center; padding:2px 0; min-width:0; }
.random-title { flex:1; min-width:0; color:#555; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.random-item:hover .random-title { color:#b8860b; }

.announce-card { padding:8px 22px; margin:12px 0 12px; background:#faf7f2; border-color:#e8dcc0; }
.announce-ticker { display:flex; align-items:center; gap:12px; height:24px; overflow:hidden; }
.announce-tag { flex-shrink:0; color:#b8860b; font-size:13px; font-weight:600; }
.announce-viewport { flex:1; min-width:0; height:24px; overflow:hidden; position:relative; }
.announce-list { list-style:none; margin:0; padding:0; font-size:13px; line-height:24px; color:#555; transition:transform .5s ease; }
.announce-list li { height:24px; display:flex; align-items:center; gap:10px; white-space:nowrap; overflow:hidden; }
.announce-icon { color:#b8860b; flex-shrink:0; font-size:12px; }
.announce-title, .announce-list a { color:#333; font-weight:500; flex-shrink:0; max-width:40%; overflow:hidden; text-overflow:ellipsis; }
.announce-list a:hover, .announce-title:hover { color:#b8860b; }
.announce-content { flex:1 1 auto; min-width:0; color:#888; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.announce-time { flex-shrink:0; width:80px; text-align:right; color:#aaa; font-size:12px; }
.home-card .chapter-update-table { margin-top:10px; }

.hero-block { display:grid; grid-template-columns:260px 80px 1fr 220px; gap:20px; align-items:start; padding:20px; }
.hero-left { display:flex; flex-direction:column; gap:10px; }
.hero-cover img { width:100%; aspect-ratio:3/4; object-fit:cover; border-radius:4px; display:block; }
.hero-title { font-size:15px; font-weight:600; color:#333; display:block; }
.hero-desc { font-size:12px; color:#888; line-height:1.6; margin:4px 0 0; }
.hero-rail { display:flex; flex-direction:column; gap:8px; }
.rail-cover img { width:70px; aspect-ratio:3/4; object-fit:cover; border-radius:3px; display:block; opacity:.75; transition:opacity .2s; }
.rail-cover:hover img, .rail-cover.rail-active img { opacity:1; border:2px solid #b8860b; }
.hero-center { display:grid; grid-template-columns:1fr 1fr; gap:6px 24px; align-content:start; min-height:0; max-height:480px; overflow:hidden; font-size:13px; line-height:1.6; color:#555; }
.hero-center-head { grid-column:1 / -1; text-align:center; padding:14px 0 8px; border-bottom:1px solid #eee; margin-top:4px; }
.hero-center-head a { font-size:15px; font-weight:500; color:#333; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; display:block; max-width:100%; padding:0 8px; letter-spacing:0.5px; }
.hero-center-head a:hover { color:#b8860b; }
.hero-center-row { display:flex; align-items:center; gap:8px; padding:4px 2px; min-width:0; font-size:13px; }
.hero-cat { flex-shrink:0; width:30px; text-align:center; background:transparent; color:#b8860b; border:1px solid #d4b45a; border-radius:3px; padding:0; font-size:11px; line-height:16px; height:18px; overflow:hidden; white-space:nowrap; }
.hero-book { flex:1; min-width:0; color:#555; font-weight:400; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hero-book:hover { color:#b8860b; }
.hero-rank { border-left:1px solid #f0f0f0; padding-left:18px; }
.hero-rank-head { display:flex; justify-content:space-between; align-items:center; border-bottom:2px solid #b8860b; padding-bottom:6px; margin-bottom:10px; }
.hero-rank-title { font-size:16px; font-weight:600; color:#b8860b; }
.hero-rank-more { font-size:12px; color:#888; }
.hero-rank-more:hover { color:#b8860b; }
.hero-rank-list { list-style:none; margin:0; padding:0; font-size:13px; line-height:1.6; color:#555; }
.hero-rank-list li { display:flex; align-items:center; gap:8px; padding:4px 0; font-size:13px; }
.rank-badge { display:inline-block; width:18px; height:18px; line-height:18px; text-align:center; border-radius:3px; color:#fff; font-size:11px; font-style:italic; font-weight:700; flex-shrink:0; }
.rank-badge-1 { background:#e67e22; }
.rank-badge-2 { background:#b8860b; }
.rank-badge-3 { background:#b8860b; opacity:.8; }
.rank-badge-4, .rank-badge-5, .rank-badge-6, .rank-badge-7, .rank-badge-8, .rank-badge-9, .rank-badge-10, .rank-badge-11, .rank-badge-12, .rank-badge-13, .rank-badge-14, .rank-badge-15 { background:#7f8c8d; }
.hero-rank-list li:nth-child(n+4) .rank-badge { background:#7f8c8d; }
.rank-cover-mini img { width:32px; height:42px; object-fit:cover; border-radius:2px; display:block; }
.rank-link { color:#333; flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rank-link:hover { color:#b8860b; }

.library-hero { text-align:center; padding:14px 0 4px; }
.library-hero h1 { font-size:22px; color:#333; margin:0 0 4px; font-weight:600; }
.library-hero p { color:#999; font-size:13px; margin:0; }

.filter-section { background:#fff; border:1px solid #ececec; border-radius:6px; padding:16px 22px; margin:12px 0 12px; }
.filter-group { display:flex; align-items:flex-start; gap:14px; padding:10px 0; }
.filter-group + .filter-group { border-top:1px solid #f5f5f5; }
.subcategory-row { background:#faf7f2; margin:0 -22px; padding:10px 22px; border-radius:0; }
.subcategory-row + .filter-group { border-top:1px solid #e8dcc0; }
.filter-label {
  width:70px; flex-shrink:0; color:#333; font-size:13px; font-weight:600;
  line-height:28px; position:relative; padding-left:10px;
}
.filter-label::before {
  content:''; position:absolute; left:0; top:6px; bottom:6px; width:3px;
  background:#b8860b; border-radius:2px;
}
.filter-options { display:flex; flex-wrap:wrap; gap:8px; align-items:center; flex:1; }
.filter-option {
  display:inline-flex; align-items:center; gap:4px;
  padding:4px 14px; border-radius:14px; font-size:12px; color:#555;
  background:#faf7f2; border:1px solid #ececec; text-decoration:none;
  transition:all .15s;
}
.filter-option:hover { color:#b8860b; border-color:#b8860b; }
.filter-option.active { background:#333; color:#fff; border-color:#333; }
.filter-option-sub { padding:2px 10px; font-size:12px; }
.filter-options[style*="border-left"] { border-left-color:#b8860b !important; }
.filter-options[style*="border-left"] span { color:#b8860b !important; }
.filter-option i { color:inherit; }

.word-range-inputs { display:flex; gap:6px; align-items:center; }
.word-range-inputs input {
  width:110px; padding:5px 10px; border:1px solid #ddd; border-radius:4px;
  font-size:12px; color:#555; background:#fff;
}
.word-range-inputs input:focus { outline:none; border-color:#b8860b; }
.btn-icon {
  width:28px; height:28px; display:inline-flex; align-items:center; justify-content:center;
  background:#333; color:#fff; border:none; border-radius:4px; cursor:pointer; font-size:12px;
}
.btn-icon:hover { background:#b8860b; }

.result-stats {
  display:flex; justify-content:space-between; align-items:center;
  padding:0 4px 10px; font-size:13px; color:#888;
}
.result-stats > span { color:#888; font-size:13px; }
.stats-badge {
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 14px; background:#fff; border:1px solid #ececec; border-radius:20px;
  font-size:13px; color:#666;
}
.stats-badge i { color:#b8860b; font-size:12px; }
.stats-badge strong { color:#b8860b; font-weight:700; font-size:15px; margin:0 2px; }
.result-stats strong { color:#b8860b; font-weight:600; margin:0 4px; font-size:14px; }
.view-toggle { display:flex; gap:6px; }
.view-btn {
  padding:4px 12px; font-size:12px; border:1px solid #ddd; background:#fff;
  color:#555; border-radius:4px; cursor:pointer; display:inline-flex; align-items:center; gap:4px;
}
.view-btn.active { background:#333; color:#fff; border-color:#333; }
.view-btn:hover { border-color:#b8860b; color:#b8860b; }
.view-btn.active:hover { color:#fff; }

.novel-list-container.list-view { display:flex; flex-direction:column; gap:12px; }
.novel-item {
  background:#fff; border:1px solid #ececec; border-radius:6px; padding:14px 18px;
  display:flex; gap:16px; transition:border-color .15s; position:relative;
}
.novel-item:hover { border-color:#d4b45a; }

.novel-item .rank-number {
  flex-shrink:0; width:32px; display:flex; align-items:center; justify-content:center;
  font-size:20px; font-weight:700; color:#bbb; font-style:italic;
}
.novel-item .rank-number.top-three { color:#b8860b; font-size:24px; }

.novel-latest { font-size:12px; color:#999; margin-top:6px; }
.novel-latest i { color:#bbb; margin-right:2px; }
.rank-score-inline { margin-left:14px; color:#666; font-weight:600; }

.rank-item { padding:12px 16px !important; gap:12px !important; }
.rank-item .novel-cover { flex:0 0 80px !important; width:80px; }
.rank-item .novel-cover img { width:80px !important; }
.rank-item .rank-number { width:28px; }
.rank-item .rank-number.top-three { font-size:22px; }
.stats-badge-inline {
  display:inline-flex; align-items:center; gap:6px;
  margin-left:14px; padding:5px 12px; background:#faf7f2;
  border:1px solid #e8dcc0; border-radius:16px;
  font-size:12px; color:#666; font-weight:600;
}
.stats-badge-inline i { color:#b8860b; }
.rank-top-badge {
  position:absolute; top:14px; right:22px; margin-left:0;
}
.filter-section { position:relative; }

.author-card-grid {
  display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px;
}
.author-card-item {
  background:#fff; border:1px solid #ececec; border-radius:6px;
  padding:16px 18px; display:flex; gap:14px; align-items:center;
  text-decoration:none; color:inherit; transition:border-color .15s;
  min-width:0;
}
.author-card-item:hover { border-color:#d4b45a; }
.author-card-avatar { flex-shrink:0; }
.author-card-avatar img {
  width:64px; height:64px; border-radius:50%; object-fit:cover;
  border:2px solid #f0e6cc; background:#faf7f2;
}
.author-card-body { flex:1; min-width:0; }
.author-card-body h3 {
  margin:0 0 4px; font-size:15px; color:#333; font-weight:600;
}
.author-card-sign {
  margin:0 0 6px; font-size:12px; color:#999;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  min-width:0; max-width:100%;
}
.author-card-meta {
  display:flex; gap:14px; font-size:12px; color:#888;
}
.author-card-meta i { color:#b8860b; margin-right:3px; }
.author-card-meta strong { color:#333; font-weight:600; }

.author-profile-card { padding:20px 24px; }
.author-profile-row { display:flex; gap:20px; align-items:center; }
.author-avatar-big img {
  width:96px; height:96px; border-radius:50%; object-fit:cover;
  border:3px solid #f0e6cc; background:#faf7f2;
}

.author-profile-card .author-avatar-big,
.author-profile-card .author-avatar-big img {
  box-shadow:none !important;
  background:transparent;
}
.author-profile-body { flex:1; }
.author-name {
  margin:0 0 6px; font-size:20px; color:#333; font-weight:700;
  display:flex; align-items:center; gap:10px;
}
.author-badge {
  background:#faf7f2; color:#b8860b; border:1px solid #e8dcc0;
  font-size:11px; font-weight:600; padding:2px 10px; border-radius:10px;
}
.author-signature {
  margin:0 0 10px; font-size:13px; color:#666;
}
.author-stats-row {
  display:flex; flex-wrap:wrap; gap:18px; font-size:12px; color:#888;
}
.author-stats-row i { color:#b8860b; margin-right:4px; }
.author-stats-row strong { color:#333; font-weight:600; margin:0 2px; }
.an-cat {
  display:inline-block; background:#faf7f2; color:#b8860b;
  font-size:11px; padding:1px 8px; border-radius:8px; margin-right:6px;
}

.bookshelf-grid {
  display:grid; grid-template-columns:repeat(4, 1fr); gap:14px;
}
.bookshelf-card {
  background:#fff; border:1px solid #ececec; border-radius:6px;
  overflow:hidden; transition:border-color .15s;
  display:flex; flex-direction:column;
}
.bookshelf-card:hover { border-color:#d4b45a; }
.bookshelf-card-cover {
  position:relative; aspect-ratio:3/4; overflow:hidden; background:#faf7f2;
}
.bookshelf-card-cover img {
  width:100%; height:100%; object-fit:cover; display:block;
}
.bookshelf-card-cover > .vip-badge {
  position:absolute; top:6px; right:6px;
  background:#b8860b; color:#fff; padding:2px 8px; border-radius:10px;
  font-size:10px; font-weight:600; box-shadow:0 2px 4px rgba(0,0,0,.25);
}
.bookshelf-card-body {
  padding:10px 12px; display:flex; flex-direction:column; gap:4px; flex:1;
}
.bookshelf-card-body h3 {
  margin:0; font-size:13px; font-weight:600; color:#333;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.bookshelf-card-body h3 a { color:#333; text-decoration:none; }
.bookshelf-card-body h3 a:hover { color:#b8860b; }
.bookshelf-card-body .author {
  margin:0; font-size:11px; color:#999;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.bookshelf-card-body .last-read {
  margin:2px 0 0; font-size:11px; color:#888;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.bookshelf-card-body .last-read i { color:#b8860b; margin-right:3px; }
.bookshelf-card-body .last-read a { color:#666; text-decoration:none; }
.bookshelf-card-body .last-read a:hover { color:#b8860b; }
.bookshelf-card-actions {
  margin-top:8px; display:flex; gap:6px; align-items:center;
}
.bookshelf-card-actions .btn-primary {
  flex:1; padding:5px 8px; font-size:11px; text-align:center;
  background:#333; color:#fff; border-radius:4px; text-decoration:none;
}
.bookshelf-card-actions .btn-primary:hover { background:#b8860b; }
.btn-remove-sm {
  width:26px; height:26px; border:1px solid #ececec; background:#fff;
  border-radius:4px; color:#999; cursor:pointer; font-size:11px;
}
.btn-remove-sm:hover { color:#c0392b; border-color:#c0392b; }

.works-section { padding:0; overflow:hidden; }
.works-section-header {
  padding:14px 22px; background:#faf7f2; border-bottom:1px solid #ece4d6;
  font-size:14px; font-weight:600; color:#333;
  display:flex; align-items:center; gap:10px;
}
.works-section-header i { color:#b8860b; }
.works-section-count {
  background:#b8860b; color:#fff; font-size:11px; font-weight:600;
  min-width:22px; height:20px; padding:0 7px; border-radius:10px;
  display:inline-flex; align-items:center; justify-content:center;
}
.works-section .novel-list-container { padding:12px; display:flex; flex-direction:column; gap:10px; }

.novel-list-container.list-view .status-badge {
  position:static; display:inline-block; padding:1px 8px;
  border-radius:10px; font-size:11px; font-weight:500; backdrop-filter:none;
}
.novel-cover { flex-shrink:0; position:relative; }
.novel-cover img { width:80px; aspect-ratio:3/4; object-fit:cover; border-radius:3px; display:block; }
.novel-cover > .vip-badge {
  position:absolute; top:5px; right:5px; z-index:2;
  background:#b8860b !important; color:#fff !important;
  padding:2px 7px !important; border-radius:10px !important;
  font-size:10px !important; font-weight:600;
  box-shadow:0 2px 4px rgba(0,0,0,.25);
}
.novel-info { flex:1; min-width:0; }
.novel-title { font-size:15px; margin:0 0 4px; font-weight:600; }
.novel-title a { color:#333; text-decoration:none; }
.novel-title a:hover { color:#b8860b; }
.novel-title .vip-badge { background:#b8860b !important; }
.novel-author { font-size:12px; color:#999; margin:0 0 6px; }
.novel-meta { display:flex; gap:14px; font-size:12px; color:#888; margin:0 0 6px; flex-wrap:wrap; }
.novel-meta i { color:#b8860b; margin-right:3px; }
.novel-desc { font-size:13px; line-height:1.6; color:#666; margin:0 0 6px; }
.novel-last { font-size:12px; color:#999; display:flex; gap:18px; flex-wrap:wrap; }
.novel-last a { color:#555; }
.novel-last a:hover { color:#b8860b; }
.vip-chapter-badge { background:#b8860b !important; }

.novel-list-container.grid-view {
  display:grid; grid-template-columns:repeat(6, 1fr); gap:12px;
}
.novel-list-container.grid-view .novel-item {
  flex-direction:column; padding:0; overflow:hidden; background:#fff;
}
.novel-list-container.grid-view .novel-cover img { width:100%; height:auto; aspect-ratio:3/4; border-radius:0; }
.novel-list-container.grid-view .novel-info { padding:8px; }
.novel-list-container.grid-view .novel-meta,
.novel-list-container.grid-view .novel-desc,
.novel-list-container.grid-view .novel-last { display:none; }
.novel-list-container.grid-view .novel-title { font-size:13px; margin:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.novel-list-container.grid-view .novel-author { margin:2px 0 0; }

.pagination { display:flex; justify-content:center; align-items:center; gap:6px; margin:16px 0 0; flex-wrap:wrap; }
.page-link {
  min-width:32px; height:32px; padding:0 10px; display:inline-flex; align-items:center; justify-content:center;
  border:1px solid #ddd; border-radius:4px; background:#fff; color:#555; font-size:13px; text-decoration:none;
}
.page-link:hover { border-color:#b8860b; color:#b8860b; }
.page-link.active { background:#333; color:#fff; border-color:#333; font-weight:600; }
.page-link.disabled { color:#bbb; background:#fafafa; cursor:not-allowed; }
.page-link.disabled:hover { border-color:#ddd; color:#bbb; }
.page-ellipsis { color:#bbb; padding:0 4px; }
.page-jump { font-size:13px; color:#555; margin-left:8px; display:inline-flex; align-items:center; gap:6px; }
.page-jump input {
  width:50px; height:32px; padding:0 6px; text-align:center;
  border:1px solid #ddd; border-radius:4px; font-size:13px; color:#555;
}
.page-jump input:focus { outline:none; border-color:#b8860b; }

.site-header .main-nav a { color: #d4d4d4; }
.site-header .main-nav a:hover,
.site-header .main-nav a.active { color: #b8860b; }
.site-header .search-icon-btn { color: #d4d4d4; }
.site-header .search-icon-btn:hover { color: #b8860b; }
.site-header .username { color: #d4d4d4; }
.site-header .lang-switch .lang-select { color: #999; background: transparent; border-color: transparent; }
.site-header .lang-switch .lang-select:hover { color: #b8860b; border-color: #b8860b; }
.site-header .lang-switch .lang-select option { color: #1a1a1a; background: #fff; }
.site-header .btn-outline { background: transparent; color: #d4d4d4; border: 1px solid #666; }
.site-header .btn-outline:hover { background: transparent; border-color: #b8860b; color: #b8860b; }
.site-header .btn-primary { background: #b8860b; color: #fff; border: 1px solid #b8860b; }
.site-header .btn-primary:hover { background: #a07809; border-color: #a07809; color: #fff; }
.site-header .gold-badge { background: #b8860b; color: #fff; }
.site-header .mobile-toggle { color: #d4d4d4; }
.user-dropdown {
    background: #2c2c2c !important;
    border: 1px solid #444 !important;
}
.user-dropdown a, .user-dropdown .logout-btn { color: #d4d4d4 !important; }
.user-dropdown a:hover, .user-dropdown .logout-btn:hover { background: #3a3a3a !important; color: #b8860b !important; }

.site-header .container,
.site-footer .container,
.container,
.user-center-layout {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}
.site-header .container { padding-top: 10px; padding-bottom: 10px; }
.site-footer .container { padding-top: 16px; padding-bottom: 16px; }
.site-footer { margin-top: 0; padding: 0; }
.site-main { padding: 0; }

.container { padding-top: 16px !important; padding-bottom: 16px !important; }
.user-center-layout { padding-top: 16px !important; padding-bottom: 16px !important; }
.home-card,
.announce-card,
.hero-block,
.chapters-section,
.rank-item,
.novel-detail-grid,
.random-section,
.page-card {
    margin-top: 0 !important;
    margin-bottom: 16px !important;
}
.page-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
}
.page-card-title i { color: #b8860b; margin-right: 8px; }
.page-card-sub { font-size: 0.85rem; color: #999; font-weight: normal; }
.author-list-card .author-card-grid { margin-top: 0; }
.announce-card { margin: 0 0 16px 0 !important; }

.filter-section,
.result-stats,
.novel-list-container,
.search-results,
.rank-list-container {
    margin-top: 0 !important;
    margin-bottom: 16px !important;
}
.pagination { margin-top: 16px !important; margin-bottom: 0 !important; }

.site-notice {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    margin: 16px 0;
    border-radius: 6px;
    font-size: 0.92rem;
    line-height: 1.6;
    border: 1px solid #ece4d6;
    background: #faf7f2;
    color: #3a3a3a;
}
.site-notice i {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    background: #f0e8d8;
    color: #b8860b;
}
.site-notice.success { background:#f6f8f4; border-color:#dfe6d8; color:#3a4a35; }
.site-notice.success i { background:#e4ecdd; color:#5a7a3a; }
.site-notice.warning { background:#fdf8ee; border-color:#f0e3c8; color:#5a4a2a; }
.site-notice.warning i { background:#f5e6c4; color:#b8860b; }
.site-notice.error   { background:#fbf4f2; border-color:#f0d9d3; color:#5a3a35; }
.site-notice.error   i { background:#f2d8d2; color:#b84a3a; }
.site-notice p { margin: 0; flex: 1; }
