/* 基础重置与变量 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

:root {
    --primary-bg: #1a1a1a;
    --secondary-bg: #222;
    --accent-bg: #333;
    --text-primary: #f0f0f0;
    --text-secondary: #aaa;
    --border: #444;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    --glass-bg: rgba(26, 26, 26, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
    /* 修改 transition：仅过渡颜色、阴影、边框、透明度，不含 transform */
    --transition: background-color 0.3s ease, color 0.3s ease, 
                   box-shadow 0.3s ease, border-color 0.3s ease, 
                   opacity 0.3s ease;
    --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --elastic: cubic-bezier(0.5, 1.5, 0.5, 1);
    --blur-amount: blur(10px) saturate(180%);
}

.light-theme {
    --primary-bg: #fff;
    --secondary-bg: #f9f9f9;
    --accent-bg: #f0f0f0;
    --text-primary: #333;
    --text-secondary: #666;
    --border: #eaeaea;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
}

body {
    background-color: var(--secondary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    transition: var(--transition);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(30, 30, 40, 0.1) 0%,
        rgba(50, 50, 80, 0.1) 50%,
        rgba(30, 30, 40, 0.1) 100%);
    z-index: -1;
}

.light-theme body::before {
    background: linear-gradient(135deg,
        rgba(245, 245, 250, 0.05) 0%,
        rgba(220, 220, 255, 0.05) 50%,
        rgba(245, 245, 250, 0.05) 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 玻璃效果通用样式 */
.glass {
    background-color: var(--glass-bg);
    backdrop-filter: var(--blur-amount);
    -webkit-backdrop-filter: var(--blur-amount);
    border: 1px solid var(--glass-border);
}

/* 头部 */
header {
    background-color: var(--glass-bg);
    backdrop-filter: blur(5px) saturate(180%); /* 降低模糊强度 */
    -webkit-backdrop-filter: blur(5px) saturate(180%);
    border: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
    border-bottom: none;
    animation: slideDown 0.5s var(--bounce);
}

@keyframes slideDown {
    0% { transform: translateY(-100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

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

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: bounceIn 0.6s var(--bounce) 0.2s both;
}

@keyframes bounceIn {
    0% { transform: scale(0.8); opacity: 0; }
    60% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); }
}

.logo i {
    margin-right: 8px;
    color: #888;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: var(--transition);
    position: relative;
    animation: slideInRight 0.5s var(--bounce) both;
}

/* 使用nth-child替代未定义的--i */
.nav-links li:nth-child(1) a { animation-delay: 0.3s; }
.nav-links li:nth-child(2) a { animation-delay: 0.4s; }
.nav-links li:nth-child(3) a { animation-delay: 0.5s; }
.nav-links li:nth-child(4) a { animation-delay: 0.6s; }
.nav-links li:nth-child(5) a { animation-delay: 0.7s; }

@keyframes slideInRight {
    0% { transform: translateX(20px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.15);
    /* 移除 hover 位移和阴影动画 */
    box-shadow: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: currentColor;
    transition: var(--transition);
}

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

.theme-toggle {
    display: flex;
    align-items: center;
    margin-left: 15px;
    padding: 8px 16px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: var(--transition);
    animation: popIn 0.6s var(--bounce) 0.5s both;
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    /* 移除 hover 缩放和旋转 */
}

.theme-icon {
    font-size: 1rem;
    margin-right: 6px;
    color: var(--text-secondary);
}

.theme-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    padding: 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    cursor: pointer;
    /* 单独指定 transition，包含 transform */
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.mobile-menu-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.2);
}

.mobile-menu-btn.active {
    transform: rotate(180deg);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px) scale(0.95);
    z-index: 99;
    padding: 25px;
    border-radius: 15px;
    max-width: 90%;
    width: 320px;
    max-height: 70vh;
    overflow-y: auto;
    background-color: var(--glass-bg);
    backdrop-filter: var(--blur-amount);
    -webkit-backdrop-filter: var(--blur-amount);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    opacity: 0;
    transform-origin: top center;
    /* 单独指定 transition，仅 opacity 和 transform */
    transition: opacity 0.4s var(--elastic), transform 0.4s var(--elastic);
    pointer-events: none;
}

.mobile-nav.active {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
    animation: menuBounce 0.6s var(--bounce);
}

@keyframes menuBounce {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-30px) scale(0.9);
    }
    60% {
        opacity: 1;
        transform: translateX(-50%) translateY(10px) scale(1.02);
    }
    100% {
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

.mobile-nav-links {
    list-style: none;
}

.mobile-nav-links li {
    margin-bottom: 15px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

.mobile-nav.active .mobile-nav-links li {
    opacity: 1;
    transform: translateX(0);
}

.mobile-nav.active .mobile-nav-links li:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.active .mobile-nav-links li:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav.active .mobile-nav-links li:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav.active .mobile-nav-links li:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav.active .mobile-nav-links li:nth-child(5) { transition-delay: 0.3s; }

.mobile-nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1.1rem;
    display: block;
    padding: 15px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid transparent;
    transition: all 0.3s var(--bounce);
    transform: scale(0.95);
}

.mobile-nav-links a:hover {
    color: var(--text-primary);
    padding-left: 25px;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--glass-border);
    /* 移除缩放和位移 */
    box-shadow: none;
}

.mobile-theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding: 12px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: var(--text-secondary);
    font-weight: 500;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.3s var(--bounce);
    opacity: 0;
    transform: scale(0.9);
}

.mobile-nav.active .mobile-theme-toggle {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.35s;
}

.mobile-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-theme-icon {
    margin-right: 8px;
    font-size: 1.1rem;
    transition: transform 0.3s var(--bounce);
}

/* Hero 区域 */
.hero {
    padding: 60px 0 40px;
    text-align: center;
    background-color: var(--primary-bg);
    margin-bottom: 40px;
    border-radius: 0 0 10px 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30,30,30,0.9) 0%, rgba(40,40,40,0.7) 100%);
    backdrop-filter: none;  /* 移除模糊 */
    -webkit-backdrop-filter: none;
    z-index: -1;
}

.light-theme .hero::before {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    animation: slideUp 0.8s var(--bounce) 0.2s both;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 30px;
    animation: slideUp 0.8s var(--bounce) 0.4s both;
}

@keyframes slideUp {
    0% { transform: translateY(30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* 通用标题 */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

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

/* 团队卡片网格 */
.team-section {
    padding: 50px 0;
    background-color: var(--primary-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.team-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: none;  /* 移除模糊 */
    -webkit-backdrop-filter: none;
    z-index: -1;
    border-radius: 10px;
}

.light-theme .team-section::before {
    background: rgba(255, 255, 255, 0.8);
}

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

.member-card {
    background-color: var(--primary-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
    animation: cardAppear 0.6s ease-out both;
}

/* 为每个卡片设置延迟 */
.member-card:nth-child(1) { animation-delay: 0.1s; }
.member-card:nth-child(2) { animation-delay: 0.2s; }
.member-card:nth-child(3) { animation-delay: 0.3s; }
.member-card:nth-child(4) { animation-delay: 0.4s; }
.member-card:nth-child(5) { animation-delay: 0.5s; }
.member-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes cardAppear {
    0% { opacity: 0; transform: translateY(20px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.member-card:hover {
    /* 移除 hover 位移、缩放和阴影变化 */
    box-shadow: var(--shadow);
}

.member-img {
    height: 250px;
    overflow: hidden;
}

.member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.member-info {
    padding: 25px;
}

.member-name {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.member-role {
    color: #888;
    font-weight: 500;
    margin-bottom: 15px;
    display: block;
}

.member-desc {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.member-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.skill-tag {
    background-color: var(--accent-bg);
    color: var(--text-secondary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.skill-tag:hover {
    background-color: var(--border);
}

.member-social {
    display: flex;
    gap: 15px;
}

.member-social a {
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: var(--transition);
}

.member-social a:hover {
    color: var(--text-primary);
}

/* 统计区域 */
.stats-section {
    padding: 50px 0;
    background-color: var(--primary-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: none;  /* 移除模糊 */
    -webkit-backdrop-filter: none;
    z-index: -1;
    border-radius: 10px;
}

.light-theme .stats-section::before {
    background: rgba(255, 255, 255, 0.8);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

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

/* 页脚 */
footer {
    background-color: var(--glass-bg);
    backdrop-filter: blur(5px) saturate(180%); /* 降低模糊强度 */
    -webkit-backdrop-filter: blur(5px) saturate(180%);
    border: 1px solid var(--glass-border);
    padding: 40px 0 25px;
    margin-top: 50px;
    border-top: none;
    animation: slideUp 0.8s var(--bounce);
}

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

.footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    animation: slideInLeft 0.6s var(--bounce) both;
}

.footer-column:nth-child(1) { animation-delay: 0.1s; }
.footer-column:nth-child(2) { animation-delay: 0.2s; }
.footer-column:nth-child(3) { animation-delay: 0.3s; }

@keyframes slideInLeft {
    0% { opacity: 0; transform: translateX(-20px); }
    100% { opacity: 1; transform: translateX(0); }
}

.footer-column:hover {
    background: rgba(255, 255, 255, 0.1);
}

.light-theme .footer-column:hover {
    background: rgba(255, 255, 255, 0.3);
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-column p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    max-width: 300px;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.footer-links i {
    margin-right: 10px;
    color: var(--text-secondary);
    width: 20px;
    transition: var(--transition);
}

.footer-links a,
.footer-links span {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: var(--text-secondary);
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--text-primary);
    color: var(--primary-bg);
}

.copyright {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* 主按钮 */
.main-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #e74c3c;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: all 0.3s var(--bounce);
}

.main-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.4s ease;
    z-index: -1;
}

.main-button:hover {
    background: #c0392b;
    box-shadow: none;
    animation: none;
}

.main-button:hover::before {
    left: 100%;
}

.light-theme .main-button {
    background: #d63031;
}

.light-theme .main-button:hover {
    background: #c0392b;
}

/* 响应式设计 */
@media (max-width: 992px) {
    :root {
        --blur-amount: blur(8px) saturate(160%);
    }

    .logo { font-size: 1.3rem; }
    .nav-links a { font-size: 0.9rem; }
    .nav-links li { margin-left: 15px; }
    .theme-toggle { padding: 8px 14px; margin-left: 10px; }
    .theme-text { font-size: 0.8rem; }
}

@media (max-width: 768px) {
    .navbar { padding: 12px 0; }
    .logo { font-size: 1.2rem; }
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }

    .hero {
        padding: 50px 0 30px;
    }
    .hero h1 {
        font-size: 1.8rem;
        margin-top: 20px;
    }
    .hero p {
        font-size: 1rem;
        padding: 0 10px;
    }

    .section-title h2 { font-size: 1.6rem; }
    .section-title p {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    .team-section,
    .stats-section {
        padding: 40px 0;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

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

    .stat-item { padding: 20px 10px; }
    .stat-number { font-size: 1.8rem; }

    .footer-column {
        flex: 100%;
        min-width: 100%;
        margin-bottom: 20px;
    }

    /* 简化动画 */
    .member-card,
    .footer-column,
    .stat-item {
        animation-duration: 0.4s;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.5rem; }
    .hero p { font-size: 0.95rem; }

    .team-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }

    .section-title h2 { font-size: 1.4rem; }

    .member-img { height: 220px; }
    .member-info { padding: 20px; }
    .member-name { font-size: 1.2rem; }

    .footer-column h3 { font-size: 1.1rem; }

    .mobile-nav {
        width: 90%;
        max-width: 280px;
        padding: 20px;
    }
}