/* ==================== 石家庄金石中学 - 全站样式 ==================== */

/* --- 基础重置 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: #333;
    line-height: 1.8;
    background: #efefef;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: #9d0105;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- 顶部工具栏 --- */
.top-bar {
    background: #9d0105;
    color: #fff;
    height: 36px;
    line-height: 36px;
    font-size: 12px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left span {
    margin-right: 20px;
}

.top-bar-right a {
    color: #fff;
    margin-left: 15px;
}

.top-bar-right a:hover {
    color: #ffd700;
}

/* --- 中英文切换按钮 --- */
.lang-toggle {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    padding: 2px 10px;
    font-size: 12px;
    line-height: 1.6;
    cursor: pointer;
    margin-right: 15px;
    font-family: inherit;
    font-weight: bold;
    transition: all 0.3s ease;
    vertical-align: middle;
}

.lang-toggle:hover {
    background: #ffd700;
    color: #9d0105;
    border-color: #ffd700;
}

/* --- 导航头部 --- */
.header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 56px;
    height: 56px;
    background: #9d0105;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: -1px;
    flex-shrink: 0;
}

.logo-text h1 {
    font-size: 24px;
    color: #9d0105;
    font-weight: bold;
    line-height: 1.3;
}

.logo-text p {
    font-size: 12px;
    color: #999;
    letter-spacing: 0.5px;
}

/* --- 主导航 --- */
.nav {
    display: flex;
    align-items: center;
}

.nav > li {
    position: relative;
}

.nav > li > a {
    display: block;
    padding: 0 18px;
    height: 90px;
    line-height: 90px;
    font-size: 16px;
    color: #333;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.nav > li > a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: #9d0105;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav > li > a:hover,
.nav > li.active > a {
    color: #9d0105;
}

.nav > li > a:hover::after,
.nav > li.active > a::after {
    width: 60%;
}

.nav > li.highlight > a {
    color: #9d0105;
    font-weight: bold;
}

.nav > li.highlight > a::after {
    background: #9d0105;
}

/* --- 下拉菜单 --- */
.nav > li.has-dropdown {
    position: relative;
}

.nav > li.has-dropdown > a::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #9d0105;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav > li.has-dropdown:hover > a::before {
    transform: scaleX(1);
}

.dropdown {
    position: absolute;
    top: 90px;
    left: 0;
    min-width: 180px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    border-radius: 0 0 6px 6px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav > li.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.dropdown li:last-child a {
    border-bottom: none;
}

.dropdown li a:hover {
    background: #9d0105;
    color: #fff;
    padding-left: 25px;
}

/* --- 轮播图 --- */
.banner {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #9d0105;
}

.banner-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide-content {
    text-align: center;
    color: #fff;
    z-index: 2;
    padding: 0 20px;
}

.banner-slide-content h2 {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    letter-spacing: 2px;
}

.banner-slide-content p {
    font-size: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    margin-bottom: 25px;
}

.banner-slide-content .btn {
    display: inline-block;
    padding: 12px 36px;
    background: #fff;
    color: #9d0105;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.banner-slide-content .btn:hover {
    background: #ffd700;
    color: #9d0105;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.banner-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.banner-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dots .dot.active {
    background: #fff;
    width: 30px;
    border-radius: 6px;
}

/* Banner backgrounds */
.bg-slide-1 {
    background: linear-gradient(135deg, #9d0105 0%, #c91515 50%, #9d0105 100%);
}

.bg-slide-2 {
    background: linear-gradient(135deg, #6b0000 0%, #9d0105 50%, #6b0000 100%);
}

.bg-slide-3 {
    background: linear-gradient(135deg, #7a0000 0%, #b00606 50%, #7a0000 100%);
}

/* --- 通用区块标题 --- */
.section {
    padding: 50px 0;
    background: #fff;
}

.section.gray {
    background: #efefef;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    color: #9d0105;
    font-weight: bold;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #9d0105;
}

.section-header p {
    margin-top: 10px;
    color: #999;
    font-size: 14px;
    letter-spacing: 1px;
}

/* --- 双栏区块 --- */
.dual-section {
    display: flex;
    gap: 30px;
}

.dual-section .col {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.dual-section .col-header {
    background: #9d0105;
    color: #fff;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dual-section .col-header h3 {
    font-size: 18px;
    font-weight: bold;
}

.dual-section .col-header .more {
    color: #fff;
    font-size: 13px;
    opacity: 0.8;
}

.dual-section .col-header .more:hover {
    opacity: 1;
    color: #ffd700;
}

.dual-section .col-body {
    padding: 20px 25px;
}

/* --- 新闻列表 --- */
.news-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
    transition: all 0.3s ease;
}

.news-list li:last-child {
    border-bottom: none;
}

.news-list li:hover {
    padding-left: 8px;
}

.news-list li .news-title {
    flex: 1;
    color: #333;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 15px;
}

.news-list li:hover .news-title {
    color: #9d0105;
}

.news-list li .news-date {
    color: #999;
    font-size: 12px;
    white-space: nowrap;
}

/* --- 内容卡片 --- */
.content-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

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

.content-card-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.content-card-img .placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: rgba(255, 255, 255, 0.8);
}

.content-card-body {
    padding: 20px 25px;
}

.content-card-body h3 {
    font-size: 20px;
    color: #9d0105;
    margin-bottom: 10px;
    font-weight: bold;
}

.content-card-body p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

.content-card-body .more-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 24px;
    background: #9d0105;
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.content-card-body .more-btn:hover {
    background: #c91515;
    transform: translateY(-2px);
}

/* --- 简介区块 --- */
.intro-section {
    display: flex;
    gap: 40px;
    align-items: center;
}

.intro-section .intro-img {
    flex: 0 0 45%;
    height: 320px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #9d0105, #c91515);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 80px;
}

.intro-section .intro-text {
    flex: 1;
}

.intro-section .intro-text p {
    margin-bottom: 15px;
    color: #555;
    font-size: 15px;
    line-height: 2;
    text-indent: 2em;
}

.intro-section .intro-text .more-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 30px;
    background: #9d0105;
    color: #fff;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.intro-section .intro-text .more-btn:hover {
    background: #c91515;
    box-shadow: 0 5px 15px rgba(26, 60, 122, 0.4);
}

/* --- 特色卡片网格 --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.feature-item .feature-img {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    color: rgba(255, 255, 255, 0.8);
}

.feature-item .feature-body {
    padding: 20px;
}

.feature-item .feature-body h3 {
    font-size: 18px;
    color: #9d0105;
    margin-bottom: 8px;
    font-weight: bold;
}

.feature-item .feature-body p {
    color: #777;
    font-size: 13px;
}

.feature-item .feature-body .more-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 20px;
    border: 1px solid #9d0105;
    color: #9d0105;
    border-radius: 20px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.feature-item .feature-body .more-btn:hover {
    background: #9d0105;
    color: #fff;
}

/* 特色图标背景 */
.bg-blue { background: linear-gradient(135deg, #9d0105, #c91515); }
.bg-red { background: linear-gradient(135deg, #9d0105, #e63950); }
.bg-green { background: linear-gradient(135deg, #1b7a3d, #2d9f52); }
.bg-orange { background: linear-gradient(135deg, #c97800, #e89a30); }
.bg-purple { background: linear-gradient(135deg, #5a2877, #7b3a9e); }
.bg-teal { background: linear-gradient(135deg, #0d6e6e, #1a9e9e); }

/* --- ALEVEL 板块样式 --- */
.alevel-section {
    background: linear-gradient(135deg, #6b0000 0%, #9d0105 50%, #6b0000 100%);
    color: #fff;
    padding: 60px 0;
}

.alevel-section .section-header h2 {
    color: #fff;
}

.alevel-section .section-header h2::after {
    background: #ffd700;
}

.alevel-section .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

.alevel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.alevel-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.alevel-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffd700;
    transform: translateY(-8px);
}

.alevel-card .card-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.alevel-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #ffd700;
    font-weight: bold;
}

.alevel-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.alevel-intro {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 30px;
    border-left: 4px solid #ffd700;
}

.alevel-intro h3 {
    font-size: 24px;
    color: #ffd700;
    margin-bottom: 15px;
    font-weight: bold;
}

.alevel-intro p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 2;
    margin-bottom: 10px;
    text-indent: 2em;
}

.alevel-contact {
    background: rgba(255, 215, 0, 0.15);
    border: 2px solid #ffd700;
    border-radius: 10px;
    padding: 30px 40px;
    text-align: center;
    margin-top: 30px;
}

.alevel-contact h3 {
    font-size: 24px;
    color: #ffd700;
    margin-bottom: 15px;
    font-weight: bold;
}

.alevel-contact .contact-info {
    font-size: 18px;
    color: #fff;
    margin: 10px 0;
}

.alevel-contact .contact-info strong {
    color: #ffd700;
    font-size: 22px;
}

/* --- 页面横幅 --- */
.page-banner {
    height: 280px;
    background: linear-gradient(135deg, #9d0105, #c91515);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1), transparent);
}

.page-banner h2 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-banner p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 2;
}

/* --- 子页面内容 --- */
.page-content {
    background: #fff;
    padding: 40px 0 60px;
}

.page-content .container {
    max-width: 1000px;
}

.article-content h2,
.article-content h3 {
    color: #9d0105;
    margin: 25px 0 15px;
    font-weight: bold;
}

.article-content h2 {
    font-size: 24px;
    border-left: 4px solid #9d0105;
    padding-left: 15px;
}

.article-content h3 {
    font-size: 20px;
    text-align: center;
    color: #9d0105;
    position: relative;
    padding-bottom: 10px;
}

.article-content h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: #9d0105;
}

.article-content p {
    margin-bottom: 15px;
    color: #555;
    font-size: 15px;
    line-height: 2;
    text-indent: 2em;
}

.article-content .text-center {
    text-align: center;
    text-indent: 0;
}

.article-content strong {
    color: #9d0105;
}

/* --- 教师列表 --- */
.teacher-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.teacher-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

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

.teacher-card .teacher-avatar {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #9d0105, #c91515);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: rgba(255, 255, 255, 0.5);
}

.teacher-card .teacher-info {
    padding: 20px;
}

.teacher-card .teacher-info h3 {
    font-size: 20px;
    color: #9d0105;
    margin-bottom: 5px;
    font-weight: bold;
}

.teacher-card .teacher-info .teacher-title {
    font-size: 13px;
    color: #9d0105;
    margin-bottom: 10px;
}

.teacher-card .teacher-info p {
    font-size: 13px;
    color: #777;
    line-height: 1.8;
}

/* --- 校园环境相册 --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 220px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item .gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: rgba(255, 255, 255, 0.6);
}

.gallery-item .gallery-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

/* --- 新闻列表页 --- */
.news-page-list li {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.news-page-list li:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.news-page-list .news-date-box {
    flex: 0 0 80px;
    text-align: center;
    border-right: 1px solid #eee;
    margin-right: 20px;
    padding-right: 20px;
}

.news-page-list .news-date-box .day {
    font-size: 28px;
    color: #9d0105;
    font-weight: bold;
    line-height: 1;
}

.news-page-list .news-date-box .year-month {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.news-page-list .news-info {
    flex: 1;
}

.news-page-list .news-info h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
    font-weight: 500;
}

.news-page-list .news-info h3:hover {
    color: #9d0105;
}

.news-page-list .news-info p {
    font-size: 13px;
    color: #999;
    line-height: 1.6;
}

/* --- 办学特色列表 --- */
.feature-list .feature-row {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    align-items: center;
}

.feature-list .feature-row:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-list .feature-img-box {
    flex: 0 0 40%;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
}

.feature-list .feature-text-box {
    flex: 1;
}

.feature-list .feature-text-box h3 {
    font-size: 22px;
    color: #9d0105;
    margin-bottom: 12px;
    font-weight: bold;
}

.feature-list .feature-text-box p {
    color: #555;
    font-size: 14px;
    line-height: 2;
}

/* --- 九大方案 --- */
.nine-plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.plan-card {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border-top: 4px solid #9d0105;
}

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

.plan-card h3 {
    font-size: 18px;
    color: #9d0105;
    margin-bottom: 10px;
    font-weight: bold;
}

.plan-card p {
    font-size: 13px;
    color: #777;
    line-height: 1.8;
}

/* --- 页脚 --- */
.footer {
    background: #222a35;
    color: rgba(255, 255, 255, 0.7);
    padding: 50px 0 0;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: bold;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: #ffd700;
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-contact .contact-icon {
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom p {
    margin-bottom: 5px;
}

/* --- 二维码 --- */
.qr-codes {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.qr-item {
    text-align: center;
}

.qr-item img {
    width: 90px;
    height: 90px;
    border-radius: 6px;
    background: #fff;
    padding: 5px;
    display: block;
    margin-bottom: 8px;
}

.qr-item span {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.contact-qr-section {
    margin-top: 45px;
}

.contact-qr-section .qr-codes {
    justify-content: center;
    gap: 40px;
    margin-top: 25px;
}

.contact-qr-section .qr-item img {
    width: 150px;
    height: 150px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-qr-section .qr-item span {
    color: #333;
    font-size: 14px;
}

/* --- 返回顶部 --- */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 48px;
    height: 48px;
    background: #9d0105;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
    border: none;
}

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

.back-to-top:hover {
    background: #c91515;
    transform: translateY(-3px);
}

/* --- 响应式 --- */
@media (max-width: 1200px) {
    .container {
        width: 100%;
    }
    
    .nav > li > a {
        padding: 0 12px;
        font-size: 14px;
    }
}

@media (max-width: 992px) {
    .header .container {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav > li > a {
        padding: 0 12px;
        height: 50px;
        line-height: 50px;
    }
    
    .banner {
        height: 300px;
    }
    
    .banner-slide-content h2 {
        font-size: 28px;
    }
    
    .feature-grid,
    .teacher-grid,
    .gallery-grid,
    .alevel-grid,
    .nine-plans {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dual-section {
        flex-direction: column;
    }
    
    .intro-section,
    .feature-list .feature-row {
        flex-direction: column;
    }
    
    .feature-list .feature-row:nth-child(even) {
        flex-direction: column;
    }
    
    .intro-section .intro-img,
    .feature-list .feature-img-box {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .feature-grid,
    .teacher-grid,
    .gallery-grid,
    .alevel-grid,
    .nine-plans {
        grid-template-columns: 1fr;
    }
    
    .banner-slide-content h2 {
        font-size: 22px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
}

/* ==================== 英文版排版适配 ==================== */

/* Logo: 缩小h1字号，隐藏冗余副标题（英文模式下h1和p内容重复） */
.lang-en .logo-text h1 {
    font-size: 18px;
}
.lang-en .logo-text p {
    display: none;
}

/* 导航栏: 英文文字更长，缩小字号和内边距，禁止换行 */
.lang-en .nav > li > a {
    padding: 0 9px;
    font-size: 13px;
    white-space: nowrap;
    letter-spacing: 0;
}

/* 顶部工具栏: 英文地址更长，缩小字号和间距 */
.lang-en .top-bar {
    font-size: 11px;
}
.lang-en .top-bar-left span {
    margin-right: 10px;
    white-space: nowrap;
}
.lang-en .top-bar-right a {
    margin-left: 10px;
}

/* 下拉菜单: 加宽以容纳更长的英文标签 */
.lang-en .dropdown {
    min-width: 200px;
}

/* 轮播图: 英文标题更长，缩小字号 */
.lang-en .banner-slide-content h2 {
    font-size: 30px;
    letter-spacing: 1px;
}
.lang-en .banner-slide-content p {
    font-size: 16px;
}

/* 页面横幅: 英文标题缩小 */
.lang-en .page-banner h2 {
    font-size: 28px;
}

/* 区块标题: 英文缩小 */
.lang-en .section-header h2 {
    font-size: 26px;
}

/* 特色卡片标题: 英文更长，缩小字号 */
.lang-en .feature-item .feature-body h3 {
    font-size: 16px;
}

/* 九大方案卡片标题: 英文更长 */
.lang-en .plan-card h3 {
    font-size: 15px;
}

/* 教师卡片: 英文名和标题适配 */
.lang-en .teacher-card .teacher-info h3 {
    font-size: 18px;
}

/* 页脚联系信息: contact-icon在英文模式下需要更宽 */
.lang-en .footer-contact .contact-icon {
    width: auto;
    min-width: 90px;
    text-align: left;
}

/* 新闻列表标题: 英文更长，保持省略号截断（已有 nowrap + ellipsis） */
.lang-en .news-list li .news-title {
    max-width: 100%;
}

/* 联系卡片标题: 英文更长 */
.lang-en .contact-card .card-title {
    font-size: 15px;
}

/* 文章内容标题: 英文适配 */
.lang-en .article-content h2 {
    font-size: 22px;
}
.lang-en .article-content h3 {
    font-size: 18px;
}

/* 复读部页面局部样式适配 */
.lang-en .fudao-hero h2 {
    font-size: 26px;
    letter-spacing: 1px;
}
.lang-en .fudao-feature h3 {
    font-size: 16px;
}

/* ALEVEL联系区标题适配 */
.lang-en .alevel-contact h3 {
    font-size: 20px;
}
.lang-en .alevel-intro h3 {
    font-size: 20px;
}

/* 英文模式响应式: 更紧凑 */
@media (max-width: 1200px) {
    .lang-en .nav > li > a {
        padding: 0 6px;
        font-size: 12px;
    }
    .lang-en .logo-text h1 {
        font-size: 15px;
    }
    .lang-en .banner-slide-content h2 {
        font-size: 24px;
    }
}

@media (max-width: 992px) {
    .lang-en .nav > li > a {
        padding: 0 10px;
        font-size: 14px;
        height: 50px;
        line-height: 50px;
    }
}
