* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #fafbfc;
}

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

/* 导航栏基础样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    opacity: 1;
    visibility: visible;
}

/* 用于隐藏导航栏的类 */
.navbar.hidden {
    opacity: 0;
    visibility: hidden;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.navbar.scrolled::before {
    opacity: 1;
}

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

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

.logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

/* 透明导航栏的样式 */
#navbar-transparent {
    background: transparent;
}

.nav-link-transparent {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.logo-text-transparent {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 通用Logo和链接样式 */
.logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    transition: all 0.4s ease;
}

.nav-menu a {
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.4s ease;
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 40px;
}

.nav-menu a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 白色导航栏的样式 */
#navbar-solid {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 为白色导航栏的链接应用高优先级样式 */
#navbar-solid .nav-menu a {
    color: #374151; /* 深灰色 */
    text-shadow: none;
}

.logo-text-solid {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8, #06b6d4);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: #3b82f6;
}

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

.language-selector select {
    padding: 8px 12px;
    border: 1px solid rgba(209, 213, 219, 0.5);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.language-selector select:hover {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

/* 透明导航栏的汉堡菜单 */
#navbar-transparent .hamburger span {
    width: 25px;
    height: 2px;
    background: #ffffff; /* 白色 */
    border-radius: 2px;
    transition: 0.3s;
}

/* 白色导航栏的汉堡菜单 */
#navbar-solid .hamburger span {
    width: 25px;
    height: 2px;
    background: #374151; /* 深灰色 */
    border-radius: 2px;
    transition: 0.3s;
}

/* 首屏 - 动态蓝色渐变背景 */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 50%, #1e3a8a 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1), transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1), transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05), transparent 50%);
    animation: floatingLights 20s ease-in-out infinite;
}

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

@keyframes floatingLights {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(1deg); }
    66% { transform: translate(-20px, 20px) rotate(-1deg); }
}

.hero-content {
    max-width: 980px;
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
    padding: 0 20px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 500;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.2); }
    50% { box-shadow: 0 0 40px rgba(255, 255, 255, 0.4); }
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 只对\"爱思大学\"应用特殊样式 */
.university-name {
    background: linear-gradient(45deg, #87ceeb, #4fc3f7, #29b6f6, #0288d1);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 4s ease-in-out infinite;
    position: relative;
    display: inline-block;
    letter-spacing: 0.1em;
}

.university-name::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #87ceeb, #4fc3f7, #29b6f6, #0288d1);
    background-size: 300% 300%;
    animation: gradientFlow 4s ease-in-out infinite;
    filter: blur(8px);
    opacity: 0.3;
    z-index: -1;
}

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

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 48px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 1.1rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin: 48px 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 首屏统计 - 玻璃拟态卡片 */
.hero-stat {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    padding: 32px 24px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

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

.hero-stat:hover::before {
    left: 100%;
}

.hero-stat:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.25);
}

.hero-stat strong {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

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

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 48px 0 32px;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.9);
    color: #3b82f6;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.hero-notice {
    background: rgba(255, 215, 0, 0.15);
    backdrop-filter: blur(10px);
    padding: 16px 24px;
    border-radius: 25px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    font-size: 1rem;
    font-weight: 500;
    animation: notice-bounce 4s ease-in-out infinite;
    display: inline-block;
}

@keyframes notice-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* 关于我们 - 卡片式布局 */
.about {
    padding: 120px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.about h2 {
    text-align: center;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 24px;
    color: #1e293b;
    letter-spacing: -0.02em;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 48px;
    line-height: 1.7;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 64px;
}

@media (max-width: 900px) {
    .about-highlights {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* 关于我们 - 蓝色渐变卡片 */
.highlight-item {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(30, 58, 138, 0.05));
    padding: 40px 32px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.1);
    border: 2px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.highlight-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #3b82f6, #1d4ed8, #06b6d4, #3b82f6);
    border-radius: 26px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.highlight-item:hover::before {
    opacity: 1;
}

.highlight-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.2);
    border-color: transparent;
}

#about .highlight-item:hover p {
    color: #ffffff !important;
}

#about .highlight-item:hover p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.highlight-item h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    line-height: 1.3;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.highlight-item p {
    color: #64748b;
    line-height: 1.6;
    font-size: 1rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 80px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    background: white;
    padding: 40px 24px;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(226, 232, 240, 0.8);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.stat-item p {
    color: #64748b;
    font-weight: 500;
    font-size: 1rem;
}

/* 学术项目 - 现代网格布局 */
.academics {
    padding: 120px 20px;
    background: white;
}

.academics h2 {
    text-align: center;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 64px;
    color: #1e293b;
    letter-spacing: -0.02em;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1400px) {
    .programs-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

@media (max-width: 1200px) {
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .programs-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

/* 学术项目 - 蓝色渐变卡片 */
.program-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03), rgba(30, 58, 138, 0.03));
    padding: 40px 32px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(30, 58, 138, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.program-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.program-card:hover::before {
    opacity: 1;
}

.program-card:hover::after {
    left: 100%;
}

.program-card i {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
    display: block;
}

.program-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1e293b;
    line-height: 1.3;
    word-break: keep-all;
    overflow-wrap: break-word;
    min-height: 2.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    white-space: nowrap;
}

.program-card p {
    color: #64748b;
    line-height: 1.6;
    font-size: 1rem;
}

/* 招生信息 - 双栏布局 */
.admissions {
    padding: 120px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.admissions h2 {
    text-align: center;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 64px;
    color: #1e293b;
    letter-spacing: -0.02em;
}

.admissions-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 1000px;
    margin: 0 auto;
}

/* 招生信息 - 蓝色渐变卡片 */
.admission-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(29, 78, 216, 0.05));
    padding: 48px 40px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.1);
    border: 2px solid rgba(59, 130, 246, 0.15);
    position: relative;
    overflow: hidden;
}

.admission-info::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1), transparent);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

/* 招生日期 - 青蓝色渐变卡片 */
.admission-dates {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.05), rgba(59, 130, 246, 0.05));
    padding: 48px 40px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.1);
    border: 2px solid rgba(6, 182, 212, 0.15);
    position: relative;
    overflow: hidden;
}

.admission-dates::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1), transparent);
    border-radius: 50%;
    transform: translate(-20px, 20px);
}

.admission-info h3,
.admission-dates h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1e293b;
}

.admission-info ul {
    list-style: none;
}

.admission-info li {
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
    color: #64748b;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admission-info li:before {
    content: \"✓\";
    color: #10b981;
    font-weight: bold;
    font-size: 1.2rem;
}

.date-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #f1f5f9;
    color: #64748b;
}

.date-item strong {
    color: #3b82f6;
    font-weight: 700;
}

/* 校园生活 - 卡片网格 */
.campus {
    padding: 120px 20px;
    background: white;
}

.campus h2 {
    text-align: center;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 64px;
    color: #1e293b;
    letter-spacing: -0.02em;
}

.campus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1000px) {
    .campus-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
    }
}

@media (max-width: 650px) {
    .campus-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

/* 校园生活 - 蓝绿渐变卡片 */
.campus-item {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.03), rgba(59, 130, 246, 0.03));
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.08);
    border: 2px solid rgba(6, 182, 212, 0.1);
    transition: all 0.4s ease;
    position: relative;
    transform-style: preserve-3d;
}

.campus-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(59, 130, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.campus-item:hover {
    transform: translateY(-8px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 25px 50px rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.3);
}

.campus-item:hover::before {
    opacity: 1;
}

.campus-emoji {
    font-size: 4rem;
    text-align: center;
    padding: 48px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
}

.campus-emoji::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.campus-item h3 {
    padding: 24px 32px 12px;
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 700;
}

.campus-item p {
    padding: 0 32px 32px;
    color: #64748b;
    line-height: 1.6;
    font-size: 1rem;
}

/* 联系我们 - 现代表单设计 */
.contact {
    padding: 120px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.contact h2 {
    text-align: center;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 64px;
    color: #1e293b;
    letter-spacing: -0.02em;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    background: white;
    padding: 48px 40px;
    border-radius: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
}

.contact-item i {
    font-size: 1.5rem;
    color: #3b82f6;
    width: 24px;
    margin-top: 4px;
}

.contact-item h4 {
    color: #1e293b;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 1.1rem;
}

.contact-item p {
    color: #64748b;
    font-size: 1rem;
}

.contact-form {
    background: white;
    padding: 48px 40px;
    border-radius: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-form input,
.contact-form textarea {
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 1rem;
    background: #fafbfc;
    transition: all 0.3s ease;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form button {
    padding: 16px 32px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-form button::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;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.4);
}

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

/* 页脚 - 现代深色设计 */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 80px 20px 40px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 24px;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.footer-section p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 16px;
}

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

.social-links a {
    color: #94a3b8;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

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

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.footer-section ul li a:hover {
    color: #3b82f6;
}

.footer-section ul li i {
    margin-right: 12px;
    width: 20px;
    color: #64748b;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 32px;
    text-align: center;
    color: #94a3b8;
    max-width: 1200px;
    margin: 0 auto;
}

.disclaimer {
    margin-top: 24px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.2);
    color: #94a3b8;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 400;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 600px;
    line-height: 1.4;
    opacity: 0.8;
}

@keyframes pulse-warning {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.01); opacity: 1; }
}

.disclaimer small {
    font-size: 0.9rem;
    opacity: 0.9;
    display: block;
    margin-top: 8px;
    font-weight: 400;
}

/* 雪花特效 */
#snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -50px;
    color: rgba(255, 255, 255, 0.8);
    user-select: none;
    pointer-events: none;
    animation: snowfall linear infinite;
}

@keyframes snowfall {
    0% {
        transform: translateY(-100px) rotate(0deg);
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 1024px) {
    .nav-menu {
        gap: 24px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .admissions-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    /* 为主要内容区域添加顶部内边距，避免与固定导航栏重叠 */
    .hero {
        padding-top: 120px !important; /* 增加顶部内边距并使用!important确保优先级 */
        padding-bottom: 80px !important; /* 增加顶部内边距并使用!important确保优先级 */
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        padding: 32px 0;
        gap: 32px; /* 增加间距 */
    }
    
    /* 增加移动端菜单项的点击区域 */
    .nav-menu.active a {
        padding: 12px 24px;
        display: inline-block;
        font-size: 1.1rem; /* 稍微增大字体 */
    }
    
    .nav-menu.active {
        left: 0;
        background-color: rgba(255, 255, 255, 0.95);
        width: 100%;
        text-align: center;
        z-index: 999;
        padding: 30px 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }
    
    /* 确保移动端菜单文本颜色保持不变 - 使用更高优先级选择器 */
    #navbar-transparent .nav-menu.active a,
    #navbar-solid .nav-menu.active a {
        color: #333 !important; /* 强制使用深色文本 */
        text-shadow: none !important;
    }
    
    /* 只有logo文本可以有特殊样式 */
    #navbar-transparent .nav-menu.active .logo-text,
    #navbar-solid .nav-menu.active .logo-text {
        background: linear-gradient(135deg, #3b82f6, #1d4ed8, #06b6d4);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .hero-stats {
        gap: 16px;
    }
    
    .hero-stat {
        padding: 24px 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.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:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
    
    .hero-notice {
        font-size: 0.9rem;
        padding: 12px 20px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .about,
    .academics,
    .admissions,
    .campus,
    .contact {
        padding: 80px 16px;
    }
    
    .highlight-item,
    .admission-info,
    .admission-dates,
    .contact-info,
    .contact-form {
        padding: 32px 24px;
    }
    
    .highlight-item h4 {
        font-size: 1.1rem;
        line-height: 1.4;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .program-card h3 {
        font-size: 1.3rem;
        line-height: 1.4;
        min-height: 3rem;
        padding: 0 8px;
    }
    
    .program-card {
        padding: 32px 24px;
    }
    
    .disclaimer {
        margin: 24px 16px 0;
        padding: 16px 24px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* --- Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 37, 73, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    text-align: center;
    max-width: 450px;
    width: 90%;
    transform: translateY(-20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-content h2 {
    margin-top: 0;
    font-size: 2rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(173, 216, 230, 0.7);
    font-family: 'Merriweather', serif;
    font-weight: 700;
}

.modal-content p {
    margin-bottom: 25px;
    color: #e0f2fe; /* Light blue text */
    line-height: 1.6;
    font-size: 1.1rem;
}

.modal-close-btn {
    background: linear-gradient(145deg, #3b82f6, #1d4ed8);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modal-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}