/* Font Awesome 字体路径覆盖，确保从站点根目录 /webfonts 加载，避免 404 */
@font-face {
    font-family: 'Font Awesome 5 Brands';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../webfonts/fa-brands-400.woff2') format('woff2'),
         url('../webfonts/fa-brands-400.woff') format('woff');
}
@font-face {
    font-family: 'Font Awesome 5 Free';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../webfonts/fa-regular-400.woff2') format('woff2'),
         url('../webfonts/fa-regular-400.woff') format('woff');
}
@font-face {
    font-family: 'Font Awesome 5 Free';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('../webfonts/fa-solid-900.woff2') format('woff2'),
         url('../webfonts/fa-solid-900.woff') format('woff');
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: #f8f9fa; /* 给页面一个浅色底色 */
}

/* 主色调来源于logo，假设是蓝色系 */
:root {
    --primary-color: #2563EB; /* 主要蓝色 */
    --secondary-color: #1E40AF; /* 深蓝色 */
    --accent-color: #3B82F6; /* 亮蓝色 */
    --nav-bg-color: rgba(13, 25, 49, 0.85); /* 深蓝背景 */
    --text-dark: #1a202c;
    --text-light: #4a5568;
    --section-bg-light: #ffffff;
    --section-bg-dark: #111827; /* 深色背景用于对比 */
}

/* --- 导航栏样式 (保留原有，稍作调整) --- */
.navbar {
    background-color: var(--nav-bg-color);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 10px 0;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar-scrolled {
    padding: 8px 0;
    background-color: rgba(13, 25, 49, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
}

.navbar-brand img {
    height: 40px;
    transition: all 0.3s ease;
}

.navbar-scrolled .navbar-brand img {
    height: 36px;
}

.brand-text {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    font-size: 1.5rem;
    margin-left: 10px;
    transition: all 0.3s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar-scrolled .brand-text {
    font-size: 1.3rem;
}

.nav-item {
    position: relative;
    margin: 0 5px;
}

.nav-link {
    font-weight: 600;
    position: relative;
    padding: 10px 0 !important;
    margin: 0 15px;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9) !important;
}

.nav-link:before {
    content: "";
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    bottom: 0;
    left: 50%;
    background-color: var(--accent-color);
    transform: translateX(-50%) scale(0);
    transition: transform 0.3s ease;
}

.nav-link:hover:before,
.nav-item.active .nav-link:before {
    transform: translateX(-50%) scale(1);
}

.nav-item.active .nav-link {
    color: var(--accent-color) !important;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.nav-item:hover .nav-link {
    color: #fff !important;
    transform: translateY(-3px);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.navbar-dark .navbar-toggler {
    border: none;
    outline: none;
    padding: 0;
}

.navbar-dark .navbar-toggler-icon {
    background-image: none;
    position: relative;
    width: 24px;
    height: 17px;
}

.navbar-dark .navbar-toggler-icon:before,
.navbar-dark .navbar-toggler-icon:after,
.navbar-dark .navbar-toggler-icon span {
    width: 100%;
    height: 2px;
    background-color: #fff;
    border-radius: 3px;
    position: absolute;
    left: 0;
    transition: all .3s ease;
}

.navbar-dark .navbar-toggler-icon:before,
.navbar-dark .navbar-toggler-icon:after {
    content: '';
}

.navbar-dark .navbar-toggler-icon:before {
    top: 0;
}

.navbar-dark .navbar-toggler-icon span {
    top: 50%;
    transform: translateY(-50%);
}

.navbar-dark .navbar-toggler-icon:after {
    bottom: 0;
}

.navbar-dark .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:before {
    transform: translateY(7px) rotate(45deg);
}

.navbar-dark .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:after {
    transform: translateY(-7px) rotate(-45deg);
}

.navbar-dark .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon span {
    opacity: 0;
}

@media (max-width: 991px) {
    .navbar-collapse {
        background-color: rgba(13, 25, 49, 0.98);
        padding: 20px;
        border-radius: 10px;
        margin-top: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    }

    .navbar-nav .nav-item {
        margin: 5px 0;
    }

    .navbar-brand img {
        height: 36px;
    }

    .brand-text {
        font-size: 1.3rem;
    }
}

@media (max-width: 575px) {
    .navbar-brand img {
        height: 32px;
    }

    .brand-text {
        font-size: 1.2rem;
    }
}

/* --- 增强: Hero Banner 样式 --- */
.hero-section {
    padding: 180px 0 140px; /* 增加上下内边距以提供更大的视觉空间 */
    min-height: 70vh; /* 增加高度 */
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 70%, #2563EB 100%); /* 更强的渐变效果 */
    color: white;
    position: relative;
    overflow: hidden;
    margin-top: 60px; /* 确保在固定导航栏下方 */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* 增强阴影效果 */
}

/* 增强粒子效果 */
#particles-js {
     position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

/* 添加光效元素 */
.hero-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0) 70%);
    top: -250px;
    right: -100px;
    border-radius: 50%;
    animation: pulse 8s infinite alternate;
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0) 70%);
    bottom: -150px;
    left: 10%;
    border-radius: 50%;
    animation: pulse 6s infinite alternate-reverse;
    z-index: 0;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 0.9; }
    100% { transform: scale(1); opacity: 0.7; }
}

/* 隐藏浮动图标 */
.floating-tech-icons, .tech-icon {
    display: none !important;
}

/* 添加浮动元素 */
.floating-tech-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
}

.tech-icon {
    position: absolute;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.15);
    animation: float 15s infinite linear;
    z-index: 1;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.2;
    }
    90% {
        opacity: 0.2;
    }
    100% {
        transform: translateY(-20vh) rotate(360deg);
        opacity: 0;
    }
}

.hero-content {
    position: relative; /* 确保内容在粒子效果之上 */
    z-index: 1;
    max-width: 800px; /* 增加最大宽度 */
    text-align: center; /* 居中对齐 */
    margin: 0 auto; /* 水平居中 */
    padding: 40px;
    backdrop-filter: blur(10px); /* 增强模糊背景效果 */
    background-color: rgba(15, 23, 42, 0.35); /* 增加背景不透明度 */
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25), 0 0 20px rgba(59, 130, 246, 0.2); /* 增强阴影并添加蓝色光晕 */
    border: 1px solid rgba(255, 255, 255, 0.1); /* 增强边框可见性 */
    display: flex; /* 使用flex布局 */
    flex-direction: column; /* 纵向排列 */
    align-items: center; /* 水平居中所有子元素 */
    justify-content: center; /* 垂直方向也居中 */
    transition: all 0.5s ease; /* 添加过渡效果 */
    transform: translateY(0); /* 为悬停效果做准备 */
}

/* 添加悬停效果 */
.hero-content:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 30px rgba(59, 130, 246, 0.3); /* 悬停时增强阴影 */
    transform: translateY(-5px); /* 轻微上浮效果 */
}

.hero-title {
    font-size: 3.5rem; /* 增大标题字号 */
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: #f0f9ff; /* 浅蓝色标题 */
    background: linear-gradient(to right, #f0f9ff, #7dd3fc); /* 渐变文字效果 */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientText 3s ease infinite;
    text-align: center; /* 确保文字居中 */
    width: 100%; /* 确保宽度占满容器 */
    display: block; /* 确保为块级元素 */
}

@keyframes gradientText {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.7;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    text-align: center; /* 确保文字居中对齐 */
    width: 100%; /* 占满容器宽度 */
    max-width: 100%; /* 最大宽度与容器一致 */
    display: block; /* 确保为块级元素 */
}

.hero-badges {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.hero-badge {
    background-color: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    padding: 5px 15px;
    margin: 5px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

.hero-badge i {
    margin-right: 5px;
    font-size: 0.8rem;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-cta {
    padding: 14px 34px; /* 增大按钮尺寸 */
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(to right, var(--accent-color), var(--primary-color)); /* 渐变背景 */
    color: white;
    border: none;
    border-radius: 50px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
    position: relative;
    overflow: hidden;
}

.hero-cta:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.hero-cta:hover {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 25px rgba(29, 78, 216, 0.5);
    color: white;
}

.hero-cta:hover:before {
    transform: translateX(100%);
}

/* 按钮容器样式 */
.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 25px;
    width: 100%;
    text-align: center;
}

/* 第二个按钮样式 */
.hero-cta-secondary {
    background: linear-gradient(to right, #10b981, #059669); /* 绿色渐变背景 */
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.hero-cta-secondary:hover {
    background: linear-gradient(to right, #059669, #047857);
    box-shadow: 0 12px 25px rgba(16, 185, 129, 0.5);
}

/* 动态效果 */
.animate__animated.hero-title {
    animation-delay: 0.3s;
}

.animate__animated.hero-subtitle {
    animation-delay: 0.6s;
}

.hero-badge:nth-child(1) { animation-delay: 0.7s; }
.hero-badge:nth-child(2) { animation-delay: 0.8s; }
.hero-badge:nth-child(3) { animation-delay: 0.9s; }
.hero-badge:nth-child(4) { animation-delay: 1.0s; }
.hero-badge:nth-child(5) { animation-delay: 1.1s; }
.hero-badge:nth-child(6) { animation-delay: 1.2s; }

.animate__animated.hero-cta {
    animation-delay: 0s; /* 将探索工具库按钮的延迟设为0 */
}

/* 移除需求提交按钮的延迟 */
.animate__animated.hero-cta-secondary {
    animation-delay: 0s;
}

/* 响应式调整 */
@media (max-width: 991px) {
    .hero-section {
        padding: 150px 0 100px;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 120px 0 80px;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .hero-content {
        padding: 20px;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    .hero-cta, .hero-cta-secondary {
        width: 100%;
    }
}

/* --- 增强: 核心优势栏 --- */
.features-bar {
    padding: 60px 0; /* 增加内边距 */
    background-color: var(--section-bg-light);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.08); /* 增强阴影 */
    position: relative;
    z-index: 2; /* 确保在 Banner 下方阴影效果之上 */
}

.feature-item {
    text-align: center;
    padding: 25px; /* 增加内边距 */
    transition: all 0.3s ease;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-item i {
    font-size: 3rem; /* 增大图标 */
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.feature-item:hover i {
    transform: scale(1.1) rotate(5deg);
}

.feature-item h4 {
    font-size: 1.4rem; /* 增大标题 */
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* 响应式调整 */
@media (max-width: 767px) {
    .features-bar {
        padding: 40px 0;
    }
    .feature-item {
        margin-bottom: 20px;
    }
}

/* --- 新增: 软件分类介绍 --- */
.category-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%); /* 渐变背景 */
    position: relative;
    overflow: hidden;
}

/* 添加装饰背景元素 */
.category-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
    z-index: 1;
}

.section-title h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--accent-color), var(--primary-color));
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-title p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 20px auto 0;
}

.category-card {
    background-color: var(--section-bg-light);
    border-radius: 16px;
    padding: 40px 25px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    margin-bottom: 30px;
    height: 100%; /* 确保卡片等高 */
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, rgba(37, 99, 235, 0) 100%);
    z-index: -1;
}

.category-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.category-card:hover .category-icon {
    color: var(--primary-color);
    transform: scale(1.1) translateY(-5px);
}

.category-icon {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
    line-height: 1;
    transition: all 0.4s ease;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.category-description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
}

.category-features {
    margin-top: 20px;
    text-align: left;
}

.category-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.category-feature i {
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 0.9rem;
    margin-top: 5px;
}

.category-feature p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-light);
}

@media (max-width: 991px) {
    .category-section {
        padding: 80px 0;
    }
    .section-title h2 {
        font-size: 2.4rem;
    }
    .section-title p {
        font-size: 1.1rem;
    }
}

@media (max-width: 767px) {
    .category-section {
        padding: 60px 0;
    }
    .section-title h2 {
        font-size: 2rem;
    }
    .section-title p {
        font-size: 1rem;
    }
    .category-card {
        padding: 30px 20px;
    }
}

/* --- 程序列表样式 (保留原有，稍作调整) --- */
.program-list-section {
    padding: 80px 0;
    background-color: var(--section-bg-light); /* 列表使用白色背景 */
}

/* --- 新增: 专题板块 --- */
.topic-section {
    padding: 80px 0 40px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0f2fe 100%);
    position: relative;
}

.topic-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(600px 200px at -10% 10%, rgba(59,130,246,0.06), transparent 60%),
        radial-gradient(600px 200px at 110% 90%, rgba(59,130,246,0.06), transparent 60%);
    pointer-events: none;
}

.topic-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.75), rgba(255,255,255,0.6));
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 36px 20px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, opacity 0.35s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.08);
    isolation: isolate;
    will-change: transform, box-shadow;
}

/* 渐变描边（不遮挡内容） */
.topic-card::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(59,130,246,0.45), rgba(37,99,235,0.15), rgba(59,130,246,0.45));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    opacity: 0.85;
    transition: opacity 0.35s ease, filter 0.35s ease;
    z-index: 1;
}

/* 斜向扫光效果 */
.topic-card::after {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 40%;
    height: 140%;
    background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0) 100%);
    transform: translateX(-120%) skewX(-15deg);
    transition: transform 0.8s ease;
    pointer-events: none;
    z-index: 0;
}

.topic-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 46px rgba(2, 6, 23, 0.16);
    border-color: rgba(59, 130, 246, 0.2);
}

.topic-card:hover::after {
    transform: translateX(180%) skewX(-15deg);
}

.topic-card:active {
    transform: translateY(-6px) scale(0.995);
}

.topic-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 991px) {
    .topic-section {
        padding: 60px 0 30px;
    }
    .topic-card {
        padding: 28px 18px;
    }
}

@media (max-width: 767px) {
    .topic-section {
        padding: 50px 0 25px;
    }
}

/* 降低动态效果以提升可读性和性能（系统偏好） */
@media (prefers-reduced-motion: reduce) {
    .topic-card,
    .topic-card::before,
    .topic-card::after {
        transition: none !important;
    }
}

/* 移除原有的页面标题区域，因为 Hero Banner 替代了它 */
/* .page-title-section { ... } */

.program-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.15);
}

.program-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-bottom: 1px solid #eee;
}

.program-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.program-card:hover .program-image {
     transform: scale(1.08);
}

/* 新品徽标 */
.badge-new {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.35);
    z-index: 2;
    letter-spacing: 1px;
}

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

.program-title {
    font-size: 1.1rem; /* 稍微调整标题大小 */
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
     min-height: 40px;
     display: -webkit-box;
     -webkit-line-clamp: 2;
     -webkit-box-orient: vertical;
     overflow: hidden;
     text-overflow: ellipsis;
}

.program-description {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
     display: -webkit-box;
     -webkit-line-clamp: 3;
     -webkit-box-orient: vertical;
     overflow: hidden;
     text-overflow: ellipsis;
     min-height: 50px;
}

.program-link {
    display: inline-block;
    margin-top: auto;
    padding: 8px 18px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
}

.program-link:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
    color: white;
    text-decoration: none;
}

/* 分页样式 */
.pagination-section {
    padding: 40px 0 0; /* 调整分页上边距 */
    text-align: center;
}

.pagination {
    justify-content: center;
}

/* 更新分页按钮样式 */
.pagination .page-item .page-link {
     color: var(--primary-color);
     border-radius: 10px; /* 修改为圆角矩形 */
     margin: 0 3px;
     border: none;
     min-width: 40px; /* 使用最小宽度而不是固定宽度 */
     height: 40px;
     display: flex;
     align-items: center;
     justify-content: center;
     transition: all 0.3s ease;
     font-weight: 500; /* 加粗页码 */
     padding: 0 12px; /* 增加水平内边距 */
}

/* 上一页下一页按钮样式 */
.pagination .page-nav .page-link {
    min-width: 80px; /* 增加宽度以容纳文字 */
}

 .pagination .page-item.active .page-link {
     background-color: var(--primary-color);
     color: white;
     box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4);
 }
 .pagination .page-item:not(.disabled) .page-link:hover {
     background-color: #e9ecef;
     transform: translateY(-2px);
     color: var(--secondary-color);
 }
 .pagination .page-item.disabled .page-link {
     color: #adb5bd;
     background-color: #f8f9fa;
 }

.highlight-text {
    color: #ffeb3b;
    font-weight: 700;
    font-size: 1.2em;
    text-shadow: 0 0 10px rgba(255, 235, 59, 0.7);
    padding: 0 5px;
    position: relative;
    display: inline-block;
    animation: pulse-highlight 2s infinite;
}

@keyframes pulse-highlight {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ffeb3b;
    box-shadow: 0 0 8px rgba(255, 235, 59, 0.8);
}

