/* ================================================================
   北京汇德阳光教育咨询有限公司 - 统一美化样式表（微信绿色调）
   ================================================================ */

/* ===== 1. 基础重置与字体 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: #333;
    background: #f5f6fa;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== 2. 主容器 ===== */
.main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 3. 顶部导航 ===== */
.top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 2px solid #f0f0f0;
    width: 100%;
    position: relative;
}

.top::after {
    display: none;
}

.top_left {
    flex: 0 0 auto;
    padding: 5px 0;
}

.top_left img {
    transition: transform 0.3s ease;
}

.top_left img:hover {
    transform: scale(1.06);
}

.top_right {
    flex: 1;
    margin-left: 40px;
}

.top_right ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    justify-content: space-between;
}

.top_right li {
    position: relative;
    flex: 1;
    text-align: center;
    margin: 0 3px;
}

.top_right a {
    color: #2c3e50;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 8px;
    display: block;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.5px;
}

/* 当前页面高亮 - 使用JavaScript动态添加 active 类或自定义处理 */
.top_right a.active-page {
    color: #c0392b;
}

.top_right a:hover {
    color: #c0392b;
    text-decoration: none;
}

/* 导航下划线动画 */
.top_right a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    width: 70%;
    height: 3px;
    background: linear-gradient(90deg, #c0392b, #e74c3c);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    transform: scaleX(0);
    transform-origin: center;
}

.top_right a:hover::after {
    transform: scaleX(1);
}

/* ===== 4. Banner / 轮播区域 ===== */
.banner-container {
    position: relative;
    height: 580px;
    border-radius: 14px;
    overflow: hidden;
    margin: 25px 0 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.banner-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.4) 0%, rgba(0, 0, 0, 0.15) 100%);
    z-index: 2;
    pointer-events: none;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 10s ease-in-out;
}

.banner-container:hover .banner-img {
    transform: scale(1.06);
}

.banner-text {
    position: absolute;
    z-index: 3;
}

/* 首页Banner - 右下角文字 */
.banner-container.index-banner .banner-text {
    right: 50px;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    text-align: right;
    width: auto;
}

/* 内页Banner - 居中文字+半透明遮罩 */
.banner-container.inner-banner .banner-text {
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.35);
    transform: none;
    width: 100%;
    height: 100%;
}

.banner-text h1 {
    font-size: 38px;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.4);
    margin-bottom: 16px;
    animation: fadeInDown 0.8s ease forwards;
    opacity: 0;
    letter-spacing: 2px;
}

.inner-banner .banner-text h1 {
    font-size: 44px;
    text-shadow: 2px 4px 15px rgba(0, 0, 0, 0.5);
}

.banner-text p {
    font-size: 20px;
    color: #fff;
    text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
    letter-spacing: 3px;
    font-weight: 300;
}

/* ===== 5. 通用内容区域 ===== */
.content-row {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    gap: 30px;
}

.content-column {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.content-column:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.content-section {
    background: #fff;
    border-radius: 12px;
    padding: 45px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    margin: 40px 0;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.content-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* ===== 6. 标题样式 ===== */
.section-title {
    position: relative;
    padding-bottom: 14px;
    margin-bottom: 28px;
    font-size: 22px;
    color: #2c3e50;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 55px;
    height: 3px;
    background: linear-gradient(90deg, #c0392b, #e74c3c);
    border-radius: 2px;
}

.content-section .section-title {
    text-align: center;
    font-size: 28px;
}

.content-section .section-title::after {
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
}

.sub-section-title {
    font-size: 22px;
    color: #2c3e50;
    font-weight: 700;
    margin: 35px 0 20px;
    padding-left: 16px;
    border-left: 4px solid #c0392b;
}

/* ===== 7. 内容文本 ===== */
.content-text {
    font-size: 15.5px;
    line-height: 2;
    margin-bottom: 20px;
    text-align: justify;
    color: #444;
}

/* ===== 8. 特点列表 ===== */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px;
}

.feature-list li {
    padding: 14px 0 14px 32px;
    position: relative;
    border-bottom: 1px dashed #eee;
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    transition: padding-left 0.3s ease;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li:hover {
    padding-left: 38px;
    color: #333;
}

.feature-list li::before {
    content: '✦';
    color: #c0392b;
    position: absolute;
    left: 10px;
    top: 14px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.feature-list li:hover::before {
    transform: scale(1.3);
}

.feature-list strong {
    color: #c0392b;
    margin-right: 8px;
}

/* ===== 9. 内容图片 ===== */
.content-img {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.content-img:hover {
    transform: scale(1.015);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* ===== 10. iframe 容器 ===== */
.iframe-container {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.iframe-container iframe {
    width: 100%;
}

/* ===== 11. 课程图片 ===== */
.course-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.course-img:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* ===== 12. 成功案例网格 ===== */
.cases-section {
    margin: 60px 0;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.case-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.case-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.case-img-container {
    overflow: hidden;
}

.case-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-card:hover .case-img {
    transform: scale(1.06);
}

.case-content {
    padding: 22px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.case-title {
    font-size: 18px;
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
    position: relative;
    padding-bottom: 12px;
}

.case-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #c0392b, #e74c3c);
    border-radius: 2px;
}

.case-desc {
    color: #666;
    line-height: 1.9;
    flex: 1;
    font-size: 14.5px;
}

/* ===== 13. 底部导航卡片网格 ===== */
.bottom1 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 50px 0;
}

.responsive {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.responsive:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 35px rgba(7, 193, 96, 0.12);
}

.responsive .img {
    overflow: hidden;
}

.responsive .img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.responsive:hover .img img {
    transform: scale(1.1);
}

.responsive .desc {
    padding: 18px;
    text-align: center;
    font-size: 15px;
    color: #2c3e50;
    font-weight: 600;
    background: #fff;
    position: relative;
}

.responsive .desc::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c0392b, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.responsive:hover .desc::before {
    opacity: 1;
}

/* ===== 14. 页脚 ===== */
.bottom2 {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    color: #b0b8c0;
    padding: 35px 0;
    text-align: center;
    border-radius: 12px;
    margin: 25px 0 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.bottom2 small {
    font-size: 13.5px;
    line-height: 2;
    display: inline-block;
}

.bottom2 a {
    color: #95a5a6;
    margin: 0 6px;
    transition: color 0.3s ease;
    font-weight: 500;
}

.bottom2 a:hover {
    color: #c0392b;
    text-decoration: none;
}

/* ===== 15. 回到顶部按钮 ===== */
#backToTop {
    position: fixed;
    right: 25px;
    bottom: 30px;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(7, 193, 96, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 999;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(7, 193, 96, 0.45);
}

/* ===== 16. 动画关键帧 ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-35px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(35px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(35px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== 17. 加载动画微效果 ===== */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ===== 18. 响应式 - 大屏 ===== */
@media (max-width: 1199px) {
    .banner-container {
        height: 480px;
    }
    
    .banner-text h1 {
        font-size: 32px;
    }
    
    .inner-banner .banner-text h1 {
        font-size: 38px;
    }
    
    .banner-text p {
        font-size: 18px;
    }
}

/* ===== 19. 响应式 - 中屏 ===== */
@media (max-width: 991px) {
    .top {
        flex-direction: column;
        padding: 15px 0;
    }
    
    .top_right {
        margin-top: 18px;
        margin-left: 0;
        width: 100%;
    }
    
    .top_right ul {
        justify-content: space-around;
    }
    
    .top_right li {
        margin: 0 6px;
        flex: none;
    }
    
    .top_right a {
        font-size: 14px;
        padding: 8px 6px;
    }
    
    .content-row {
        flex-direction: column;
    }
    
    .banner-container {
        height: 400px;
    }
    
    .index-banner .banner-text {
        right: 30px;
    }
    
    .banner-text h1 {
        font-size: 28px;
    }
    
    .inner-banner .banner-text h1 {
        font-size: 32px;
    }
    
    .content-section {
        padding: 30px;
    }
}

/* ===== 20. 响应式 - 小屏 ===== */
@media (max-width: 767px) {
    .top_right ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    
    .top_right li {
        margin: 4px 8px;
        flex: none;
        width: auto;
    }
    
    .top_right a {
        font-size: 13px;
        padding: 6px 4px;
    }
    
    .banner-container {
        height: 320px;
        border-radius: 10px;
    }
    
    .index-banner .banner-text {
        right: 20px;
        width: 80%;
    }
    
    .banner-text h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .inner-banner .banner-text h1 {
        font-size: 26px;
    }
    
    .banner-text p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .content-section .section-title {
        font-size: 24px;
    }
    
    .sub-section-title {
        font-size: 20px;
    }
    
    .bottom1 {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 18px;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .case-img {
        height: 200px;
    }
    
    .content-section {
        padding: 22px;
    }
    
    .feature-list li {
        font-size: 14px;
        padding: 12px 0 12px 28px;
    }
}

/* ===== 21. 响应式 - 超小屏 ===== */
@media (max-width: 575px) {
    .main {
        padding: 0 12px;
    }
    
    .banner-container {
        height: 260px;
        border-radius: 8px;
    }
    
    .banner-text h1 {
        font-size: 20px;
        letter-spacing: 1px;
    }
    
    .inner-banner .banner-text h1 {
        font-size: 22px;
    }
    
    .banner-text p {
        font-size: 14px;
        letter-spacing: 2px;
    }
    
    .section-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .content-section .section-title {
        font-size: 20px;
    }
    
    .bottom1 {
        grid-template-columns: 1fr;
    }
    
    .top_right ul {
        gap: 3px;
    }
    
    .top_right li {
        width: 30%;
        margin: 3px 5px;
    }
    
    .top_right a {
        font-size: 12px;
        padding: 5px 3px;
    }
    
    .content-column {
        padding: 20px;
    }
    
    .content-section {
        padding: 18px;
    }
    
    .course-img {
        height: 180px;
    }
    
    #backToTop {
        width: 40px;
        height: 40px;
        font-size: 17px;
        right: 15px;
        bottom: 20px;
    }
}

/* ================================================================
   以下为各页面独有样式补充
   ================================================================ */

/* ---- 关于我们 - 数据统计区 ---- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #eef1f5 100%);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: #c0392b;
    display: block;
    line-height: 1.2;
}

.stat-number::after {
    content: '+';
}

.stat-label {
    font-size: 15px;
    color: #666;
    margin-top: 10px;
    display: block;
    font-weight: 500;
}

/* ---- 关于我们 - 公司简介 ---- */
.company-intro {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin: 25px 0;
}

.company-intro-text {
    flex: 1;
}

.company-intro-img {
    flex: 0 0 320px;
}

.company-intro-img img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* ---- 国培信息卡片 ---- */
.guopei-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.guopei-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.guopei-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.guopei-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.guopei-card:hover .guopei-card-img {
    transform: scale(1.06);
}

.guopei-card-body {
    padding: 20px 22px 25px;
}

.guopei-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.5;
}

.guopei-card-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.guopei-card-link {
    display: inline-block;
    margin-top: 14px;
    color: #c0392b;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.guopei-card-link:hover {
    color: #e74c3c;
    padding-left: 5px;
}

/* ---- 新闻列表样式 ---- */
.news-card {
    display: flex;
    gap: 20px;
    background: #fff;
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    align-items: flex-start;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.news-card-img {
    flex: 0 0 180px;
    height: 130px;
    border-radius: 8px;
    overflow: hidden;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-img img {
    transform: scale(1.08);
}

.news-card-content {
    flex: 1;
}

.news-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.news-card:hover .news-card-title {
    color: #c0392b;
}

.news-card-summary {
    color: #777;
    font-size: 14px;
    line-height: 1.8;
}

.news-card-meta {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    font-size: 12.5px;
    color: #aaa;
}

/* ---- 测试页容器 ---- */
.test-container {
    background: #fff;
    border-radius: 12px;
    padding: 35px 40px;
    margin: 25px 0 40px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.test-container table {
    width: 100%;
    border-collapse: collapse;
}

.test-container th,
.test-container td {
    padding: 12px 15px;
    border: 1px solid #eee;
    text-align: center;
    font-size: 14px;
}

.test-container th {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #fff;
    font-weight: 600;
}

.test-container tr:nth-child(even) {
    background: #f8f9fa;
}

.test-container tr:hover {
    background: #f0f2f5;
}

/* ===== 移动端适配补充 - 用于m-开头的页面 ===== */
.m-page .top-bar {
    background: linear-gradient(135deg, #2c3e50, #1a252f);
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.m-page .top-bar img {
    height: 35px;
}

.m-page .brand-section {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: #fff;
    text-align: center;
    padding: 30px 15px;
    margin-bottom: 0;
}

.m-page .brand-section h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.m-page .brand-section p {
    font-size: 13px;
    opacity: 0.9;
}

.m-page .nav-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 15px;
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.m-page .nav-menu a {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    color: #2c3e50;
    border: 1.5px solid #e0e0e0;
    transition: all 0.3s ease;
    font-weight: 500;
}

.m-page .nav-menu a:hover,
.m-page .nav-menu a.active {
    background: #c0392b;
    color: #fff;
    border-color: #c0392b;
}

.m-page .footer-bar {
    background: linear-gradient(135deg, #2c3e50, #1a252f);
    color: #b0b8c0;
    text-align: center;
    padding: 25px 15px;
    font-size: 13px;
    line-height: 1.8;
    border-radius: 12px 12px 0 0;
    margin-top: 30px;
}

.m-page .footer-bar a {
    color: #95a5a6;
    margin: 0 4px;
    transition: color 0.3s ease;
}

.m-page .footer-bar a:hover {
    color: #c0392b;
}

.m-page .quick-nav {
    position: sticky;
    top: 0;
    background: #fff;
    padding: 10px 15px;
    display: flex;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    z-index: 100;
    margin-bottom: 20px;
    border-radius: 0 0 10px 10px;
    flex-wrap: wrap;
}

.m-page .quick-nav a {
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 13px;
    color: #2c3e50;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.m-page .quick-nav a:hover {
    background: #c0392b;
    color: #fff;
    border-color: #c0392b;
}

/* ===== 22. 聊天室样式 ===== */
.chat-wrapper {
    max-width: 500px;
    margin: 30px auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.08);
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: #fff;
    padding: 20px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

.chat-body {
    padding: 20px;
}

.chat-login-form {
    text-align: center;
    padding: 40px 20px;
}

.chat-login-form input {
    width: 80%;
    max-width: 280px;
    padding: 12px 16px;
    margin: 8px 0;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s ease;
    outline: none;
}

.chat-login-form input:focus {
    border-color: #c0392b;
}

.chat-msg-area {
    height: 320px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    overflow-y: auto;
    padding: 15px;
    margin-bottom: 15px;
    background: #fafafa;
}

.chat-msg {
    margin: 8px 0;
    padding: 10px 16px;
    border-radius: 18px;
    max-width: 80%;
    word-break: break-all;
    font-size: 14px;
    line-height: 1.6;
    animation: fadeInUp 0.3s ease;
}

.chat-msg.user1 {
    background: #c0392b;
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.chat-msg.user2 {
    background: #e8e8e8;
    color: #333;
    margin-right: auto;
    border-bottom-left-radius: 4px;
}

.chat-msg-area .message {
    margin: 8px 0;
    padding: 10px 16px;
    border-radius: 18px;
    max-width: 80%;
    word-break: break-all;
    font-size: 14px;
    line-height: 1.6;
    animation: fadeInUp 0.3s ease;
}

.chat-msg-area .message.user1 {
    background: #c0392b;
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.chat-msg-area .message.user2 {
    background: #e8e8e8;
    color: #333;
    margin-right: auto;
    border-bottom-left-radius: 4px;
}

.chat-input-area {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.chat-input-area input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease;
}

.chat-input-area input:focus {
    border-color: #c0392b;
}

/* ===== 23. 测试页面样式 ===== */
.test-page-title {
    text-align: center;
    padding: 25px 20px 10px;
}

.test-page-title h1 {
    font-size: 26px;
    color: #c0392b;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.test-page-title h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #c0392b, #e74c3c);
    border-radius: 2px;
}

.test-container {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    margin: 20px auto 40px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
    max-width: 960px;
}

.test-container table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.test-container th,
.test-container td {
    padding: 12px 10px;
    border: 1px solid #eef0f4;
    text-align: center;
}

.test-container th {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.test-container tr:nth-child(even) {
    background: #f8fdf9;
}

.test-container tr:hover {
    background: #e8f8e8;
}

.test-container td:first-child {
    font-weight: 600;
    color: #c0392b;
    width: 40px;
}

.test-container td:nth-child(2) {
    text-align: left;
    font-size: 14px;
    line-height: 1.6;
}

.test-container input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #c0392b;
    cursor: pointer;
    margin: 0;
    vertical-align: middle;
}

.test-container td div {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== 24. 按钮样式 ===== */
.btn-wechat {
    display: inline-block;
    padding: 12px 40px;
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(7, 193, 96, 0.3);
    letter-spacing: 1px;
}

.btn-wechat:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(7, 193, 96, 0.4);
}

.btn-wechat:active {
    transform: translateY(0);
}

.btn-wechat-sm {
    padding: 8px 24px;
    font-size: 14px;
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-danger:hover {
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

/* ===== 25. 分组工具样式 ===== */
.group-wrapper {
    max-width: 600px;
    margin: 30px auto;
    background: #fff;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.06);
}

.group-wrapper h2 {
    text-align: center;
    color: #c0392b;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.group-wrapper h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #c0392b, #e74c3c);
    border-radius: 2px;
}

.group-wrapper label {
    display: block;
    margin-top: 18px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.group-wrapper input[type="text"],
.group-wrapper input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    margin-top: 8px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease;
}

.group-wrapper input[type="text"]:focus,
.group-wrapper input[type="number"]:focus {
    border-color: #c0392b;
}

.group-result {
    margin-top: 25px;
    background: #f8fdf9;
    border-radius: 12px;
    padding: 20px;
    min-height: 100px;
    white-space: pre-wrap;
    font-size: 15px;
    line-height: 2;
    border: 2px solid #e8f8e8;
    color: #333;
}

/* ===== 26. 移动端页面样式增强 ===== */
.m-page .page-header-img {
    width: 100%;
    display: block;
}

.m-page .page-content {
    padding: 0 16px 20px;
}

.m-page .page-section-title {
    color: #c0392b;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin: 25px 0 20px;
    position: relative;
    padding-bottom: 10px;
}

.m-page .page-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #c0392b, #e74c3c);
    border-radius: 2px;
}

.m-page .news-detail-title {
    color: #333;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin: 20px 0;
    line-height: 1.4;
}

.m-page .news-detail-meta {
    color: #888;
    font-size: 13px;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.8;
}

.m-page .news-detail-content {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 25px;
}

.m-page .news-detail-img {
    width: 100%;
    border-radius: 10px;
    margin: 15px auto;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

.m-page .course-item-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.m-page .course-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.m-page .course-item-title {
    color: #c0392b;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
}

.m-page .course-item-abstract {
    color: #555;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.7;
}

.m-page .course-item-meta {
    color: #888;
    font-size: 13px;
    padding-top: 10px;
    border-top: 1px dashed #eee;
}

.m-page .course-item-img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* 移动端新闻列表卡片 */
.m-page .mp-news-item {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid #f5f5f5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.m-page .mp-news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.m-page .mp-news-title {
    color: #333;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.m-page .mp-news-abstract {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.m-page .mp-news-meta {
    color: #aaa;
    font-size: 12px;
    padding-top: 8px;
    border-top: 1px dashed #f0f0f0;
}

.m-page .mp-news-img {
    width: 100%;
    max-width: 280px;
    border-radius: 8px;
    margin: 10px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.m-page .mp-news-more {
    color: #c0392b;
    font-size: 13px;
    font-weight: 500;
}

.m-page .mp-news-more:hover {
    text-decoration: underline;
}

.m-page .error-box {
    text-align: center;
    color: #e74c3c;
    padding: 40px 20px;
    font-size: 15px;
    background: #fff8f8;
    border-radius: 10px;
    margin: 20px;
}
