/* 1. 头部全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
}

body {
    background-color: #f8fafd;
    color: #333;
    line-height: 1.6;
}

/* 2. 中医药特色蓝配色 */
:root {
    --edu-blue: #1a4d9c;
    --tech-blue: #2c7dc0;
    --herbal-green: #2e8b57;
    --accent-gold: #d4a55e;
    --light-bg: #eef5ff;
    --border-color: #e1e8f2;
    --text-dark: #2c3e50;
    --text-light: #666;
}

/* 3. 顶部装饰条 */
.top-decoration {
    height: 6px;
    background: linear-gradient(90deg, var(--herbal-green), var(--edu-blue), var(--tech-blue), var(--accent-gold));
    width: 100%;
}

/* 4. 头部样式 */
.header-wrapper {
    background-color: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    overflow: visible !important;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.logo-img {
    height: 65px;
    width: auto;
    background: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: none;
}

.logo-img img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

/* 5. 响应式设计 */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 25px;
        padding: 25px 20px;
    }
}
📁 index.css - 页面内容样式 + 独立导航样式
css
/* ========== INDEX.CSS - 页面内容样式 + 独立导航样式 ========== */

/* 第一部分：页面内容样式 */
/* 确保页面主要内容容器不会导致滚动问题 */
.container, 
.fullscreen-banner, 
.news-dynamic, 
.news-section, 
.two-column-section {
    overflow-x: hidden;
    max-width: 100vw;
}

/* 轮播图样式 */
.fullscreen-banner {
    width: 100%;
    height: 420px;
    overflow: hidden;
    position: relative;
    margin-bottom: 40px;
}

.carousel {
    overflow: hidden;
    position: relative;
    height: 100%;
}

.carousel-inner {
    display: flex;
    transition: transform 0.6s ease;
    height: 100%;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 轮播图控制 */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 26px;
    transition: all 0.3s;
    z-index: 10;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
}

.carousel:hover .carousel-control {
    opacity: 1;
}

.carousel-control:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.carousel-control.prev {
    left: 25px;
}

.carousel-control.next {
    right: 25px;
}

.carousel-indicators {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.indicator.active {
    background-color: white;
    transform: scale(1.2);
    border-color: var(--accent-gold);
}

/* 主要内容区域 */
.container {
    max-width: 1400px;
    margin: 0 auto 60px;
    padding: 0 5%;
    overflow-x: hidden;
}

/* 新闻动态区域 */
.news-dynamic {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 440px;
    margin-bottom: 35px;
    border: 1px solid var(--border-color);
}

.section-header {
    background: linear-gradient(90deg, var(--edu-blue), var(--tech-blue));
    padding: 20px 28px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.section-header::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background-color: var(--accent-gold);
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.section-title::before {
    content: "📰";
    margin-right: 10px;
    font-size: 20px;
}

.section-more {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 16px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    transition: all 0.3s;
}

.section-more:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateX(3px);
}

/* 新闻动态内部布局 */
.news-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.news-carousel {
    flex: 1.5;
    overflow: hidden;
    position: relative;
    background-color: #fafcff;
    border-right: 1px solid var(--border-color);
}

.news-list-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.news-list {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.news-item {
    padding: 18px 28px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: all 0.2s;
    min-height: 72px;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background-color: var(--light-bg);
    transform: translateX(5px);
}

.news-title {
    font-size: 15px;
    color: var(--text-dark);
    text-decoration: none;
    flex: 1;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.news-title:hover {
    color: var(--edu-blue);
}

.news-date {
    color: var(--text-light);
    font-size: 13px;
    min-width: 75px;
    text-align: right;
    margin-left: 12px;
}

.news-tag {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, var(--light-bg), #e6efff);
    color: var(--edu-blue);
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 10px;
    margin-bottom: 5px;
    border: 1px solid rgba(26, 77, 156, 0.1);
}

/* 两列布局的新闻区块 */
.two-column-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    margin-bottom: 35px;
}

.news-section {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 440px;
    border: 1px solid var(--border-color);
}

.section-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.simple-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

/* 中医药特色装饰 */
.herbal-decoration {
    text-align: center;
    margin: 40px 0;
    position: relative;
    color: var(--herbal-green);
    font-size: 16px;
    letter-spacing: 2px;
}

.herbal-decoration::before,
.herbal-decoration::after {
    content: "❈";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--accent-gold);
}

.herbal-decoration::before {
    left: 30%;
}

.herbal-decoration::after {
    right: 30%;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .two-column-section {
        grid-template-columns: 1fr;
    }

    .news-section {
        height: auto;
        min-height: 400px;
    }

    .herbal-decoration::before {
        left: 25%;
    }

    .herbal-decoration::after {
        right: 25%;
    }
}

@media (max-width: 1024px) {
    .fullscreen-banner {
        height: 360px;
    }

    .news-dynamic {
        height: auto;
        min-height: 400px;
    }

    .news-container {
        flex-direction: column;
    }

    .news-carousel {
        flex: none;
        height: 260px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

@media (max-width: 768px) {
    .fullscreen-banner {
        height: 300px;
    }

    .container {
        padding: 0 20px;
        width: 100vw;
        box-sizing: border-box;
    }

    .section-title {
        font-size: 20px;
    }

    .carousel-control {
        width: 48px;
        height: 48px;
        font-size: 22px;
        opacity: 1;
    }

    .carousel-control.prev {
        left: 15px;
    }

    .carousel-control.next {
        right: 15px;
    }

    .news-dynamic {
        height: auto;
    }

    .herbal-decoration::before {
        left: 15%;
    }

    .herbal-decoration::after {
        right: 15%;
    }
}

@media (max-width: 576px) {
    .fullscreen-banner {
        height: 260px;
    }

    .news-carousel {
        height: 220px;
    }

    .section-header {
        padding: 18px 22px;
    }

    .news-item {
        padding: 16px 22px;
    }

    .herbal-decoration {
        font-size: 14px;
        letter-spacing: 1px;
    }

    .herbal-decoration::before,
    .herbal-decoration::after {
        font-size: 16px;
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.simple-list::-webkit-scrollbar,
.news-list::-webkit-scrollbar {
    width: 6px;
}

.simple-list::-webkit-scrollbar-track,
.news-list::-webkit-scrollbar-track {
    background: transparent;
}

.simple-list::-webkit-scrollbar-thumb,
.news-list::-webkit-scrollbar-thumb {
    background: #d1d1d1;
    border-radius: 3px;
}