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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航栏 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* 滚动时的header样式 */
body.scrolled .header {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-right: 10px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 16px;
    font-weight: bold;
    color: #0066cc;
}

.logo-sub {
    font-size: 10px;
    color: #666;
}

.slogan {
    font-size: 14px;
    color: #0066cc;
    font-weight: 600;
    text-align: center;
    background: rgba(0, 102, 204, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.auth-icons {
    display: flex;
    gap: 15px;
}

.auth-icon {
    font-size: 20px;
    text-decoration: none;
    color: #333;
}

/* 响应式调整header */
@media (max-width: 480px) {
    .header-content {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .logo {
        order: 1;
    }
    
    .slogan {
        order: 3;
        width: 100%;
    }
    
    .auth-icons {
        order: 2;
    }
}

/* 移动端导航菜单 */
.mobile-nav {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    overflow: hidden;
    padding: 10px 0;
    animation: slideDown 0.5s ease-out;
}

/* 导航栏动画效果 */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-list {
    display: flex;
    overflow-x: auto;
    padding: 0 15px;
    gap: 25px;
    list-style: none;
    margin: 0;
    scrollbar-width: none; /* 隐藏Firefox滚动条 */
}

.nav-list::-webkit-scrollbar {
    display: none; /* 隐藏Chrome/Safari滚动条 */
}

.nav-item {
    flex-shrink: 0;
    text-align: center;
}

.nav-link {
    display: block;
    padding: 12px 0;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-link.active {
    color: #dc143c;
    transform: translateY(-2px);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #dc143c 0%, #b22222 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

/* Banner区域 */
.banner {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.8) 0%, rgba(0, 242, 254, 0.8) 100%);
    z-index: 0;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
    background-attachment: fixed;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
}

.banner-slide.active {
    opacity: 1;
    position: relative;
}

.banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 20px;
}

.banner h1 {
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    color: white;
}

.banner p {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.95;
    color: white;
}

.banner-btn {
    display: inline-block;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.banner-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 轮播控制按钮 */
.banner-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 2;
    padding: 0 20px;
    box-sizing: border-box;
}

.banner-prev, .banner-next {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-prev:hover, .banner-next:hover {
    background: rgba(0, 102, 204, 0.8);
    transform: scale(1.1);
}

/* 轮播指示器 */
.banner-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    width: 30px;
    border-radius: 5px;
}

/* 通用区块样式 */
.section-title {
    font-size: 22px;
    color: #0066cc;
    margin: 30px 0 20px;
    text-align: center;
    font-weight: bold;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #0066cc, #00aaff);
    border-radius: 2px;
}

/* 团队简介 */
.team-intro {
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
    padding: 40px 0;
    margin: 30px 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.team-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0066cc, #00aaff, #0066cc);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.intro-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.team-photo {
    width: 100%;
    max-width: 320px;
    border-radius: 16px;
    margin-bottom: 25px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border: 4px solid white;
    transition: all 0.3s ease;
    overflow: hidden;
    background: white;
}

.team-photo:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

.intro-text {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    max-width: 420px;
    transition: all 0.3s ease;
}

.intro-text:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.intro-text h3 {
    font-size: 24px;
    color: #0066cc;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, #0066cc, #00aaff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.intro-text h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #0066cc, #00aaff);
    border-radius: 2px;
}

.intro-text p {
    font-size: 16px;
    color: #555;
    text-align: justify;
    line-height: 1.7;
    letter-spacing: 0.3px;
    margin: 0;
}

/* 新闻动态 */
.news {
    background-color: #f8f9fa;
    padding: 30px 0;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-item {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
}

.news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.news-content h3 {
    font-size: 17px;
    margin-bottom: 8px;
    color: #0066cc;
    line-height: 1.4;
}

.news-source {
    font-size: 12px;
    color: #999;
}

/* 专栏 */
.columns {
    background-color: #fff;
    padding: 30px 0;
}

.columns-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.column-item {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.column-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    background-color: #eef3f9;
}

.column-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.column-item h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #0066cc;
}

.column-item p {
    font-size: 12px;
    color: #666;
}

/* 关注我们 */
.follow-us {
    background-color: #f8f9fa;
    padding: 30px 0;
}

.follow-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.follow-item {
    background-color: #fff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.follow-item h3 {
    font-size: 18px;
    color: #0066cc;
    margin-bottom: 15px;
}

.qrcode {
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.social-icon {
    font-size: 48px;
    margin: 0 auto 15px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.social-icon.douyin {
    background: linear-gradient(45deg, #ff6b6b, #ffa726);
    color: white;
}

.social-icon.bilibili {
    background: linear-gradient(45deg, #00a1d6, #f59223);
    color: white;
}

.follow-item p {
    font-size: 14px;
    color: #666;
}

/* 赞赏支持 */
.donate {
    background-color: #fff;
    padding: 30px 0;
}

.donate-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #f0f4f8;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.donate-qrcode {
    width: 180px;
    height: 180px;
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #fff;
    padding: 10px;
}

.donate-content p {
    font-size: 16px;
    color: #555;
    font-weight: bold;
}

/* 底部 */
.footer {
    background-color: #333;
    color: white;
    padding: 30px 0;
    margin-top: 30px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #00aaff;
}

.footer-info p {
    font-size: 14px;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

.disclaimer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #555;
    text-align: center;
}

.disclaimer h4 {
    font-size: 14px;
    margin-bottom: 10px;
    color: #00aaff;
}

.disclaimer p {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 8px;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 375px) {
    .logo-main {
        font-size: 14px;
    }
    
    .banner h1 {
        font-size: 24px;
    }
    
    .banner p {
        font-size: 14px;
    }
    
    .columns-grid {
        grid-template-columns: 1fr;
    }
    
    .qrcode {
        width: 120px;
        height: 120px;
    }
    
    .donate-qrcode {
        width: 150px;
        height: 150px;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-intro, .news, .columns, .follow-us, .donate {
    animation: fadeInUp 0.6s ease-out;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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