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

/* 全局样式 */
:root {
    --primary-color: #000000;
    --primary-dark: #000000;
    --primary-light: #333333;
    --secondary-color: #666666;
    --secondary-light: #999999;
    --accent-color: #333333;
    --accent-light: #666666;
    --highlight-color: #000000;
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --background-primary: #ffffff;
    --background-secondary: #f8f9fa;
    --background-accent: #f1f3f4;
    --background-dark: #000000;
    --border-color: #e9ecef;
    --border-light: #f8f9fa;
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 8px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 20px -5px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 40px -10px rgb(0 0 0 / 0.1);
    --gradient-primary: linear-gradient(135deg, #000000 0%, #333333 100%);
    --gradient-secondary: linear-gradient(135deg, #666666 0%, #333333 100%);
    --gradient-accent: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    --gradient-hero: linear-gradient(135deg, #000000 0%, #333333 50%, #666666 100%);
    --gradient-soft: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
}

/* 暗色主题 */
[data-theme="dark"] {
    --primary-color: #000000;
    --primary-dark: #000000;
    --primary-light: #333333;
    --secondary-color: #666666;
    --secondary-light: #999999;
    --accent-color: #333333;
    --accent-light: #666666;
    --highlight-color: #ffffff;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-light: #999999;
    --text-muted: #666666;
    --background-primary: #000000;
    --background-secondary: #111111;
    --background-accent: #222222;
    --background-dark: #000000;
    --border-color: #333333;
    --border-light: #444444;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.4), 0 8px 10px -6px rgb(0 0 0 / 0.4);
    --gradient-primary: linear-gradient(135deg, #000000 0%, #333333 100%);
    --gradient-secondary: linear-gradient(135deg, #333333 0%, #666666 100%);
    --gradient-accent: linear-gradient(135deg, #111111 0%, #222222 100%);
    --gradient-hero: linear-gradient(135deg, #000000 0%, #111111 50%, #222222 100%);
    --gradient-soft: linear-gradient(135deg, #111111 0%, #222222 100%);
}

body {
    font-family: 'Noto Sans SC', 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-primary);
    scroll-behavior: smooth;
}

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(30px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(30px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .navbar {
    background: rgba(0, 0, 0, 0.99);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 65px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    margin-left: -20px;
}

.nav-logo-img {
    height: 45px;
    width: auto;
    transition: all 0.3s ease;
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
}

.nav-logo-text h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.nav-logo-text span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    margin-top: 2px;
}

/* 浅色主题下的logo文字颜色 */
[data-theme="light"] .nav-logo-text h2 {
    color: #1f2937;
}

[data-theme="light"] .nav-logo-text span {
    color: rgba(31, 41, 55, 0.7);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: nowrap;
}

.nav-menu li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
}

.nav-menu li a:hover {
    color: #ffffff;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 1px;
}

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

/* 浅色主题下的导航菜单颜色 */
[data-theme="light"] .nav-menu li a {
    color: rgba(31, 41, 55, 0.8);
}

[data-theme="light"] .nav-menu li a:hover {
    color: #1f2937;
}

/* 导航栏操作区域 */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 主题切换按钮 */
.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 18px;
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.theme-toggle .theme-icon {
    transition: transform 0.3s ease;
}

.theme-toggle:hover .theme-icon {
    transform: scale(1.1);
}

/* 浅色主题下的主题切换按钮 */
[data-theme="light"] .theme-toggle {
    background: rgba(31, 41, 55, 0.1);
    border: 1px solid rgba(31, 41, 55, 0.2);
    color: #1f2937;
}

[data-theme="light"] .theme-toggle:hover {
    background: rgba(31, 41, 55, 0.2);
    border-color: rgba(31, 41, 55, 0.4);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: rgba(255, 255, 255, 0.8);
    margin: 3px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

/* 浅色主题下的移动端菜单切换按钮 */
[data-theme="light"] .nav-toggle span {
    background: rgba(31, 41, 55, 0.8);
}

/* 移动端触摸优化 */
@media (max-width: 768px) {
    /* 触摸友好的点击区域 */
    .btn, .theme-toggle, .nav-toggle, .contact-item {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        tap-highlight-color: rgba(0, 0, 0, 0.1);
        -webkit-user-select: none;
        user-select: none;
        touch-action: manipulation;
    }
    
    /* 滚动性能优化 */
    .gallery-item, .news-card, .program-card, .card {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        will-change: transform;
    }
    
    /* 防止横向滚动 */
    .container {
        overflow-x: hidden;
    }
    
    /* 移动端字体渲染优化 */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
    
    /* 移动端图片优化 */
    img {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    /* 改善移动端滚动 */
    html {
        -webkit-overflow-scrolling: touch;
        overflow-scrolling: touch;
    }
}

/* 主页横幅 */
.hero {
    margin-top: 65px;
    padding: 80px 0;
    background: #000000;
    color: white;
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="0,0 1000,0 1000,100 0,80"/></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    white-space: nowrap;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-family: 'Inter', sans-serif;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--highlight-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.hero-placeholder {
    width: 100%;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-placeholder span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
}

/* 通用区块样式 */
section {
    min-height: 100vh;
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-style: italic;
}

/* 关于我们 */
.about {
    background: var(--background-secondary);
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--background-primary);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-4px) rotateX(2deg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* 项目介绍 */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
}

.program-card {
    background: var(--background-primary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.program-card:hover {
    transform: translateY(-6px) rotateY(2deg);
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.program-image {
    height: 250px;
    background: var(--gradient-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.program-card:hover .program-image img {
    transform: scale(1.05) rotateZ(1deg);
    filter: brightness(1.1) saturate(1.2);
}

.image-placeholder {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 10px;
    color: var(--text-secondary);
    font-weight: 500;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.program-content {
    padding: 2rem;
}

.program-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.program-content > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.program-content ul {
    list-style: none;
}

.program-content li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.program-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* 资讯中心 */
.news {
    background: var(--background-secondary);
}

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

.news-card {
    background: var(--background-primary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.news-card:hover {
    transform: translateY(-4px) perspective(1000px) rotateX(5deg);
    box-shadow: 0 12px 45px rgba(0,0,0,0.18);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-image {
    height: 200px;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.08);
    filter: brightness(1.1) contrast(1.1);
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.news-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0.5rem 0 1rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.news-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--primary-dark);
}

.news-more {
    text-align: center;
}

/* 校园风采 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.02);
}

.gallery-item .image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

/* 招生信息 */
.admission {
    background: var(--gradient-hero);
    color: white;
    padding: 100px 0;
}

.admission .section-header h2,
.admission .section-header p {
    color: white;
}

.admission-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.admission-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.admission-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
}

.admission-card.highlight {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.5);
}

.admission-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.admission-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.admission-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.admission-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.admission-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 1.1rem;
}

/* 联系我们 */
.contact {
    background: var(--background-accent);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    font-size: 1.5rem;
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}



/* 页脚 */
.footer {
    background: var(--background-dark);
    color: white;
    padding: 4rem 0 2rem;
}

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

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}



.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* 移动端导航菜单 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 65px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 65px);
        background: var(--navbar-bg-mobile, rgba(0, 0, 0, 0.98));
        backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 3rem 0;
        gap: 2rem;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li a {
        font-size: 1.2rem;
        font-weight: 600;
        padding: 1rem 2rem;
        border-radius: 25px;
        transition: all 0.3s ease;
        background: transparent;
        border: 2px solid transparent;
    }
    
    .nav-menu li a:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }
    
    .nav-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        padding: 5px;
        z-index: 1001;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .theme-toggle {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .nav-actions {
        gap: 1rem;
    }
    
    .nav-logo {
        margin-left: -5px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 0 10px;
    }
    
    .hero-text h1 {
        font-size: 2.8rem;
        white-space: normal;
        line-height: 1.3;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .btn {
        padding: 14px 32px;
        font-size: 1.1rem;
        min-width: 160px;
        touch-action: manipulation;
    }
    
    .hero-img,
    .hero-placeholder {
        height: 280px;
        border-radius: 15px;
        margin-top: 1rem;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
        padding: 0 10px;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .about-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 10px;
    }
    
    .card {
        padding: 2rem 1.5rem;
        margin-bottom: 1rem;
    }
    
    .card-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .card h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 10px;
    }
    
    .program-content {
        padding: 1.5rem;
    }
    
    .program-content ul {
        padding-left: 0;
    }
    
    .program-content li {
        font-size: 0.95rem;
        padding: 0.5rem 0;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 10px;
    }
    
    .news-card {
        border-radius: 15px;
        overflow: hidden;
    }
    
    .news-content {
        padding: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 10px;
    }
    
    .gallery-item {
        border-radius: 15px;
        height: 250px;
    }
    
    .admission-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 10px;
    }
    
    .admission-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1.5rem 0.5rem;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 10px;
    }
    
    .contact-item {
        padding: 1.5rem;
        border-radius: 15px;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 0 10px;
    }
    
    /* 浅色主题下的移动端导航菜单 */
    [data-theme="light"] .nav-menu {
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.2);
    }
    
    [data-theme="light"] .nav-menu li a {
        color: rgba(31, 41, 55, 0.8);
    }
    
    [data-theme="light"] .nav-menu li a:hover {
        color: #1f2937;
        background: rgba(31, 41, 55, 0.1);
        border-color: rgba(31, 41, 55, 0.2);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .nav-container {
        padding: 0 10px;
        height: 60px;
    }
    
    .nav-logo {
        margin-left: 0;
        gap: 10px;
    }
    
    .nav-logo-img {
        height: 32px;
    }
    
    .nav-logo-text h2 {
        font-size: 1.1rem;
        line-height: 1.1;
    }
    
    .nav-logo-text span {
        font-size: 0.6rem;
    }
    
    .theme-toggle {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .nav-toggle {
        padding: 3px;
    }
    
    .nav-toggle span {
        width: 20px;
        height: 2px;
        margin: 2px 0;
    }
    
    .hero {
        padding: 40px 0;
        margin-top: 60px;
    }
    
    .hero-content {
        padding: 0 5px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
        white-space: normal;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 1rem;
        min-width: 140px;
    }
    
    section {
        padding: 50px 0;
    }
    
    .section-header {
        padding: 0 5px;
        margin-bottom: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .card {
        padding: 1.5rem 1rem;
        margin-bottom: 0.8rem;
    }
    
    .card-icon {
        font-size: 2rem;
    }
    
    .card h3 {
        font-size: 1.2rem;
    }
    
    .program-content {
        padding: 1.2rem;
    }
    
    .program-content li {
        font-size: 0.9rem;
        padding: 0.4rem 0;
    }
    
    .news-content {
        padding: 1.2rem;
    }
    
    .news-content h3 {
        font-size: 1.1rem;
    }
    
    .gallery-item {
        height: 200px;
    }
    
    .admission {
        padding: 50px 0;
    }
    
    .admission-content {
        grid-template-columns: 1fr;
        padding: 0 5px;
    }
    
    .admission-card {
        padding: 1.5rem 1rem;
    }
    
    .admission-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        padding: 1rem 0.2rem;
    }
    
    .stat-item {
        padding: 1rem 0.5rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .contact-info-grid {
        padding: 0 5px;
    }
    
    .contact-item {
        padding: 1.2rem;
    }
    
    .contact-icon {
        font-size: 1.8rem;
        width: 35px;
        height: 35px;
    }
    
    .footer-content {
        padding: 0 5px;
    }
    
    .success-grid {
        padding: 0 5px;
    }
    
    .success-content {
        padding: 1.2rem;
    }
    
    .timeline-item {
        font-size: 0.85rem;
    }
    
    .achievement-stats {
        padding: 0 5px;
    }
    
    .achievement-item {
        padding: 1.2rem 0.8rem;
    }
    
    .achievement-number {
        font-size: 1.6rem;
    }
}

/* 现代时尚动画效果 */

/* 现代悬浮动画 - 更微妙的3D效果 */
@keyframes modernFloat {
    0%, 100% { 
        transform: translateY(0px) perspective(400px) rotateX(0deg);
        filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    }
    50% { 
        transform: translateY(-8px) perspective(400px) rotateX(2deg);
        filter: drop-shadow(0 8px 16px rgba(0,0,0,0.15));
    }
}

/* 现代脉动动画 - 带有光效 */
@keyframes modernPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.4);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 0 0 20px rgba(255, 107, 107, 0);
    }
}

/* 现代彩虹动画 - 更柔和的渐变 */
@keyframes modernRainbow {
    0% { color: #ff6b6b; }
    16% { color: #ffa726; }
    33% { color: #ffeb3b; }
    50% { color: #66bb6a; }
    66% { color: #42a5f5; }
    83% { color: #ab47bc; }
    100% { color: #ff6b6b; }
}

/* 隐藏彩蛋 - 点击标题触发彩虹效果 */
.rainbow-text {
    animation: modernRainbow 3s linear infinite;
    text-shadow: 0 0 20px currentColor;
}

/* 卡片图标悬浮效果 */
.card-icon {
    animation: modernFloat 4s ease-in-out infinite;
}

/* 招生卡片高亮效果 */
.admission-card.highlight {
    animation: modernPulse 3s ease-in-out infinite;
}

/* 鼠标悬停时的小彩蛋 */
.easter-egg {
    position: fixed;
    font-size: 2rem;
    pointer-events: none;
    animation: fadeOut 2s ease-out forwards;
    z-index: 9999;
}

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

/* 导航栏logo悬停效果 */
.nav-logo:hover .nav-logo-img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.nav-logo:hover .nav-logo-text h2 {
    animation: modernRainbow 2s linear infinite;
    text-shadow: 0 0 15px currentColor;
    transform: translateY(-1px);
}

/* 统计数字动画 */
.stat-number {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.stat-number:hover {
    transform: scale(1.15) rotateY(15deg);
    text-shadow: 0 0 20px currentColor;
    filter: brightness(1.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 主题切换按钮旋转动画 */
.theme-toggle:active .theme-icon {
    animation: spin 0.5s ease-in-out;
}

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

/* 现代按钮效果 */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: scale(0.98);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* 现代图片悬停效果 */
@keyframes modernGlow {
    0%, 100% { 
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        filter: brightness(1) saturate(1);
    }
    50% { 
        box-shadow: 0 8px 40px rgba(255,107,107,0.3), 0 0 60px rgba(78,205,196,0.2);
        filter: brightness(1.1) saturate(1.2);
    }
}

.gallery-item:hover img {
    animation: modernGlow 2s ease-in-out infinite;
    transform: scale(1.02) rotateZ(0.5deg);
}

/* 鼠标跟随粒子效果 */
.particle {
    position: fixed;
    pointer-events: none;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #fff, transparent);
    border-radius: 50%;
    animation: particleFade 1s ease-out forwards;
    z-index: 9999;
}

@keyframes particleFade {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0);
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-accent);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* 成功案例样式 */
.success-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.success-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.success-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.success-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.success-image {
    height: 250px;
    overflow: hidden;
}

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

.success-card:hover .success-image img {
    transform: scale(1.1);
}

.success-content {
    padding: 2rem;
}

.success-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.success-timeline {
    margin: 1.5rem 0;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.age-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 1rem;
    min-width: 45px;
    text-align: center;
}

.success-highlight {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    margin: 1rem 0;
    font-weight: 600;
    color: var(--primary-color);
}

.success-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 1rem 0;
}

.success-features {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.feature-tag {
    background: var(--accent-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

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

.achievement-item {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.achievement-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.achievement-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: modernFloat 3s ease-in-out infinite;
}

.achievement-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* 响应式设计 - 成功案例 */
@media (max-width: 768px) {
    .success-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 10px;
    }
    
    .success-card {
        margin-bottom: 1.5rem;
        border-radius: 15px;
    }
    
    .success-image {
        height: 200px;
    }
    
    .success-content {
        padding: 1.5rem;
    }
    
    .success-content h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .timeline-item {
        margin-bottom: 0.6rem;
        font-size: 0.9rem;
    }
    
    .age-badge {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
        min-width: 40px;
        margin-right: 0.8rem;
    }
    
    .success-features {
        gap: 0.4rem;
        margin-top: 0.8rem;
    }
    
    .feature-tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }
    
    .achievement-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 10px;
        margin-top: 2rem;
    }
    
    .achievement-item {
        padding: 1.5rem 1rem;
    }
    
    .achievement-icon {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }
    
    .achievement-number {
        font-size: 2rem;
        margin-bottom: 0.4rem;
    }
    
    .achievement-label {
        font-size: 0.85rem;
    }
} 