/* 现代化头部导航栏样式 */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    text-align: center;
    border: none;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.site-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 0 16px;
}

.site-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18), 0 0 0 3px rgba(255, 255, 255, 0.55);
    flex: 0 0 auto;
}

.site-brand-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.former-name {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.78rem, 1.7vw, 0.95rem);
    font-weight: 500;
    line-height: 1.4;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.28);
}

.hero-former-name {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 500;
}

header h1 {
    text-align: center;
    margin: 0 0 8px;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: white;
    letter-spacing: 0.05em;
    font-weight: 700;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.slogan {
    color: #ffffff;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    margin-bottom: 20px;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
    font-weight: 500;
}

/* 导航栏样式 */
nav {
    margin-top: 16px;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    gap: 12px;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    display: inline-block;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    font-size: clamp(0.9rem, 2vw, 1rem);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

nav ul li a::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;
}

nav ul li a:hover::before {
    left: 100%;
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

nav ul li a.active {
    background: rgba(255, 255, 255, 0.3);
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    width: 30px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transform: translateX(-50%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 手机端导航栏优化 */
@media (max-width: 768px) {
    header {
        padding: 16px 0;
    }

    header h1 {
        margin-bottom: 6px;
    }

    .slogan {
        margin-bottom: 16px;
        padding: 0 16px;
    }

    nav ul {
        gap: 8px;
        padding: 0 16px;
    }

    nav ul li a {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 12px 0;
    }

    nav ul {
        gap: 6px;
        padding: 0 12px;
    }

    nav ul li a {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* 页脚样式 */
footer {
    background-color: var(--footer-color);
    padding: 1.8em 0;
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9em;
    color: var(--text-color);
}

footer p {
    margin: 5px 0;
}

/* 返回顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    font-size: 20px;
    font-weight: bold;
}

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

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* 通用卡片样式 (用于教师、校区等) */
/* .card {
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 25px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow-color);
} */
/* 上述 .card 相关规则已移至 components.css，此处删除或注释掉 */

/* 按钮样式 */
/* .button-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    font-size: 1em;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(216, 140, 154, 0.3);
}

.button-primary:hover {
    background-color: var(--primary-dark);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 5px 12px rgba(216, 140, 154, 0.4);
    transform: translateY(-2px);
} */
/* 上述 .button-primary 相关规则已移至 components.css，此处删除或注释掉 */

/* 为 slogan 添加样式 - 已移至头部导航栏样式中统一管理 */
/* .slogan {
    text-align: center;
    margin: 10px 0 5px;
    color: #666;
    font-style: italic;
    letter-spacing: 0.5px;
    padding: 0 15px;
    box-sizing: border-box;
} */

@media (max-width: 768px) {
    .site-brand {
        gap: 10px;
    }

    .site-logo {
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 480px) {
    .site-brand {
        gap: 8px;
    }

    .site-logo {
        width: 48px;
        height: 48px;
    }
}
