/* new.css */
.section-title {
    text-align: center;
    margin: 40px 0 30px;
}

.section-title h2 {
    font-size: 36px;
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
    color: #222;
}

.section-title h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: var(--primary-color);
}

.section-title p {
    margin-top: 20px;
    color: var(--gray-dark);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 18px;
}

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

.mt-40 {
    margin-top: 40px;
}

/* 轮播图 */
.banner {
    width: 100%;
    height: 600px;
    overflow: hidden;
    position: relative;
}

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

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

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 轮播图文字叠加 */
.banner-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
    width: 80%;
    max-width: 800px;
}

.banner-caption h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-caption p {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.banner-caption .btn {
    margin: 0 10px;
}

/* 轮播图遮罩 */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

/* 学校优势 */
.advantages {
    padding: 40px 0;
    background-color: var(--gray-light);
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.advantage-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background-color: rgba(230, 57, 70, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary-color);
}

.advantage-title {
    font-size: 22px;
    margin-bottom: 15px;
    color: #222;
}

.advantage-desc {
    color: var(--gray-dark);
    font-size: 16px;
}

/* 热门专业 */
.subjects {
    padding: 40px 0;
    background-color: var(--white);
}

.subject-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.subject-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.subject-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.subject-img {
    height: 220px;
    overflow: hidden;
}

.subject-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.subject-card:hover .subject-img img {
    transform: scale(1.05);
}

.subject-content {
    padding: 25px;
}

.subject-title {
    font-size: 22px;
    margin-bottom: 15px;
    color: #222;
}

.subject-desc {
    color: var(--gray-dark);
    margin-bottom: 20px;
    font-size: 16px;
}

.subject-meta {
    display: flex;
    align-items: center;
    color: var(--gray-dark);
    font-size: 14px;
}

.subject-meta span {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.subject-meta i {
    margin-right: 5px;
    color: var(--primary-color);
}

/* 校园环境 */
.environment {
    padding: 40px 0;
    background-color: var(--gray-light);
}

.environment-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.env-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    height: 220px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.env-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.env-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.env-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: flex-end;
}

.env-item:hover .env-overlay {
    opacity: 1;
}

.env-title {
    color: var(--white);
    padding: 20px;
    font-size: 18px;
    width: 100%;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.env-item:hover .env-title {
    transform: translateY(0);
}

/* 招生计划 */
.admissions {
    padding: 40px 0;
    background-color: var(--white);
}

.admission-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 40px;
    box-shadow: var(--shadow);
    border-radius: 12px;
    overflow: hidden;
}

.admission-table thead {
    background-color: var(--primary-color);
    color: var(--white);
}

.admission-table th,
.admission-table td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid var(--gray-medium);
}

.admission-table th {
    font-weight: 600;
    font-size: 16px;
}

.admission-table tr:last-child td {
    border-bottom: none;
}

.admission-table tr:nth-child(even) {
    background-color: var(--gray-light);
}

.admission-table .program-name {
    display: flex;
    align-items: center;
}

.admission-table .program-name i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 24px;
}

/* 就业保障 */
.employment {
    padding: 40px 0;
    background-color: var(--gray-light);
}

.employment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.job-item {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.job-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.job-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: rgba(230, 57, 70, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary-color);
}

.job-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: #222;
}

.job-desc {
    color: var(--gray-dark);
    font-size: 16px;
}

/* 新闻资讯 */
.news {
    padding: 40px 0;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.news::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.03) 0%, rgba(181, 23, 158, 0.03) 100%);
    z-index: 0;
}

.news .container {
    position: relative;
    z-index: 1;
}

/* 新闻分类模块容器 */
.news-category-group {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 30px;
    align-items: stretch;
    margin-bottom: 40px;
}

/* 新闻卡片组 */
.news-card-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.news-main {
    margin-top: 30px;
}

.news-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: rgba(230, 57, 70, 0.2);
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.news-card:hover::before {
    transform: scaleX(1);
}

.news-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img img {
    transform: scale(1.05);
}

.news-content {
    padding: 25px;
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    color: var(--gray-dark);
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.news-card:hover .news-date {
    color: var(--primary-color);
}

.news-date i {
    color: var(--primary-color);
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.news-card:hover .news-date i {
    transform: rotateY(180deg);
}

.news-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: #222;
    transition: all 0.3s ease;
    font-weight: 600;
    line-height: 1.5;
}

.news-card:hover .news-title {
    color: var(--primary-color);
    transform: translateX(5px);
}

.news-desc {
    color: var(--gray-dark);
    margin-bottom: 20px;
    font-size: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.7;
    transition: color 0.3s ease;
    flex-grow: 1;
}

.news-card:hover .news-desc {
    color: #555;
}

.news-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 6px;
    background-color: rgba(230, 57, 70, 0.05);
    margin-top: auto;
    width: fit-content;
}

.news-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.news-more:hover {
    color: var(--white);
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

.news-more:hover i {
    transform: translateX(5px);
}

/* 新闻侧边栏 */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-category {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    padding: 25px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.news-category:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(230, 57, 70, 0.1);
}

.category-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: #222;
    position: relative;
    padding-bottom: 10px;
    font-weight: 600;
}

.category-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    transition: width 0.3s ease;
}

.news-category:hover .category-title::after {
    width: 60px;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-left: 20px;
}

.category-list li:last-child {
    margin-bottom: 0;
}

.category-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-color);
    transition: transform 0.3s ease;
}

.category-list li:hover::before {
    transform: scale(1.5);
}

.category-list li a {
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 5px 0;
}

.category-list li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.category-list li a span {
    flex-grow: 1;
    transition: all 0.3s ease;
}

.category-list li a:hover span {
    color: var(--primary-color);
}

.category-list li a .date {
    color: var(--gray-dark);
    font-size: 14px;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.category-list li a:hover .date {
    color: var(--primary-color);
}

/* 交通指南 */
.location {
    padding: 40px 0;
    background-color: var(--white);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.location-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 400px;
    background-color: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #222;
}

.location-address {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-medium);
}

.location-address p {
    font-size: 18px;
    margin-bottom: 10px;
}

.location-guide {
    margin-bottom: 20px;
}

.location-guide h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.location-guide ul {
    list-style: none;
}

.location-guide li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.location-guide li i {
    color: var(--primary-color);
    margin-right: 10px;
    margin-top: 5px;
}

/* 联系我们 */
.contact {
    padding: 40px 0;
    background-color: var(--gray-light);
}

.contact-container {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 50px;
    text-align: center;
}

.contact-title {
    font-size: 28px;
    margin-bottom: 15px;
    color: #222;
}

.contact-desc {
    color: var(--gray-dark);
    margin-bottom: 40px;
    font-size: 18px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    color: #333;
    font-size: 18px;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 24px;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

/* 文章内容页特有样式 */
/* 注：容器、标题、元数据等布局样式已改为 Tailwind CSS，以下仅保留文章内容内部的样式 */

.article-content p {
    /* margin-bottom: 20px; */
    /* line-height: 1.8; */
    text-align: justify;
}

.article-content h2 {
    font-size: 24px;
    color: #222;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
    position: relative;
}

.article-content h2::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
}

.article-content h3 {
    font-size: 20px;
    color: #222;
    margin: 25px 0 15px;
}

.article-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 30px auto;
    display: block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: auto !important;
}

.article-content .img-caption {
    text-align: center;
    font-size: 14px;
    color: var(--gray-dark);
    margin-top: -25px;
    margin-bottom: 30px;
    font-style: italic;
}

.article-content ul,
.article-content ol {
    margin: 20px 0 20px 30px;
}

.article-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.article-content ul li {
    position: relative;
    padding-left: 20px;
}

.article-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin: 25px 0;
    background-color: var(--gray-light);
    border-radius: 0 6px 6px 0;
}

.article-content strong {
    color: var(--primary-color);
}

.article-content a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.3s;
}

.article-content a:hover {
    color: var(--primary-dark);
}


/* 上一篇下一篇样式已改为 Tailwind CSS */
/* 相关文章样式已改为 Tailwind CSS */
/* 侧边栏样式已改为 Tailwind CSS */
/* 热门文章样式已改为 Tailwind CSS */

/* 优化后的咨询表单 */
.enroll-form {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.enroll-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.animate-pulse {
    animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.animate-zoom-in-out {
    animation: zoomInOut 2s ease-in-out infinite;
}

@keyframes zoomInOut {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

/* 响应式调整 */
@media screen and (max-width: 1200px) {
    .container {
        width: 100%;
    }
}

@media screen and (max-width: 992px) {

    .advantage-grid,
    .employment-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .subject-grid {
        grid-template-columns: 1fr;
    }

    .news-category-group {
        grid-template-columns: 1fr;
    }

    .news-card-group {
        grid-template-columns: 1fr;
    }

    .environment-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .location-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-info-top {
        gap: 15px;
        flex-wrap: wrap;
    }

    .nav-list li {
        margin-left: 20px;
    }

    .banner {
        height: 500px;
    }

    .banner-caption h2 {
        font-size: 36px;
    }

    .banner-caption p {
        font-size: 18px;
    }

    /* 文章内容区域响应式已由 Tailwind CSS 处理 */
}

@media screen and (max-width: 768px) {
    .header-top .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .contact-info-top {
        gap: 10px;
        font-size: 14px;
        width: 100%;
        justify-content: space-between;
    }

    .social-links {
        gap: 15px;
        font-size: 14px;
        width: 100%;
        justify-content: space-between;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list li {
        margin: 0;
        padding: 0 20px;
    }

    .nav-list a {
        padding: 12px 0;
    }

    .menu-toggle {
        display: block;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .banner {
        height: 400px;
    }

    .banner-caption h2 {
        font-size: 28px;
    }

    .banner-caption p {
        font-size: 16px;
    }

    .advantage-grid,
    .subject-grid,
    .environment-gallery,
    .employment-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .env-item {
        height: 200px;
    }

    /* 文章内容响应式调整 */
    .article-content {
        /* padding: 20px; */
    }

    .article-content h2 {
        font-size: 22px;
    }

    .article-content h3 {
        font-size: 18px;
    }
}

@media screen and (max-width: 576px) {
    .banner {
        height: 300px;
    }

    .banner-caption h2 {
        font-size: 24px;
    }

    .banner-caption p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .banner-caption .btn {
        padding: 10px 20px;
        font-size: 14px;
        margin: 0 5px;
    }
}