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

:root {
    --primary: #c9a962;
    --primary-dark: #b8933f;
    --dark: #1a1a1a;
    --darker: #0d0d0d;
    --light: #f5f0e6;
    --paper: #faf8f3;
    --text: #333;
    --text-light: #666;
    --border: #e0d5c5;
    --shadow: rgba(0,0,0,0.1);
}

body {
    font-family: 'Noto Serif SC', 'Source Han Serif CN', serif;
    background: var(--paper);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.8;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--darker), var(--dark));
    border-bottom: 3px solid var(--primary);
    z-index: 1000;
    box-shadow: 0 2px 20px var(--shadow);
}

.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(201, 169, 98, 0.3);
}

.logo-text {
    color: var(--light);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo-subtitle {
    color: var(--primary);
    font-size: 12px;
    letter-spacing: 4px;
}

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

.nav-menu a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* 主内容 */
.main-content {
    padding-top: 90px;
    min-height: calc(100vh - 200px);
}

/* Banner */
.banner {
    background: linear-gradient(135deg, var(--darker) 0%, #2a2520 100%);
    padding: 60px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a962' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner-title {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    letter-spacing: 8px;
}

.banner-desc {
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 2;
}

.banner-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 30px;
}

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

.stat-num {
    font-size: 36px;
    color: var(--primary);
    font-weight: 700;
}

.stat-label {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    margin-top: 5px;
}

/* 内容区域 */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 30px;
}

/* 小说卡片 */
.novel-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 30px var(--shadow);
    margin-bottom: 40px;
    border: 1px solid var(--border);
}

.novel-header {
    background: linear-gradient(135deg, var(--dark), #2a2520);
    padding: 30px;
    display: flex;
    gap: 25px;
    align-items: center;
}

.novel-cover {
    width: 150px;
    height: 200px;
    background: linear-gradient(135deg, #8b7355, #5d4e37);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--light);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

.novel-cover-icon {
    font-size: 50px;
    margin-bottom: 10px;
}

.novel-cover-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 3px;
    writing-mode: vertical-rl;
}

.novel-info {
    flex: 1;
    color: var(--light);
}

.novel-title {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 10px;
    letter-spacing: 3px;
}

.novel-author {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 15px;
}

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

.novel-tag {
    padding: 5px 15px;
    background: rgba(201, 169, 98, 0.2);
    border: 1px solid var(--primary);
    border-radius: 20px;
    font-size: 12px;
    color: var(--primary);
}

.novel-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
}

/* 章节列表 */
.chapter-list {
    padding: 30px;
}

.section-title {
    font-size: 20px;
    color: var(--dark);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '📖';
    font-size: 24px;
}

.chapter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
}

.chapter-item:hover {
    background: rgba(201, 169, 98, 0.1);
    transform: translateX(5px);
}

.chapter-item.new {
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.15), rgba(201, 169, 98, 0.05));
    border-left: 3px solid var(--primary);
}

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

.chapter-title .badge {
    background: #e74c3c;
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.chapter-date {
    font-size: 13px;
    color: var(--text-light);
}

/* 阅读页面 */
.reader-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 30px;
}

.reader-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px dashed var(--border);
}

.reader-novel-title {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.reader-chapter-title {
    font-size: 28px;
    color: var(--dark);
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.reader-meta {
    font-size: 13px;
    color: var(--text-light);
}

.reader-content {
    background: white;
    padding: 40px 50px;
    border-radius: 10px;
    box-shadow: 0 3px 20px var(--shadow);
    font-size: 18px;
    line-height: 2.2;
    text-align: justify;
}

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

.reader-content .divider {
    text-align: center;
    margin: 30px 0;
    color: var(--primary);
    font-size: 20px;
    letter-spacing: 10px;
}

.reader-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px dashed var(--border);
}

.reader-nav a {
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.reader-nav .btn-prev {
    background: rgba(201, 169, 98, 0.1);
    color: var(--dark);
    border: 1px solid var(--border);
}

.reader-nav .btn-prev:hover {
    background: var(--primary);
    color: white;
}

.reader-nav .btn-next {
    background: var(--primary);
    color: white;
}

.reader-nav .btn-next:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.reader-nav .btn-list {
    background: white;
    color: var(--text);
    border: 1px solid var(--border);
}

.reader-nav .btn-list:hover {
    border-color: var(--primary);
}

/* 页脚 */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 30px;
    margin-top: 60px;
    font-size: 14px;
}

.footer a {
    color: var(--primary);
    text-decoration: none;
}

/* 公告栏 */
.announcement {
    background: linear-gradient(135deg, #fff9e6, #fff5d6);
    border: 1px solid var(--primary);
    border-radius: 10px;
    padding: 20px 25px;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.announcement-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.announcement-content {
    flex: 1;
}

.announcement-title {
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 5px;
}

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

/* 响应式 */
@media (max-width: 768px) {
    .navbar-inner {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .banner-title {
        font-size: 32px;
        letter-spacing: 4px;
    }
    
    .banner-stats {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .novel-header {
        flex-direction: column;
        text-align: center;
    }
    
    .reader-content {
        padding: 25px 20px;
        font-size: 16px;
    }
}
