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

body {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
    overflow-x: hidden; /* 防止水平滚动 */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 头部样式 */
.header {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('assets/header-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative; /* 用于视差效果 */
    overflow: hidden; /* 确保内容不溢出 */
}

/* 修复背景图片响应式问题 */
@media (max-width: 768px) {
    .header, .parallax-section {
        background-attachment: scroll; /* 在移动设备上禁用fixed附着，避免显示问题 */
        background-position: center center;
        height: auto; /* 调整高度以适应内容 */
        min-height: 70vh; /* 保证一定的视觉高度 */
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .parallax-section .oath-content {
        padding: 1rem;
    }

    .oath-one,
    .oath-two,
    .oath-three {
        min-height: auto; /* 重置特定誓言区域的最小高度 */
    }
}

.header-content {
    max-width: 800px;
    padding: 2rem;
    z-index: 2; /* 确保内容在背景之上 */
}

.title {
    font-size: 4rem;
    margin-bottom: 1rem;
    letter-spacing: 0.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #e63946;
    color: white;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #c1121f;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cta-button.secondary {
    background-color: transparent;
    border: 2px solid white;
}

.cta-button.secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.cta-button.large {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
}

/* 介绍部分 */
.intro {
    background-color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative; /* 为苹果风格动画做准备 */
    z-index: 1;
}

.intro h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #1d3557;
}

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

.quote {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #f1faee;
    border-left: 5px solid #e63946;
    font-style: italic;
    transform-origin: left center;
    transition: transform 0.5s ease;
}

.quote:hover {
    transform: scale(1.02); /* 悬停时轻微放大 */
}

.quote p {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1d3557;
}

.quote-author {
    display: block;
    text-align: right;
    font-weight: 600;
    color: #e63946;
}

/* 滚动显示动画 */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    will-change: opacity, transform; /* 提高动画性能 */
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 添加不同方向的滚动显示效果 */
.scroll-reveal.from-left {
    transform: translateX(-50px);
}

.scroll-reveal.from-right {
    transform: translateX(50px);
}

.scroll-reveal.from-left.visible,
.scroll-reveal.from-right.visible {
    transform: translateX(0);
}

/* 苹果风格的粘性导航 */
.sticky-nav {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    transition: all 0.4s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 视差滚动部分 */
.parallax-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
    overflow: hidden; /* 确保内容不溢出 */
}

.parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
    transition: opacity 0.15s ease;
}

.parallax-section:hover::before {
    opacity: 0.4; /* 悬停时减少暗度 */
}

.oath-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.2s ease;
}

.parallax-section:hover .oath-content {
    transform: scale(1.03); /* 悬停时轻微缩放效果 */
}

.oath-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.oath-text {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.oath-explanation {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 4px;
    backdrop-filter: blur(5px);
    transition: backdrop-filter 0.3s ease; /* 添加过渡效果 */
}

.oath-explanation:hover {
    backdrop-filter: blur(8px); /* 悬停时增加模糊度 */
}

.oath-explanation p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* 苹果风格的卡片悬浮效果 */
.hover-card {
    transition: all 0.4s ease;
}

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

/* 增强视差效果 */
.oath-one {
    background-image: url('assets/blood-oath.jpg');
}

.oath-two {
    background-image: url('assets/snow-oath.jpg');
}

.oath-three {
    background-image: url('assets/drought-oath.jpg');
}

/* 实现大型视觉文字 - 苹果风格 */
.large-text {
    font-size: 12vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1); /* 调整这里的透明度 */
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

/* 现代意义部分 */
.modern-relevance {
    background-color: #1d3557;
    color: white;
    padding: 4rem 0;
}

.modern-relevance h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.modern-relevance > .container > p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    opacity: 0.9;
}

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

.relevance-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.relevance-item:hover {
    transform: translateY(-10px);
}

.relevance-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #e63946;
}

/* 演出信息部分 */
.performance-info {
    background-color: #f1faee;
    padding: 4rem 0;
}

.performance-info h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: #1d3557;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.info-item {
    background-color: white;
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.info-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #e63946;
}

.info-item p {
    margin-bottom: 0.5rem;
}

.ticket-cta {
    text-align: center;
    margin-top: 3rem;
}

.ticket-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
}

/* 页脚部分 */
.footer {
    background-color: #1d3557;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.footer-logo h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.footer-nav-link {
    position: relative;
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    font-size: 1rem;
}

.footer-nav-link:hover {
    opacity: 1;
}

.footer-nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e63946;
    transition: width 0.3s ease;
}

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

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* 苹果风格顺滑滚动 */
.smooth-scroll {
    scroll-behavior: smooth;
    transition: all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1.000);
}

/* 响应式设计增强 */
@media (max-width: 768px) {
    .title {
        font-size: 2.8rem; /* 调整平板及大手机字体 */
    }
    
    .subtitle {
        font-size: 1.1rem; /* 调整平板及大手机字体 */
    }

    .intro h2 {
        font-size: 2rem;
    }

    .intro-text {
        font-size: 1rem;
    }

    .quote p {
        font-size: 1.2rem;
    }
    
    .oath-title {
        font-size: 2.2rem; /* 调整平板及大手机字体 */
    }
    
    .oath-text {
        font-size: 1.1rem; /* 调整平板及大手机字体 */
    }

    .oath-explanation p {
        font-size: 1rem;
    }
    
    .cta-container {
        flex-direction: column;
        gap: 0.8rem; /* 调整按钮间距 */
    }
    
    .cta-button {
        width: 100%;
        padding: 0.8rem 1.5rem; /* 调整按钮内边距 */
        font-size: 1rem; /* 调整按钮字体大小 */
    }

    .cta-button.large {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }

    .modern-relevance h2,
    .performance-info h2 {
        font-size: 2rem;
    }

    .relevance-item,
    .info-item {
        padding: 1.5rem; /* 调整卡片内边距 */
    }

    .relevance-item h3,
    .info-item h3 {
        font-size: 1.3rem;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-links {
        margin-top: 1rem;
        gap: 1.5rem; /* 调整页脚链接间距 */
    }
    
    .large-text {
        font-size: 18vw; /* 在移动设备上字体更大，确保可见性 */
        line-height: 1; /* 避免过大行高导致重叠 */
    }

    .header .large-text {
        top: 40%; /* 调整位置避免与主要内容冲突 */
    }

    .relevance-grid,
    .info-grid {
        grid-template-columns: 1fr; /* 强制单列布局 */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem 0; /* 调整更小屏幕的容器内边距 */
    }

    .title {
        font-size: 2.2rem; /* 调整小手机字体 */
        margin-bottom: 0.8rem;
    }

    .subtitle {
        font-size: 1rem; /* 调整小手机字体 */
        margin-bottom: 1.5rem;
    }

    .header {
        min-height: 60vh;
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .oath-title {
        font-size: 1.8rem; /* 调整小手机字体 */
        margin-bottom: 1rem;
    }

    .oath-text {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .oath-explanation {
        padding: 1rem;
    }

    .modern-relevance h2,
    .performance-info h2,
    .intro h2 {
        font-size: 1.8rem; /* 调整小手机字体 */
        margin-bottom: 1.5rem;
    }

    .modern-relevance > .container > p,
    .intro-text {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .relevance-grid,
    .info-grid {
        gap: 1rem; /* 调整网格间距 */
    }

    .relevance-item h3,
    .info-item h3 {
        font-size: 1.2rem;
    }

    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .large-text {
        font-size: 20vw; /* 进一步调整，确保效果 */
    }

    .parallax-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

html {
    scroll-behavior: smooth;
}
