:root {
    --header-height: 60px;
    --footer-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
}

/* 导入Google字体 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap');

/* 头部样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    padding: 0 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 1000;
    justify-content: space-between;
}

.site-title {
    display: flex;
    align-items: center;
}

.site-title h1 {
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    font-family: 'Noto Sans SC', sans-serif;
    letter-spacing: 1px;
    position: relative;
    color: transparent;
    animation: titleFade 4s ease-in-out infinite;
}

@keyframes titleFade {
    0%, 100% {
        color: rgba(255, 255, 255, 0.3);
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }
    50% {
        color: rgba(255, 255, 255, 1);
        text-shadow: 0 0 20px rgba(0, 168, 255, 0.8),
                    0 0 30px rgba(0, 168, 255, 0.6),
                    0 0 40px rgba(0, 168, 255, 0.4);
    }
}

/* 导航样式优化 */
.nav {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 3rem;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    transition: all 0.3s;
    white-space: nowrap;
}

.nav a:hover {
    color: #00a8ff;
    background: rgba(255, 255, 255, 0.1);
}

.nav a.active {
    color: #00a8ff;
    background: rgba(255, 255, 255, 0.1);
}

.search {
    position: relative;
}

.search input {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 4px;
    outline: none;
}

.search input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search input:focus {
    border-color: #00a8ff;
}

/* 时间显示样式 */
.current-time {
    margin-left: 1.5rem;
    color: white;
    font-size: 1rem;
    white-space: nowrap;
}

.current-time span {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 500;
}

/* 轮播区域样式 */
.hero-section {
    height: 92vh;
    margin-top: var(--header-height);
    margin-bottom: 0;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    z-index: 1;
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.learn-more {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.learn-more:hover {
    background: white;
    color: #333;
}

/* Swiper导航按钮样式 */
.swiper-button-next,
.swiper-button-prev {
    color: white;
    background: rgba(0, 0, 0, 0.3);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: background 0.3s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.5);
}

.swiper-pagination-bullet {
    background: white;
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

/* 页脚样式 */
.footer {
    height: auto;
    min-height: 60px;
    background: #333;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 1rem;
    margin-top: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.9);
        padding: 1rem;
        display: none;
    }

    .nav.active {
        display: block;
    }

    .nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    .nav a {
        display: block;
        padding: 0.5rem 1rem;
    }
    
    .hero-section {
        height: 70vh;
    }

    .site-title h1 {
        font-size: 1.3rem;
        letter-spacing: 0.5px;
    }

    .current-time {
        font-size: 0.9rem;
        margin-left: 1rem;
    }
} 

/* 添加社交链接的样式 */
.social-links {
    margin-bottom: 0.8rem;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.social-icon {
    text-decoration: none;
    color: white;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 14px;
    transition: all 0.3s ease;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    animation: socialFloat 3s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.2s);
}

@keyframes socialFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #00a8ff;
    transform: scale(1.1);
    animation-play-state: paused;
}

/* 添加悬停提示 */
.social-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.social-icon:hover::after {
    opacity: 1;
    visibility: visible;
}

/* 响应式设计中添加 */
@media (max-width: 768px) {
    .social-links {
        gap: 1.5rem;
    }

    .social-icon {
        font-size: 12px;
        padding: 6px 12px;
    }
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
} 