/**
 * 萌次元小说网站 - 新版统一样式
 * 软糖玻璃拟态 + 糖果色渐变
 * 创建日期：2026-01-24
 */

/* ============================
   CSS 变量
   ============================ */
:root {
    /* 糖果色调 */
    --candy-pink: #FF6B9D;
    --candy-purple: #C44EFF;
    --candy-blue: #4ECAFF;
    --candy-mint: #4EFFB8;
    --candy-peach: #FFB86B;
    
    /* 柔和渐变 */
    --gradient-main: linear-gradient(135deg, #FF6B9D 0%, #C44EFF 50%, #4ECAFF 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.3) 100%);
    --gradient-sidebar: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
    --gradient-vip: linear-gradient(135deg, #FFD93D 0%, #FF9500 100%);
    --gradient-hot: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    --gradient-new: linear-gradient(135deg, #4ECAFF 0%, #44B4FF 100%);
    --gradient-end: linear-gradient(135deg, #A8E6CF 0%, #56AB91 100%);
    
    /* 文字颜色 */
    --text-dark: #2D1B4E;
    --text-light: #6B5A8E;
    --text-muted: #9D8BBF;
    --text-white: #ffffff;
    
    /* 背景颜色 */
    --bg-main: #FFF5F8;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-card: rgba(255, 255, 255, 0.9);
    
    /* 阴影 */
    --shadow-soft: 0 8px 32px rgba(196, 78, 255, 0.12);
    --shadow-card: 0 4px 24px rgba(196, 78, 255, 0.08);
    --shadow-hover: 0 12px 40px rgba(196, 78, 255, 0.18);
    --shadow-button: 0 4px 15px rgba(255, 107, 157, 0.4);
    
    /* 圆角 */
    --radius-xs: 6px;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;
    --radius-full: 100px;
    
    /* 间距 */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    
    /* 字体大小 */
    --font-xs: 12px;
    --font-sm: 14px;
    --font-md: 16px;
    --font-lg: 18px;
    --font-xl: 24px;
    --font-xxl: 32px;
    
    /* 安全区域 */
    --safe-top: env(safe-area-inset-top);
    --safe-bottom: env(safe-area-inset-bottom);
}

/* ============================
   基础样式
   ============================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'LXGW WenKai', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: var(--font-md);
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-main);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

input, textarea {
    font-family: inherit;
    outline: none;
}

/* ============================
   背景装饰
   ============================ */
.bg-decor {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    animation: float 10s ease-in-out infinite;
}

.bg-blob-1 {
    width: 400px;
    height: 400px;
    background: var(--candy-pink);
    top: -100px;
    right: 10%;
}

.bg-blob-2 {
    width: 350px;
    height: 350px;
    background: var(--candy-purple);
    top: 40%;
    left: -100px;
    animation-delay: -4s;
}

.bg-blob-3 {
    width: 300px;
    height: 300px;
    background: var(--candy-blue);
    bottom: 10%;
    right: 20%;
    animation-delay: -7s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

/* ============================
   容器
   ============================ */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ============================
   顶部导航 - PC端
   ============================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 40px;
    height: 72px;
    background: var(--gradient-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 48px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-main);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: var(--shadow-button);
    transition: transform 0.3s;
}

.logo:hover .logo-icon {
    transform: rotate(-10deg) scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 8px;
    list-style: none;
}

.nav-item {
    padding: 10px 20px;
    font-size: 1rem;
    color: var(--text-light);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.nav-item:hover {
    color: var(--text-dark);
    background: rgba(255,255,255,0.5);
}

.nav-item.active {
    color: white;
    background: var(--gradient-main);
    box-shadow: var(--shadow-button);
}

.nav-item .badge {
    position: absolute;
    top: 4px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--candy-pink);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.8); }
}

.header-center {
    flex: 1;
    max-width: 480px;
    margin: 0 40px;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: rgba(255,255,255,0.8);
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    transition: all 0.3s;
    box-shadow: var(--shadow-card);
}

.search-bar:focus-within {
    border-color: var(--candy-pink);
    background: white;
    box-shadow: var(--shadow-hover);
}

.search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text-dark);
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.search-btn {
    padding: 8px 20px;
    background: var(--gradient-main);
    border-radius: var(--radius-full);
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s;
    box-shadow: var(--shadow-button);
}

.search-btn:hover {
    transform: translateY(-2px);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-btn {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.6);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s;
}

.header-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.btn-vip {
    padding: 10px 24px;
    background: var(--gradient-vip);
    border-radius: var(--radius-full);
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 149, 0, 0.4);
    transition: all 0.3s;
}

.btn-vip:hover {
    transform: translateY(-2px);
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 8px;
    background: rgba(255,255,255,0.6);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s;
}

.user-btn:hover {
    background: white;
    box-shadow: var(--shadow-card);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-size: 0.95rem;
    color: var(--text-dark);
}

/* ============================
   主内容区
   ============================ */
.main-container {
    display: flex;
    gap: 32px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 96px 40px 40px;
}

/* PC端隐藏移动端搜索框 */
.mobile-search {
    display: none;
}

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

/* ============================
   轮播横幅
   ============================ */
.banner-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.banner-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.banner-small {
    flex: 1;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: var(--shadow-card);
    min-height: 150px;
}

.banner-small:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.banner-small-bg {
    position: absolute;
    inset: 0;
}

.banner-small:nth-child(1) .banner-small-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.banner-small:nth-child(2) .banner-small-bg {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.banner-small-content {
    position: relative;
    padding: 24px;
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.banner-small-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.banner-small-desc {
    font-size: 0.9rem;
    opacity: 0.85;
}

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

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

.banner-dot.active {
    width: 28px;
    border-radius: 10px;
    background: white;
}

.banner-dot:hover {
    background: rgba(255,255,255,0.7);
}

.banner-main {
    position: relative;
    height: 380px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.banner-main:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.banner-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-main);
}

.banner-content {
    position: relative;
    height: 100%;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    text-decoration: none;
}

.banner-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    width: fit-content;
    margin-bottom: 20px;
    color: white;
}

.banner-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
    max-width: 60%;
}

.banner-desc {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 28px;
    max-width: 50%;
    line-height: 1.6;
}

.banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: white;
    color: var(--candy-pink);
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    width: fit-content;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-decoration: none;
}

.banner-btn:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

/* ============================
   分类标签
   ============================ */
.categories {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.category-chip {
    padding: 12px 24px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s;
}

.category-chip:hover {
    background: white;
    border-color: var(--candy-pink);
    color: var(--candy-pink);
    transform: translateY(-2px);
}

.category-chip.active {
    background: var(--gradient-main);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-button);
}

/* ============================
   区块标题
   ============================ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::before {
    content: '';
    width: 5px;
    height: 28px;
    background: var(--gradient-main);
    border-radius: 3px;
}

.section-more {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: var(--candy-pink);
    cursor: pointer;
    transition: all 0.3s;
}

.section-more:hover {
    gap: 10px;
}

/* ============================
   小说卡片网格
   ============================ */
.novel-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

/* 横向滚动卡片列表 - PC端显示为网格 */
.novel-scroll {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.novel-scroll .novel-card {
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-card);
}

.novel-scroll .novel-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.novel-scroll .novel-cover {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

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

.novel-scroll .novel-card:hover .novel-cover img {
    transform: scale(1.05);
}

.novel-scroll .novel-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    padding: 14px;
}

/* 网格布局卡片 */
.grid-layout {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.grid-card {
    cursor: pointer;
    transition: transform 0.3s;
    text-decoration: none;
}

.grid-card:active {
    transform: scale(0.95);
}

.grid-cover {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: var(--shadow-card);
}

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

.grid-cover .novel-cover-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FFE5EC 0%, #E8D5FF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.grid-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.novel-card {
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-card);
}

.novel-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.novel-cover {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.novel-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.novel-card:hover .novel-cover img {
    transform: scale(1.05);
}

.novel-cover-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FFE5EC 0%, #E8D5FF 50%, #D5E8FF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
}

.novel-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.badge-hot { background: var(--gradient-hot); }
.badge-new { background: var(--gradient-new); }
.badge-vip { background: var(--gradient-vip); }
.badge-end { background: var(--gradient-end); }

.novel-info {
    padding: 16px;
}

.novel-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.novel-author {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

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

.novel-category {
    padding: 4px 10px;
    background: rgba(196, 78, 255, 0.1);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--candy-purple);
}

.novel-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--candy-peach);
    font-weight: 600;
    font-size: 0.85rem;
}

/* ============================
   排行榜
   ============================ */
.ranking-section {
    background: var(--gradient-card);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-bottom: 48px;
    box-shadow: var(--shadow-card);
}

.ranking-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.ranking-tab {
    padding: 12px 28px;
    font-size: 0.95rem;
    color: var(--text-light);
    background: rgba(255,255,255,0.5);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s;
}

.ranking-tab:hover {
    background: rgba(255,255,255,0.8);
}

.ranking-tab.active {
    background: var(--gradient-main);
    color: white;
    box-shadow: var(--shadow-button);
}

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

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

.ranking-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s;
}

.ranking-item:hover {
    background: white;
    transform: translateX(8px);
    box-shadow: var(--shadow-card);
}

.ranking-num {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 8px;
    flex-shrink: 0;
}

.ranking-num.top-1 {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
}

.ranking-num.top-2 {
    background: linear-gradient(135deg, #C0C0C0 0%, #A8A8A8 100%);
    color: white;
}

.ranking-num.top-3 {
    background: linear-gradient(135deg, #CD7F32 0%, #B87333 100%);
    color: white;
}

.ranking-num.normal {
    background: rgba(196, 78, 255, 0.1);
    color: var(--text-light);
}

.ranking-cover {
    width: 56px;
    height: 72px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

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

.ranking-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
}

.ranking-heat {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--candy-pink);
    font-weight: 500;
}

/* ============================
   侧边栏
   ============================ */
.sidebar {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background: var(--gradient-sidebar);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

/* 用户卡片 */
.user-card {
    text-align: center;
}

.user-card-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: var(--shadow-button);
}

.user-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-card-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.user-card-vip {
    font-size: 0.9rem;
    color: var(--candy-peach);
    margin-bottom: 20px;
}

.user-card-avatar.guest {
    background: linear-gradient(135deg, #E8E8E8 0%, #D0D0D0 100%);
    font-size: 2rem;
}

.user-card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.user-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,0.5);
    border-bottom: 1px solid rgba(255,255,255,0.5);
}

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

.user-stat-num {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.user-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.user-card-btn {
    display: block;
    width: 100%;
    padding: 12px 24px;
    background: var(--gradient-main);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-button);
    text-align: center;
    text-decoration: none;
}

.user-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 157, 0.5);
}

/* 最近阅读列表 */
.recent-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recent-item {
    display: flex;
    gap: 14px;
    cursor: pointer;
    transition: transform 0.2s;
    text-decoration: none;
}

.recent-item:hover {
    transform: translateX(4px);
}

.recent-cover {
    width: 50px;
    height: 68px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

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

.recent-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-chapter {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.recent-progress {
    height: 4px;
    background: rgba(196, 78, 255, 0.15);
    border-radius: 2px;
    overflow: hidden;
}

.recent-progress-bar {
    height: 100%;
    background: var(--gradient-main);
    border-radius: 2px;
    transition: width 0.3s;
}

/* 公告列表 */
.notice-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.notice-item {
    display: flex;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.2s;
}

.notice-item:hover {
    transform: translateX(4px);
}

.notice-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.notice-content {
    flex: 1;
    min-width: 0;
}

.notice-title {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notice-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* 热门标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    padding: 8px 16px;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s;
}

.tag-item:hover {
    background: var(--gradient-main);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.tag-item.hot {
    background: linear-gradient(135deg, rgba(255,107,157,0.15) 0%, rgba(196,78,255,0.15) 100%);
    color: var(--candy-pink);
    border-color: rgba(255,107,157,0.3);
}

/* 签到卡片 */
.checkin-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.checkin-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.checkin-icon {
    font-size: 2.5rem;
}

.checkin-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.checkin-desc {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
}

.checkin-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-full);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
}

.checkin-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* APP下载卡片 */
.app-card {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    text-align: center;
}

.app-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.app-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 6px;
}

.app-desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 16px;
}

.app-features {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 16px;
}

.app-download-btn {
    display: inline-block;
    padding: 12px 32px;
    background: white;
    color: #11998e;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.app-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    gap: 10px;
}

/* ============================
   页脚
   ============================ */
.footer {
    margin-top: 60px;
    background: linear-gradient(135deg, rgba(45, 27, 78, 0.95) 0%, rgba(107, 90, 142, 0.95) 100%);
    backdrop-filter: blur(20px);
    color: white;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-main);
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 60px 40px 30px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    flex: 0 0 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-logo-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-main);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.footer-slogan {
    color: rgba(255,255,255,0.7);
    margin-bottom: 24px;
    font-size: 1rem;
}

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

.social-btn {
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.social-btn:hover {
    background: var(--gradient-main);
    transform: translateY(-2px);
}

.footer-links-group {
    display: flex;
    gap: 60px;
    flex: 1;
    justify-content: flex-end;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-col h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
}

.footer-links-col a {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    transition: all 0.3s;
}

.footer-links-col a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-friends {
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.friends-label {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.footer-friends a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-friends a:hover {
    color: var(--candy-pink);
}

.footer-bottom {
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    line-height: 1.8;
}

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

.badge-item {
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
}

/* ============================
   阅读页面
   ============================ */
.reader-page {
    min-height: 100vh;
    background: var(--bg-main);
}

.reader-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 20px;
    height: 60px;
    background: var(--gradient-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.3s;
}

.reader-header.hidden {
    transform: translateY(-100%);
}

.reader-back {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: all 0.3s;
}

.reader-back:hover {
    background: rgba(255,255,255,0.5);
}

.reader-book-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reader-actions {
    display: flex;
    gap: 8px;
}

.reader-action-btn {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.5);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.reader-action-btn:hover {
    background: white;
    box-shadow: var(--shadow-card);
}

.reader-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 24px 120px;
}

.reader-chapter-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 2px solid rgba(196, 78, 255, 0.1);
}

.reader-content {
    font-size: 18px;
    line-height: 2;
    color: var(--text-dark);
    text-align: justify;
}

.reader-content p {
    text-indent: 2em;
    margin-bottom: 1.5em;
}

.reader-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 60px;
    padding-top: 32px;
    border-top: 2px solid rgba(196, 78, 255, 0.1);
}

.reader-nav-btn {
    flex: 1;
    padding: 16px 24px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 1rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s;
}

.reader-nav-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.reader-nav-btn.primary {
    background: var(--gradient-main);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-button);
}

.reader-nav-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 阅读底部工具栏 */
.reader-toolbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 12px 20px calc(12px + var(--safe-bottom));
    background: var(--gradient-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.4);
    display: flex;
    justify-content: space-around;
    align-items: center;
    transition: transform 0.3s;
}

.reader-toolbar.hidden {
    transform: translateY(100%);
}

.toolbar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s;
}

.toolbar-btn:hover {
    background: rgba(255,255,255,0.5);
}

.toolbar-btn .icon {
    font-size: 1.4rem;
}

.toolbar-btn .label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* 阅读设置面板 */
.reader-settings-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: white;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 24px 24px calc(24px + var(--safe-bottom));
    box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
    transform: translateY(100%);
    transition: transform 0.3s;
}

.reader-settings-panel.show {
    transform: translateY(0);
}

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

.settings-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.settings-close {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.settings-row {
    margin-bottom: 24px;
}

.settings-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.settings-options {
    display: flex;
    gap: 12px;
}

.settings-option {
    flex: 1;
    padding: 12px;
    text-align: center;
    background: var(--bg-main);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s;
}

.settings-option.active {
    border-color: var(--candy-pink);
    background: rgba(255, 107, 157, 0.1);
}

.font-size-control {
    display: flex;
    align-items: center;
    gap: 16px;
}

.font-size-btn {
    width: 44px;
    height: 44px;
    background: var(--bg-main);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.font-size-btn:hover {
    background: var(--gradient-main);
    color: white;
}

.font-size-value {
    flex: 1;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
}

/* ============================
   小说详情页
   ============================ */
.novel-detail-page {
    padding-top: 96px;
}

.novel-header-section {
    background: var(--gradient-card);
    backdrop-filter: blur(15px);
    border-radius: var(--radius-xl);
    padding: 40px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-card);
    display: flex;
    gap: 40px;
}

.novel-detail-cover {
    width: 220px;
    height: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow-soft);
}

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

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

.novel-detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.novel-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: var(--text-light);
}

.meta-item .icon {
    font-size: 1.1rem;
}

.novel-detail-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.detail-tag {
    padding: 6px 16px;
    background: rgba(196, 78, 255, 0.1);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--candy-purple);
}

.novel-detail-desc {
    flex: 1;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 24px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.novel-detail-actions {
    display: flex;
    gap: 16px;
}

.action-btn {
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
}

.action-btn.primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: var(--shadow-button);
}

.action-btn.primary:hover {
    transform: translateY(-2px);
}

.action-btn.secondary {
    background: rgba(255,255,255,0.8);
    color: var(--text-dark);
    border: 2px solid var(--candy-pink);
}

.action-btn.secondary:hover {
    background: var(--candy-pink);
    color: white;
}

/* 章节列表 */
.chapter-section {
    background: var(--gradient-card);
    backdrop-filter: blur(15px);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-card);
}

.chapter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(196, 78, 255, 0.1);
}

.chapter-count {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
}

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

.sort-btn {
    padding: 8px 16px;
    background: rgba(255,255,255,0.5);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s;
}

.sort-btn.active {
    background: var(--gradient-main);
    color: white;
}

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

.chapter-item {
    padding: 14px 18px;
    background: rgba(255,255,255,0.5);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chapter-item:hover {
    background: white;
    color: var(--candy-pink);
    transform: translateX(4px);
    box-shadow: var(--shadow-card);
}

.chapter-item.vip {
    color: var(--candy-peach);
}

.chapter-item.vip::before {
    content: '👑 ';
}

/* ============================
   按钮通用样式
   ============================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: var(--shadow-button);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.5);
}

.btn-secondary {
    background: rgba(255,255,255,0.8);
    color: var(--text-dark);
    border: 2px solid var(--candy-pink);
}

.btn-secondary:hover {
    background: var(--candy-pink);
    color: white;
}

.btn-ghost {
    background: transparent;
    color: var(--text-light);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.5);
}

/* ============================
   设备显示控制
   ============================ */
/* 移动端专用元素默认隐藏（由mobile.css在移动端显示） */
.mobile-only {
    display: none !important;
}

/* ============================
   响应式设计
   ============================ */
@media (max-width: 1400px) {
    .novel-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .ranking-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .chapter-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .sidebar {
        display: none;
    }
    
    .banner-section {
        grid-template-columns: 1fr;
    }
    
    .banner-side {
        flex-direction: row;
    }
    
    .banner-small {
        min-height: 120px;
    }
    
    .novel-header-section {
        padding: 32px;
        gap: 32px;
    }
    
    .novel-detail-cover {
        width: 180px;
        height: 245px;
    }
}

@media (max-width: 1024px) {
    .novel-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .header-center {
        display: none;
    }
    
    .chapter-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* 设备显示控制 - 移动端 */
    .mobile-only {
        display: flex !important;
    }
    
    .pc-only {
        display: none !important;
    }
    
    /* 移动端导航 */
    .header {
        padding: 0 16px;
        height: 60px;
    }
    
    .header-left {
        gap: 0;
    }
    
    /* 移动端搜索框 */
    .mobile-search {
        display: block;
        margin-bottom: 20px;
    }
    
    .search-bar-mobile {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 20px;
        background: rgba(255,255,255,0.8);
        border: 1px solid rgba(255,255,255,0.5);
        border-radius: var(--radius-full);
        box-shadow: var(--shadow-card);
    }
    
    .search-bar-mobile .search-icon {
        font-size: 1.1rem;
        color: var(--text-muted);
    }
    
    .search-bar-mobile input {
        flex: 1;
        border: none;
        background: transparent;
        font-size: 1rem;
        color: var(--text-dark);
        font-family: inherit;
        outline: none;
    }
    
    .search-bar-mobile input::placeholder {
        color: var(--text-muted);
    }
    
    /* 移动端隐藏右侧卡片 */
    .banner-side {
        display: none;
    }
    
    .banner-section {
        display: block;
    }
    
    /* 移动端热门推荐改为横向滚动 */
    .novel-scroll {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        padding-bottom: 8px;
        margin-bottom: 28px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .novel-scroll::-webkit-scrollbar {
        display: none;
    }
    
    .novel-scroll .novel-card {
        flex-shrink: 0;
        width: 110px;
        background: transparent;
        border: none;
        box-shadow: none;
        border-radius: 0;
    }
    
    .novel-scroll .novel-card:hover {
        transform: none;
        box-shadow: none;
    }
    
    .novel-scroll .novel-cover {
        width: 110px;
        height: 150px;
        border-radius: var(--radius-md);
        margin-bottom: 10px;
        box-shadow: var(--shadow-card);
    }
    
    .novel-scroll .novel-title {
        font-size: 0.85rem;
        padding: 0;
    }
    
    /* 移动端网格布局 */
    .grid-layout {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .grid-cover {
        border-radius: var(--radius-md);
    }
    
    .grid-title {
        font-size: 0.8rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .header-right .btn-vip {
        display: none;
    }
    
    .user-name {
        display: none;
    }
    
    /* 移动端内容 */
    .main-container {
        padding: 76px 16px 100px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    /* 移动端卡片 */
    .novel-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .novel-card {
        border-radius: var(--radius-md);
    }
    
    .novel-info {
        padding: 10px;
    }
    
    .novel-title {
        font-size: 0.85rem;
        -webkit-line-clamp: 1;
    }
    
    .novel-author,
    .novel-meta {
        display: none;
    }
    
    /* 移动端排行榜 */
    .ranking-section {
        padding: 20px;
    }
    
    .ranking-grid {
        grid-template-columns: 1fr;
    }
    
    .ranking-tabs {
        display: flex;
        gap: 8px;
        margin-bottom: 16px;
        overflow: visible;
    }
    
    .ranking-tab {
        flex: 1;
        padding: 10px;
        text-align: center;
        font-size: 0.85rem;
        border-radius: var(--radius-sm);
    }
    
    /* 移动端分类 */
    .categories {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }
    
    .category-chip {
        flex-shrink: 0;
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    
    /* 移动端区块标题 */
    .section-header {
        margin-bottom: 16px;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .section-title::before {
        width: 4px;
        height: 20px;
    }
    
    /* 移动端轮播 */
    .banner-section {
        margin-bottom: 24px;
    }
    
    .banner-main {
        height: 160px;
        border-radius: var(--radius-lg);
    }
    
    .banner-content {
        padding: 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .banner-dots {
        position: absolute;
        bottom: 12px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 8px;
    }
    
    .banner-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: rgba(255,255,255,0.4);
    }
    
    .banner-dot.active {
        width: 20px;
        border-radius: 10px;
        background: white;
    }
    
    .banner-tag {
        font-size: 0.75rem;
        padding: 6px 12px;
        margin-bottom: 12px;
    }
    
    .banner-title {
        font-size: 1.4rem;
        font-weight: 600;
        margin-bottom: 6px;
        text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }
    
    .banner-desc {
        font-size: 0.9rem;
        opacity: 0.9;
    }
    
    .banner-btn {
        display: none;
    }
    
    /* 移动端小说详情 */
    .novel-header-section {
        flex-direction: column;
        padding: 24px;
        text-align: center;
    }
    
    .novel-detail-cover {
        width: 160px;
        height: 220px;
        margin: 0 auto;
    }
    
    .novel-detail-title {
        font-size: 1.5rem;
    }
    
    .novel-detail-meta {
        justify-content: center;
    }
    
    .novel-detail-tags {
        justify-content: center;
    }
    
    .novel-detail-actions {
        justify-content: center;
    }
    
    .action-btn {
        flex: 1;
        padding: 12px 20px;
    }
    
    .chapter-list {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .chapter-item {
        padding: 12px 14px;
        font-size: 0.85rem;
    }
    
    /* 移动端阅读页 */
    .reader-container {
        padding: 70px 16px 100px;
    }
    
    .reader-chapter-title {
        font-size: 1.4rem;
        margin-bottom: 32px;
        padding-bottom: 20px;
    }
    
    .reader-content {
        font-size: 16px;
        line-height: 1.9;
    }
    
    .reader-nav {
        flex-direction: column;
        gap: 12px;
    }
    
    .reader-nav-btn {
        padding: 14px 20px;
    }
    
    /* 移动端页脚 */
    .footer-container {
        padding: 40px 16px 24px;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 32px;
    }
    
    .footer-brand {
        flex: none;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-links-group {
        justify-content: center;
        gap: 24px;
        flex-wrap: wrap;
    }
    
    .footer-links-col {
        flex: 0 0 calc(50% - 12px);
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-badges {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .novel-grid {
        gap: 8px;
    }
    
    .novel-cover-placeholder {
        font-size: 2.5rem;
    }
    
    .novel-badge {
        padding: 4px 8px;
        font-size: 0.65rem;
        top: 8px;
        left: 8px;
    }
    
    .novel-info {
        padding: 8px;
    }
    
    .novel-title {
        font-size: 0.8rem;
    }
    
    .banner-main {
        height: 180px;
    }
    
    .banner-content {
        padding: 16px 20px 45px;
    }
    
    .banner-dots {
        bottom: 14px;
        left: 20px;
    }
    
    .banner-title {
        font-size: 1.1rem;
    }
    
    .reader-content {
        font-size: 15px;
        line-height: 1.8;
    }
}

/* ============================
   底部导航（移动端）
   ============================ */
.bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .bottom-nav {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 100;
        padding: 8px 20px calc(8px + var(--safe-bottom));
        background: var(--gradient-glass);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255,255,255,0.3);
    }
    
    .nav-items {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }
    
    .nav-item-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 6px 16px;
        cursor: pointer;
        transition: all 0.3s;
        border-radius: var(--radius-md);
    }
    
    .nav-item-mobile.active {
        background: linear-gradient(135deg, rgba(255,107,157,0.15) 0%, rgba(196,78,255,0.15) 100%);
    }
    
    .nav-icon {
        font-size: 1.4rem;
        transition: transform 0.3s;
    }
    
    .nav-item-mobile.active .nav-icon {
        transform: scale(1.1);
    }
    
    .nav-label {
        font-size: 0.7rem;
        color: var(--text-muted);
        transition: color 0.3s;
    }
    
    .nav-item-mobile.active .nav-label {
        color: var(--candy-pink);
        font-weight: 600;
    }
    
    .nav-center {
        position: relative;
        top: -20px;
    }
    
    .nav-center-btn {
        width: 56px;
        height: 56px;
        background: var(--gradient-main);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.6rem;
        color: white;
        box-shadow: var(--shadow-button);
        transition: transform 0.3s;
    }
    
    .nav-center-btn:active {
        transform: scale(0.9);
    }
    
    /* 有底部导航时调整内容区 */
    body.has-bottom-nav {
        padding-bottom: calc(80px + var(--safe-bottom));
    }
    
    body.has-bottom-nav .footer {
        margin-bottom: calc(80px + var(--safe-bottom));
    }
}

/* ============================
   加载动画
   ============================ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loading-overlay.hide {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    font-size: 3rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================
   夜间模式
   ============================ */
body.night-mode {
    --bg-main: #1a1625;
    --bg-glass: rgba(40, 30, 60, 0.8);
    --bg-card: rgba(40, 30, 60, 0.9);
    --text-dark: #E8E0F0;
    --text-light: #B8A8D0;
    --text-muted: #8878A0;
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
}

body.night-mode .novel-cover-placeholder {
    background: linear-gradient(135deg, #2D1B4E 0%, #4A2E6E 50%, #1E3A5F 100%);
}

body.night-mode .reader-content {
    color: var(--text-light);
}
