:root {
    --primary-color: #8b5cf6;
    --secondary-color: #ec4899;
    --accent-gold: #fbbf24;
    --bg-dark: #0f172a;
    --bg-darker: #0a0f1a;
    --bg-card: rgba(30, 41, 59, 0.85);
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(139, 92, 246, 0.3);
    --glow-color: rgba(139, 92, 246, 0.4);
}

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

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 50%, var(--bg-darker) 100%);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 星空背景 */
.stars, .stars2, .stars3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.stars {
    background: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 230px 80px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 300px 150px, rgba(139, 92, 246, 0.6), transparent),
        radial-gradient(1px 1px at 350px 200px, rgba(236, 72, 153, 0.5), transparent),
        radial-gradient(2px 2px at 420px 100px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 500px 50px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 580px 180px, rgba(139, 92, 246, 0.5), transparent);
    background-size: 600px 250px;
    animation: animateStars 100s linear infinite;
}

.stars2 {
    background: 
        radial-gradient(1.5px 1.5px at 50px 100px, rgba(139, 92, 246, 0.5), transparent),
        radial-gradient(1px 1px at 120px 150px, rgba(236, 72, 153, 0.4), transparent),
        radial-gradient(1.5px 1.5px at 200px 50px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 280px 200px, rgba(139, 92, 246, 0.5), transparent),
        radial-gradient(1.5px 1.5px at 360px 120px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 440px 160px, rgba(236, 72, 153, 0.4), transparent),
        radial-gradient(1.5px 1.5px at 520px 80px, rgba(255, 255, 255, 0.5), transparent);
    background-size: 600px 250px;
    animation: animateStars 150s linear infinite;
    opacity: 0.6;
}

.stars3 {
    background: 
        radial-gradient(1px 1px at 30px 60px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1.5px 1.5px at 90px 120px, rgba(139, 92, 246, 0.3), transparent),
        radial-gradient(1px 1px at 170px 70px, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1.5px 1.5px at 250px 140px, rgba(236, 72, 153, 0.3), transparent),
        radial-gradient(1px 1px at 330px 90px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1.5px 1.5px at 410px 160px, rgba(139, 92, 246, 0.3), transparent);
    background-size: 500px 200px;
    animation: animateStars 200s linear infinite;
    opacity: 0.4;
}

@keyframes animateStars {
    from { transform: translateY(0); }
    to { transform: translateY(-2000px); }
}

/* 导航栏 */
.navbar {
    position: relative;
    z-index: 100;
    background: linear-gradient(180deg, rgba(10, 15, 26, 0.95) 0%, rgba(10, 15, 26, 0.8) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.2rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

.logo-icon {
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-light);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

/* 页面头部 */
.page-header {
    text-align: center;
    padding: 5rem 0 3rem;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.page-header h1 {
    font-family: 'Noto Serif SC', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* 首页英雄区 */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 0 3rem;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-decorations {
    position: relative;
    height: 60px;
    margin-bottom: 1rem;
}

.deco-star {
    position: absolute;
    font-size: 1.5rem;
    color: var(--primary-color);
    animation: twinkle 2s ease-in-out infinite;
}

.deco-star.left {
    left: 10%;
    animation-delay: 0s;
}

.deco-star.right {
    right: 10%;
    animation-delay: 1s;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

.hero-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 60px rgba(139, 92, 246, 0.5);
    letter-spacing: 0.5rem;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.4)); }
    50% { filter: drop-shadow(0 0 40px rgba(236, 72, 153, 0.6)); }
}

.hero-divider {
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--secondary-color), transparent);
    margin: 1.5rem auto;
    border-radius: 2px;
}

.hero-subtitle {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    letter-spacing: 0.3rem;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 2.2;
    color: var(--text-light);
    margin-bottom: 3rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.6);
}

.btn-secondary {
    background: rgba(30, 41, 59, 0.8);
    color: var(--text-light);
    border: 2px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--secondary-color);
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-3px);
}

.btn-icon {
    font-size: 1.2rem;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-muted);
    animation: bounce 2s ease-in-out infinite;
}

.scroll-arrow {
    font-size: 1.5rem;
    margin-top: 0.5rem;
    color: var(--primary-color);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* 章节标题 */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 2.2rem;
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.title-deco {
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* 海报画廊 */
.poster-section {
    margin-bottom: 5rem;
}

.poster-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 2.5rem;
}

.poster-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 3px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.poster-item:hover {
    border-color: var(--secondary-color);
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(139, 92, 246, 0.4);
}

.poster-img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.poster-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
    padding: 3.5rem 2rem 2rem;
}

.poster-overlay h4 {
    font-family: 'Noto Serif SC', serif;
    color: var(--text-light);
    font-size: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* 重要物品 */
.artifact-section {
    margin-bottom: 5rem;
}

.artifact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.artifact-item {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.artifact-item:hover {
    border-color: var(--secondary-color);
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.3);
}

.artifact-item img {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    cursor: pointer;
    aspect-ratio: 1;
    object-fit: cover;
    transition: all 0.3s ease;
    border: 3px solid var(--border-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.artifact-item:hover img {
    border-color: var(--secondary-color);
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.4);
}

.artifact-item h3 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.artifact-item p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* 角色卡片 */
.character-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 28px;
    padding: 2.5rem;
    margin-bottom: 3.5rem;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3.5rem;
    backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.character-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.3);
}

.character-card.reverse {
    grid-template-columns: 1.5fr 1fr;
}

.character-card.reverse .character-image {
    order: 2;
}

.character-card.reverse .character-info {
    order: 1;
}

.character-image img {
    width: 100%;
    border-radius: 24px;
    border: 3px solid var(--border-color);
    aspect-ratio: 3/4;
    object-fit: cover;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.character-card:hover .character-image img {
    border-color: var(--secondary-color);
    transform: scale(1.03);
}

.character-info h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.character-tags {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.8rem;
    flex-wrap: wrap;
}

.tag {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.character-details p {
    margin: 0.8rem 0;
    line-height: 2;
}

/* 角色画廊 */
.character-gallery {
    margin-top: 2rem;
}

.character-gallery h4 {
    font-family: 'Noto Serif SC', serif;
    margin-bottom: 1.2rem;
    color: var(--text-light);
    font-size: 1.3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.3rem;
}

.gallery-item {
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
    transform: translateY(-8px);
}

.gallery-item img {
    width: 100%;
    border-radius: 18px;
    cursor: pointer;
    border: 2px solid var(--border-color);
    aspect-ratio: 3/4;
    object-fit: cover;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover img {
    border-color: var(--secondary-color);
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.4);
}

.gallery-item span {
    display: block;
    margin-top: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* 次要角色 */
.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.8rem;
    margin-top: 2rem;
}

.minor-character {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 22px;
    padding: 2.2rem 1.8rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.minor-character:hover {
    border-color: var(--secondary-color);
    transform: translateY(-10px);
    box-shadow: 0 18px 45px rgba(139, 92, 246, 0.3);
}

.minor-character img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.3rem;
    border: 3px solid var(--border-color);
    transition: all 0.3s ease;
}

.minor-character:hover img {
    border-color: var(--secondary-color);
    transform: scale(1.1);
}

.minor-character h3 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
    font-family: 'Noto Serif SC', serif;
}

.minor-character p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* 首页角色预览 */
.preview-section {
    padding: 5rem 0;
}

.character-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.preview-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 28px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.preview-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(139, 92, 246, 0.4);
}

.preview-image-container {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.preview-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.preview-card:hover .preview-image-container img {
    transform: scale(1.08);
}

.preview-overlay {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
}

.preview-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.preview-info {
    padding: 1.8rem;
    text-align: center;
}

.preview-info h3 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.preview-info p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* 最新章节 */
.latest-chapter {
    padding: 5rem 0;
}

.chapter-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 28px;
    padding: 3rem;
    max-width: 900px;
    margin: 0 auto;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.chapter-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 15px 50px rgba(139, 92, 246, 0.3);
}

.chapter-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.chapter-number-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 0.8rem 1.5rem;
    border-radius: 15px;
}

.chapter-number {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
}

.chapter-info h3 {
    font-family: 'Noto Serif SC', serif;
    font-size: 2rem;
    color: var(--text-light);
}

.chapter-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 2rem 0;
}

.chapter-preview {
    font-size: 1.15rem;
    line-height: 2;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.chapter-actions {
    text-align: center;
}

.btn-chapter {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.btn-chapter:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.5);
}

.btn-chapter .arrow {
    transition: transform 0.3s ease;
}

.btn-chapter:hover .arrow {
    transform: translateX(5px);
}

/* 引言区 */
.quote-section {
    padding: 5rem 0;
}

.quote-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
    border: 2px solid var(--border-color);
    border-radius: 30px;
    padding: 4rem 3rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.quote-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--secondary-color), transparent);
}

.quote-icon {
    font-family: 'Georgia', serif;
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 1rem;
}

.quote-text {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.5rem;
    line-height: 2.2;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.quote-author {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

/* 章节列表 */
.chapters-list {
    max-width: 900px;
    margin: 0 auto;
}

.chapter-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 22px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.chapter-item:hover {
    border-color: var(--secondary-color);
    transform: translateX(10px);
    box-shadow: 0 10px 35px rgba(139, 92, 246, 0.3);
}

/* 世界观卡片 */
.world-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 28px;
    padding: 2.8rem;
    margin-bottom: 2.5rem;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.world-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 15px 45px rgba(139, 92, 246, 0.25);
}

.world-card h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.9rem;
    margin-bottom: 1.8rem;
    color: var(--primary-color);
    text-align: center;
}

.world-together {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.world-half {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
}

.world-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.world-content h3 {
    font-size: 1.3rem;
    margin: 1.8rem 0 1rem;
    color: var(--text-light);
}

.world-content h3:first-child {
    margin-top: 0;
}

.level-list {
    list-style: none;
    padding: 0 !important;
}

.level-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.level-list li:last-child {
    border-bottom: none;
}

.level-list strong {
    color: var(--secondary-color);
}

/* 各种设置网格 */
.domains-grid, .cities-grid, .schools-grid, .clans-grid, .weapons-grid, .pills-grid, .ruins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.8rem;
    margin-top: 2rem;
}

.domain-item, .city-item, .school-item, .clan-item, .weapon-item, .pill-item, .ruin-item {
    background: rgba(139, 92, 246, 0.12);
    border: 2px solid var(--border-color);
    border-radius: 22px;
    padding: 1.8rem 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.domain-item:hover, .city-item:hover, .school-item:hover, .clan-item:hover, .weapon-item:hover, .pill-item:hover, .ruin-item:hover {
    border-color: var(--secondary-color);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.3);
    background: rgba(236, 72, 153, 0.08);
}

.domain-item h3, .city-item h3, .school-item h3, .clan-item h3, .weapon-item h3, .pill-item h3, .ruin-item h3 {
    font-size: 1.35rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-family: 'Noto Serif SC', serif;
}

.domain-item p, .city-item p, .school-item p, .clan-item p, .weapon-item p, .pill-item p, .ruin-item p {
    margin: 0.6rem 0;
    color: var(--text-muted);
    line-height: 1.8;
}

/* 弹窗 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 1000;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.modal.active, .modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 28px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    backdrop-filter: blur(20px);
    border: 2px solid var(--border-color);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    line-height: 1;
}

.close-modal:hover {
    color: var(--text-light);
    transform: rotate(90deg);
}

.modal-header {
    padding: 2.5rem 2.5rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.9rem;
    color: var(--primary-color);
}

.modal-body {
    padding: 2.5rem;
}

.modal-body p {
    line-height: 2.2;
    margin-bottom: 1.5rem;
    text-indent: 2em;
}

.relation-svg-container {
    text-align: center;
    margin-bottom: 2rem;
}

.relation-svg {
    max-width: 100%;
    height: auto;
}

.relation-desc h4 {
    font-family: 'Noto Serif SC', serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.relation-desc p {
    margin-bottom: 0.9rem;
    line-height: 1.9;
}

/* 图片查看器 */
.image-viewer-modal .modal-content {
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-viewer-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.image-nav {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--border-color);
    color: white;
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-nav:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: var(--secondary-color);
    transform: scale(1.1);
}

#viewerImage {
    max-width: 80vw;
    max-height: 75vh;
    border-radius: 20px;
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.4);
}

.image-caption {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-top: 1.5rem;
    font-family: 'Noto Serif SC', serif;
}

/* 页脚 */
.footer {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 4rem 0 3rem;
    margin-top: 5rem;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(180deg, transparent, rgba(10, 15, 26, 0.8));
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-logo {
    font-family: 'Noto Serif SC', serif;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.footer-text {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-family: 'Noto Serif SC', serif;
}

.footer-author {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
    text-shadow: 0 0 20px rgba(236, 72, 153, 0.5);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* 响应式 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 3rem;
        letter-spacing: 0.2rem;
    }
    
    .character-card, .character-card.reverse {
        grid-template-columns: 1fr;
        padding: 1.8rem;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .world-together {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .poster-gallery {
        grid-template-columns: 1fr;
    }
}