/* ===== 全局重置与基础 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary-color: #ff69b4;
    --primary-light: #ff85c0;
    --primary-dark: #ff1493;
    --bg-color: #ffe4ec;
    --card-bg: #fff;
    --text-color: #222;
    --text-light: #666;
    --border-color: #ffe4ec;
    --section-title-color: #222;
    --header-gradient: linear-gradient(135deg, #ff69b4 0%, #ff85c0 100%);
    --footer-bg: linear-gradient(135deg, #2d2d2d 0%, #3d3d3d 100%);
    --shadow: 0 6px 25px rgba(0,0,0,0.06);
}

body.theme-dark {
    --primary-color: #333;
    --primary-light: #555;
    --primary-dark: #111;
    --bg-color: #1a1a1a;
    --card-bg: #2a2a2a;
    --text-color: #eee;
    --text-light: #aaa;
    --border-color: #444;
    --section-title-color: #eee;
    --header-gradient: linear-gradient(135deg, #2d2d2d 0%, #444 100%);
    --footer-bg: linear-gradient(135deg, #111 0%, #222 100%);
    --shadow: 0 6px 25px rgba(0,0,0,0.3);
}

body {
    background-color: var(--bg-color);
    min-height: 100vh;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== 头部导航 ===== */
.header {
    background: var(--header-gradient);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(255, 105, 180, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 32px;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

a.logo {
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ffe4ec;
}

.search-box {
    flex: 1;
    max-width: 450px;
    margin: 0 60px;
}

.search-box input {
    width: 100%;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    outline: none;
    background-color: rgba(255,255,255,0.95);
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-box input::placeholder {
    color: #999;
}

.user-center {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-center:hover {
    color: #ffe4ec;
}

/* ===== 底部 footer ===== */
.footer {
    background: var(--footer-bg);
    color: #e0e0e0;
    padding: 40px 0;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-info p,
.footer-service p {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.8;
}

.footer strong {
    color: #fff;
    font-weight: 500;
}

.footer a {
    color: #ff85c0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: #ff69b4;
    text-decoration: underline;
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a {
    color: #ff85c0;
}

/* ===== 通用组件 ===== */
.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--section-title-color);
    margin-bottom: 28px;
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: 20px;
    font-weight: 700;
    color: var(--section-title-color);
    margin-bottom: 20px;
}

/* 按钮 */
.btn {
    padding: 14px 36px;
    border-radius: 28px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.35s;
    border: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.btn-primary {
    background: var(--header-gradient);
    color: #fff;
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(255, 105, 180, 0.55);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: #fff0f5;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(255, 105, 180, 0.2);
}

/* 标签 */
.type-tag,
.guess-tag {
    background: #ffcce6;
    color: #fff;
    padding: 6px 16px;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 500;
}

.status-tag {
    padding: 6px 16px;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 500;
}

.status-tag.ongoing {
    background: #d4edda;
    color: #28a745;
}

.status-tag.completed {
    background: #e9ecef;
    color: #6c757d;
}

/* 徽章 */
.top-badge {
    position: absolute;
    top: 0;
    left: -30px;
    background: linear-gradient(135deg, #ff69b4 0%, #ff85c0 100%);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    padding: 6px 40px;
    transform: rotate(-45deg);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.chapter-badge {
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
}

.free-badge {
    background: #e8f5e9;
    color: #2e7d32;
}

.vip-badge {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #e65100;
}

.user-main .vip-badge,
.vip-status-card .vip-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff69b4 0%, #ff85c0 100%);
    color: #fff;
    padding: 4px 14px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 700;
}

.user-main .vip-badge.normal,
.vip-status-card .vip-badge.normal {
    background: #ddd;
    color: #666;
}

/* 通用卡片 */
.comic-card,
.recommend-card,
.favorite-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.35s;
    cursor: pointer;
}

.comic-card:hover,
.recommend-card:hover,
.favorite-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(255, 105, 180, 0.2);
    border-color: #ffcce6;
}

.comic-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.comic-card .info {
    padding: 14px 10px;
    text-align: center;
}

.comic-card .info .name,
.recommend-card .card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.comic-card .info .author {
    font-size: 13px;
    color: var(--text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-card {
    flex: 1;
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.35s;
}

.ranking-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(255, 105, 180, 0.2);
    border-color: #ffcce6;
}

.ranking-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.ranking-card .info {
    padding: 18px;
    text-align: center;
}

.ranking-card .info .name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-card .info .author {
    font-size: 13px;
    color: var(--text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recommend-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.recommend-card:hover img {
    transform: scale(1.08);
}

.recommend-card .card-title {
    padding: 16px;
    text-align: center;
    font-size: 16px;
}

/* ===== 认证页面 ===== */
.main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
}

.auth-card {
    width: 420px;
    max-width: 100%;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 45px 40px;
    box-shadow: 0 10px 40px rgba(255, 105, 180, 0.2);
}

.auth-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--section-title-color);
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 16px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 35px;
}

.auth-card .form-group {
    margin-bottom: 22px;
}

.auth-card .form-label {
    display: block;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 500;
}

.auth-card .form-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    color: var(--text-color);
    outline: none;
    transition: all 0.3s;
    background: var(--bg-color);
}

.auth-card .form-input:focus {
    border-color: var(--primary-light);
    background: var(--card-bg);
    box-shadow: 0 0 0 3px rgba(255, 133, 192, 0.15);
}

.auth-card .form-input::placeholder {
    color: #aaa;
}

.remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

.checkbox-wrap input {
    width: 16px;
    height: 16px;
    accent-color: #ff69b4;
    cursor: pointer;
    flex-shrink: 0;
}

.auth-card .checkbox-wrap input {
    margin-top: 0;
}

.agreement-row .checkbox-wrap {
    align-items: flex-start;
    font-size: 13px;
    line-height: 1.5;
}

.agreement-row .checkbox-wrap input {
    margin-top: 2px;
}

.forgot-link {
    font-size: 14px;
    color: #ff69b4;
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-link:hover {
    color: #ff1493;
    text-decoration: underline;
}

.auth-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff69b4 0%, #ff85c0 100%);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.35);
}

.auth-btn:hover {
    background: linear-gradient(135deg, #ff1493 0%, #ff69b4 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.45);
}

.auth-btn:active {
    transform: translateY(0) scale(1);
}

.auth-footer {
    text-align: center;
    margin-top: 28px;
    font-size: 14px;
    color: #777;
}

.auth-footer a {
    color: #ff69b4;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.auth-footer a:hover {
    color: #ff1493;
    text-decoration: underline;
}

.verify-row {
    display: flex;
    gap: 12px;
}

.verify-row .form-input {
    flex: 1;
}

.verify-btn {
    padding: 0 18px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff69b4 0%, #ff85c0 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(255, 105, 180, 0.25);
}

.verify-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff1493 0%, #ff69b4 100%);
    transform: translateY(-1px);
}

.verify-btn:disabled {
    background: #ddd;
    cursor: not-allowed;
    box-shadow: none;
}

.agreement-row {
    margin: 22px 0 28px;
}

.checkbox-wrap a {
    color: #ff69b4;
    text-decoration: none;
}

.checkbox-wrap a:hover {
    color: #ff1493;
    text-decoration: underline;
}

/* ===== 协议页面 ===== */
.policy-section {
    background: var(--card-bg);
    margin-top: 32px;
    margin-bottom: 40px;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.page-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--section-title-color);
    margin-bottom: 36px;
    letter-spacing: 1px;
}

.policy-list {
    list-style: none;
}

.policy-item {
    margin-bottom: 30px;
}

.policy-item:last-child {
    margin-bottom: 0;
}

.policy-title {
    font-size: 18px;
    font-weight: 700;
    color: #ff69b4;
    margin-bottom: 12px;
}

.policy-text {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-color);
    text-align: justify;
}

/* ===== 个人中心布局 ===== */
.user-layout {
    display: flex;
    gap: 24px;
    margin-top: 32px;
    margin-bottom: 40px;
}

.user-sidebar {
    width: 260px;
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.user-info-top {
    background: linear-gradient(135deg, #ff69b4 0%, #ff85c0 100%);
    padding: 30px 20px;
    text-align: center;
    color: #fff;
}

.user-info-top img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.5);
    object-fit: cover;
    cursor: pointer;
    margin-bottom: 12px;
    transition: transform 0.3s;
}

.user-info-top img:hover {
    transform: scale(1.05);
}

.user-info-top .user-name {
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

.user-menu {
    padding: 16px;
}

.user-menu a {
    display: block;
    padding: 14px 18px;
    border-radius: 12px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
    transition: all 0.3s;
}

.user-menu a:hover,
.user-menu a.active {
    background: var(--bg-color);
    color: var(--primary-color);
}

.user-main {
    flex: 1;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
    min-height: 600px;
}

.user-main .page-title {
    margin-bottom: 28px;
}

/* ===== 个人中心子页面 ===== */
.profile-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-color) 100%);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 28px;
    border: 1px solid var(--border-color);
}

.profile-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.25);
}

.profile-info {
    flex: 1;
}

.profile-info .nickname {
    font-size: 26px;
    font-weight: 800;
    color: var(--section-title-color);
    margin-bottom: 16px;
}

.profile-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.profile-meta p {
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.8;
}

.profile-meta strong {
    color: var(--text-light);
    font-weight: 500;
    margin-right: 6px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.35s;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(255, 105, 180, 0.15);
    border-color: #ffcce6;
}

.stat-card .number {
    font-size: 32px;
    font-weight: 800;
    color: #ff69b4;
    margin-bottom: 8px;
}

.stat-card .label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* 修改资料 */
.user-main .form-group {
    margin-bottom: 24px;
}

.user-main .form-label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
}

.user-main .form-input,
.user-main .form-textarea {
    width: 100%;
    max-width: 480px;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    color: var(--text-color);
    outline: none;
    transition: border-color 0.3s;
    background: var(--bg-color);
}

.user-main .form-input:focus,
.user-main .form-textarea:focus {
    border-color: var(--primary-color);
}

.user-main .form-textarea {
    min-height: 120px;
    resize: vertical;
}

.avatar-edit {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.avatar-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--border-color);
}

.avatar-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-main .btn {
    display: inline-block;
    padding: 12px 28px;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.radio-group {
    display: flex;
    gap: 24px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-item input {
    width: 18px;
    height: 18px;
    accent-color: #ff69b4;
    cursor: pointer;
}

.radio-item span {
    font-size: 15px;
    color: #555;
}

.file-input {
    display: none;
}

/* 修改密码 */
.form-hint {
    font-size: 13px;
    color: #888;
    margin-top: 8px;
}

.password-strength {
    margin-top: 10px;
    max-width: 480px;
}

.strength-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 6px;
}

.strength-label span {
    font-weight: 700;
}

.strength-bars {
    display: flex;
    gap: 6px;
    height: 6px;
}

.strength-bar {
    flex: 1;
    border-radius: 3px;
    background: #ffe4ec;
    transition: background 0.3s;
}

.strength-bar.weak {
    background: #ff6b6b;
}

.strength-bar.medium {
    background: #f1c40f;
}

.strength-bar.strong {
    background: #2ecc71;
}

.strength-text.weak {
    color: #ff6b6b;
}

.strength-text.medium {
    color: #f1c40f;
}

.strength-text.strong {
    color: #2ecc71;
}

/* 我的收藏 */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.favorite-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.favorite-info {
    padding: 16px;
}

.favorite-info .name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.favorite-info .author {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.btn-unfavorite {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: #fff0f5;
    color: #ff69b4;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-unfavorite:hover {
    background: #ff69b4;
    color: #fff;
}

/* 我的评论 */
.comment-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-item {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.35s;
}

.comment-item:hover {
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.1);
    border-color: #ffcce6;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.comment-comic {
    font-size: 16px;
    font-weight: 700;
    color: #ff69b4;
}

.comment-time {
    font-size: 13px;
    color: #aaa;
}

.comment-content {
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 14px;
}

.comment-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #888;
}

.comment-footer .like-icon {
    color: #ff69b4;
    font-size: 16px;
}

/* 观看记录 */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    transition: all 0.35s;
}

.history-item:hover {
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.1);
    border-color: #ffcce6;
}

.history-item img {
    width: 90px;
    height: 120px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.history-info {
    flex: 1;
}

.history-info .name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
}

.history-info .episode {
    font-size: 14px;
    color: #ff69b4;
    font-weight: 500;
    margin-bottom: 6px;
}

.history-info .time {
    font-size: 13px;
    color: #aaa;
}

.btn-continue {
    padding: 10px 24px;
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #ff69b4 0%, #ff85c0 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.btn-continue:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 105, 180, 0.35);
}

/* 充值记录 */
.recharge-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.recharge-table thead {
    background: linear-gradient(135deg, #ff69b4 0%, #ff85c0 100%);
    color: #fff;
}

.recharge-table th,
.recharge-table td {
    padding: 16px 20px;
    text-align: left;
    font-size: 15px;
}

.recharge-table th {
    font-weight: 700;
}

.recharge-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s;
}

.recharge-table tbody tr:last-child {
    border-bottom: none;
}

.recharge-table tbody tr:hover {
    background: var(--bg-color);
}

.recharge-table td {
    color: var(--text-color);
}

.status-success {
    display: inline-block;
    background: #e6f7ed;
    color: #2ecc71;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
}

.status-pending {
    display: inline-block;
    background: #fff8e6;
    color: #f39c12;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
}

.amount {
    color: #ff69b4;
    font-weight: 700;
}

/* 升级会员 */
.vip-status-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-color) 100%);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 28px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.vip-status-card .status-text {
    font-size: 18px;
    color: #444;
}

.vip-status-card .status-text strong {
    color: #ff69b4;
    font-size: 22px;
}

.vip-status-card .expire {
    font-size: 14px;
    color: #888;
    margin-top: 6px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.plan-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 28px;
    text-align: center;
    cursor: pointer;
    transition: all 0.35s;
    position: relative;
}

.plan-card:hover,
.plan-card.selected {
    border-color: #ff69b4;
    box-shadow: 0 12px 30px rgba(255, 105, 180, 0.2);
    transform: translateY(-6px);
}

.plan-card.recommended {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-color) 100%);
}

.plan-card .recommend-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff69b4 0%, #ff85c0 100%);
    color: #fff;
    padding: 5px 16px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 700;
}

.plan-card .plan-name {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
}

.plan-card .plan-price {
    font-size: 36px;
    font-weight: 800;
    color: #ff69b4;
    margin-bottom: 6px;
}

.plan-card .plan-price span {
    font-size: 14px;
    color: #888;
    font-weight: 500;
}

.plan-card .plan-original {
    font-size: 13px;
    color: #aaa;
    text-decoration: line-through;
    margin-bottom: 12px;
}

.benefits-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 32px;
    border: 1px solid var(--border-color);
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #444;
}

.benefit-item .icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff69b4 0%, #ff85c0 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.btn-subscribe {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(135deg, #ff69b4 0%, #ff85c0 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.35);
}

.btn-subscribe:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(255, 105, 180, 0.45);
}

/* 未成年防沉迷 */
.status-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-color) 100%);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.status-label {
    font-size: 16px;
    color: #666;
    margin-bottom: 8px;
}

.status-value {
    font-size: 22px;
    font-weight: 800;
}

.status-value.unverified {
    color: #888;
}

.status-value.minor {
    color: #ff6b6b;
}

.status-value.adult {
    color: #2ecc71;
}

.rules-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 28px;
}

.rule-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rule-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: var(--bg-color);
    border-radius: 14px;
}

.rule-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff69b4 0%, #ff85c0 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.rule-text {
    flex: 1;
}

.rule-text .title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 4px;
}

.rule-text .desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.auth-section {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 28px;
}

.tips-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-color) 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px 28px;
}

.tips-title {
    font-size: 16px;
    font-weight: 700;
    color: #ff69b4;
    margin-bottom: 10px;
}

.tips-content {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

/* ===== 首页 ===== */
.hero-section {
    margin-top: 25px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 30px rgba(255, 105, 180, 0.2);
    background: linear-gradient(135deg, #ff69b4 0%, #ff85c0 100%);
}

.hero-top {
    display: flex;
    height: 420px;
    padding: 24px;
    gap: 24px;
}

.hero-side {
    width: 260px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.hero-side:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}

.hero-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.hero-side:hover img {
    transform: scale(1.05);
}

.hero-side .side-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    padding: 50px 16px 18px;
    color: #fff;
    text-align: center;
}

.hero-side .side-info h4 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}

.hero-side .side-info p {
    font-size: 13px;
    opacity: 0.9;
}

.hero-carousel {
    flex: 1;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.hero-slides {
    display: flex;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
    min-width: 100%;
    position: relative;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.35) 0%, transparent 45%, rgba(0,0,0,0.25) 100%);
    z-index: 1;
}

.hero-slide-info {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 2;
    text-shadow: 0 3px 15px rgba(0,0,0,0.6);
    width: 85%;
}

.hero-slide-info h2 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: 6px;
}

.hero-slide-info p {
    font-size: 20px;
    opacity: 0.92;
    letter-spacing: 2px;
}

.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    border: 2px solid rgba(255,255,255,0.4);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
}

.hero-nav-btn:hover {
    background: rgba(255,255,255,0.55);
    border-color: rgba(255,255,255,0.8);
}

.hero-nav-btn.prev {
    left: 20px;
}

.hero-nav-btn.next {
    right: 20px;
}

.hero-dots {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: all 0.3s;
}

.hero-dot.active {
    background: #fff;
    width: 32px;
    border-radius: 6px;
}

.hero-categories {
    background: rgba(255,255,255,0.95);
    padding: 20px 40px;
    display: flex;
    justify-content: center;
    gap: 35px;
    flex-wrap: wrap;
}

.hero-category-item {
    color: #666;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
}

.hero-category-item:hover {
    background: #ffcce6;
    color: #ff69b4;
}

.category-section {
    background: var(--card-bg);
    margin-top: 32px;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.category-subtitle {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.category-item {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-color) 100%);
    padding: 16px 10px;
    border-radius: 24px;
    text-align: center;
    color: var(--primary-color);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.35s;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.category-item:hover {
    background: linear-gradient(135deg, #ff69b4 0%, #ff85c0 100%);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(255, 105, 180, 0.35);
    border-color: rgba(255,255,255,0.3);
}

.category-item.active,
.category-item.status-item.active {
    background: linear-gradient(135deg, #ff69b4 0%, #ff85c0 100%);
    color: #fff;
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 8px 20px rgba(255, 105, 180, 0.35);
    font-weight: 700;
}

.filter-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-result-text {
    font-size: 15px;
    color: var(--text-light);
}

.filter-result-text strong {
    color: var(--primary-color);
    font-weight: 700;
}

.filter-clear {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 14px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 12px;
    transition: background 0.3s;
    font-weight: 500;
}

.filter-clear:hover {
    background: var(--bg-color);
}

.comic-card.hidden {
    display: none;
}

.ad-banner.hidden {
    display: none;
}

.guess-section {
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--card-bg) 100%);
    margin-top: 32px;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.guess-content {
    display: flex;
    gap: 40px;
}

.guess-left {
    flex: 1;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.guess-left .comic-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--section-title-color);
    margin-bottom: 18px;
}

.guess-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.guess-desc {
    color: var(--text-color);
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 25px;
}

.guess-covers {
    display: flex;
    gap: 12px;
}

.guess-cover-item {
    width: 80px;
    height: 110px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

.guess-cover-item:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.guess-cover-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guess-right {
    width: 460px;
}

.guess-right img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.ranking-section {
    background: var(--card-bg);
    margin-top: 32px;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.ranking-tabs {
    display: flex;
    gap: 40px;
    margin-bottom: 35px;
}

.ranking-tab {
    font-size: 28px;
    font-weight: 800;
    color: #bbb;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.ranking-tab:hover {
    color: #ff85c0;
}

.ranking-tab.active {
    color: #ff69b4;
}

.ranking-tab.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff69b4, #ff85c0);
    border-radius: 2px;
}

.ranking-cards {
    display: flex;
    justify-content: space-between;
    gap: 22px;
}

.author-section {
    background: var(--card-bg);
    margin-top: 32px;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.author-content {
    display: flex;
    gap: 40px;
}

.author-column {
    flex: 1;
}

.author-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 25px;
    padding: 16px 24px;
    border-radius: 12px;
}

.author-header.人气王 {
    background: linear-gradient(135deg, #ff69b4 0%, #ff85c0 100%);
}

.author-header.新人王 {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
}

.author-header img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.5);
}

.author-header h3 {
    font-size: 24px;
    color: #fff;
    font-weight: 800;
}

.author-header .count {
    margin-left: auto;
    font-size: 20px;
    color: #fff;
    font-weight: 700;
}

.author-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.author-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: 12px;
    transition: all 0.3s;
}

.author-item:hover {
    background: #fff8fb;
    transform: translateX(5px);
}

.author-item img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-item .info {
    flex: 1;
}

.author-item .info .name {
    font-size: 16px;
    font-weight: 700;
    color: #222;
}

.author-item .info .works {
    font-size: 13px;
    color: #888;
    margin-top: 3px;
}

.author-item .count {
    font-size: 15px;
    color: #ff69b4;
    font-weight: 700;
}

.hot-section {
    background: var(--card-bg);
    margin-top: 32px;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.hot-mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 12px;
    height: 480px;
}

.mosaic-item {
    background: #ffe4ec;
    border: 5px solid #fff;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.35s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.mosaic-item:hover {
    transform: scale(1.05);
    z-index: 1;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mosaic-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.mosaic-item.medium {
    grid-column: span 1;
    grid-row: span 2;
}

.mosaic-item.small {
    grid-column: span 1;
    grid-row: span 1;
}

/* ===== 分类页 ===== */
.comic-section {
    background: var(--card-bg);
    margin-top: 32px;
    margin-bottom: 40px;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.comic-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 22px;
}

.ad-banner {
    grid-column: span 5;
    width: 100%;
    height: 160px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin: 10px 0;
}

.ad-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.ad-banner:hover img {
    transform: scale(1.03);
}

/* ===== 热门连载页 ===== */
.serial-stage {
    background: #1a1a1a;
    margin-top: 32px;
    border-radius: 20px;
    padding: 35px 40px 45px;
    box-shadow: 0 8px 35px rgba(0,0,0,0.45);
    position: relative;
    overflow: hidden;
}

.serial-stage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 15% 25%, rgba(255,105,180,0.08) 0%, transparent 35%),
        radial-gradient(circle at 85% 75%, rgba(255,235,59,0.06) 0%, transparent 35%),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 12px);
    pointer-events: none;
    z-index: 0;
}

.stage-header {
    position: relative;
    z-index: 2;
    margin-bottom: 28px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.stage-title {
    font-size: 62px;
    font-weight: 900;
    color: #ffeb3b;
    letter-spacing: 8px;
    text-shadow:
        4px 4px 0 #000,
        -2px -2px 0 #ff69b4,
        0 0 20px rgba(255,105,180,0.5);
    transform: rotate(-2deg);
    display: inline-block;
}

.stage-subtitle {
    font-size: 16px;
    color: #ccc;
    letter-spacing: 2px;
    padding-bottom: 12px;
}

.stage-subtitle strong {
    color: #ff85c0;
}

.comic-collage {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 680px;
}

.panel {
    position: absolute;
    background: #fff;
    padding: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.panel:hover {
    transform: scale(1.08) rotate(0deg) !important;
    z-index: 50;
    box-shadow: 0 20px 50px rgba(255,105,180,0.35);
    padding: 6px;
}

.panel:hover .panel-inner {
    filter: brightness(1.08);
}

.panel-inner {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.panel:hover img {
    transform: scale(1.12);
}

.panel-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 14px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    z-index: 3;
}

.panel:nth-child(1) {
    width: 300px;
    height: 390px;
    top: 10px;
    left: 20px;
    transform: rotate(-3deg);
    z-index: 4;
}

.panel:nth-child(1) .panel-inner {
    clip-path: polygon(0 0, 100% 4%, 96% 100%, 4% 96%);
}

.panel:nth-child(2) {
    width: 240px;
    height: 320px;
    top: 0;
    left: 340px;
    transform: rotate(2deg);
    z-index: 3;
}

.panel:nth-child(2) .panel-inner {
    clip-path: polygon(5% 0, 95% 2%, 100% 98%, 0 100%);
}

.panel:nth-child(3) {
    width: 260px;
    height: 280px;
    top: 30px;
    left: 600px;
    transform: rotate(-2deg);
    z-index: 5;
}

.panel:nth-child(3) .panel-inner {
    clip-path: polygon(3% 5%, 100% 0, 97% 95%, 0 100%);
}

.panel:nth-child(4) {
    width: 330px;
    height: 240px;
    top: 15px;
    right: 20px;
    transform: rotate(1.5deg);
    z-index: 2;
}

.panel:nth-child(4) .panel-inner {
    clip-path: polygon(0 6%, 100% 0, 95% 100%, 5% 94%);
}

.panel:nth-child(5) {
    width: 220px;
    height: 260px;
    top: 420px;
    left: 0;
    transform: rotate(2.5deg);
    z-index: 6;
}

.panel:nth-child(5) .panel-inner {
    clip-path: polygon(4% 0, 96% 4%, 100% 96%, 2% 100%);
}

.panel:nth-child(6) {
    width: 280px;
    height: 230px;
    top: 430px;
    left: 245px;
    transform: rotate(-1.5deg);
    z-index: 4;
}

.panel:nth-child(6) .panel-inner {
    clip-path: polygon(0 0, 100% 5%, 98% 100%, 3% 95%);
}

.panel:nth-child(7) {
    width: 230px;
    height: 310px;
    top: 340px;
    left: 545px;
    transform: rotate(3deg);
    z-index: 7;
}

.panel:nth-child(7) .panel-inner {
    clip-path: polygon(5% 0, 95% 3%, 100% 97%, 0 100%);
}

.panel:nth-child(8) {
    width: 210px;
    height: 210px;
    top: 350px;
    left: 795px;
    transform: rotate(-2.5deg);
    z-index: 5;
}

.panel:nth-child(8) .panel-inner {
    clip-path: polygon(0 4%, 100% 0, 96% 100%, 4% 96%);
}

.panel:nth-child(9) {
    width: 240px;
    height: 290px;
    top: 380px;
    right: 0;
    transform: rotate(1deg);
    z-index: 6;
}

.panel:nth-child(9) .panel-inner {
    clip-path: polygon(3% 2%, 97% 0, 100% 98%, 5% 100%);
}

.panel:nth-child(10) {
    width: 180px;
    height: 180px;
    top: 280px;
    right: 180px;
    transform: rotate(-4deg);
    z-index: 8;
}

.panel:nth-child(10) .panel-inner {
    clip-path: polygon(0 0, 100% 6%, 94% 100%, 6% 94%);
}

/* ===== 详情页 ===== */
.breadcrumb {
    margin: 25px 0 20px;
    font-size: 15px;
    color: #888;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #ff69b4;
}

.breadcrumb span {
    margin: 0 8px;
    color: #bbb;
}

.breadcrumb .current {
    color: #ff69b4;
    font-weight: 500;
}

.detail-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.detail-content {
    display: flex;
    gap: 45px;
}

.detail-cover {
    width: 280px;
    height: 380px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0,0,0,0.18);
    flex-shrink: 0;
}

.detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.detail-info .comic-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--section-title-color);
    margin-bottom: 22px;
    letter-spacing: 1px;
}

.info-row {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    font-size: 16px;
    color: var(--text-color);
}

.info-label {
    color: var(--text-light);
    width: 80px;
    flex-shrink: 0;
}

.info-value {
    color: var(--text-color);
    font-weight: 500;
}

.author-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
}

.author-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.comic-desc {
    margin-top: 8px;
    color: var(--text-color);
    font-size: 15px;
    line-height: 1.9;
}

.comic-desc .info-label {
    display: block;
    margin-bottom: 10px;
    width: auto;
}

.desc-text {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    line-height: 1.9;
}

.action-buttons {
    display: flex;
    gap: 18px;
    margin-top: auto;
    padding-top: 28px;
}

.chapter-section {
    background: var(--card-bg);
    margin-top: 32px;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.chapter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.chapter-header .section-title {
    margin-bottom: 0;
}

.chapter-section .section-title,
.recommend-section .section-title {
    font-size: 28px;
}

.chapter-sort {
    display: flex;
    gap: 10px;
}

.sort-btn {
    padding: 8px 18px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    border-radius: 18px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-light);
    transition: all 0.3s;
}

.sort-btn.active,
.sort-btn:hover {
    background: var(--header-gradient);
    color: #fff;
    border-color: var(--primary-color);
}

.chapter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.chapter-grid .chapter-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    border-radius: 14px;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.chapter-grid .chapter-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(255, 105, 180, 0.18);
    border-color: var(--primary-light);
}

.chapter-grid .chapter-item.vip {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-color) 100%);
}

.chapter-num {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.chapter-grid .chapter-title {
    font-size: 15px;
    color: var(--text-color);
    font-weight: 700;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.recommend-section {
    background: var(--card-bg);
    margin-top: 32px;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.recommend-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ===== 阅读页 ===== */
/* 需要在 <body> 上附加 class="reader-page"；
   html/body 全屏重置保留在 reader.html 的极简内联样式中。 */
body.reader-page {
    --reader-bg: #f5f5f5;
    --toolbar-bg: rgba(0, 0, 0, 0.85);
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --accent: #ff69b4;
    --accent-hover: #ff85c0;
    --drawer-bg: rgba(20, 20, 20, 0.96);
    --chapter-free: #ffffff;
    --chapter-vip: #ffd700;
    --shadow: rgba(0, 0, 0, 0.4);
    background-color: var(--reader-bg);
    color: var(--text-primary);
    transition: background-color 0.3s ease;
}

body.reader-page.night-mode {
    --reader-bg: #1a1a1a;
    --toolbar-bg: rgba(0, 0, 0, 0.92);
    --drawer-bg: rgba(10, 10, 10, 0.98);
}

.top-toolbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--toolbar-bg);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1000;
    box-shadow: 0 2px 12px var(--shadow);
    transition: background-color 0.3s ease;
}

.top-left, .top-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.icon-btn:active {
    transform: scale(0.92);
}

.icon-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.top-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 4px;
}

.top-toolbar .comic-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-toolbar .chapter-title {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.3;
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.favorite-btn.active {
    color: #ff4081;
}

.favorite-btn.active svg {
    fill: #ff4081;
}

.favorite-btn.pop {
    animation: pop 0.3s ease;
}

@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

.catalog-trigger {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 88px;
    background: var(--toolbar-bg);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 0 10px 10px 0;
    color: var(--text-primary);
    font-size: 14px;
    writing-mode: vertical-rl;
    letter-spacing: 6px;
    cursor: pointer;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 0 10px var(--shadow);
    transition: background 0.3s ease, transform 0.2s;
}

.catalog-trigger:hover {
    background: rgba(0, 0, 0, 0.95);
    width: 36px;
}

.catalog-trigger.hidden {
    display: none;
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.show {
    opacity: 1;
    visibility: visible;
}

.chapter-drawer {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 320px;
    max-width: 80vw;
    background: var(--drawer-bg);
    backdrop-filter: blur(12px);
    z-index: 1110;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), background 0.3s ease;
    display: flex;
    flex-direction: column;
}

.chapter-drawer.show {
    transform: translateX(0);
}

.drawer-header {
    padding: 20px 18px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.drawer-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}

.drawer-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer-close svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.chapter-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.chapter-list::-webkit-scrollbar {
    width: 6px;
}

.chapter-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.chapter-list .chapter-item {
    padding: 14px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
    border-left: 3px solid transparent;
}

.chapter-list .chapter-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.chapter-list .chapter-item.current {
    background: rgba(255, 105, 180, 0.18);
    border-left-color: var(--accent);
}

.chapter-name {
    font-size: 14px;
    color: var(--chapter-free);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.chapter-list .chapter-item.vip .chapter-name {
    color: var(--chapter-vip);
}

.chapter-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 10px;
    flex-shrink: 0;
}

.chapter-tag.free {
    background: rgba(255, 255, 255, 0.15);
    color: #ddd;
}

.chapter-tag.vip {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

.reader-area {
    width: 100%;
    height: 100vh;
    padding-top: 56px;
    padding-bottom: 72px;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background-color: var(--reader-bg);
    transition: background-color 0.3s ease;
}

.reader-content {
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 40px;
}

.comic-page {
    width: 100%;
    max-width: 800px;
    display: block;
    margin: 0 auto;
    transition: transform 0.25s ease, width 0.25s ease;
    transform-origin: center top;
    cursor: pointer;
    user-select: none;
}

.comic-page img {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
}

.bottom-toolbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 72px;
    background: var(--toolbar-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 -2px 12px var(--shadow);
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease;
}

.bottom-controls {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 16px;
    overflow-x: auto;
    white-space: nowrap;
}

.bottom-controls::-webkit-scrollbar {
    display: none;
}

.control-btn {
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 13px;
    padding: 8px 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.2s, transform 0.15s;
    flex-shrink: 0;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.control-btn:active {
    transform: scale(0.95);
}

.control-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.control-btn.active {
    background: var(--accent);
    color: #fff;
}

.zoom-display {
    min-width: 56px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.progress-area {
    height: 22px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.25);
    outline: none;
    cursor: pointer;
}

.progress-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    transition: transform 0.15s;
}

.progress-slider::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}

.progress-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: none;
}

.progress-text {
    font-size: 12px;
    color: var(--text-secondary);
    min-width: 38px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.more-menu {
    position: fixed;
    top: 60px;
    right: 12px;
    width: 160px;
    background: var(--drawer-bg);
    backdrop-filter: blur(12px);
    border-radius: 10px;
    padding: 8px 0;
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    box-shadow: 0 6px 20px var(--shadow);
}

.more-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.more-menu-item {
    padding: 12px 18px;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.more-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

body.hide-ui .top-toolbar,
body.hide-ui .bottom-toolbar,
body.hide-ui .catalog-trigger {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
}

body.hide-ui .bottom-toolbar {
    transform: translateY(100%);
}

body.hide-ui .reader-area {
    padding-top: 0;
    padding-bottom: 0;
}

/* ===== 响应式适配 ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    .header-content {
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 20px;
    }

    .search-box {
        margin: 0;
        order: 2;
    }

    .section-title {
        font-size: 24px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 12px;
    }

    /* 首页 */
    .hero-top {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }

    .hero-side {
        display: none;
    }

    .hero-carousel {
        width: 100%;
        height: 220px;
    }

    .hero-slide-info h2 {
        font-size: 24px;
    }

    .hero-slide-info p {
        font-size: 14px;
    }

    .hero-nav-btn.prev {
        left: 10px;
    }

    .hero-nav-btn.next {
        right: 10px;
    }

    .category-grid,
    .status-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .category-item {
        padding: 12px 6px;
        font-size: 13px;
    }

    .guess-content {
        flex-direction: column;
    }

    .guess-right {
        width: 100%;
    }

    .guess-right img {
        height: 320px;
    }

    .ranking-cards {
        flex-direction: column;
    }

    .ranking-tab {
        font-size: 20px;
    }

    .author-content {
        flex-direction: column;
    }

    .hot-mosaic {
        grid-template-columns: repeat(2, 1fr);
        height: 360px;
    }

    /* 分类页 */
    .comic-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .ad-banner {
        grid-column: span 2;
        height: 120px;
    }

    .comic-card img {
        height: 180px;
    }

    /* 详情页 */
    .breadcrumb {
        margin: 15px 0 12px;
        font-size: 13px;
    }

    .detail-section {
        padding: 24px;
    }

    .detail-content {
        flex-direction: column;
        align-items: center;
        gap: 28px;
    }

    .detail-cover {
        width: 220px;
        height: 300px;
    }

    .detail-info .comic-title {
        font-size: 24px;
        text-align: center;
    }

    .info-row {
        font-size: 14px;
    }

    .info-label {
        width: 70px;
    }

    .desc-text {
        padding: 14px;
    }

    .action-buttons {
        flex-direction: column;
        gap: 12px;
        padding-top: 20px;
    }

    .btn {
        width: 100%;
        padding: 12px 24px;
    }

    .chapter-section {
        padding: 24px;
    }

    .chapter-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .chapter-section .section-title,
    .recommend-section .section-title {
        font-size: 22px;
    }

    .chapter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .chapter-grid .chapter-item {
        padding: 14px;
    }

    .recommend-section {
        padding: 24px;
    }

    .recommend-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .recommend-card img {
        height: 160px;
    }

    .recommend-card .card-title {
        padding: 12px;
        font-size: 14px;
    }

    /* 热门连载 */
    .serial-stage {
        padding: 25px 15px 35px;
    }

    .stage-title {
        font-size: 34px;
        letter-spacing: 4px;
    }

    .stage-subtitle {
        font-size: 13px;
        padding-bottom: 4px;
    }

    .comic-collage {
        height: auto;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .panel {
        position: relative;
        width: 100% !important;
        height: 200px !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
    }

    .panel:hover {
        transform: scale(1.04) !important;
    }

    /* 认证页 */
    .main {
        padding: 30px 16px;
    }

    .auth-card {
        padding: 32px 24px;
    }

    .auth-title {
        font-size: 24px;
    }

    .verify-btn {
        padding: 0 12px;
        font-size: 13px;
    }

    /* 协议页 */
    .policy-section {
        padding: 24px;
    }

    .page-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .policy-title {
        font-size: 16px;
    }

    .policy-text {
        font-size: 14px;
        line-height: 1.8;
    }

    /* 个人中心 */
    .user-layout {
        flex-direction: column;
    }

    .user-sidebar {
        width: 100%;
    }

    .profile-card {
        flex-direction: column;
        text-align: center;
    }

    .profile-meta {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .avatar-edit {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-main .form-input,
    .user-main .form-textarea {
        max-width: 100%;
    }

    .favorites-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .history-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .recharge-table {
        display: block;
        overflow-x: auto;
    }

    .recharge-table th,
    .recharge-table td {
        padding: 12px 14px;
        white-space: nowrap;
    }

    .vip-status-card {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .plans-grid {
        grid-template-columns: 1fr;
    }

    .benefits-list {
        grid-template-columns: 1fr;
    }

    .status-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* 阅读页 */
    .reader-page .top-info {
        margin-left: 0;
    }

    .reader-page .comic-title {
        max-width: 150px;
        font-size: 14px;
    }

    .reader-page .chapter-title {
        max-width: 150px;
        font-size: 12px;
    }

    .catalog-trigger {
        display: none;
    }

    .chapter-drawer {
        width: 280px;
    }

    .control-btn {
        padding: 7px 10px;
        font-size: 12px;
    }

    .control-btn svg {
        width: 16px;
        height: 16px;
    }

    .bottom-controls {
        justify-content: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .reader-page .top-toolbar {
        padding: 0 10px;
    }

    .reader-page .icon-btn {
        width: 36px;
        height: 36px;
    }

    .reader-page .icon-btn svg {
        width: 20px;
        height: 20px;
    }

    .reader-page .control-btn span {
        display: none;
    }

    .reader-page .control-btn {
        padding: 8px;
    }
}

/* ===== 作者详情页 ===== */
.author-page .breadcrumb {
    margin: 20px 0 16px;
}

.author-profile {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
    margin-bottom: 32px;
}

.author-profile-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.author-avatar-large {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--border-color);
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.author-main-info {
    flex: 1;
    min-width: 0;
}

.author-name-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.author-name-large {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: 1px;
}

.author-badge {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 6px 16px;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 700;
}

.author-bio {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 24px;
    max-width: 800px;
}

.author-stats {
    display: flex;
    gap: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
}

.author-works-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.author-works-section .section-title {
    margin-bottom: 24px;
}

.author-works-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 22px;
}

.author-works-grid .comic-card img {
    height: 240px;
}

.author-works-grid .comic-card .info {
    padding: 16px 12px;
}

.author-works-grid .comic-card .info .name {
    font-size: 16px;
}

.author-works-grid .comic-card .info .author {
    font-size: 13px;
}

.author-work-meta {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-light);
}

.author-work-meta .status {
    color: var(--primary-color);
    font-weight: 700;
}

@media (max-width: 1024px) {
    .author-works-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .author-profile {
        padding: 24px;
    }

    .author-profile-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-avatar-large {
        width: 120px;
        height: 120px;
    }

    .author-name-large {
        font-size: 24px;
    }

    .author-name-row {
        justify-content: center;
    }

    .author-stats {
        justify-content: center;
        gap: 24px;
    }

    .stat-value {
        font-size: 22px;
    }

    .author-works-section {
        padding: 24px;
    }

    .author-works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .author-works-grid .comic-card img {
        height: 180px;
    }
}

/* ===== 右侧浮动工具 ===== */
.float-tools {
    position: fixed;
    right: 30px;
    bottom: 50px;
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tool-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--card-bg);
    color: var(--primary-color);
    box-shadow: var(--shadow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.tool-btn:hover {
    transform: scale(1.1);
    background: var(--primary-color);
    color: #fff;
}

.tool-btn svg {
    display: block;
}

.theme-panel {
    position: absolute;
    right: 60px;
    bottom: 0;
    width: 150px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 8px;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-color);
    transition: background 0.2s;
}

.theme-option:hover {
    background: var(--bg-color);
}

.theme-option::before {
    content: '';
    width: 18px;
    height: 18px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(0,0,0,0.1);
}

.theme-option.color-theme::before {
    background: linear-gradient(135deg, #ff69b4 0%, #ff85c0 100%);
}

.theme-option.dark-theme::before {
    background: linear-gradient(135deg, #333 0%, #111 100%);
}

@media (max-width: 768px) {
    .float-tools {
        right: 16px;
        bottom: 24px;
    }

    .tool-btn {
        width: 44px;
        height: 44px;
    }

    .tool-btn svg {
        width: 20px;
        height: 20px;
    }

    .theme-panel {
        right: 54px;
        width: 140px;
    }
}
