* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: auto;
}

.container {
    width: 100%;
    height: 100%;
    position: relative;
}

.landing-page {
    width: 100%;
    height: calc(100vh - 50px);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #333;
    background-color: #f8f9fa;
    overflow: hidden;
    background-image: url('../assets/images/fudan-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

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

.content {
    position: relative;
    z-index: 2;
    text-align: center;
    pointer-events: none;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 2rem;
    border-radius: 10px;
    max-width: 90%;
    width: 600px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.main-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--fudan-red);
}

.text-shine {
    background: none;
    color: var(--fudan-red);
    -webkit-background-clip: initial;
    background-clip: initial;
    animation: none;
    font-weight: bold;
}

.sub-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #333;
}

.enter-btn {
    background-color: var(--fudan-red);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 1rem;
}

.scroll-hint {
    display: none;
}

.scroll-text {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: block;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    animation: scrollHint 1.5s infinite;
}

.music-control {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.music-icon {
    width: 28px;
    height: 28px;
    fill: var(--fudan-blue);
    transition: all 0.3s;
    display: block;
}

.music-control:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    background: white;
}

.music-control:hover .music-icon {
    fill: var(--fudan-red);
}

.music-control.playing .music-icon {
    animation: rotate 5s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .music-control {
        bottom: 25px;
        right: 25px;
        padding: 10px;
    }

    .music-icon {
        width: 24px;
        height: 24px;
    }
}

/* 确保音乐控制按钮不会与其他固定定位的元素重叠 */
.share-buttons {
    position: fixed;
    bottom: 40px;
    left: 40px;
}

@media (max-width: 768px) {
    .share-buttons {
        bottom: 25px;
        left: 25px;
    }
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

@keyframes scrollHint {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-5px, -5px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(5px, 5px);
    }
}

/* 适配移动设备 */
@media screen and (max-width: 768px) {
    html {
        font-size: calc(100vw / 375 * 10);
    }
}

.building-silhouette {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 60%;
    background: url('../assets/images/guanghua-tower.png') no-repeat bottom center;
    background-size: contain;
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
    filter: contrast(120%) brightness(0.95);
    transition: opacity 0.3s ease;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #000428, #004e92);
    z-index: 0;
}

/* 添加光效果 */
.light-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0) 70%);
    animation: lightPulse 8s infinite;
    z-index: 1;
}

@keyframes lightPulse {
    0% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 0.3;
    }
}

#webgl-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* 加载动画 */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader {
    text-align: center;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader-text {
    color: #fff;
    font-size: 16px;
    font-family: sans-serif;
}

/* 音乐波纹效果 */
.music-wave {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.music-note {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* 悬停效果 */
.music-control:hover .music-wave {
    opacity: 1;
}

.music-control:hover .music-note {
    opacity: 1;
}

/* 适配深色/浅色模式 */
@media (prefers-color-scheme: dark) {
    .music-icon {
        fill: #ffffff;
    }
}

@media (prefers-color-scheme: light) {
    .music-icon {
        fill: #333333;
    }
}

/* 社交分享按钮 */
.share-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* 页面切换动画 */
.container.hide {
    display: none;
}

.page-transition {
    animation: fadeIn 0.8s ease-out forwards;
}

/* 动画关键帧 */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 可以添加一个随着页面滚动的视差效果 */
@keyframes subtle-parallax {
    0% {
        transform: translateX(-50%) translateY(0);
    }
    100% {
        transform: translateX(-50%) translateY(-20px);
    }
}

/* 当页面滚动时添加的效果 */
.building-silhouette.parallax {
    animation: subtle-parallax 3s ease-out forwards;
}

/* 在较暗的背景下可以适当提高亮度 */
@media (prefers-color-scheme: dark) {
    .building-silhouette {
        filter: contrast(120%) brightness(1.1);
    }
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .building-silhouette {
        height: 50%;
        opacity: 0.12;
    }
}

/* 新增内容区域样式 */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color, #be1e2d);
    margin: 3rem 0 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color, #ffd700);
}

/* 学校简介区域 */
.school-intro {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

.intro-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

.intro-text {
    flex: 1;
    min-width: 300px;
}

.intro-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.intro-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.intro-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 校庆活动区域 */
.anniversary-events {
    padding: 4rem 0;
    background-color: #fff;
}

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

.event-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

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

.event-icon {
    font-size: 2.5rem;
    color: var(--primary-color, #be1e2d);
    margin-bottom: 1rem;
}

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

.event-card p {
    color: #666;
    line-height: 1.6;
}

/* 页脚样式 */
.site-footer {
    background-color: #333;
    color: #fff;
    padding: 3rem 0 1.5rem;
}

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

.footer-logo {
    flex: 1;
    min-width: 200px;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    max-width: 150px;
    height: auto;
}

.footer-info {
    flex: 1;
    min-width: 200px;
    margin-bottom: 1.5rem;
}

.footer-info p {
    margin-bottom: 0.5rem;
    color: #ccc;
}

.footer-links {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color, #ffd700);
}

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

/* 响应式调整 */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .intro-content {
        flex-direction: column;
    }
    
    .intro-text, .intro-image {
        width: 100%;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-logo, .footer-info, .footer-links {
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .footer-links {
        align-items: center;
    }
}

/* 定义变量 */
:root {
    --fudan-red: #9e1f14;
    --fudan-blue: #1e3a8a;
    --fudan-gold: #d4af37;
    --card-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    --transition-speed: 0.3s;
    --primary-color: var(--fudan-red);
    --secondary-color: var(--fudan-gold);
}

/* 导航按钮样式 */
.navigation-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.secondary-navigation {
    display: none;
}

.nav-btn {
    background-color: var(--fudan-red);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-speed) ease;
    text-decoration: none;
    pointer-events: auto;
}

.nav-btn:hover {
    background-color: #8a1c12;
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
    color: white;
}

.nav-btn i {
    font-size: 18px;
}

.primary-btn {
    padding: 14px 28px;
    font-size: 18px;
}

.secondary-btn {
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid #d4af37;
    padding: 10px 20px;
    font-size: 14px;
}

.secondary-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .navigation-buttons, .secondary-navigation {
        flex-direction: column;
        align-items: center;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .sub-title {
        font-size: 1.2rem;
    }
    
    .nav-btn {
        width: 100%;
        max-width: 250px;
    }
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow: auto;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    width: 80%;
    max-width: 900px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

.close-btn:hover {
    color: var(--primary-color);
}

.buildings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.building-item {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.building-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.building-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

.building-item h3 {
    margin: 10px 0;
    color: var(--primary-color);
}

.building-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* 模态框动画 */
@keyframes modalFadeIn {
    from {opacity: 0}
    to {opacity: 1}
}

.modal {
    animation: modalFadeIn 0.3s ease-in-out;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 15px;
    }
    
    .buildings-grid {
        grid-template-columns: 1fr;
    }
}

/* 从index.html移动过来的CSS样式 */
.page-transition {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* 导航按钮样式 - 补充 */
.navigation-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.nav-btn {
    background-color: var(--fudan-red);
    color: white;
    border: 2px solid var(--fudan-gold);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all var(--transition-speed) ease;
}

.nav-btn:hover {
    background-color: rgba(158, 31, 20, 1);
    transform: translateY(-3px);
    box-shadow: var(--card-shadow);
    color: var(--fudan-gold);
}

.nav-btn i {
    font-size: 18px;
}

/* 添加顶部导航栏样式 */
.top-navbar {
    background-color: var(--fudan-red);
    color: white;
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    height: 50px;
}

.site-logo {
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.site-logo i {
    margin-right: 8px;
}

.nav-links {
    display: flex;
    gap: 15px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-links a i {
    font-size: 1rem;
}

/* 修改主体背景样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 修改首页样式，删除红色背景 */
.landing-page {
    width: 100%;
    height: calc(100vh - 50px); /* 减去导航栏高度 */
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #333;
    background-color: #f8f9fa;
    overflow: hidden;
    background-image: url('../assets/images/fudan-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 修改内容区域样式 */
.content {
    position: relative;
    z-index: 2;
    text-align: center;
    pointer-events: none;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 2rem;
    border-radius: 10px;
    max-width: 90%;
    width: 600px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 修改标题样式 */
.main-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--fudan-red);
}

.text-shine {
    background: none;
    color: var(--fudan-red);
    -webkit-background-clip: initial;
    background-clip: initial;
    animation: none;
    font-weight: bold;
}

.sub-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #333;
}

/* 修改按钮样式 */
.nav-btn {
    background-color: var(--fudan-red);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-speed) ease;
    text-decoration: none;
    pointer-events: auto;
}

.nav-btn:hover {
    background-color: #8a1c12;
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
    color: white;
}

.enter-btn {
    background-color: var(--fudan-red);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 1rem;
}

/* 移除不需要的背景元素 */
.bg-animation, .building-silhouette {
    display: none;
}

/* 修改首页样式，删除红色背景 */
.landing-page {
    width: 100%;
    height: calc(100vh - 50px); /* 减去导航栏高度 */
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #333;
    background-color: #f8f9fa;
    overflow: hidden;
    background-image: url('../assets/images/fudan-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 修改内容区域样式 */
.content {
    position: relative;
    z-index: 2;
    text-align: center;
    pointer-events: none;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 2rem;
    border-radius: 10px;
    max-width: 90%;
    width: 600px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 修改标题样式 */
.main-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--fudan-red);
}

.text-shine {
    background: none;
    color: var(--fudan-red);
    -webkit-background-clip: initial;
    background-clip: initial;
    animation: none;
    font-weight: bold;
}

.sub-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #333;
}

/* 修改按钮样式 */
.nav-btn {
    background-color: var(--fudan-red);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-speed) ease;
    text-decoration: none;
    pointer-events: auto;
}

.nav-btn:hover {
    background-color: #8a1c12;
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
    color: white;
}

.enter-btn {
    background-color: var(--fudan-red);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 1rem;
} 