/* ===== 绵阳市火炬第一小学 - 紫色主题样式 ===== */

:root {
    --primary: #6f42c1;
    --primary-dark: #5a32a3;
    --primary-light: #8b5fd6;
    --primary-lighter: #e8dff5;
    --primary-bg: #f8f5fc;
    --secondary: #7c4dff;
    --accent: #9c27b0;
    --text-dark: #2d2d3f;
    --text-body: #4a4a5a;
    --text-muted: #8e8ea0;
    --border-color: #e8e0f0;
    --white: #ffffff;
    --bg-light: #f9f7fc;
    --shadow-sm: 0 2px 8px rgba(111, 66, 193, 0.08);
    --shadow-md: 0 4px 20px rgba(111, 66, 193, 0.12);
    --shadow-lg: 0 8px 40px rgba(111, 66, 193, 0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== 字体路径修正 ===== */
@font-face {
    font-family: 'bootstrap-icons';
    src: url('fonts/bootstrap-icons.woff2') format('woff2'),
         url('fonts/bootstrap-icons.woff') format('woff');
}

/* ===== 基础样式 ===== */
* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-body);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

/* ===== 顶部信息栏 ===== */
.top-bar {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: rgba(255,255,255,0.9);
    font-size: 0.85rem;
    padding: 6px 0;
}
.top-bar a { color: rgba(255,255,255,0.9); }
.top-bar a:hover { color: #fff; }

/* ===== 主导航 ===== */
.navbar-school {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 0;
    z-index: 1030;
    border-bottom: 3px solid var(--primary);
}

.navbar-brand {
    padding: 10px 0;
}

.school-logo {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
.brand-main {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 1px;
}
.brand-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar-school .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 18px 16px !important;
    position: relative;
    font-size: 0.95rem;
    transition: var(--transition);
}
.navbar-school .nav-link:hover,
.navbar-school .nav-link.active {
    color: var(--primary);
}
.navbar-school .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
}

.navbar-school .dropdown-menu {
    border: none;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-sm);
    padding: 8px;
    margin-top: 0;
    border-top: 2px solid var(--primary);
}
.navbar-school .dropdown-item {
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.9rem;
    transition: var(--transition);
}
.navbar-school .dropdown-item:hover {
    background: var(--primary-lighter);
    color: var(--primary);
}

.navbar-toggler {
    border: 2px solid var(--primary);
    padding: 6px 10px;
    color: var(--primary);
    font-size: 1.2rem;
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(111,66,193,0.25); }

/* ===== 轮播图 ===== */
.hero-slider {
    position: relative;
    overflow: hidden;
}
.hero-slider .carousel-item img {
    width: 100%;
    height: auto;
    display: block;
}
.hero-slider .carousel-caption {
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    left: 0; right: 0; bottom: 0;
    padding: 40px 20px 30px;
    text-align: left;
}
.hero-slider .carousel-caption h3 {
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}
.hero-slider .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 4px;
    opacity: 0.6;
}
.hero-slider .carousel-indicators button.active { opacity: 1; }

.hero-placeholder {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-light));
    padding: 100px 0;
    color: #fff;
    text-align: center;
}
.hero-placeholder h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    opacity: 0.9;
}
.hero-placeholder h2 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 15px;
}
.hero-placeholder p {
    font-size: 1.2rem;
    opacity: 0.85;
    letter-spacing: 6px;
}

/* ===== 通用板块样式 ===== */
.section-block {
    padding: 60px 0;
}
.bg-light { background: var(--bg-light) !important; }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-lighter);
}
.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    position: relative;
    padding-left: 0;
}
.section-title i {
    color: var(--primary);
}
.section-more {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
    white-space: nowrap;
}
.section-more:hover { color: var(--primary); }

/* ===== 学校简介板块 ===== */
.intro-content {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-body);
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    transition: var(--transition);
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}
.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}
.stat-number span { font-size: 1.2rem; }
.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===== 校长寄语 ===== */
.principal-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}
.principal-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}
.principal-avatar i {
    font-size: 3rem;
    color: #fff;
}
.principal-quote {
    position: relative;
    padding: 0;
    border: none;
    margin: 0;
}
.quote-icon {
    font-size: 3rem;
    color: var(--primary-lighter);
    position: absolute;
    top: -15px;
    left: -10px;
    opacity: 0.6;
}
.principal-quote p {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--text-body);
    position: relative;
    z-index: 1;
}
.read-more {
    color: var(--primary);
    font-weight: 500;
}

/* ===== 新闻动态 ===== */
.news-featured {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    height: 100%;
    transition: var(--transition);
}
.news-featured:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.news-thumb { overflow: hidden; }
.news-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s;
}
.news-featured:hover .news-thumb img { transform: scale(1.05); }
.news-body { padding: 20px; }
.news-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
}
.news-title a {
    color: var(--text-dark);
    font-weight: 600;
}
.news-title a:hover { color: var(--primary); }
.news-summary {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 10px;
}
.news-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.news-meta span { margin-right: 15px; }

.news-list-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}
.news-list-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.news-list-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}
.news-date-box {
    flex-shrink: 0;
    width: 60px;
    text-align: center;
    border-right: 2px solid var(--primary-lighter);
    padding-right: 12px;
}
.news-date-box .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}
.news-date-box .month {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
}
.news-info { flex: 1; min-width: 0; }
.news-info h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    font-weight: 600;
}
.news-info h4 a { color: var(--text-dark); }
.news-info h4 a:hover { color: var(--primary); }
.news-info p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== 特色教育 ===== */
.feature-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px 24px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}
.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-lighter), var(--primary-bg));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}
.feature-icon i {
    font-size: 1.8rem;
    color: var(--primary);
}
.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}
.feature-card:hover .feature-icon i { color: #fff; }

.feature-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.feature-card h4 a { color: var(--text-dark); }
.feature-card h4 a:hover { color: var(--primary); }
.feature-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 15px;
}
.feature-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
}

/* ===== 公示栏 ===== */
.announcement-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
}
.announcement-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
    transform: translateY(-3px);
}
.announcement-image {
    overflow: hidden;
}
.announcement-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.5s;
}
.announcement-card:hover .announcement-image img {
    transform: scale(1.05);
}
.announcement-body {
    padding: 20px;
}
.announcement-body h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.announcement-body h4 a {
    color: var(--text-dark);
}
.announcement-body h4 a:hover {
    color: var(--primary);
}
.announcement-summary {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 10px;
}
.announcement-content {
    font-size: 0.85rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 10px;
}
.announcement-content p {
    margin-bottom: 8px;
}
.announcement-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== 校园图片 ===== */
.gallery-item,
.gallery-card {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border-color);
}
.gallery-item img,
.gallery-card-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.5s;
}
.gallery-item:hover img,
.gallery-card:hover img { transform: scale(1.08); }

.gallery-overlay,
.gallery-card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(111, 66, 193, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: var(--transition);
}
.gallery-item:hover .gallery-overlay,
.gallery-card:hover .gallery-card-overlay { opacity: 1; }
.gallery-overlay i,
.gallery-card-overlay i { font-size: 2rem; margin-bottom: 5px; }
.gallery-overlay span { font-size: 0.85rem; }

.gallery-card-title {
    padding: 10px;
    font-size: 0.85rem;
    text-align: center;
    background: var(--white);
    color: var(--text-body);
}

/* ===== 页面横幅 ===== */
.page-banner {
    --banner-image: url('/assets/images/banners/banner-about.webp');
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(24, 31, 42, 0.78), rgba(24, 31, 42, 0.48) 48%, rgba(24, 31, 42, 0.78)),
        linear-gradient(0deg, rgba(27, 33, 45, 0.2), rgba(27, 33, 45, 0.2)),
        var(--banner-image);
    background-size: cover;
    background-position: center;
    padding: 50px 0;
    text-align: center;
    color: #fff;
}
.page-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
}
.page-banner .container {
    position: relative;
    z-index: 1;
}
.page-banner.banner-about { --banner-image: url('/assets/images/banners/banner-about.webp'); }
.page-banner.banner-principal { --banner-image: url('/assets/images/banners/banner-principal.webp'); }
.page-banner.banner-news { --banner-image: url('/assets/images/banners/banner-news.webp'); }
.page-banner.banner-featured { --banner-image: url('/assets/images/banners/banner-featured.webp'); }
.page-banner.banner-gallery { --banner-image: url('/assets/images/banners/banner-gallery.webp'); }
.page-banner.banner-contact { --banner-image: url('/assets/images/banners/banner-contact.webp'); }
.page-banner.banner-announcements { --banner-image: url('/assets/images/banners/banner-announcements.webp'); }
.page-banner h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.page-banner .breadcrumb {
    background: none;
}
.page-banner .breadcrumb-item a { color: rgba(255,255,255,0.8); }
.page-banner .breadcrumb-item a:hover { color: #fff; }
.page-banner .breadcrumb-item.active { color: rgba(255,255,255,0.6); }
.page-banner .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* ===== 侧边栏 ===== */
.sidebar {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}
.sidebar-title {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    padding: 18px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
}
.sidebar-menu {
    list-style: none;
    padding: 8px;
    margin: 0;
}
.sidebar-menu li a {
    display: block;
    padding: 12px 16px;
    color: var(--text-body);
    border-radius: 6px;
    font-size: 0.95rem;
    transition: var(--transition);
}
.sidebar-menu li a:hover,
.sidebar-menu li.active a {
    background: var(--primary-lighter);
    color: var(--primary);
    font-weight: 500;
}

/* ===== 内容卡片 ===== */
.content-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}
.content-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-lighter);
}
.content-body {
    line-height: 2;
    color: var(--text-body);
}
.content-body p { margin-bottom: 15px; }
.content-body img { border-radius: var(--radius-sm); margin: 10px 0; }

/* ===== 文章列表页 ===== */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.article-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.article-item:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-light);
}
.article-thumb img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}
.article-title {
    font-size: 1.15rem;
    margin-bottom: 8px;
    font-weight: 600;
}
.article-title a { color: var(--text-dark); }
.article-title a:hover { color: var(--primary); }
.article-summary {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 8px;
}
.article-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.article-meta span { margin-right: 15px; }

/* ===== 文章详情页 ===== */
.article-detail-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 15px;
}
.article-detail-meta {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding-bottom: 20px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}
.article-detail-meta span { margin: 0 10px; }
.article-detail-content {
    line-height: 2;
    font-size: 1rem;
}
.article-detail-content p { margin-bottom: 15px; }
.article-detail-content img {
    border-radius: var(--radius-sm);
    margin: 10px 0;
}

.article-nav {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}
.article-nav-link {
    display: block;
    color: var(--text-body);
}
.article-nav-link small {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 3px;
}
.article-nav-link span {
    font-size: 0.9rem;
    font-weight: 500;
}
.article-nav-link:hover { color: var(--primary); }

/* ===== 联系页面 ===== */
.contact-info-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-light);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}
.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}
.contact-icon i {
    font-size: 1.5rem;
    color: #fff;
}
.contact-info-card h5 {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}
.contact-info-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* ===== 分页 ===== */
.pagination .page-link {
    color: var(--primary);
    border-color: var(--border-color);
    border-radius: var(--radius-sm) !important;
    margin: 0 3px;
    padding: 8px 14px;
    font-size: 0.9rem;
}
.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.pagination .page-link:hover {
    background: var(--primary-lighter);
    color: var(--primary);
}

/* ===== 空状态 ===== */
.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}
.empty-state i {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
    opacity: 0.4;
}

/* ===== 页脚 ===== */
.site-footer {
    background: var(--text-dark);
    color: rgba(255,255,255,0.7);
    margin-top: 0;
}
.footer-main { padding: 50px 0 30px; }
.footer-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}
.footer-desc {
    font-size: 0.85rem;
    line-height: 1.8;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    transition: var(--transition);
}
.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-contact li {
    margin-bottom: 10px;
    font-size: 0.85rem;
}
.footer-contact i { color: var(--primary-light); }

.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 15px 0;
}
.footer-bottom p {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

/* ===== 回到顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ===== Bootstrap 覆盖 ===== */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    border-radius: var(--radius-sm);
    padding: 10px 24px;
    font-weight: 500;
    transition: var(--transition);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(111,66,193,0.3);
}
.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    border-radius: var(--radius-sm);
}
.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.badge.bg-danger { font-size: 0.7rem; vertical-align: middle; }

.table { border-color: var(--border-color); }
.table th { background: var(--primary-lighter); color: var(--text-dark); }

/* ===== 动画 ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fadeInUp { animation: fadeInUp 0.6s ease forwards; }

/* ===== 响应式 ===== */
@media (max-width: 991px) {
    .navbar-school .nav-link {
        padding: 12px 16px !important;
        border-bottom: 1px solid var(--border-color);
    }
    .navbar-school .nav-link.active::after { display: none; }

    .hero-placeholder { padding: 60px 0; }
    .hero-placeholder h2 { font-size: 1.6rem; }

    .section-block { padding: 40px 0; }
    .section-title { font-size: 1.3rem; }

    .principal-card { padding: 25px; }
    .page-banner { padding: 35px 0; }
    .page-banner h2 { font-size: 1.4rem; }
}

@media (max-width: 767px) {
    .hero-slider .carousel-caption h3 { font-size: 1rem; }
    .hero-placeholder h1 { font-size: 2.5rem; }
    .hero-placeholder h2 { font-size: 1.3rem; letter-spacing: 2px; }
    .hero-placeholder p { font-size: 0.9rem; letter-spacing: 3px; }
    
    .section-block { padding: 30px 0; }
    .section-header { margin-bottom: 20px; }
    .section-title { font-size: 1.15rem; }
    
    .stat-card { padding: 16px 10px; }
    .stat-number { font-size: 1.5rem; }
    
    .principal-card { padding: 20px; }
    .principal-avatar { width: 70px; height: 70px; }
    .principal-avatar i { font-size: 2rem; }
    
    .news-date-box { width: 50px; }
    .news-date-box .day { font-size: 1.2rem; }
    
    .gallery-item img,
    .gallery-card-img img { height: 120px; }
    
    .content-card { padding: 20px; }
    .article-detail-title { font-size: 1.2rem; }
    
    .footer-main { padding: 30px 0 20px; }
    
    .back-to-top { bottom: 20px; right: 20px; width: 38px; height: 38px; }
}

@media (max-width: 575px) {
    .brand-main { font-size: 1rem; }
    .page-banner { padding: 25px 0; }
    .page-banner h2 { font-size: 1.2rem; }
    .article-item { padding: 16px; }
}
