/* Reset and Base Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #7BA7C7;
    --secondary-color: #8DB6D6;
    --accent-color: #5287B8;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #EBF4F9;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* 导航栏 */

.navbar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(235, 244, 249, 0.95));
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.4s ease;
    border-bottom: 2px solid rgba(123, 167, 199, 0.1);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><pattern id="grain" width="100" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%237BA7C7" opacity="0.05"/><circle cx="30" cy="5" r="0.8" fill="%238DB6D6" opacity="0.03"/><circle cx="50" cy="15" r="1.2" fill="%235287B8" opacity="0.04"/><circle cx="70" cy="8" r="0.6" fill="%237BA7C7" opacity="0.02"/><circle cx="90" cy="12" r="0.9" fill="%238DB6D6" opacity="0.03"/></pattern></defs><rect width="100" height="20" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.6;
    pointer-events: none;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    position: relative;
    z-index: 2;
}

.nav-logo h1 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoGlow 3s ease-in-out infinite alternate;
}

.nav-logo h1::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.5s ease;
}

.nav-logo:hover h1::after {
    width: 100%;
}


/* Logo图片样式 */

.nav-logo .logo-img {
    height: 50px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.nav-logo:hover .logo-img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    position: relative;
}

.nav-menu::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -10px;
    right: -10px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transform: translateY(-50%);
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.nav-menu:hover::before {
    opacity: 0.6;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 25px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: block;
    text-align: center;
    min-width: 80px;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: left 0.4s ease;
    z-index: -1;
    border-radius: 25px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-menu a:hover::before {
    left: 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(123, 167, 199, 0.3);
}

.nav-menu a.active::before {
    left: 0;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 80%;
}

.nav-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-color);
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
}

.nav-toggle:hover {
    background: rgba(123, 167, 199, 0.1);
    transform: rotate(90deg);
}


/* 中国风装饰元素 */

.navbar::after {
    content: '❋';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.2rem;
    opacity: 0.3;
    animation: chineseRotate 8s linear infinite;
}


/* 左侧装饰 */

.nav-logo::before {
    content: '◈';
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    font-size: 0.8rem;
    opacity: 0.4;
    animation: chineseFloat 4s ease-in-out infinite;
}


/* 菜单项之间的装饰 */

.nav-menu li::before {
    content: '•';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    font-size: 0.6rem;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.nav-menu li:hover::before {
    opacity: 0.6;
    color: var(--primary-color);
}

.nav-menu li:last-child::before {
    display: none;
}


/* 动画效果 */

@keyframes logoGlow {
    0% {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    }
    100% {
        text-shadow: 2px 2px 8px rgba(123, 167, 199, 0.3);
    }
}

@keyframes chineseRotate {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }
    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}

@keyframes chineseFloat {
    0%,
    100% {
        transform: translateY(-50%) translateX(0);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-60%) translateX(2px);
        opacity: 0.6;
    }
}


/* 滚动时的导航栏效果 */

.navbar.scrolled {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(235, 244, 249, 0.98));
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
    border-bottom-color: rgba(123, 167, 199, 0.2);
}


/* 首页区域 */

.hero-section {
    margin-top: 70px;
    padding: 0;
    background: var(--bg-light);
}


/* 轮播图 */

.carousel {
    position: relative;
    width: 100%;
    height: auto;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background-color: #f0f0f0;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: auto;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    top: 0;
    left: 0;
}

.carousel-slide:first-child {
    position: relative;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.15));
    z-index: 1;
    pointer-events: none;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    background: linear-gradient(135deg, rgba(123, 167, 199, 0.9), rgba(141, 182, 214, 0.85));
    padding: 50px 80px;
    border-radius: 15px;
    z-index: 2;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

.carousel-caption h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.carousel-caption p {
    font-size: 1.8rem;
    font-weight: 300;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: all 0.4s ease;
    z-index: 10;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 8px 30px rgba(123, 167, 199, 0.4);
}

.carousel-btn.prev {
    left: 40px;
}

.carousel-btn.next {
    right: 40px;
}

.carousel-indicators {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.indicator.active {
    background: var(--white);
    width: 40px;
    border-radius: 7px;
    box-shadow: 0 3px 10px rgba(255, 255, 255, 0.5);
}


/* 内容区域 */

.content-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.content-section .container {
    text-align: center;
}

.content-main-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

.content-image {
    display: flex;
    justify-content: center;
    width: 100%;
}

.content-image img {
    max-width: 80%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.content-text {
    flex: 1;
}

.content-text h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.content-text p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
}


/* 各个栏目区域 */

.about-section,
.exam-section,
.news-section,
.contact-section {
    padding: 80px 0;
}

.about-section {
    background: var(--white);
}

.exam-section {
    background: var(--bg-light);
}

.news-section {
    background: var(--white);
}

.contact-section {
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.about-content,
.exam-content,
.news-content,
.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
}


/* 页脚 */

.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}


/* 响应式设计 */

@media (max-width: 768px) {
    .navbar::after {
        display: none;
    }
    .nav-logo::before {
        display: none;
    }
    .nav-logo .logo-img {
        height: 40px;
    }
    .nav-menu::before {
        display: none;
    }
    .nav-menu li::before {
        display: none;
    }
    .nav-menu {
        position: fixed;
        top: 75px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 75px);
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(235, 244, 249, 0.98));
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 30px 20px;
        transition: left 0.4s ease;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        border-top: 2px solid rgba(123, 167, 199, 0.1);
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-toggle {
        display: block;
    }
    .nav-menu a {
        margin: 8px 0;
        padding: 15px 25px;
        border-radius: 30px;
        text-align: center;
        background: rgba(255, 255, 255, 0.8);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    }
    .nav-menu a::before {
        border-radius: 30px;
    }
}

.hero-section {
    padding: 0;
}

.carousel {
    width: 100%;
    height: auto;
    border-radius: 0;
}

.carousel-caption {
    padding: 30px 40px;
}

.carousel-caption h2 {
    font-size: 2rem;
}

.carousel-caption p {
    font-size: 1.2rem;
}

.carousel-btn {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.content-main-title {
    font-size: 2rem;
    margin-bottom: 30px;
}

.content-image img {
    max-width: 90%;
}

.section-title {
    font-size: 2rem;
}

@media (max-width: 480px) {
    .carousel {
        width: 100%;
        height: auto;
    }
    .carousel-caption {
        padding: 20px 25px;
    }
    .carousel-caption h2 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    .carousel-caption p {
        font-size: 1rem;
    }
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    .carousel-btn.prev {
        left: 10px;
    }
    .carousel-btn.next {
        right: 10px;
    }
    .indicator {
        width: 10px;
        height: 10px;
    }
    .indicator.active {
        width: 30px;
    }
    .content-main-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    .content-image img {
        max-width: 95%;
    }
}


/* 滚动动画 */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}


/* 平滑滚动 */

html {
    scroll-behavior: smooth;
}


/* 了解梦桥页面样式 */

.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 120px 0 80px;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.9;
}

.courses-section {
    padding: 80px 0;
    background: var(--bg-light);
}


/* 课程标签页 */

.course-tabs {
    margin-bottom: 50px;
}

.tab-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    background: var(--white);
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(123, 167, 199, 0.3);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}


/* 课程网格 */

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}


/* 课程卡片 */

.course-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.course-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(123, 167, 199, 0.9);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    backdrop-filter: blur(5px);
}

.course-type {
    display: block;
    font-size: 0.8rem;
}

.course-age {
    display: block;
    font-size: 0.7rem;
    opacity: 0.9;
    margin-top: 2px;
}

.course-content {
    padding: 25px;
}

.course-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.4;
}

.course-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.course-category {
    color: var(--primary-color);
    background: rgba(123, 167, 199, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.course-info {
    color: var(--text-light);
}

.course-price {
    text-align: center;
}

.price-label {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 10px 25px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.course-card:hover .price-label {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(123, 167, 199, 0.3);
}


/* 响应式设计 */

@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 60px;
    }
    .page-title {
        font-size: 2.5rem;
    }
    .page-subtitle {
        font-size: 1.1rem;
    }
    .tab-nav {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .tab-btn {
        width: 200px;
    }
    .course-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .course-image {
        height: 180px;
    }
    .course-content {
        padding: 20px;
    }
    .course-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }
    .course-grid {
        margin-top: 30px;
    }
    .course-image {
        height: 160px;
    }
    .course-content {
        padding: 15px;
    }
    .course-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}


/* 了解梦桥页面 */

.about-images-section {
    padding: 100px 0 80px;
    background: var(--white);
}

.about-images-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
}

.about-image-item {
    width: 100%;
    text-align: center;
}

.about-image-item img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image-item img:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(123, 167, 199, 0.3);
}


/* 响应式 */

@media (max-width: 768px) {
    .about-images-section {
        padding: 80px 0 60px;
    }
    .about-images-section .container {
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .about-images-section {
        padding: 100px 0 40px;
    }
    .about-images-section .container {
        gap: 20px;
    }
    .about-image-item img {
        border-radius: 8px;
    }
}

.logo-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}


/* 响应式调整 */

@media (max-width: 768px) {
    .logo {
        width: 50px;
        height: 50px;
    }
    .logo-container {
        top: 15px;
        left: 15px;
    }
}


/* 响应式调整 */

@media (max-width: 768px) {
    .logo-container {
        top: 15px;
        left: 15px;
        gap: 8px;
    }
    .logo {
        width: 40px;
        height: 40px;
    }
    .logo-text {
        font-size: 14px;
    }
}


/* 民心备考页面 */

.exam-image-section {
    padding: 100px 0 80px;
    background: var(--white);
}

.exam-image-section .container {
    display: flex;
    justify-content: center;
    max-width: 1000px;
}

.exam-image-item {
    width: 100%;
    text-align: center;
}

.exam-image-item img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.exam-image-item img:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(123, 167, 199, 0.3);
}


/* 民心备考页面响应式 */

@media (max-width: 768px) {
    .exam-image-section {
        padding: 80px 0 60px;
    }
}

@media (max-width: 480px) {
    .exam-image-section {
        padding: 100px 0 40px;
    }
    .exam-image-item img {
        border-radius: 8px;
    }
}


/* 喜报页面 */

.news-banner {
    margin-top: 70px;
    width: 100%;
    overflow: hidden;
}

.news-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.news-images-section {
    padding: 60px 0;
    background: var(--white);
}

.news-main-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.news-images-section .container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    max-width: 1400px;
    overflow-x: auto;
}

.news-images-section .news-image-item {
    flex: 0 0 auto;
    width: calc(20% - 16px);
    min-width: 200px;
}

.news-images-section .news-image-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-images-section .news-image-item img:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(123, 167, 199, 0.3);
}


/* 喜报课程展示区 */

.news-courses-section {
    padding: 60px 0 80px;
    background: var(--bg-light);
}

.news-courses-section .container {
    max-width: 1200px;
}

.news-courses-section .course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}


/* 田字形布局 - 2x2 */

.news-courses-section .course-image {
    width: 100%;
    height: auto;
    min-height: 400px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-courses-section .course-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.news-courses-section .news-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1000px;
    margin: 0 auto;
}

.news-courses-section .course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(123, 167, 199, 0.3);
}

.course-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* 保持1:1比例 */
    background-color: #f5f5f5;
}


/* 喜报页面响应式 */

@media (max-width: 768px) {
    .news-main-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    .news-images-section {
        padding: 50px 0;
    }
    .news-images-section .container {
        gap: 15px;
        padding: 0 15px;
    }
    .news-images-section .news-image-item {
        width: calc(20% - 12px);
        min-width: 150px;
    }
    .news-courses-section {
        padding: 50px 0 60px;
    }
    .news-courses-section .course-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
    }
    .news-courses-section .news-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .news-images-section {
        padding: 40px 0;
    }
    .news-images-section .container {
        gap: 10px;
        padding: 0 10px;
        justify-content: flex-start;
    }
    .news-images-section .news-image-item {
        width: calc(33.33% - 7px);
        min-width: 100px;
    }
    .news-images-section .news-image-item img {
        border-radius: 8px;
    }
    .news-courses-section {
        padding: 40px 0 50px;
    }
    .news-courses-section .course-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .news-courses-section .news-grid-4 {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}