/* =============================================
   基础设置和CSS变量
   ============================================= */
:root {
    /* 主色调 */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #8b5cf6;
    
    /* 渐变色 */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-warm: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    
    /* 文字颜色 */
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --text-white: #ffffff;
    
    /* 背景色 */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #1a1a1a;
    --bg-card: #ffffff;
    
    /* 阴影 */
    --shadow-small: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.25);
    
    /* 边距和间距 */
    --container-padding: 2rem;
    --section-padding: 5rem 0;
    --border-radius: 1rem;
    --border-radius-large: 2rem;
    
    /* 动画时长 */
    --transition-fast: 0.2s;
    --transition-normal: 0.3s;
    --transition-slow: 0.5s;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

/* =============================================
   加载动画
   ============================================= */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

#loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: var(--text-white);
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--text-white);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

.loader-content h2 {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.9;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =============================================
   导航栏
   ============================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    transition: all var(--transition-normal);
    transform: translateY(-100%);
}

.navbar.visible {
    transform: translateY(0);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-brand i {
    font-size: 1.5rem;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-fast);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition-fast);
}

/* 导航栏控制区域 */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 音乐播放按钮 */
.music-toggle {
    background: var(--gradient-primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-small);
    font-size: 14px;
}

.music-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: var(--gradient-secondary);
}

.music-toggle.playing {
    animation: musicPulse 2s ease-in-out infinite;
    background: var(--gradient-success);
}

@keyframes musicPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: var(--shadow-small);
    }
    50% {
        transform: scale(1.05);
        box-shadow: var(--shadow-medium);
    }
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-school-bg {
    position: absolute;
    width: 120%;
    height: 120%;
    object-fit: cover;
    z-index: 0;
    animation: panoramaScroll 30s ease-in-out infinite;
    transform-origin: center center;
}

@keyframes panoramaScroll {
    0% {
        transform: scale(1.05) translateX(0%) translateY(0%) rotate(0deg);
    }
    25% {
        transform: scale(1.08) translateX(-2%) translateY(-1%) rotate(0.5deg);
    }
    50% {
        transform: scale(1.06) translateX(-4%) translateY(-2%) rotate(0deg);
    }
    75% {
        transform: scale(1.09) translateX(-2%) translateY(-1%) rotate(-0.5deg);
    }
    100% {
        transform: scale(1.05) translateX(0%) translateY(0%) rotate(0deg);
    }
}

/* 添加鼠标移动视差效果 */
.hero {
    perspective: 1000px;
}

.hero-school-bg {
    transform-style: preserve-3d;
    will-change: transform;
}

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

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.3)"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>');
    animation: float 25s ease-in-out infinite;
    z-index: 1;
}

/* 添加额外的动态效果层 */
.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        transparent 30%,
        rgba(102, 126, 234, 0.1) 70%,
        rgba(118, 75, 162, 0.2) 100%
    );
    animation: pulseGlow 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.hero-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.8) 0%,
        rgba(118, 75, 162, 0.7) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-white);
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(45deg, #f093fb, #f5576c, #4facfe, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.info-item i {
    color: #f093fb;
}

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

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    animation: bounce 2s infinite;
    transition: all var(--transition-fast);
}

.scroll-indicator:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-white);
}

/* =============================================
   按钮样式
   ============================================= */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--text-white);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.3);
}

.btn-special {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: var(--text-white);
    border: none;
    box-shadow: var(--shadow-medium);
}

.btn-special:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.pulse {
    animation: pulse 2s infinite;
}

/* =============================================
   通用组件
   ============================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--section-padding);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.title-accent {
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* =============================================
   About Section
   ============================================= */
.about {
    background: var(--bg-secondary);
}

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

.about-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius-large);
    text-align: center;
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.about-card:hover::before {
    left: 100%;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-large);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--text-white);
}

.about-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* =============================================
   Memories Section (青春相册)
   ============================================= */
.memories {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.memories::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><defs><pattern id="hearts" x="0" y="0" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M30,50 C25,40 10,25 10,15 C10,5 20,5 30,15 C40,5 50,5 50,15 C50,25 35,40 30,50 Z" fill="rgba(99,102,241,0.03)"/></pattern></defs><rect width="60" height="60" fill="url(%23hearts)"/></svg>');
    opacity: 0.5;
    pointer-events: none;
}

.memories-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.memory-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-normal);
    position: relative;
}

.memory-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.memory-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.memory-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.memory-image img.class-photo-preview {
    transform: rotate(-90deg);
}

.memory-card:hover .memory-image img {
    transform: scale(1.1);
}

.memory-card:hover .memory-image img.class-photo-preview {
    transform: rotate(-90deg) scale(1.1);
}

.memory-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.9), rgba(139, 92, 246, 0.9));
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-normal);
}

.memory-card:hover .memory-overlay {
    opacity: 1;
}

.memory-info {
    text-align: center;
    color: var(--text-white);
    padding: 1rem;
}

.memory-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.memory-info p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.photo-zoom-hint {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.memory-image {
    cursor: pointer;
}

.memory-description {
    padding: 1.5rem;
}

.memory-description h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.memory-description p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.memories-cta {
    background: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: var(--border-radius-large);
    text-align: center;
    box-shadow: var(--shadow-medium);
    position: relative;
    z-index: 2;
}

.memories-cta h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.memories-cta p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* =============================================
   Video Memories Section
   ============================================= */
.video-memories {
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.video-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-normal);
    max-width: 800px;
    margin: 0 auto;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.video-container {
    position: relative;
    height: 450px;
    overflow: hidden;
    cursor: pointer;
    background: #000;
}

.video-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.video-container:hover .video-preview {
    transform: scale(1.05);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(99, 102, 241, 0.8) 0%,
        rgba(139, 92, 246, 0.8) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    transition: all var(--transition-normal);
    color: white;
}

.video-container:hover .video-overlay {
    opacity: 1;
}

.video-play-btn {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
}

.video-play-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
}

.video-info {
    text-align: center;
}

.video-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.video-info p {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.video-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

/* =============================================
   Team Section
   ============================================= */
.team {
    background: var(--bg-primary);
}

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

.team-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius-large);
    text-align: center;
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.team-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-large);
    border-color: var(--primary-color);
}

.team-avatar {
    width: 100px;
    height: 100px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--text-white);
}

.team-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.team-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.team-social i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.team-social i:hover {
    background: var(--primary-color);
    color: var(--text-white);
    transform: scale(1.1);
}

/* =============================================
   Schedule Section (Timeline)
   ============================================= */
.schedule {
    background: var(--bg-secondary);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.5rem;
    z-index: 2;
    box-shadow: var(--shadow-medium);
}

.timeline-content {
    flex: 1;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
    margin: 0 2rem;
    transition: all var(--transition-normal);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.timeline-time {
    display: inline-block;
    background: var(--gradient-warm);
    color: var(--text-white);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.timeline-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.timeline-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

/* =============================================
   Details Section
   ============================================= */
.details {
    background: var(--bg-primary);
}

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

.details-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-normal);
}

.details-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.card-header {
    background: var(--gradient-success);
    color: var(--text-white);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-header i {
    font-size: 1.5rem;
}

.card-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.card-content {
    padding: 2rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--text-primary);
}

.info-value {
    color: var(--text-secondary);
    text-align: right;
    max-width: 60%;
}

.supplies-list {
    list-style: none;
    space-y: 1rem;
}

.supplies-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    color: var(--text-secondary);
}

.supplies-list i {
    color: var(--primary-color);
    width: 20px;
}

.work-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.work-item:last-child {
    border-bottom: none;
}

.work-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.work-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.work-item p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* =============================================
   Contact Section
   ============================================= */
.contact {
    background: var(--bg-secondary);
}

.contact-single {
    display: flex;
    justify-content: center;
    margin-bottom: 4rem;
}

.contact-card-main {
    background: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: var(--border-radius-large);
    text-align: center;
    box-shadow: var(--shadow-large);
    transition: all var(--transition-normal);
    max-width: 400px;
    width: 100%;
    position: relative;
    border: 3px solid transparent;
    background-clip: padding-box;
}

.contact-card-main::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-large);
    z-index: -1;
}

.contact-card-main:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.contact-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 2rem;
    position: relative;
    overflow: hidden;
    border: 4px solid transparent;
    background: linear-gradient(white, white) padding-box, var(--gradient-primary) border-box;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.contact-avatar::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: var(--gradient-warm);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.contact-card-main:hover .contact-avatar::after {
    opacity: 1;
}

.contact-card-main h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-role {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.wechat-contact {
    margin-bottom: 1rem;
}

.btn-wechat {
    background: linear-gradient(135deg, #07c160 0%, #00d756 100%);
    color: var(--text-white);
    border: none;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.btn-wechat::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-wechat:hover::before {
    left: 100%;
}

.btn-wechat:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(7, 193, 96, 0.3);
}

.cta-section {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: var(--border-radius-large);
    text-align: center;
    box-shadow: var(--shadow-large);
}

.cta-section h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cta-section p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* =============================================
   Footer
   ============================================= */
.footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 3rem 0 1rem;
}

.footer-content {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-text {
    font-size: 1.125rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-stats {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.stat-item i {
    color: var(--primary-color);
    font-size: 1rem;
}

.stat-item span span {
    font-weight: 600;
    color: var(--accent-color);
}

.footer-bottom {
    padding-top: 1rem;
    text-align: center;
    opacity: 0.7;
}

/* =============================================
   返回顶部按钮
   ============================================= */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-large);
}

/* =============================================
   动画关键帧
   ============================================= */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

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

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* =============================================
   T-Shirt Section (纪念衫)
   ============================================= */
.tshirt {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.tshirt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="tshirts" x="0" y="0" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M25,10 L15,15 L15,45 L35,45 L35,15 L25,10 Z M20,20 L30,20 L30,40 L20,40 Z" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23tshirts)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.tshirt .section-header {
    color: var(--text-white);
    position: relative;
    z-index: 2;
}

.tshirt .section-title,
.tshirt .section-subtitle {
    color: var(--text-white);
}

.tshirt-showcase {
    position: relative;
    z-index: 2;
}

.tshirt-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-normal);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 900px;
    margin: 0 auto;
}

.tshirt-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.4);
}

.tshirt-image {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.tshirt-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.tshirt-card:hover .tshirt-image img {
    transform: scale(1.1);
}

.tshirt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.9), rgba(139, 92, 246, 0.9));
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.tshirt-image:hover .tshirt-overlay {
    opacity: 1;
}

.tshirt-zoom-hint {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tshirt-info {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tshirt-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-align: center;
}

.tshirt-features {
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
    width: 25px;
    text-align: center;
}

.feature-item span {
    font-weight: 500;
}

.tshirt-order {
    text-align: center;
}

.order-info {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.order-info i {
    color: var(--primary-color);
}

/* =============================================
   纪念衫设计区域
   ============================================= */
.tshirt {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.tshirt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23667eea' fill-opacity='0.05'%3E%3Cpath d='M20 20c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10zm10 0c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10z'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.tshirt-showcase {
    max-width: 1000px;
    margin: 0 auto;
}

.tshirt-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-large);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.tshirt-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.tshirt-image {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background: linear-gradient(45deg, #f8fafc, #ffffff);
}

.tshirt-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.tshirt-image:hover img {
    transform: scale(1.05);
}

.tshirt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.tshirt-image:hover .tshirt-overlay {
    opacity: 1;
}

.tshirt-zoom {
    color: var(--text-white);
    text-align: center;
    font-size: 1.125rem;
    font-weight: 600;
}

.tshirt-zoom i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.tshirt-info {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tshirt-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.tshirt-features {
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-top: 0.25rem;
    min-width: 20px;
}

.feature-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.feature-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.25rem;
}

.tshirt-cta {
    margin-top: 1rem;
}

/* 纪念衫模态框样式 */
.tshirt-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.tshirt-modal.active {
    display: flex;
}

.tshirt-modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.tshirt-modal img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.tshirt-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color var(--transition-fast);
}

.tshirt-modal-close:hover {
    color: var(--primary-light);
}

/* =============================================
   响应式设计
   ============================================= */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
        --section-padding: 3rem 0;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .about-grid,
    .team-grid,
    .details-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline::before {
        left: 2rem;
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .timeline-marker {
        left: 2rem;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .timeline-content {
        margin: 0 0 0 4rem;
        width: calc(100% - 4rem);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .cta-buttons .btn {
        min-width: 200px;
        text-align: center;
    }
    
    /* 移动端统计样式 */
    .stats-container {
        gap: 1rem;
        justify-content: space-between;
    }
    
    .stat-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        flex: 1;
        justify-content: center;
    }
    
    .contact-single {
        padding: 0 1rem;
    }
    
    .contact-card-main {
        padding: 2rem 1rem;
    }
    
    .contact-avatar {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    .contact-card-main h3 {
        font-size: 1.5rem;
    }
    
    /* 相册移动端优化 */
    .photo-gallery-modal .memory-image {
        height: 150px;
    }
    
    /* 背景动画在移动端减少效果以提升性能 */
    .hero-school-bg {
        animation-duration: 60s; /* 延长动画时间 */
    }
    
    @keyframes panoramaScroll {
        0% {
            transform: scale(1.02) translateX(0%) translateY(0%);
        }
        50% {
            transform: scale(1.04) translateX(-2%) translateY(-1%);
        }
        100% {
            transform: scale(1.02) translateX(0%) translateY(0%);
        }
    }
}
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .stats-row {
        grid-template-columns: 1fr;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .cta-section {
        padding: 2rem 1rem;
    }
    
    .memories-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .memory-image {
        height: 200px;
    }
    
    .memories-cta {
        padding: 2rem 1rem;
    }
    
    /* 纪念衫移动端适配 */
    .tshirt-card {
        grid-template-columns: 1fr;
        margin: 0 1rem;
        max-width: none;
    }
    
    .tshirt-image {
        min-height: 250px;
    }
    
    .tshirt-info {
        padding: 2rem 1.5rem;
    }
    
    .tshirt-info h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .feature-item {
        margin-bottom: 1rem;
    }
    
    .feature-item i {
        margin-right: 0.75rem;
        width: 20px;
    }
    
    /* 移动端音乐播放器 */
    .music-player {
        right: 1rem;
        top: auto;
        bottom: 6rem;
        transform: none;
        max-width: 160px;
        padding: 0.75rem;
    }
    
    .music-control span {
        font-size: 0.75rem;
    }
    
    .music-volume {
        display: none; /* 移动端隐藏音量控制 */
    }
    
    /* 纪念衫移动端适配 */
    .tshirt-card {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .tshirt-info {
        padding: 2rem 1.5rem;
    }
    
    .tshirt-info h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .feature-item {
        margin-bottom: 1rem;
    }
    
    .feature-item h4 {
        font-size: 1rem;
    }
    
    .feature-item p {
        font-size: 0.9rem;
    }
    
    .tshirt-modal-close {
        top: -50px;
        font-size: 1.5rem;
    }
    
    .tshirt-modal-content {
        max-width: 95%;
        max-height: 85%;
    }
}