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

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.8;
    color: #2d3748;
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 50%, #ecfdf5 100%);
}

/* ===== 导航栏 ===== */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    padding: 0 24px;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(37, 99, 235, 0.3);
}

.nav-back {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.nav-back:hover {
    background: rgba(255, 255, 255, 0.35);
}

.nav-title {
    flex: 1;
    text-align: center;
    color: white;
    font-size: 1.3rem;
}

/* ===== 主内容 ===== */
.content {
    margin-top: 60px;
    padding: 40px 20px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Hero区域 ===== */
.school-hero {
    text-align: center;
    padding: 50px 30px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.1);
    border: 2px solid rgba(37, 99, 235, 0.15);
}

.school-hero h2 {
    font-size: 2.2rem;
    color: #1e40af;
    margin-bottom: 8px;
}

.school-subtitle {
    font-size: 1rem;
    color: #3b82f6;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.school-motto {
    display: inline-block;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    padding: 8px 24px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 4px;
    margin-bottom: 25px;
}

.school-intro {
    max-width: 750px;
    margin: 0 auto;
}

.school-intro p {
    color: #4b5563;
    margin-bottom: 12px;
    font-size: 1.05rem;
}

/* ===== 学校名片 ===== */
.info-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
    border: 2px solid rgba(37, 99, 235, 0.1);
}

.info-section h3 {
    font-size: 1.3rem;
    color: #1e40af;
    margin-bottom: 20px;
    text-align: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.info-card {
    text-align: center;
    padding: 20px 12px;
    background: linear-gradient(135deg, #f0f9ff, #eff6ff);
    border-radius: 16px;
    border: 2px solid rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.12);
}

.info-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
}

.info-label {
    display: block;
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 4px;
}

.info-value {
    display: block;
    font-weight: 600;
    color: #1e40af;
    font-size: 0.95rem;
}

/* ===== 校园风光 ===== */
.campus-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
    border: 2px solid rgba(37, 99, 235, 0.1);
}

.campus-section h3 {
    font-size: 1.3rem;
    color: #1e40af;
    margin-bottom: 25px;
    text-align: center;
}

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

.campus-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
}

.campus-card.large {
    grid-column: span 2;
}

.campus-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
}

.campus-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.campus-card.large img {
    height: 300px;
}

.campus-card:hover img {
    transform: scale(1.05);
}

.campus-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px 16px 14px;
    background: linear-gradient(transparent, rgba(30, 64, 175, 0.85));
    color: white;
}

.campus-info h4 {
    font-size: 1.05rem;
    margin-bottom: 3px;
}

.campus-info p {
    font-size: 0.8rem;
    opacity: 0.85;
}

/* ===== 院系设置 ===== */
.dept-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
    border: 2px solid rgba(37, 99, 235, 0.1);
}

.dept-section h3 {
    font-size: 1.3rem;
    color: #1e40af;
    margin-bottom: 10px;
    text-align: center;
}

.dept-intro {
    text-align: center;
    color: #6b7280;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.dept-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.dept-tag {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1e40af;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 0.9rem;
    border: 1px solid rgba(37, 99, 235, 0.15);
    transition: all 0.3s ease;
}

.dept-tag:hover {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

/* ===== 特色专业 ===== */
.major-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
    border: 2px solid rgba(37, 99, 235, 0.1);
}

.major-section h3 {
    font-size: 1.3rem;
    color: #1e40af;
    margin-bottom: 20px;
    text-align: center;
}

.major-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.major-item {
    padding: 22px;
    background: linear-gradient(135deg, #f0f9ff, #eff6ff);
    border-radius: 16px;
    border-left: 4px solid #2563eb;
    transition: all 0.3s ease;
}

.major-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.1);
}

.major-rank {
    display: inline-block;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.major-item h4 {
    color: #1e40af;
    margin-bottom: 6px;
    font-size: 1.1rem;
}

.major-item p {
    font-size: 0.9rem;
    color: #6b7280;
}

/* ===== 学校寄语 ===== */
.school-quote {
    text-align: center;
    padding: 40px 30px;
}

.quote-box {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 20px;
    padding: 40px;
    border: 2px dashed rgba(37, 99, 235, 0.2);
    max-width: 600px;
    margin: 0 auto;
}

.quote-box p {
    font-size: 1.3rem;
    color: #4a6fa5;
    font-style: italic;
    margin-bottom: 15px;
}

.quote-author {
    color: #2563eb;
    font-weight: 600;
}

/* ===== 回到顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 800;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .content {
        padding: 20px 15px;
    }

    .school-hero h2 {
        font-size: 1.6rem;
    }

    .campus-grid {
        grid-template-columns: 1fr;
    }

    .campus-card.large {
        grid-column: span 1;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
