/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}
ul,ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.clearfix::after {
    content: "";
    display: block;
    clear: both;
}

/* 全局变量配色 */
:root {
    --main-dark: #a40000;
    --main-blue: #a40000;
    --accent-orange: #ff7b26;
    --light-gray: #f5f7fa;
    --text-gray: #666;
    --text-dark: #222;
    --white: #fff;
    --shadow: 0 4px 18px rgba(0,0,0,0.08);
}
body {
    background-color: var(--light-gray);
    color: var(--text-dark);
    line-height: 1.7;
}
.container {
    width: 92%;
    max-width: 1280px;
    margin: 0 auto;
}
.btn {
    display: inline-block;
    padding: 10px 26px;
    background: var(--accent-orange);
    color: var(--white);
    border-radius: 40px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.btn:hover {
    background: transparent;
    border-color: var(--accent-orange);
    color: var(--accent-orange);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--main-dark);
}

/* 导航栏 */
header {
    background: var(--main-dark);
    position: sticky;
    top: 0;
    z-index: 999;
}
.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 24px;
    font-weight: bold;
}
.logo span {
    color: var(--accent-orange);
}
.nav-list {
    display: flex;
    gap: 40px;
}
.nav-list li a {
    color: rgba(255,255,255,0.85);
    font-size: 16px;
    padding: 8px 0;
    position: relative;
    transition: 0.3s;
}
.nav-list li a.active,
.nav-list li a:hover {
    color: var(--white);
}
.nav-list li a::after {
    content: "";
    width: 0;
    height: 3px;
    background: var(--accent-orange);
    position: absolute;
    bottom: 0;
    left: 0;
    transition: width 0.3s;
}
.nav-list li a.active::after,
.nav-list li a:hover::after {
    width: 100%;
}
.mobile-menu-btn {
    display: none;
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
}

/* Banner轮播 */
.banner {
    width: 100%;
    height: 520px;
    overflow: hidden;
    position: relative;
}
/* 4个item，总宽度400% */
.banner-slide {
    width: 400%;
    height: 100%;
    display: flex;
    transition: transform 0.8s ease-in-out;
}
/* 每项占25%，四张均分 */
.banner-item {
    flex: 0 0 25%;
    width: 25%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}
.banner-item1 {
    background: linear-gradient(rgba(120,0,0,0.2),rgba(120,0,0,0.2)), url(/img/bg1.jpg);
}
.banner-item2 {
    background: linear-gradient(rgba(120,0,0,0.2),rgba(120,0,0,0.2)), url(/img/bg2.jpg);
}
.banner-item3 {
    background: linear-gradient(rgba(120,0,0,0.2),rgba(120,0,0,0.2)), url(/img/bg3.jpg);
}
.banner-text {
    color: var(--white);
    padding-left: 8%;
}
.banner-text h2 {
    font-size: 52px;
    margin-bottom: 16px;
    line-height: 1.3;
}
.banner-text p {
    font-size: 18px;
    margin-bottom: 32px;
    max-width: 550px;
    opacity: 0.95;
}
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    text-align: center;
    line-height: 50px;
    font-size: 22px;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.3s;
    z-index: 10;
}
.banner-arrow:hover {
    background: var(--accent-orange);
}
.arrow-left { left: 30px; }
.arrow-right { right: 30px; }
.banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
}
.dot.active {
    background: var(--accent-orange);
}

/* 通用区块标题 */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}
.section-title h3 {
    font-size: 36px;
    color: var(--main-dark);
    position: relative;
    display: inline-block;
    padding-bottom: 14px;
}
.section-title h3::after {
    content: "";
    width: 70px;
    height: 4px;
    background: var(--accent-orange);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
}
.section-title p {
    color: var(--text-gray);
    margin-top: 12px;
    font-size: 16px;
}

/* ========== Logo ========== */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 24px;
    font-weight: bold;
}
.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}
.logo-text span {
    color: var(--accent-orange);
}

/* 移动端汉堡按钮 纯CSS线条 */
.mobile-menu-btn {
    display: none;
    width: 32px;
    height: 26px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}
.mobile-menu-btn .menu-line {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    display: block;
}
@media screen and (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
}

/* 教学优势区块 */
.advantage {
    padding: 90px 0;
    /*background: linear-gradient(140deg, #f0f4f8 0%, #e8f0f5 100%);*/
    background: var(--white);
}
.adv-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.adv-card {
    background: var(--white);
    padding: 20px 20px;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--main-blue);
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}
.adv-card::before {
    content: "";
    width: 120px;
    height: 120px;
    background: rgba(255,123,38,0.06);
    border-radius: 50%;
    position: absolute;
    right: -40px;
    top: -40px;
}
.adv-card:hover {
    transform: translateY(-8px);
    border-top-color: var(--accent-orange);
}
.adv-icon {
    width: 20px;
    height: 20px;
    background: var(--main-dark);
    color: var(--white);
    text-align: center;
    line-height: 20px;
    font-size: 13px;
    border-radius: 12px;
    margin-bottom: 22px;
    display: inline-block;
}
.adv-card h4 {
    font-size: 18px;
    margin-bottom: 14px;
    color: var(--main-dark);
    display: inline-block;
}
.adv-card p {
    color: var(--text-gray);
    font-size: 15px;
}

/* 公司简介区块 */
.about-short {
    padding: 90px 0;
    background: linear-gradient(140deg, #f0f4f8 0%, #e8f0f5 100%);
    /*background: var(--white);*/
}
.about-short-wrap {
    display: flex;
    align-items: center;
    gap: 50px;
}
.about-short-img {
    width: 50%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.about-short-text {
    width: 50%;
}
.about-short-text h3 {
    font-size: 32px;
    color: var(--main-dark);
    margin-bottom: 20px;
}
.about-short-text p {
    color: var(--text-gray);
    margin-bottom: 18px;
    font-size: 16px;
}



/* 校园环境 */
.env-wrap {
    padding: 90px 0;
    background: linear-gradient(140deg, #f0f4f8 0%, #e8f0f5 100%);
    /*background: var(--white);*/
}
/* 校园环境 轮播外层 */
.env-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.carousel-wrap {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}
.carousel-list {
    display: flex;
    width: 400%; /* 4张图，每张占20% */
    transition: transform 0.5s ease;
}
.carousel-item {
    width: 25%;
}
.carousel-item img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
}
/* 校园环境 预览弹窗样式 */
.img-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
.img-preview-modal.show {
    display: flex;
}
.modal-img {
    max-width: 90%;
    max-height: 90%;
}
.modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    user-select: none;
}
.modal-prev, .modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.8);
    color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
}
.modal-prev { left: 30px; }
.modal-next { right: 30px; }

@media (max-width: 768px) {
    .carousel-item img { height: 200px; }
    .env-section { padding: 50px 0; }
    .section-title h2 { font-size: 26px; }
}

/* 校园环境 左右切换按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.8);
    font-size: 20px;
    color: #1e3a8a;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}
.carousel-btn:hover {
    background: var(--accent-orange);
    color: #fff;
}
.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* 底部缩略图 */
.carousel-thumb {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}
.thumb-item {
    width: 110px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    border: 3px solid transparent;
    transition: all 0.3s;
}
.thumb-item.active {
    opacity: 1;
    border-color: var(--accent-orange);
}
.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (max-width: 768px) {
    .thumb-item { width: 70px; height: 48px; }
}


/* 首页主体：资讯侧边栏布局 */
.main-wrap {
    padding: 90px 0;
    background: var(--white);
}
.home-content {
    display: flex;
    gap: 40px;
}
.news-list-box {
    width: 70%;
}
.sidebar {
    width: 30%;
}
.news-item {
    display: flex;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid #eee;
}
.news-item:last-child { border-bottom: none; }
.news-img {
    padding-top: 10px;
    width: 15%;
    height: auto;
    border-radius: 6px;
    overflow: hidden;
}
.news-text {
    width: 60%;
}
.news-text h4 {
    font-size: 18px;
    margin-bottom: 10px;
    transition: color 0.3s;
}
.news-text h4:hover {
    color: var(--accent-orange);
}
.news-date {
    color: #999;
    font-size: 14px;
    margin-bottom: 10px;
}
.news-desc {
    color: var(--text-gray);
    font-size: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sidebar-card {
    background: var(--light-gray);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
}
.sidebar-card h4 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-orange);
}
.hot-news li {
    padding: 10px 0;
    border-bottom: 1px dashed #a5a4a4;
}
.hot-news li:last-child { border-bottom: none; }
.hot-news a {
    color: var(--text-gray);
    transition: color 0.3s;
}
.hot-news a:hover {
    color: var(--accent-orange);
    padding-left: 6px;
}

.about-banner {
    height: 300px;
    background: linear-gradient(rgba(110,0,0,0.78),rgba(110,0,0,0.78)), url(/img/about.jpg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}
.about-banner h2 {
    font-size: 44px;
    margin-bottom: 10px;
}
.about-bread {
    color: rgba(255,255,255,0.75);
}
.about-detail {
    padding: 90px 0;
}
.about-text-block {
    margin-bottom: 60px;
}
.about-text-block h3 {
    font-size: 28px;
    color: var(--main-dark);
    margin-bottom: 20px;
    border-left: 5px solid var(--accent-orange);
    padding-left: 14px;
}
.about-text-block p {
    color: var(--text-gray);
    font-size: 16px;
    margin-bottom: 16px;
    line-height: 1.8;
}
.contact-box {
    background: var(--main-dark);
    color: var(--white);
    padding: 50px;
    border-radius: 10px;
}
.contact-box h3 {
    font-size: 28px;
    margin-bottom: 30px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}
.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-orange);
    text-align: center;
    line-height: 48px;
    border-radius: 50%;
    font-size: 20px;
}
.contact-info h5 {
    font-size: 18px;
    margin-bottom: 6px;
}
.contact-info p {
    opacity: 0.85;
}


/* 师资团队 */
.teacher-wrap {
    padding: 90px 0;
    /*background: linear-gradient(140deg, #f0f4f8 0%, #e8f0f5 100%);*/
    background: var(--white);
}
.teacher-row {
    display: flex;
    gap: 40px;
    align-items: center;
}
.teacher-left {
    width: 50%;
}
.teacher-left h3 {
    color: var(--main-dark);
    margin-bottom: 20px;
}
.teacher-left p {
    color: var(--text-gray);
    margin-bottom: 20px;
    font-size: 16px;
}
.video-box {
    width: 100%;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}
.video-box video {
    width: 100%;
    display: block;
}
.teacher-right {
    width: 50%;
}


footer {
    background-image: url("/img/footer_bg1.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
    background-color: #660000;
    /* 布局 */
    padding: 70px 0 30px;
    min-height: 420px;
    color: rgba(255,255,255,0.75);
}

.footer-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}
.footer-col h4 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-orange);
    display: inline-block;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a:hover {
    color: var(--accent-orange);
    padding-left: 6px;
}
.footer-col {
    margin: 0 20px;
}
.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 2px solid rgba(255,255,255,0.5);
}
.copyright a:hover {
    color: var(--accent-orange);
}

.news-detial-img {
    width: 80%;
    height: auto;
    margin: 0 auto;
}

/* 禁止任何鼠标点击、hover、拖拽 */
.disable-click {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.6;
}

/*  */
.zgwa {
    display: inline-block;
    width: 14px;
    height: 14px;
    background: url(/img/icon-police.png) no-repeat;
    background-size: 100%;
    margin: 0 3px;
}

/* 响应式适配 */
@media screen and (max-width: 1024px) {
    .adv-wrap { grid-template-columns: repeat(2,1fr); }
    .about-short-wrap { flex-direction: column; }
    .about-short-img,.about-short-text { width: 100%; }
    footer { padding: 50px 0 20px; }
    .contact-info { width: 80%; }
    .footer-col1,.footer-col2 { display: none; }
    .footer-wrap { grid-template-columns: repeat(1, 1fr); }
    .teacher-row { flex-direction: column; gap: 30px; }
    .teacher-left, .teacher-right { width: 100%; }
    .teacher-left h3 { font-size: 22px; text-align: center; }
    .teacher-left p { font-size: 15px; line-height: 1.7; }
}
@media screen and (max-width: 768px) {
    .nav-list {
        position: fixed;
        top: 72px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 72px);
        background: var(--main-dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: left 0.4s;
    }
    .nav-list.show { left: 0; }
    .banner { height: 380px; }
    .banner-text h2 { font-size: 34px; }
    .home-content { flex-direction: column; }
    .news-list-box,.sidebar { width: 100%; }
    .footer-wrap { grid-template-columns: repeat(2,1fr); }
    footer { padding: 50px 0 20px; }
    .contact-info { width: 80%; }
    .footer-col1,.footer-col2 { display: none; }
    .footer-wrap { grid-template-columns: repeat(1, 1fr); }
    .teacher-row { flex-direction: column; gap: 30px; }
    .teacher-left, .teacher-right { width: 100%; }
    .teacher-left h3 { font-size: 22px; text-align: center; }
    .teacher-left p { font-size: 15px; line-height: 1.7; }
}
@media screen and (max-width: 480px) {
    .adv-wrap { grid-template-columns: 1fr; }
    .footer-wrap { grid-template-columns: 1fr; }
    .banner { height: 300px; }
    .banner-text h2 { font-size: 26px; }
    .news-item { flex-direction: column; }
    .news-img { width: 100%; height: auto; }
    .news-text { width: 100%; }
    footer { padding: 50px 0 20px; }
    .contact-info { width: 80%; }
    .footer-col1,.footer-col2 { display: none; }
}

@media screen and (min-width: 769px) and (max-width: 1200px) {
    .teacher-row { gap: 25px; }
    .teacher-left h3 { font-size: 24px; }
}
