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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

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



/* ==================== 主内容区 ==================== */
.main-content {
}

/* ==================== 区块标题样式 ==================== */
.section-header {
    padding: 20px 20px 10px 20px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.section-header.light {
    background: #962f32;
    border-bottom: none;
}

.section-header.light .section-title {
    color: #fce2b8;
}

.section-header.light .section-en {
    color: #fce2b8;
    position: relative;
    left: 10px;
    width: 160px;
    bottom: -10px;
}

.section-title-wrap {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-shrink: 0;
    position: relative;
}

.section-title-wrap.center {
    justify-content: center;
}

.section-title {
    font-size: 22px;
    color: #8B1A1A;
    position: relative;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: #8B1A1A;
    border-radius: 2px;
}

.section-header.light .section-title::before {
    background: #fce2b8
}

.section-header.light .yy::before {
    background: #8B1A1A
}

.section-en {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==================== Banner轮播 ==================== */
.hero-section {
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}

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

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

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

.banner-slide img {
    width: 100%;
    height: auto;
    display: block;
}

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

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

.indicator.active {
    background: #8B1A1A;
    transform: scale(1.2);
}

/* ==================== 新闻中心 ==================== */
.news-section {
    background: #fff;
    margin-bottom: 10px;
}

.news-tabs {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 10px;
}

.news-tab {
    padding: 0;
    background: none;
    border: none;
    font-size: 14px;
    color: #8B1A1A;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.news-tab.active {
    color: #8B1A1A;
    font-weight: 600;
}

.news-tab.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: #8B1A1A;
    border-radius: 1px;
}

.news-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #aed2d9;
    text-decoration: none;
    transition: all 0.3s ease;
    /* margin-bottom: 10px;*/
} 

.news-item:active {
    transform: scale(0.98);
    background: #d6eaf3;
}

.news-image {
    width: 100px;
    height: 80px;
    flex-shrink: 0;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.news-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
    margin-bottom: 2px;
}

.news-item:hover .news-item-title {
    color: #8B1A1A;
}

.news-desc {
    font-size: 12px;
    color: #777;
    line-height: 1.4;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 2px;
}

.news-more {
    display: inline-block;
    padding: 2px 10px;
    background: #122aa4;
    color: white;
    border-radius: 15px;
    font-size: 12px;
    align-self: flex-start;
    transition: all 0.3s ease;
}

.news-item:hover .news-more {
    background: #A52A2A;
}

/* 新闻底部导航 */
.news-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding-top: 15px;
}

.news-prev,
.news-next {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
}

.news-prev:hover,
.news-next:hover {
    opacity: 0.7;
}

.news-prev img,
.news-next img {
    width: 100%;
    display: block;
}

.news-page-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 36px;
}

.news-page-info .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #983336;
    transition: all 0.3s ease;
    display: inline-block;
}

.news-page-info .dot.active {
    background: #8B1A1A;
    transform: scale(1.3);
}

/* ==================== 学校简介 ==================== */
.about-section {
    background: #962f32;
    
}

.about-content {
    padding: 10px 20px;
    color: #fce2b8;
    position: relative;
}

.about-subtitle {
    font-size: 16px;
    margin-bottom: 15px;
}

.about-desc {
    font-size: 12px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.btn-about {
    display: inline-block;
    padding: 5px 55px;
    background: #ce8910;
    color: white;
    border-radius: 25px;
    font-size: 14px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.btn-about:hover {
    background: rgba(255, 255, 255, 0.25);
}

.stats-title {
    font-size: 16px;
    color: #fff;
    margin-bottom: 15px;
    text-align: left;
}

.stats-grid {
    display: flex;
    justify-content: space-between;
}

.stat-item {
    text-align: center;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    zoom:0.833;
}

/* ==================== 校长风采与快捷导航 ==================== */
.stats-nav {
    margin-top: 20px;
    
}

.principal-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.principal-text {
    flex: 1;
}

.principal-name-gold {
    font-size: 28px;
    color: #FFD700;
    font-weight: 600;
    margin-bottom: 6px;
    font-family: 'STXingkai', 'KaiTi', '楷体', cursive;
    letter-spacing: 2px;
}

.principal-position {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.principal-photo-large {
    width: 100px;
    height: 130px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.principal-photo-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stats-nav-grid {
    display: flex;
    width: 75%;
    flex-wrap: wrap;
    margin-top:50px;
    padding-top:30px;
}

.stats-nav-img  {
    position: absolute;
    right: 0px;
    z-index: 1;
    bottom: 0px;
}

.stats-nav-img img  {
    width: 280px;
}

.stats-nav-item {
    display: flex;
    align-items: center;
    margin-right: 10px;
    width: 110px;
    margin-bottom: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.stats-nav-item:active {
    transform: scale(0.96);
    background: rgba(255, 255, 255, 0.15);
}

.stats-nav-icon {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #FFD700;
    font-size: 14px;
    margin-right:5px;
}

.stats-nav-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 5;
}

.stats-nav-title {
    font-size: 14px;
    color: #fff;
    font-weight: 500;
}

.stats-nav-en {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    zoom: 0.733;
}


/* ==================== 学校概况 ==================== */
.overview-section {
    background: #962f32;
    padding: 30px 15px;
    margin-bottom: 10px;
}

.overview-container {
    max-width: 1200px;
    margin: 0 auto;
}

.overview-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.overview-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.overview-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
    padding: 18px 10px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    min-height: 100px;
}

.overview-card:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.2);
}

.overview-card .card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-bottom: 8px;
    font-size: 18px;
    color: #FFD700;
}

.overview-card .card-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.overview-card .card-title {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.overview-card .card-en {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.5px;
}

/* 校长照片区 */
.overview-principal {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.principal-photo {
    width: 90px;
    height: 110px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.principal-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.principal-info {
    flex: 1;
}

.principal-name {
    font-size: 18px;
    font-weight: 600;
    color: #FFD700;
    margin-bottom: 4px;
}

.principal-title {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

@media (min-width: 768px) {
    .overview-content {
        flex-direction: row;
        align-items: stretch;
    }

    .overview-cards {
        flex: 1;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 12px;
    }

    .overview-principal {
        width: 220px;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 20px 15px;
    }

    .principal-photo {
        width: 120px;
        height: 150px;
    }
}

/* ==================== 师资力量 ==================== */
.teacher-section {
    background: #fff;
    margin-bottom: 10px;
    padding-bottom: 20px;
}

.teacher-tabs {
    display: flex;
    gap: 20px;
    align-items: center;
}

.teacher-tab {
    padding: 6px 0px;
    background: none;
    border: none;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.teacher-tab.active {
    color: #8B1A1A;
    font-weight: 500;
}

.teacher-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #8B1A1A;
}

.teacher-content {
    overflow: hidden;
}

.teacher-slider {
    display: flex;
    transition: transform 0.3s ease;
}

.teacher-card {
    background: #ebe6cb;
    min-width: 90%;
    padding: 20px 15px 0 15px;
    margin: 0 5%;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    height: 260px;
}

.teacher-photo {
    width: 160px;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.teacher-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teacher-info {
    flex: 1;
}

.teacher-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.teacher-subtitle {
    font-size: 14px;
    color: #8B1A1A;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.teacher-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.btn-view-detail {
    display: inline-block;
    padding: 4px 26px;
    background: #ce8910;
    color: white;
    border-radius: 20px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.teacher-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.teacher-prev,
.teacher-next {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.teacher-prev img,
.teacher-next img {
    width: 100%;
    
}

.teacher-indicator {
    width: 8px;
    height: 8px;
    background: #ddd;
    border-radius: 50%;
}

/* ==================== 招生专栏 ==================== */
.admission-section {
    background-image: url('../image/m_pg.png');
    padding-bottom: 30px;
}

.admission-content {
    padding: 0 15px;
}

.form-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 20px;
    color: white;
}

.form-header .divider {
    color: #931d22;
    font-weight: bold;
}

.form-title {
    font-size: 16px;
    font-weight: 600;
    color: #931d22;
}

.form-en {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

/* 预约登记表单 */
.registration-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    margin-bottom: 20px;
}

.registration-form .form-header {
    color: #333;
    margin-bottom: 20px;
    align-items: flex-end;
}

.registration-form .form-en {
    color: #999;
}

.admission-form .form-group {
    margin-bottom: 15px;
}

.admission-form .form-group.inline {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    background: #f8f8f8;
    padding: 0 15px;
    transition: all 0.3s ease;
}

.admission-form .form-group.inline:focus-within {
    border-color: #8B1A1A;
    background: white;
}

.admission-form .form-group.inline label {
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 6px;
}

.admission-form .form-group.inline input,
.admission-form .form-group.inline textarea {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 0;
    font-size: 12px;
    outline: none;
    width: 100%;
}

.admission-form textarea {
    resize: none;
}

.btn-submit {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #8B1A1A 0%, #A52A2A 100%);
    color: white;
    border: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* 招生简章 */
.brochure-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
}

.brochure-card {
    display: flex;
    gap: 15px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.brochure-image {
    width: 100px;
    flex-shrink: 0;
}

.brochure-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 招生简章 - 图2横向卡片样式 */
.brochure-card-v2 {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f7f7f7;
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
}

.brochure-info {
    flex: 1;
    min-width: 0;
}

.brochure-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #8B1A1A;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.brochure-desc {
    font-size: 12px;
    color: #555;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: justify;
}

.brochure-add-btn {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #8B1A1A;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.brochure-add-btn:active {
    transform: scale(0.92);
    opacity: 0.9;
}


/* ==================== 动画效果 ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-item,
.teacher-card,
.stat-item {
    animation: fadeInUp 0.5s ease forwards;
}
