:root {
    --card: #ffffff;
    --text: #333333;
    --muted: #66707B;
    --primary: #d82929;
    --primary-dark: #a31414;
    --border: #E5E7EB;
    --footertextcolor: #ffffff;
    --bg-beige: #F8F1E5;
    --bg-white: #ffffff;

    /* 设计图参数：左侧总高度 = 轮播大图 + 信息条 */
    --carousel-h: auto;
    --ticker-h: 40px;
}

* {
    box-sizing: border-box;
}

a {
    text-decoration: none !important;
    color: var(--text) !important;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg-white);
}

/* 顶部红色背景横幅 */
.hero-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-title {
    color: white;
    font-size: 48px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}



.hero-banner img {
    background-size: inherit;


}

/* 米色背景区域 */
.news-section {
    background: var(--bg-beige);
    padding: 40px 0;
}

/* 白色背景区域 */
.study-section {
    background: var(--bg-white);
    padding: 40px 0;
}

/* 容器与区块标题 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px 40px;
}

.section+.section {
    margin-top: 28px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.section-title .bar {
    width: 8px;
    height: 18px;
    background: var(--primary);
}

.section-title h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

/* 综合频道布局 */
.channel-grid {
    display: flex;
    gap: 24px;
    align-items: stretch;
    /* 左右列同高 */
}

.channel-left {
    flex: 2;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.channel-right {
    flex: 1;
    min-width: 320px;
}

/* 轮播（按设计图） */
.carousel {
    position: relative;
    background: var(--card);
    border: 1px solid #eeeeee;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    padding: 10px 10px 0 10px;
}

/* 轮播内容区域，设置overflow hidden */
.carousel-content {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

/* 轮播列表，去除默认内外边距并与容器等宽 */
.slides {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
    will-change: transform;
    box-sizing: border-box;
}

.slide {
    flex: 0 0 100%;
    width: 100%;
    position: relative;
    min-width: 100%;
    height: var(--carousel-h);
    display: flex;
    box-sizing: border-box;
}

.slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: 8px;
}

.caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 16px;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
}

.caption .title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
}

.caption .desc {
    margin: 0;
    font-size: 16px;
    color: #eaeaea;
}

/* 下方信息条（白底圆角，右侧指示点） */
.ticker {
    height: var(--ticker-h);
    margin-top: 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ticker-text {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dots {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.14);
}

.dot.active {
    background: var(--primary);
    box-shadow: 0 0 0 2px rgba(216, 41, 41, 0.25);
}

/* 右侧卡片：高度与左侧整体对齐 */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);

    height: calc(var(--carousel-h) + var(--ticker-h));
    display: flex;
    flex-direction: column;
}

.card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--primary) !important;
    line-height: 1.3;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 auto;
    /* 填满中部区域 */
    min-height: 0;
}

.news-list li {
    border-bottom: 1px dashed var(--border);
    padding-bottom: 12px;
}

.news-list li:last-child {
    /* border-bottom: none; */
    margin-bottom: 18px;
}

.news-item {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 6px;
}

.news-title {
    color: var(--text);
    font-size: 18px;
    font-weight: 800;
    display: -webkit-box;
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-date {
    color: var(--muted);
    font-size: 16px;
    flex: 0 0 auto;
}

.news-content {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-list:empty {
    padding-top: 4px;
}



/* toire卡片栅格 */
.study-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.study-card {
    flex: 1 1 calc(33.333% - 10px);
    min-width: 280px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 14px 12px;
    box-shadow: -5px 0px 0px red;
}

.study-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
}

.study-desc {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 16px;
    min-height: 38px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: calc(1.5em * 2);
    line-height: 1.5;
}

.study-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.study-meta time {
    color: var(--muted);
    font-size: 16px;
}

.study-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

/* 中心按钮 */
.center {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.primary-btn {
    display: inline-block;
    padding: 10px 50px;
    color: #fff;
    background: #E30613;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    width: 192px;
    height: 42px;
    text-align: center;
    border-radius: 4px;
}

/* 页脚 */
.footer {
    width: 100%;
    border-top: 1px solid var(--border);
    margin-top: 36px;
    padding: 16px 50px 24px;
    background: #e30613;
    display: flex;
    flex-direction: row;
}

.footer-inner {
    flex: 0 0 70%;
    padding: 0 16px;
    display: flex;
    flex-wrap: wrap;
    height: 80px;
    margin-top: 30px;
}

.footer-inner p {
    display: flex;
    justify-content: flex-start;
    margin: 0 20px;
    color: var(--footertextcolor);
    font-size: 16px;
    height: 1em;
    line-height: 1em;
}

.footer-badges {
    flex: 0 0 10%;
    margin: 10px auto 0;
    padding: 0 16px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.footer-badges a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-badges img {
    display: block;
    max-height: 100%;
    object-fit: contain;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 16px;
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
}

.badge.outline {
    color: var(--primary);
    background: transparent;
    border: 1px solid var(--primary);
}

/* 响应式 */
@media (max-width: 992px) {
    .channel-grid {
        flex-direction: column;
    }

    .channel-right .card {
        height: auto;
    }

    /* 小屏自动高度 */
}

@media (max-width: 600px) {
    .slide {
        height: 400px;
    }

    .caption .title {
        font-size: 14px;
    }

    .caption .desc {
        font-size: 12px;
    }
}

/* 底部信息条：白色圆角 + 胶囊形指示点（贴设计图） */
.ticker {
    height: var(--ticker-h);
    margin-top: 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
    padding: 0 60px 0 14px;
    /* 给右侧胶囊留空间 */
    display: flex;
    align-items: center;
    margin: 15px 0;
    gap: 12px;
}

.ticker-text {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dots {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.14);
}

.dot.active {
    background: var(--primary);
    box-shadow: 0 0 0 2px rgba(216, 41, 41, 0.25);
}

/* 右侧卡片：高度与左侧整体对齐 */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 25px 20px 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);

    height: 100%;
    display: flex;
    flex-direction: column;
}


.news-list {
    list-style: none;
    padding-top: 18px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 auto;
    /* 填满中部区域 */
    min-height: 0;
}

.news-list li {
    display: flex;
    flex: 1 1 auto;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    padding: 0px 0px 18px;
}

.news-list li a {
    color: var(--text);
    text-decoration: none;
    font-size: 16px;
    flex: 0 0 96%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-list li time {
    color: var(--muted);
    font-size: 12px;
    flex: 0 0 auto;
    height: 1em;
    line-height: 2.2em;
}

.news-list:empty {
    padding-top: 4px;
}

.card-more {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    font-size: 16px;
}

/* 响应式 */
@media (max-width: 992px) {
    .channel-grid {
        flex-direction: column;
    }

    .channel-right .card {
        height: auto;
    }

    .container {
        padding: 0 15px;
    }

    .hero-banner img {
        height: 200px;
    }

    .section-title h2 {
        font-size: 24px;
    }

    .card-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    .hero-banner img {
        height: 180px;
    }

    .section-title h2 {
        font-size: 22px;
    }

    .card-title {
        font-size: 22px;
    }

    .news-title {
        font-size: 16px;
    }

    .news-content {
        font-size: 14px;
    }

    .study-title {
        font-size: 16px;
    }

    .study-desc {
        font-size: 14px;
        max-height: calc(1.5em * 2);
        line-height: 1.5;
    }

    .primary-btn {
        font-size: 14px;
        padding: 8px 16px;
    }
}

@media (max-width: 600px) {
    .slide {
        height: auto;
    }

    .caption .title {
        font-size: 16px;
    }

    .caption .description {
        font-size: 14px;
    }

    .section-title h2 {
        font-size: 20px;
    }

    .card-title {
        font-size: 20px;
    }

    .news-title {
        font-size: 15px;
    }

    .news-content {
        font-size: 13px;
    }

    .news-date {
        font-size: 12px;
    }

    .study-title {
        font-size: 15px;
    }

    .study-desc {
        font-size: 13px;
        max-height: calc(1.5em * 2);
        line-height: 1.5;
    }

    .study-meta time {
        font-size: 12px;
    }

    .primary-btn {
        font-size: 13px;
        padding: 6px 12px;
        line-height: 2em;
    }

    .ticker-text {
        font-size: 14px;
    }

    .badge {
        font-size: 14px;
    }

    .footer {
        display: flex;
        flex-direction: column;
    }

    .footer-inner p {
        font-size: 14px;
        margin: 10px 0;
    }

    .card-more {
        font-size: 14px;
    }

    .study-link {
        font-size: 14px;
    }
}

.caption .desc {
    font-size: 12px;
}