* {margin: 0; padding: 0;box-sizing: border-box;font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;}

:root {
    --primary-color: #4361ee;
    --secondary-color: #3a0ca3;
    --accent-color: #7209b7;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --header-height: 60px;
}

body.dark-mode {
    --text-color: #f0f0f0;
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --border-color: #333;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    transition: background-color 0.3s, color 0.3s;
}
a {
    text-decoration: none;
    color: #6c6c73;
}
/* 顶部导航栏 */
/* 顶部导航栏 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
}

nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    padding: 8px 15px;
    border-radius: 20px;
}

nav ul li a:hover, nav ul li a.active {
    color: white;
    background-color: var(--primary-color);
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn {
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s;
    margin-left: 15px;
}

.theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* 主要内容区域 */
.container {
    max-width: 1400px;
    margin: calc(var(--header-height) + 20px) auto 0;
    padding: 20px;
    display: flex;
    gap: 30px;
}

.main-content {
    flex: 1;
}

.section {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    overflow: hidden;
}

.section-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: 10px;
    color: var(--primary-color);
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
}

.view-all:hover {
    text-decoration: underline;
}

/* 系列封面和简介 */
.series-header {
    display: flex;
    padding: 30px;
    gap: 30px;
}

.series-cover {
    width: 200px;
    height: 280px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.series-info {
    flex: 1;
}

.series-title {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.series-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    color: #777;
    font-size: 0.95rem;
}

.series-meta span {
    display: flex;
    align-items: center;
}

.series-meta i {
    margin-right: 8px;
    color: var(--primary-color);
}

.series-description {
    margin-bottom: 20px;
    line-height: 1.8;
}

.series-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.tag {
    padding: 6px 12px;
    background-color: var(--bg-color);
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
}

.tag:hover {
    background-color: var(--primary-color);
    color: white;
}

.series-actions {
    display: flex;
    gap: 15px;
}

.btn-action {
    padding: 10px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-secondary {
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.btn-action i {
    margin-right: 8px;
}

/* 章节列表 */
.chapter-list {
    padding: 20px;
}

.chapter-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s;
}

.chapter-item:last-child {
    border-bottom: none;
}

.chapter-item:hover {
    background-color: var(--bg-color);
}

.chapter-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 15px;
    flex-shrink: 0;
}

.chapter-content {
    flex: 1;
}

.chapter-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.chapter-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #777;
}

.chapter-meta span {
    display: flex;
    align-items: center;
}

.chapter-meta i {
    margin-right: 5px;
}

.chapter-action {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.chapter-action:hover {
    background-color: rgba(67, 97, 238, 0.1);
}

.chapter-action i {
    margin-left: 5px;
}

/* 右侧推荐栏 */
.sidebar {
    width: 350px;
}

/* 推荐故事 */
.recommendations {
    padding: 20px;
}

.story-card {
    display: flex;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    background-color: var(--bg-color);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.story-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.story-card-img {
    width: 80px;
    height: 100px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
    margin-right: 15px;
}

.story-card-content {
    flex: 1;
}

.story-card-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.story-card-author {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 5px;
}

.rating {
    display: flex;
    align-items: center;
    color: #ff9800;
    font-size: 0.9rem;
}

/* 作者信息 */
.author-info {
    padding: 20px;
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.author-details {
    flex: 1;
}

.author-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.author-bio {
    font-size: 0.95rem;
    color: #777;
    margin-bottom: 10px;
}

.author-stats {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
}

.author-stats span {
    display: flex;
    align-items: center;
}

.author-stats i {
    margin-right: 5px;
    color: var(--primary-color);
}

/* 页脚 */
footer {
    background-color: var(--card-bg);
    padding: 40px 5% 20px;
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.footer-links a i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    color: #777;
    font-size: 0.9rem;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    max-width: 1400px;
    margin: 0 auto;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }

    .series-header {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0 20px;
    }

    nav ul {
        display: none;
    }

    .series-header {
        flex-direction: column;
        text-align: center;
    }

    .series-cover {
        margin: 0 auto;
    }

    .series-meta {
        justify-content: center;
    }

    .series-tags {
        justify-content: center;
    }

    .series-actions {
        justify-content: center;
    }

    .chapter-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .chapter-number {
        margin-bottom: 10px;
    }

    .chapter-content {
        margin-bottom: 10px;
    }

    .chapter-action {
        align-self: flex-end;
    }

    .user-actions {
        display: none;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }

    .series-title {
        font-size: 1.6rem;
    }

    .series-meta {
        gap: 10px;
        font-size: 0.85rem;
    }

    .btn-action {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .author-info {
        flex-direction: column;
        text-align: center;
    }

    .author-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .author-stats {
        justify-content: center;
    }
}