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

html, body {
    font-family: 'Noto Sans SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
    overflow-x: hidden;
    font-size: 16px;
}

/* 增强过渡效果 */
a, button, .btn-primary, .btn-secondary, .stat-item, .feature-card, .gallery-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 页面部分样式 - 分段翻页 */
.page-section {
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: #f8f9fa;
    scroll-snap-align: start;
    overflow: hidden;
}

body {
    scroll-snap-type: y mandatory;
}

/* 为section添加内容淡入效果 */
.section-content {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

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

/* 导航栏样式 */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 2rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 滚动时导航栏变化效果 */
#navbar.scrolled {
    padding: 0.8rem 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.98);
}

.logo h1 {
    font-size: 1.5rem;
    color: #1a237e;
    font-weight: 700;
}

.logo p {
    font-size: 0.9rem;
    color: #5c6bc0;
    font-weight: 400;
    margin-top: -0.2rem;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #1a237e;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #1a237e;
    transition: width 0.3s ease;
}

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

/* 首页英雄区域样式 */
#home {
    background: linear-gradient(135deg, #0d1b2a 0%, #1e293b 100%);
    color: white;
    text-align: center;
    padding: 0 2rem;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    z-index: 1;
    text-align: center;
}
/* 英雄区域增强效果 */
.hero-content h1 {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -1px;
    animation: fadeIn 1.2s ease-out;
}

/* 英雄区域图片样式 */
.hero-image {
    margin: 2rem 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.6s;
}

.venue-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.hero-image:hover .venue-image {
    transform: scale(1.02);
}

/* 各部分页面的图片样式 */
.section-image {
    margin: 2rem 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.section-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.section-image:hover .section-img {
    transform: scale(1.02);
}

.hero-content p, .tagline {
    animation: fadeIn 1.5s ease-out;
}

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

.hero-content p {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.tagline {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 4rem;
    opacity: 0.8;
    letter-spacing: 1px;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

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

/* 章节内容通用样式 */
.section-content {
    max-width: 1200px;
    width: 100%;
    padding: 0 2rem;
    text-align: center;
}

.section-content h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
    color: #1a237e;
    position: relative;
}

.section-content h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: #3f51b5;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.section-content p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: #555;
}

/* 统计数据网格样式 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.stat-item {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.stat-item h3 {
    font-size: 2.5rem;
    color: #1a237e;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1rem;
    color: #777;
    margin: 0;
}

/* 特点网格样式 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.feature-card {
    background-color: white;
    padding: 2.5rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #3f51b5;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a237e;
}

.feature-card p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #666;
}

/* 按钮样式 */
.btn-container {
    margin-top: 3rem;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: #1a237e;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover, .btn-secondary:hover {
    background-color: #303f9f;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(26, 35, 126, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid #1a237e;
    color: #1a237e;
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background-color: #1a237e;
    color: white;
}

/* 图库样式 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-caption {
    padding: 1rem;
    text-align: center;
    font-weight: 500;
    background: var(--card-bg);
}

/* 联系信息样式 */
.contact-info {
    background-color: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.contact-info p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-align: left;
}

.contact-info p:last-child {
    margin-bottom: 0;
    font-style: italic;
}

/* 页脚样式 */
footer {
    background-color: #1a237e;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-content p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 关于页面和详情页面的通用样式 */
.detail-page {
    padding: 8rem 2rem 4rem;
    background-color: #f8f9fa;
}

.detail-container {
    max-width: 1200px;
    margin: 0 auto;
}

.detail-header {
    text-align: center;
    margin-bottom: 3rem;
}

.detail-header h1 {
    font-size: 2.8rem;
    color: #1a237e;
    margin-bottom: 1rem;
}

.detail-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

.detail-content {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
}

/* 表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.data-table th {
    background-color: #f8f9fa;
    color: #1a237e;
    font-weight: 600;
}

.data-table tr:hover {
    background-color: #f8f9fa;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .hero-content p {
        font-size: 1.5rem;
    }
    
    .section-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    #navbar {
        flex-direction: column;
        padding: 1rem;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links li {
        margin: 0.2rem 0.5rem;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1.3rem;
    }
    
    .section-content h2 {
        font-size: 2rem;
    }
    
    .stats-grid,
    .features-grid,
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .detail-content {
        padding: 1.5rem;
    }
    
    .data-table {
        font-size: 0.9rem;
        display: block;
        overflow-x: auto;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.8rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .section-content {
        padding: 0 1rem;
    }
    
    .stats-grid,
    .features-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item img {
        height: 200px;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #e0e0e0;
    }
    
    .page-section {
        background-color: #1e1e1e;
    }
    
    #navbar {
        background-color: rgba(18, 18, 18, 0.95);
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    }
    
    #navbar.scrolled {
        background-color: rgba(18, 18, 18, 0.98);
    }
    
    .logo h1,
    .section-content h2 {
        color: #90caf9;
    }
    
    .nav-links a {
        color: #e0e0e0;
    }
    
    .nav-links a:hover {
        color: #90caf9;
    }
    
    .nav-links a::after {
        background-color: #90caf9;
    }
    
    .section-content p,
    .contact-info p,
    .feature-card p,
    .stat-item p {
        color: #b0b0b0;
    }
    
    .stat-item,
    .feature-card,
    .gallery-item,
    .contact-info {
        background-color: #2d2d2d;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
    
    .stat-item h3,
    .feature-card h3 {
        color: #90caf9;
    }
    
    .btn-primary {
        background-color: #1565c0;
    }
    
    .btn-primary:hover {
        background-color: #1e88e5;
        box-shadow: 0 10px 20px rgba(21, 101, 192, 0.3);
    }
    
    .btn-secondary {
        border-color: #1565c0;
        color: #90caf9;
    }
    
    .btn-secondary:hover {
        background-color: #1565c0;
        color: white;
    }
    
    .data-table th {
        background-color: #2d2d2d;
        color: #90caf9;
    }
    
    .data-table tr:hover {
        background-color: #333;
    }
    
    .data-table th,
    .data-table td {
        border-bottom: 1px solid #444;
    }
    
    .detail-content {
        background-color: #2d2d2d;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
    
    .detail-header h1 {
        color: #90caf9;
    }
    
    .detail-header p {
        color: #b0b0b0;
    }
}

/* 打印样式 */
@media print {
    #navbar,
    .btn-primary,
    .btn-secondary,
    .scroll-indicator {
        display: none;
    }
    
    .page-section {
        height: auto;
        min-height: 100vh;
        page-break-after: always;
    }
}