  * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
            font-size: 14px;
            line-height: 1.5;
            background-color: #fff;
            color: #212529;
        }
        @media (min-width: 768px) {
            body { font-size: 16px; }
        }
        .container-fluid {
            padding-left: 12px;
            padding-right: 12px;
        }
        img {
            max-width: 100%;
            vertical-align: middle;
        }
/* 主轮播图 */
      /* 主轮播图 - 自适应高度，无空白 */
.main-swiper {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    margin: 0 auto 1rem auto;
    background-color: #f0f2f5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.main-swiper .swiper-slide {
    height: auto !important;
    line-height: 0;
}
.main-swiper .swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
}
.main-swiper .swiper-wrapper {
    margin: 0;
    padding: 0;
}
/* 隐藏主轮播图左右箭头 */
.main-swiper .swiper-button-next,
.main-swiper .swiper-button-prev {
    display: none !important;
}

        @media (min-width: 992px) {
            .main-swiper { max-height: 500px; }
            .main-swiper .swiper-slide { height: 500px; }
        }
        @media (min-width: 768px) and (max-width: 991px) {
            .main-swiper { max-height: 400px; }
            .main-swiper .swiper-slide { height: 400px; }
        }
        @media (max-width: 767px) {
            .main-swiper { max-height: 250px; }
            .main-swiper .swiper-slide { height: 250px; }
        }
        .swiper-button-next, .swiper-button-prev {
            color: white;
            background: rgba(0,0,0,0.3);
            width: 36px;
            height: 36px;
            border-radius: 50%;
        }
        .swiper-button-next:after, .swiper-button-prev:after { font-size: 18px; }
        @media (max-width: 768px) {
            .swiper-button-next, .swiper-button-prev { display: none; }
        }
        .swiper-pagination-bullet-active { background: #228B22 !important; }

        /* 小轮播图 - 桌面端显示，手机端隐藏 */
        .pic-scroll-swiper {
            width: 100%;
            border-radius: 20px;
            overflow: hidden;
            background-color: #f8f9fa;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }
        .pic-scroll-swiper .swiper-slide img {
            width: 100%;
            aspect-ratio: 16 / 9;
            object-fit: cover;
            object-position: center;
        }
        /* 手机端隐藏小轮播图 */
       /* 手机端隐藏小轮播图容器及其父级列（可选） */
@media (max-width: 768px) {
    .pic-scroll-swiper,
    .pic-scroll-swiper.swiper,
    div.pic-scroll-swiper {
        display: none !important;
    }
    /* 如果希望隐藏整个列（col-md-4），也可以取消注释下面一行 */
    /* .col-md-4:has(.pic-scroll-swiper) { display: none; } */
}
        .slide-caption {
            background: rgba(0,0,0,0.6);
            color: white;
            padding: 0.25rem;
            font-size: 0.8rem;
            text-align: center;
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
        }

        /* 新闻/培训标题栏 */
        .news-infor-tittle {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            margin-bottom: 1rem;
            border-bottom: 2px solid #e9ecef;
            padding-bottom: 0.5rem;
        }
        .news-infor-tittle strong {
            font-size: 1.25rem;
            color: #1e466e;
            font-weight: 600;
        }
        .more-link {
            font-size: 0.85rem;
            background-color: #228B22;
            color: white;
            padding: 0.3rem 0.8rem;
            border-radius: 2rem;
            text-decoration: none;
        }
        @media (min-width: 768px) {
            .more-link { font-size: 1rem; padding: 0.4rem 1.2rem; }
        }
        .more-link:hover { background-color: #1a6b1a; color: white; }

        /* 新闻列表样式 */
        .custom-dots {
            list-style: none;
            padding-left: 0;
            margin-bottom: 0;
        }
        .custom-dots li {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            margin-bottom: 0.85rem;
            border-bottom: 1px dashed #f0f0f0;
            padding-bottom: 0.5rem;
        }
        .custom-dots li a {
            flex: 1;
            font-size: 0.9rem;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            color: #2c3e50;
            text-decoration: none;
            min-height: auto;
        }
        .custom-dots li a:hover { color: #228B22; }
        .custom-dots li .date {
           margin-left: 0.75rem;
            font-size: 0.75rem;
            color: #6c757d;
            white-space: nowrap;
            }
    @media (max-width: 480px) {
    .custom-dots li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;          /* 标题与日期间距 */
        margin-bottom: 0.1rem; /* 条目之间间距 */
        border-bottom: none;   /* 可选：去掉分隔线更紧凑 */
    }
    .custom-dots li .date {
        margin-left: 0;
        font-size: 0.7rem;
        }
    .custom-dots li a {
        white-space: normal;
        word-break: break-word;
        }
    }

    /* 人物风采轮播 */
    .mien-swiper .swiper-slide {
        width: auto;
    }
    .mien-swiper .swiper-slide img {
        width: 180px;   /* 桌面端固定宽度 */
        height: 180px;
        object-fit: cover;
        border-radius: 20px;
    }
    @media (max-width: 768px) {
        .mien-swiper .swiper-slide img {
        width: 130px;
        height: 130px;
        }
    }
    /* 在线课程平台 - 自适应间距，紧凑换行 */
    .course-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(120px, 120px)); /* 固定宽度 120px */
        justify-content: space-between;  /* 多余空间均匀分布在列之间 */
        column-gap: clamp(1rem, 2vw, 1.5rem);  /* 水平间距自适应 */
        row-gap: 0.5rem;                 /* 垂直间距固定，避免过大 */
        list-style: none;
        padding: 0;
        margin-top: 0.9rem;
        margin-bottom: 0.1rem;
    }
    .course-grid li {
     width: 100%;   /* 让 li 占满 grid 单元格 */
    }
    .course-grid a {
        display: block;
        background: #f1f3f5;
        text-align: center;
        padding: 0.5rem 0;     /* 左右内边距为0，宽度由父级决定 */
        border-radius: 2rem;
        font-size: 0.9rem;
        font-weight: 500;
        color: #1e466e;
        text-decoration: none;
        white-space: nowrap;
        overflow-x: auto;      /* 防止文字过长溢出 */
        transition: background 0.2s;
    }
    .course-grid a:hover {
        background: #e2e6ea;
    }

    /* 医学网站横向滚动 */
    .med-scroll, .friend-scroll {
        width: 100%; overflow-x: auto; overflow-y: hidden;
        white-space: nowrap; scrollbar-width: thin;
        -webkit-overflow-scrolling: touch; padding-bottom:4px;
    }
    .med-scroll::-webkit-scrollbar, .friend-scroll::-webkit-scrollbar { height: 4px; }
    .med-links-scroll {
        display: inline-flex; gap: 1.2rem; padding: 0.2rem 0.2rem;
        list-style: none; margin: 0;
    }
    .med-links-scroll li {
        display: inline-block; width: 130px; text-align: center;
        flex-shrink: 0; background: #fff; border-radius: 16px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05); padding: 0.5rem;
        transition: transform 0.2s;
    }
    .med-links-scroll li:hover { transform: translateY(-3px); }
        .med-links-scroll img { max-width: 100%; height: 60px; object-fit: contain; }
    @media (max-width: 576px) { .med-links-scroll li { width: 90px; } }

    /* 友情链接横向滚动（胶囊样式） */
    .friend-links-scroll {
        display: inline-flex; gap: 2rem; padding: 0.2rem 0.2rem;
        list-style: none; margin: 0;
    }
    .friend-links-scroll li {
        display: inline-block; flex-shrink: 0; background: #f8f9fa;
        border-radius: 40px; padding: 0.4rem 1.2rem; font-size: 1rem;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05); transition: all 0.2s;
    }
    .friend-links-scroll li:hover { background: #e9ecef; transform: translateY(-2px); }
    .friend-links-scroll li a { color: #2c6e9e; text-decoration: none; min-height: auto; }

    .section-title {
        font-size: 1.3rem; font-weight: 600; border-left: 5px solid #228B22;
        padding-left: 12px; margin: 0.1rem 0 0.5rem 0; color: #1e466e;
    }
    .info {
            display: flex; justify-content: space-between; align-items: baseline;
            margin: 0.5rem 0 0.5rem 0;
    }
    .info .title { font-size: 1.2rem; font-weight: bold; color: #1e466e; }
    .mid-banner { margin: 1.5rem 0; border-radius: 20px; overflow: hidden; }
    footer {
        background: #f2f4f8; margin-top: 2rem; padding: 1.5rem 0;
        text-align: center; font-size: 0.8rem; color: #6c757d;
    }
    /* 模态框样式 */
    .modal-content { border-radius: 24px; border: none; box-shadow: 0 20px 35px rgba(0,0,0,0.2); }
    .modal-header { border-bottom: none; padding-bottom: 0; }
    .btn-login, .btn-register, .btn-profile {
        border-radius: 40px; padding: 0.4rem 1.2rem; font-weight: 500;
    }
        .btn-login { background-color: #228B22; color: white; }
        .btn-profile { background-color: #0d6efd; color: white; }