/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #1a1a1a;
    --color-secondary: #666;
    --color-accent: #f4f1ee;
    --color-white: #ffffff;
    --color-gray: #999;
    --color-light: #fafafa;
    --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-weight: 300;
    color: var(--color-primary);
    background: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 导航栏 */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(0px);
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px 0;
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 48px;
}

nav a {
    text-decoration: none;
    color: var(--color-primary);
    font-size: 14px;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

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

nav a:hover::after {
    width: 100%;
}

/* 页面通用样式 */
section {
    min-height: 100vh;
    padding: 80px 5%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 首页幻灯片 */
#home {
    position: relative;
    padding: 0;
}

.slideshow {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.slide.active {
    opacity: 1;
}

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

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--color-white);
    z-index: 2;
}

.hero-slogan {
    font-size: 36px;
    font-weight: 200;
    letter-spacing: 4px;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    cursor: pointer;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(12px); opacity: 0; }
}

/* 系列页面 */
#series {
    background: var(--color-light);
}

.series-container {
    max-width: 1200px;
    width: 100%;
}

.series-filter {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 60px;
}

.filter-btn {
    background: none;
    border: none;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    color: var(--color-gray);
    transition: var(--transition);
}

.filter-btn.active {
    color: var(--color-primary);
    border-bottom: 1px solid var(--color-primary);
}

.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.series-card {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.series-card:hover {
    transform: scale(1.02);
}

.series-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.series-name {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: var(--color-white);
    font-size: 20px;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.series-card:hover .series-name {
    opacity: 1;
    transform: translateY(0);
}

/* 型录页面 */
.catalog-container {
    max-width: 1200px;
    width: 100%;
}

.catalog-item {
    display: flex;
    align-items: center;
    margin-bottom: 120px;
    gap: 60px;
}

.catalog-item:nth-child(even) {
    flex-direction: row-reverse;
}

.catalog-image {
    flex: 1;
}

.catalog-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.catalog-text {
    flex: 1;
    padding: 40px;
}

.catalog-text h3 {
    font-size: 32px;
    font-weight: 200;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.catalog-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-secondary);
    letter-spacing: 1px;
}

/* 故事页面 */
#story {
    position: relative;
    padding: 0;
    background: #000;
}

.story-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.story-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.story-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    padding: 40px;
}

.story-content h2 {
    font-size: 42px;
    font-weight: 200;
    letter-spacing: 6px;
    margin-bottom: 60px;
}

.story-text {
    font-size: 18px;
    line-height: 2;
    letter-spacing: 2px;
    max-width: 600px;
    margin: 0 auto;
}

.story-text p {
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.story-text p:nth-child(1) { animation-delay: 0.5s; }
.story-text p:nth-child(2) { animation-delay: 1s; }
.story-text p:nth-child(3) { animation-delay: 1.5s; }
.story-text p:nth-child(4) { animation-delay: 2s; }
.story-text p:nth-child(5) { animation-delay: 2.5s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 页脚 */
footer {
    padding: 40px;
    text-align: center;
    background: var(--color-accent);
    color: var(--color-gray);
    font-size: 14px;
    letter-spacing: 1px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    nav ul {
        gap: 24px;
    }
    
    .hero-slogan {
        font-size: 24px;
        letter-spacing: 2px;
    }
    
    .catalog-item,
    .catalog-item:nth-child(even) {
        flex-direction: column;
        gap: 30px;
    }
    
    .catalog-text {
        padding: 20px;
    }
    
    .catalog-text h3 {
        font-size: 24px;
    }
    
    .story-content h2 {
        font-size: 28px;
        letter-spacing: 3px;
    }
    
    .story-text {
        font-size: 16px;
    }
    
    .series-filter {
        gap: 20px;
    }
    
    .series-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 60px 3%;
    }
    
    nav a {
        font-size: 12px;
    }
    
    .series-name {
        font-size: 16px;
        bottom: 20px;
        left: 20px;
    }
}