/* ========== 基础样式重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========== 导航栏 - 黑白红撞色设计 ========== */
nav {
    background-color: #ffffff;
    padding: 0.8rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 20px 20px;
    margin: 0 10px 10px;
    border: 1px solid #e0e0e0;
    height: 60px; /* 缩小导航栏高度 */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.3rem; /* 缩小logo字体 */
    font-weight: bold;
    color: #e50914;
    position: relative;
    transition: transform 0.3s ease;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 1.2rem; /* 缩小间距 */
}

.nav-links a {
    color: #000000;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    padding: 6px 12px; /* 缩小内边距 */
    border-radius: 20px;
    font-size: 0.9rem; /* 缩小字体 */
    position: relative;
}

.nav-links a:hover {
    background-color: #f5f5f5;
    color: #e50914;
}

.nav-links a.active {
    background-color: #e50914;
    color: white;
}

/* ========== 主要内容区域 ========== */
.container {
    max-width: 1200px;
    margin: 0 15%;
    padding: 2rem;
    flex: 1;
}

/* ========== 页面标题 ========== */
.page-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
    color: #000000;
}

/* ========== 页面副标题 ========== */
.page-subtitle {
    font-size: 1.3rem;
    color: #e50914;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* ========== 页面介绍文案 ========== */
.page-intro {
    font-size: 1.1rem;
    color: #666666;
    margin-bottom: 2rem;
    max-width: 800px;
    line-height: 1.7;
}

/* ========== 页面切换 ========== */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* ========== 时间轴样式 ========== */
.timeline-container {
    position: relative;
    margin: 3rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #e50914;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-items {
    position: relative;
    z-index: 2;
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    flex: 1;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-date-content {
    background-color: #e50914;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    text-align: center;
    min-width: 120px;
}

.timeline-location {
    display: block;
    font-size: 0.9rem;
    font-weight: normal;
    margin-top: 5px;
    opacity: 0.8;
}

.timeline-card {
    flex: 2;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(229, 9, 20, 0.3);
    border-color: #e50914;
}

.photo-img-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: #d0d0d0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.timeline-card:hover .photo-img {
    transform: scale(1.1);
}

.photo-content {
    padding: 1.5rem;
    background-color: #e0e0e0;
}

.photo-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #000000;
}

.photo-description {
    font-size: 1rem;
    color: #333333;
    margin-bottom: 1rem;
}

.photo-story {
    font-size: 0.9rem;
    color: #666666;
    line-height: 1.6;
}

/* ========== 关于页面样式 ========== */
.about-content {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.about-content h3 {
    font-size: 1.3rem;
    color: #e50914;
    margin: 1.5rem 0 0.5rem;
}

/* ========== 底部备案信息 ========== */
footer {
    background-color: #f5f5f5;
    color: #666666;
    text-align: center;
    padding: 1.5rem;
    margin-top: auto;
    font-size: 0.9rem;
    border-top: 1px solid #e0e0e0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.icp-info {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: row;
        padding: 1rem;
    }
    
    .nav-links {
        margin-top: 0rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links li {
        margin: 0.5rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .timeline-item {
        flex-direction: column !important;
        margin-bottom: 2rem;
    }
    
    .timeline-date {
        margin-bottom: 1rem;
        padding: 0;
    }
    
    .timeline-line {
        left: 30px;
    }
    
    .photo-img-container {
        height: 250px;
    }
}

@media (max-width: 480px) {
    nav {
        height: 55px;
        padding: 0.6rem 1rem;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .nav-links {
        flex-direction: row;
        align-items: center;
    }
    
    .nav-links li {
        margin: 0.3rem 0;
    }
    
    .nav-links a {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .timeline-line {
        left: 15px;
    }
    
    .photo-img-container {
        height: 200px;
    }
}
