/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式优化 */
.navbar {
    background: rgba(255, 255, 255, 0.95); /* 半透明背景 */
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px); /* 毛玻璃效果 */
    -webkit-backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 50px;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 10px; /* 添加间距 */
}

.nav-links li a {
    text-decoration: none;
    color: #333;
    padding: 8px 16px;
    transition: all 0.3s ease;
    border-radius: 20px;
    font-weight: 500;
    position: relative;
}

/* 导航项悬停效果 */
.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #FFB800;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links li a:hover {
    color: #FFB800;
    background: rgba(255, 184, 0, 0.1);
}

.nav-links li a:hover::after {
    width: 70%;
}

/* Banner轮播图 */
.banner {
    margin-top: 80px; /* 默认桌面端距离 */
    position: relative;
}

.slider {
    position: relative;
    /*height: 600px;*/
    width: 100%;

    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-buttons button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.slider-buttons button:hover {
    color: rgba(255, 255, 255, 0.9);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* 战队描述 */
.about {
    padding: 80px 0;
    background: #f9f9f9;
}

.about h2 {
    text-align: center;
    margin-bottom: 30px;
}

/* 战队活动 */
.activities {
    padding: 80px 0;
}

.activity-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 改为两列布局 */
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    position: relative;
}

.card img {
    width: 100%;
    height: 250px; /* 增加图片高度 */
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover {
    transform: scale(1.03); /* 整体放大效果 */
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card:hover img {
    transform: scale(1.1); /* 图片额外放大 */
}

.card h3 {
    font-size: 1.3em;
    margin: 15px 0 10px;
    padding: 0 20px;
}

.card p {
    padding: 0 20px 20px;
    color: #666;
    line-height: 1.6;
}

/* 数据展示 */
.stats {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: #fff;
}

/* 优化进度条样式 */
.progress {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 30px;
    color: #fff;
    position: relative;
    font-size: 0.9em;
    width: 0;
    transition: none;
    border-radius: 10px;
    background: linear-gradient(90deg, #FFB800, #FFD700);
}

.stats h2 {
    text-align: center;
    margin-bottom: 50px;
    color: #fff;
}

.stat-bars {
    margin-top: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    margin-bottom: 25px;
    position: relative;
}

.stat-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #fff;
    font-size: 1em;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.1);
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-number {
    position: absolute;
    color: #333;
    font-size: 0.75em;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    transform: translateX(-50%);
    z-index: 1;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0; /* 初始设置为透明 */
}

/* 战队之星 */
.stars {
    padding: 80px 0;
    background: #f9f9f9;
}

.star-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.star-card {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.star-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.star-avatar {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
}

.star-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* 添加头像放大效果 */
.star-avatar:hover img {
    transform: scale(1.1);
}

.star-card h3 {
    font-size: 1.5em;
    margin-bottom: 5px;
    color: #333;
}

.star-card .role {
    color: #FFB800;
    font-weight: 500;
    margin-bottom: 10px;
}

.star-card .achievements {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
    padding: 5px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.star-card .quote {
    font-style: italic;
    color: #888;
    font-size: 0.95em;
    line-height: 1.6;
}

/* 响应式布局调整 */
/* 大屏幕电脑 (1200px 以上) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    /* Banner尺寸 */
    .slider {
        height: 600px;
    }
    
    /* 卡片布局 */
    .star-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .activity-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 数据展示 */
    .stat-bars {
        max-width: 800px;
    }
    
    /* 战队之星头像 */
    .star-avatar {
        width: 180px;
        height: 180px;
    }
}

/* 平板和小屏幕电脑 (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
        padding: 0 30px;
    }
    
    /* Banner尺寸 */
    .slider {
        height: 450px;
    }
    
    /* 卡片布局 */
    .star-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .activity-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    /* 导航栏 */
    .nav-links {
        font-size: 0.9em;
    }
    
    .nav-links li a {
        padding: 8px 15px;
    }
    
    /* 战队之星头像 */
    .star-avatar {
        width: 150px;
        height: 150px;
    }
    
    /* 数据展示 */
    .stat-bars {
        max-width: 700px;
        padding: 0 20px;
    }
    
    /* 页面间距 */
    .about, .activities, .stats, .stars {
        padding: 60px 0;
    }
}

/* 手机版 (768px 以下) */
@media (max-width: 767px) {
    .container {
        padding: 0 20px;
    }
    
    /* Banner尺寸 */
    .banner {
        margin-top: 50px; /* 调整为手机端导航栏高度 */
    }

    .slider {
        height: 250px;
    }

    /* 确保图片完全覆盖 */
    .slide img {
        width: 100%;
        height: 50%;
        object-fit: cover;
        object-position: center;
    }

    /* 导航栏 */
    .navbar {
        background: rgba(255, 255, 255, 0.98);
    }

    .navbar .container {
        flex-direction: row;
        height: 50px;
        padding: 0 20px;
        position: relative;
    }

    .logo {
        margin-bottom: 0;
    }

    .logo img {
        height: 35px;
    }

    .nav-links {
        position: fixed;
        top: 60px; /* 稍微往下一点，露出圆角 */
        left: 10px; /* 左右留出间距 */
        width: calc(100% - 20px); /* 减去左右间距 */
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 5px 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease-in-out;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        z-index: 1000;
        border-radius: 15px;
        opacity: 0;
        transform: translateY(-10px);
    }

    .nav-links.active {
        max-height: 300px;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links li {
        margin: 0;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-links li:first-child {
        border-top: none; /* 移除第一个项目的顶部边框 */
    }

    .nav-links li a {
        padding: 12px 20px;
        display: block;
        text-align: center;
        font-weight: 400;
        font-size: 0.95em;
        color: #333;
        transition: all 0.3s ease;
    }

    .nav-links li a:hover {
        background: rgba(255, 184, 0, 0.05);
        color: #FFB800;
    }

    /* 最后一个项目添加圆角 */
    .nav-links li:last-child a {
        border-bottom-left-radius: 15px;
        border-bottom-right-radius: 15px;
    }

    /* 第一个项目添加圆角 */
    .nav-links li:first-child a {
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
    }

    /* 汉堡菜单按钮样式 */
    .menu-toggle {
        display: flex !important;
        width: 25px;
        height: 18px;
        padding: 0;
        background: transparent;
        border: none;
        cursor: pointer;
        position: relative;
        z-index: 1001;
    }

    .menu-toggle span {
        display: block;
        height: 2px;
        width: 100%;
        background-color: #000;
        border-radius: 2px;
        margin: 2px 0;
        transition: all 0.3s ease;
    }

    /* 汉堡菜单动画 */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* 卡片布局 */
    .star-cards, .activity-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* 战队之星头像 */
    .star-avatar {
        width: 120px;
        height: 120px;
    }
    
    /* 数据展示 */
    .stat-bars {
        padding: 0 15px;
    }
    
    .stat-item {
        margin-bottom: 15px;
    }
    
    .progress-bar {
        height: 16px;
    }
    
    /* 页面间距 */
    .about, .activities, .stats, .stars {
        padding: 40px 0;
    }
    
    /* 标题大小 */
    h2 {
        font-size: 1.2em;
        margin-bottom: 15px;
    }
    
    /* 页脚样式调整 */
    .footer {
        padding: 30px 0;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .footer-logo {
        margin-bottom: 15px;
    }
    
    .footer-logo img {
        height: 38px;
    }
    
    .footer-info {
        text-align: center;
        width: 100%;
    }
    
    .copyright, .icp {
        font-size: 12px;
        text-align: center;
        margin: 5px 0;
    }

    /* 隐藏手机版底部微信公众号 */
    .footer .qrcode {
        display: none;
    }

    /* 其他文字大小调整 */
    p {
        font-size: 0.9em;
    }

    h3 {
        font-size: 1.1em;
    }

    .card p {
        font-size: 0.85em;
    }

    .stat-label {
        font-size: 0.9em;
        margin-bottom: 6px;
    }

    .progress-number {
        font-size: 0.7em;
    }

    .star-card .role {
        font-size: 0.85em;
    }

    .star-card .achievements {
        font-size: 0.8em;
    }

    .star-card .quote {
        font-size: 0.85em;
    }

    .activity-cards {
        grid-template-columns: 1fr; /* 手机端单列显示 */
        gap: 20px;
    }

    .card img {
        height: 200px; /* 手机端减小图片高度 */
    }

    .card h3 {
        font-size: 1.2em;
        margin: 12px 0 8px;
    }
}

/* 滚动时导航栏样式 */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* 页脚 */
.footer {
    background: #333;
    color: #fff;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo img {
    height: 60%;
}

.footer-info {
    text-align: right;
}

.qrcode {
    margin-bottom: 20px;
}

.qrcode img {
    width: 100px;
    height: 100px;
}

.copyright, .icp {
    font-size: 14px;
    color: #999;
}

/* 添加汉堡菜单按钮样式 */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #000;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 添加平滑滚动效果 */
html {
    scroll-behavior: smooth;
} 