/* ===== 导航栏 ===== */
.navbar {
    background: transparent;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.nav-logo {
    display: flex;
    align-items: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.nav-logo img {
    margin-right: 10px;
    width: 50px;
    height: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.nav-menu a:hover {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    transform: translateY(-2px);
}

.nav-menu a.active {
    color: #4f8ac9;
    font-weight: bold;
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* ===== 按钮 ===== */
.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    display: inline-block;
    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.3), transparent);
    transition: left 0.6s;
}

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

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

.btn-primary:hover {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border: 2px solid transparent;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
}

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

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
    border: 2px solid rgba(255, 255, 255, 0.6);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* ===== 页脚 ===== */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #fff;
}

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

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

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* ===== 静态学院卡片（首页学术研究区域） ===== */
.college-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.college-card:hover {
    transform: translateY(-5px);
}

.college-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

/* 元素配色 */
.anemo { background: linear-gradient(135deg, #74b9ff, #0984e3); }
.geo { background: linear-gradient(135deg, #fdcb6e, #e17055); }
.electro { background: linear-gradient(135deg, #a29bfe, #6c5ce7); }
.dendro { background: linear-gradient(135deg, #55a3ff, #00b894); }
.hydro { background: linear-gradient(135deg, #74b9ff, #0984e3); }
.pyro { background: linear-gradient(135deg, #fd79a8, #e84393); }
.cryo { background: linear-gradient(135deg, #81ecec, #00cec9); }

.college-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.college-card p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* ===== 使命卡片 ===== */
.mission-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.mission-item:hover {
    transform: translateY(-5px);
}

.mission-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #4f8ac9;
}

/* ===== 时间线 ===== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #4f8ac9;
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.year {
    background: #4f8ac9;
    color: white;
    padding: 1rem;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: relative;
    z-index: 2;
}

.timeline .content {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin: 0 2rem;
    flex: 1;
}

.timeline .content h4 {
    color: #4f8ac9;
    margin-bottom: 0.5rem;
}

/* ===== 统计卡片 ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #4f8ac9;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: #555;
}

/* ===== 校园生活卡片 ===== */
.campus-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.campus-item:hover {
    transform: translateY(-5px);
}

.campus-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.campus-item h3 {
    padding: 1rem;
    color: #2c3e50;
    font-size: 1.3rem;
}

.campus-item p {
    padding: 0 1rem 1.5rem;
    color: #7f8c8d;
    line-height: 1.6;
}

/* ===== 联系卡片 ===== */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4f8ac9 0%, #3b6cb4 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-card .contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4f8ac9 0%, #3b6cb4 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
}

.card-header h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

.card-content {
    margin-bottom: 2rem;
}

.contact-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    font-family: 'Courier New', monospace;
}

.contact-desc {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.card-action {
    display: flex;
    justify-content: flex-end;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #4f8ac9 0%, #3b6cb4 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #3b6cb4 0%, #4f8ac9 100%);
}

.contact-btn svg {
    transition: transform 0.3s ease;
}

.contact-btn:hover svg {
    transform: translate(2px, -2px);
}

.email-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.website-card {
    background: linear-gradient(135deg, rgba(118, 75, 162, 0.05) 0%, rgba(102, 126, 234, 0.05) 100%);
}

/* ===== 联系人列表项 ===== */
.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 2.5rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.contact-item .contact-icon {
    font-size: 3rem;
    margin-right: 2rem;
    min-width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4f8ac9 0%, #3b6cb4 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.contact-details h3 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.contact-details p {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* ===== 招生信息卡片 ===== */
.admission-info, .admission-requirements {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
}

.admission-info h3, .admission-requirements h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.admission-info ul, .admission-requirements ul {
    list-style: none;
    margin-bottom: 2rem;
}

.admission-info li, .admission-requirements li {
    padding: 0.5rem 0;
    color: #555;
    font-size: 1.1rem;
}

/* ===== 警告提示 ===== */
.warning-alerts {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: pulse 2s infinite;
}

.alert-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-left-color: #dc2626;
    color: #991b1b;
}

.alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left-color: #f59e0b;
    color: #92400e;
}

/* ===== 表单元素 ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4f8ac9;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: #666;
    font-size: 14px;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal !important;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

.link {
    color: #4f8ac9;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e1e8ed;
}

/* ===== 申请信息卡片 ===== */
.apply-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
    color: #4f8ac9;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-card ul li:last-child {
    border-bottom: none;
}

.info-card p {
    margin: 0.5rem 0;
    color: #555;
}

/* ===== 统计区域（首页） ===== */
.stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stats .stat-item {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stats .stat-item h3 {
    font-size: 2rem;
    color: #4f8ac9;
    margin-bottom: 0.5rem;
}

.stats .stat-item p {
    color: #7f8c8d;
    font-weight: 500;
}

/* ===== 英雄区图片 ===== */
.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ===== 关于区图片 ===== */
.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ===== 电子邮件模板样式 ===== */
.email-template {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid #4f8ac9;
}

.email-template p {
    margin: 0.3rem 0;
}

.email-content {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    margin: 0.5rem 0;
    border: 1px solid #e1e8ed;
    color: #333;
}

/* ===== 加载和错误状态 ===== */
.loading {
    text-align: center;
    padding: 5rem 2rem;
    color: #94a3b8;
    font-size: 1rem;
}

.empty {
    text-align: center;
    padding: 5rem 2rem;
    color: #94a3b8;
    font-size: 1rem;
}

.error-state {
    text-align: center;
    padding: 4rem 2rem;
}
.error-icon { font-size: 3rem; margin-bottom: 0.8rem; }
.error-state h3 { font-size: 1.3rem; color: #1e293b; margin-bottom: 0.3rem; font-family: 'HK4E', 'Microsoft YaHei', sans-serif; }
.error-state p { color: #94a3b8; font-size: 0.9rem; margin-bottom: 1.2rem; }
.btn-retry {
    background: #4f8ac9; color: #fff; border: none;
    padding: 10px 28px; border-radius: 6px; font-size: 0.9rem;
    cursor: pointer; font-family: 'HK4E', 'Microsoft YaHei', sans-serif;
    font-weight: 600; transition: all 0.2s ease;
}
.btn-retry:hover { background: #3b6cb4; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(79,138,201,0.3); }

/* ===== 返回顶部按钮 ===== */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f8ac9 0%, #3b6cb4 100%);
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
}

/* ===== 联系信息标题 ===== */
.contact-info h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}

/* ===== 联系项文本模式 ===== */
.contact-item {
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-item strong {
    color: #4f8ac9;
    display: block;
    margin-bottom: 0.5rem;
}

/* ===== 响应式：导航栏 ===== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.5);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        border-radius: 0 0 10px 10px;
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-menu a {
        font-size: 1.2rem;
        padding: 1rem;
        display: block;
        border-radius: 5px;
        transition: all 0.3s ease;
    }

    .nav-menu a:hover {
        background: rgba(255, 215, 0, 0.1);
        transform: translateY(0);
    }
}

/* ===== 响应式：时间线 ===== */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        flex-direction: row !important;
    }

    .year {
        width: 60px;
        height: 60px;
        font-size: 0.9rem;
    }

    .timeline .content {
        margin-left: 2rem;
        margin-right: 0;
    }
}

/* ===== 响应式：联系卡片 ===== */
@media (max-width: 768px) {
    .contact-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .contact-card .contact-icon {
        width: 50px;
        height: 50px;
    }
}

/* ===== 响应式：联系人项 ===== */
@media (max-width: 768px) {
    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .contact-item .contact-icon {
        margin-right: 0;
        margin-bottom: 1.5rem;
        width: 70px;
        height: 70px;
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .contact-item {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

/* ===== 响应式：表单 ===== */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }
}

/* ===== 响应式：警告 ===== */
@media (max-width: 768px) {
    .warning-alerts {
        margin: 1rem 0;
    }

    .alert {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .alert-icon {
        font-size: 1rem;
    }
}
