:root {
    --red-primary: #C41A1A;
    --red-light: #f8d7da;
    --red-dark: #A01515;
    --red-bg: #B71C1C;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --bg-color: #f5f5f5;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    line-height: 1.6;
    background-color: var(--bg-color);
}

.bg-red {
    background-color: var(--red-primary) !important;
}

.text-red {
    color: var(--red-primary) !important;
}

.btn-red {
    background-color: var(--red-primary);
    color: #fff;
    border: none;
}

.btn-red:hover {
    background-color: var(--red-dark);
    color: #fff;
}

.btn-outline-red {
    border-color: var(--red-primary);
    color: var(--red-primary);
}

.btn-outline-red:hover {
    background-color: var(--red-primary);
    color: #fff;
}

.bg-red-light {
    background-color: var(--red-light);
}

.text-gray {
    color: var(--gray);
}

/* ===================== 顶部条 ===================== */
.top-bar {
    background: #fff;
    border-bottom: 1px solid var(--gray-light);
    padding: 0;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 120px;
}

.top-bar .site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #333;
}

.top-bar .site-logo img {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.top-bar .site-logo .logo-text {
    display: flex;
    flex-direction: column;
}

.top-bar .site-logo .logo-text .logo-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--red-primary);
    line-height: 1.3;
}

.top-bar .site-logo .logo-text .logo-sub {
    font-size: 0.8rem;
    color: var(--gray);
    line-height: 1.2;
}

.top-bar .top-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* 口号动画轮播 */
.slogan-rotate {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    height: 40px;
}

.slogan-word {
    font-family: 'KaiTi', 'STKaiti', '楷体', serif;
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--red-primary);
    cursor: default;
    transition: color 0.3s;
    animation: none;
}

.top-bar .top-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.top-bar .top-links a:hover {
    color: var(--red-primary);
}

.top-bar .top-links .top-link-icon {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    transition: all 0.2s;
}

.top-bar .top-links .top-link-icon:hover {
    border-color: var(--red-primary);
    color: var(--red-primary);
}

/* ===================== 头部导航 ===================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.navbar-main {
    background: #e50516;
    padding: 0;
}

.navbar-main .navbar-nav .nav-link {
    color: rgba(255,255,255,0.9);
    padding: 14px 18px;
    font-size: 1.1rem;
    font-weight:700;
    transition: background 0.2s;
    position: relative;
}

/* 底部下划线指示器。
   注意：Bootstrap 的 .dropdown-toggle::after 也用这个伪元素画下拉三角，
   必须显式清掉它的 border / margin / vertical-align，
   否则未选中时残留的 border-top（白色）会在导航项下方显示成一个小白点。 */
.navbar-main .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #fff;
    border: 0 !important;
    margin: 0 !important;
    vertical-align: baseline;
    transition: width 0.25s;
    border-radius: 2px 2px 0 0;
}

.navbar-main .navbar-nav .nav-link:hover::after,
.navbar-main .navbar-nav .nav-link.active::after {
    width: 60%;
}

.navbar-main .navbar-nav .nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.navbar-main .navbar-nav .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.12);
}

.navbar-main .navbar-toggler {
    border: 1px solid rgba(255,255,255,0.4);
    padding: 6px 10px;
}

.navbar-main .navbar-toggler:focus {
    box-shadow: none;
}

/* ===================== 导航下拉菜单（鼠标悬停展开，参考 menuSec） ===================== */
.navbar-main .navbar-nav .nav-hover .dropdown-menu {
    background: #fff;
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 8px 0;
    min-width: 220px;
    border-top: 3px solid #e50516;
}

.navbar-main .navbar-nav .dropdown-item {
    color: #444;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    transition: background .15s, color .15s;
}

.navbar-main .navbar-nav .dropdown-item i {
    color: #e50516;
    width: 20px;
    text-align: center;
    font-size: 0.95em;
}

.navbar-main .navbar-nav .dropdown-item:hover,
.navbar-main .navbar-nav .dropdown-item:focus,
.navbar-main .navbar-nav .dropdown-item.active {
    background: #fdecee;
    color: #e50516;
}

.navbar-main .navbar-nav .dropdown-divider {
    border-color: #f0f0f0;
    margin: 4px 0;
}

/* 本站用 .nav-caret（fa-angle-down）作为下拉箭头，
   因此禁用 Bootstrap 自带的 .dropdown-toggle::after 三角，避免重复显示。 */
.navbar-main .navbar-nav .dropdown-toggle::after {
    border: 0 !important;
    margin: 0 !important;
}

.navbar-main .navbar-nav .nav-caret {
    font-size: 0.78em;
    margin-left: 3px;
    opacity: 0.85;
    transition: transform .2s;
}

/* 桌面端（≥992px）：悬停即展开子菜单；移动端保留点击 */
@media (min-width: 992px) {
    .navbar-main .navbar-nav .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        margin-top: 0;
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }
    .navbar-main .navbar-nav .dropdown:hover > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    /* 触发器与菜单之间的透明桥接，防止鼠标移动时菜单消失 */
    .navbar-main .navbar-nav .dropdown > .dropdown-menu::before {
        content: '';
        position: absolute;
        top: -10px;
        left: 0;
        right: 0;
        height: 10px;
    }
    .navbar-main .navbar-nav .dropdown:hover > .nav-link .nav-caret {
        transform: rotate(180deg);
    }
}

/* ===================== 轮播图 ===================== */
.banner-container {
    padding-top: 20px;
}

.banner-wrap {
    margin-bottom: 0;
    position: relative;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.banner-wrap .carousel-item {
    aspect-ratio: 16 / 6;
    height: auto;
    background: linear-gradient(135deg, #8B0000 0%, #C41A1A 100%);
}

.banner-wrap .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
}

.banner-wrap .carousel-caption {
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0;
    text-align: left;
    color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0) 100%);
    height: 60%;
    display: flex;
    align-items: flex-end;
}

.banner-wrap .caption-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    padding-bottom: 60px;
    width: 100%;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.6s ease;
}

.banner-wrap .carousel-item.active .caption-container {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.3s;
}

.banner-wrap .caption-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: inherit;
    margin: 0 0 20px 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    max-width: 80%;
    line-height: 1.4;
}

.banner-wrap .caption-btn {
    display: inline-block;
    background: var(--red-primary);
    color: #fff;
    padding: 10px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(220,53,69,0.4);
}

.banner-wrap .caption-btn:hover {
    background: var(--red-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220,53,69,0.5);
}

.banner-wrap .caption-btn i {
    margin-left: 6px;
    transition: transform 0.3s;
}

.banner-wrap .caption-btn:hover i {
    transform: translateX(4px);
}

/* 轮播富文本（后台可编辑排版与背景色、文字颜色） */
.banner-wrap .caption-rich {
    color: inherit;
    margin: 0 0 18px 0;
    max-width: 80%;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    font-size: 1.05rem;
    line-height: 1.6;
}

.banner-wrap .caption-rich :first-child { margin-top: 0; }
.banner-wrap .caption-rich :last-child { margin-bottom: 0; }
.banner-wrap .caption-rich p { margin: 0 0 10px; }
.banner-wrap .caption-rich a { color: #ffd9d9; text-decoration: underline; }
.banner-wrap .caption-rich img { max-width: 100%; height: auto; border-radius: 6px; margin: 8px 0; }
.banner-wrap .caption-rich h1, .banner-wrap .caption-rich h2, .banner-wrap .caption-rich h3,
.banner-wrap .caption-rich h4, .banner-wrap .caption-rich h5, .banner-wrap .caption-rich h6 {
    color: inherit; margin: 0 0 10px; text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.banner-wrap .caption-rich .btn {
    background: var(--red-primary);
    color: #fff;
    padding: 10px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(220,53,69,0.4);
}

/* 轮播箭头 */
.banner-wrap .carousel-control-prev,
.banner-wrap .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
    border: none;
}

.banner-wrap .carousel-control-prev {
    left: 30px;
}

.banner-wrap .carousel-control-next {
    right: 30px;
}

.banner-wrap:hover .carousel-control-prev,
.banner-wrap:hover .carousel-control-next {
    opacity: 1;
}

.banner-wrap .carousel-control-prev:hover,
.banner-wrap .carousel-control-next:hover {
    background: rgba(255,255,255,0.35);
    transform: translateY(-50%) scale(1.1);
}

.banner-wrap .carousel-control-prev-icon,
.banner-wrap .carousel-control-next-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-wrap .carousel-control-prev-icon i,
.banner-wrap .carousel-control-next-icon i {
    font-size: 1.3rem;
    color: #fff;
}

/* 指示器 */
.banner-wrap .carousel-indicators {
    bottom: 25px;
    gap: 10px;
}

.banner-wrap .carousel-indicators button {
    width: 30px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255,255,255,0.5);
    border: none;
    transition: all 0.3s;
}

.banner-wrap .carousel-indicators button.active {
    background: var(--red-primary);
    width: 50px;
}

/* 移动端 */
@media (max-width: 768px) {
    .banner-wrap .carousel-item {
        aspect-ratio: 3 / 2;
    }
    .banner-wrap .caption-container {
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .banner-wrap .caption-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    .banner-wrap .caption-btn {
        padding: 6px 18px;
        font-size: 0.82rem;
    }
    .banner-wrap .carousel-control-prev,
    .banner-wrap .carousel-control-next {
        width: 36px;
        height: 36px;
        left: 10px;
        right: 10px;
    }
    .banner-wrap .carousel-control-prev {
        left: 10px;
    }
    .banner-wrap .carousel-control-next {
        right: 10px;
    }
    .banner-wrap .carousel-indicators {
        bottom: 15px;
        gap: 6px;
    }
    .banner-wrap .carousel-indicators button {
        width: 20px;
        height: 2px;
    }
    .banner-wrap .carousel-indicators button.active {
        width: 30px;
    }
}

/* ===================== 快速导航 ===================== */
.quick-nav {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 20px;
    border-radius: 0 0 10px 10px;
    position: relative;
    z-index: 10;
}

.quick-nav .row {
    overflow: hidden;
    border-radius: 0 0 10px 10px;
}

.nav-item-quick {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px 16px;
    text-decoration: none;
    color: #555;
    transition: all 0.3s;
    border-right: 1px solid var(--gray-light);
    position: relative;
}

.nav-item-quick::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--red-primary);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-item-quick:last-child {
    border-right: none;
}

.nav-item-quick:hover {
    color: var(--red-primary);
    background: #fff;
}

.nav-item-quick:hover::after {
    width: 60%;
}

/* ===================== 首页学习专栏 ===================== */
.xi-home-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.xi-home-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.xi-home-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.xi-home-img {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.xi-home-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.xi-home-item:hover .xi-home-img img {
    transform: scale(1.08);
}

.xi-home-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #C41A1A, #8B0000);
    display: flex;
    align-items: center;
    justify-content: center;
}

.xi-home-img-placeholder i {
    font-size: 2.5rem;
    color: rgba(255,255,255,0.5);
}

.xi-home-type {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(196,26,26,0.9);
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.xi-home-title {
    padding: 10px 12px;
    font-size: 0.85rem;
    color: #333;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
    font-weight: 500;
    border-top: 1px solid #f5f5f5;
}

.nav-item-quick i {
    font-size: 1.6rem;
    margin-bottom: 8px;
    width: 52px;
    height: 52px;
    line-height: 52px;
    text-align: center;
    border-radius: 50%;
    background: var(--red-light);
    color: var(--red-primary);
    transition: all 0.3s;
}

.nav-item-quick:hover i {
    background: var(--red-primary);
    color: #fff;
    transform: scale(1.08);
}

.nav-item-quick span {
    font-size: 0.85rem;
    font-weight: 500;
}

/* ===================== 通用区块 ===================== */
.section-block {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.section-block:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 2px solid var(--red-primary);
    background: linear-gradient(to right, rgba(248,215,218,0.4), #fff 50%);
}

.section-header h3 {
    font-size: 1.05rem;
    font-weight: bold;
    margin: 0;
    color: #333;
    display: flex;
    align-items: center;
}

.section-header h3 i {
    color: var(--red-primary);
}

.more-link {
    font-size: 0.82rem;
    color: var(--gray);
    text-decoration: none;
    transition: color 0.2s;
    padding: 2px 8px;
    border-radius: 4px;
}

.more-link:hover {
    color: var(--red-primary);
    background: var(--red-light);
}

.section-body {
    padding: 18px 20px;
}

/* ===================== 带图新闻 ===================== */
.featured-news {
    display: flex;
    gap: 16px;
    padding-bottom: 15px;
    margin-bottom: 10px;
    border-bottom: 1px dashed var(--gray-light);
}

.featured-img {
    width: 200px;
    height: 130px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    transition: transform 0.3s, box-shadow 0.3s;
}

.featured-news:hover .featured-img {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.featured-info {
    flex: 1;
    min-width: 0;
}

.featured-info h4 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.featured-info h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.featured-info h4 a:hover {
    color: var(--red-primary);
}

.featured-summary {
    color: var(--gray);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===================== 紧凑新闻列表 ===================== */
.news-list-tight {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-list-tight li {
    display: flex;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px dashed var(--gray-light);
    transition: padding-left 0.2s;
}

.news-list-tight li:hover {
    padding-left: 4px;
}

.news-list-tight li:last-child {
    border-bottom: none;
}

.news-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red-primary);
    flex-shrink: 0;
    margin-right: 10px;
    transition: transform 0.2s;
}

.news-list-tight li:hover .news-dot {
    transform: scale(1.4);
}

.news-dot.dot-blue {
    background: #3498db;
}

.news-title {
    flex: 1;
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.news-title:hover {
    color: var(--red-primary);
}

.news-date {
    font-size: 0.78rem;
    color: #aaa;
    flex-shrink: 0;
    margin-left: 10px;
    font-family: 'Arial', sans-serif;
}

/* ===================== 主要工作面板 ===================== */
.work-panel {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s, transform 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.work-panel:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

.work-panel-header {
    padding: 12px 16px;
}

.work-panel-header a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
}

.work-panel-count {
    margin-left: auto;
    font-size: 0.8rem;
    font-weight: normal;
    opacity: 0.85;
}

.work-panel-header a:hover {
    opacity: 0.9;
}

.work-panel-header i {
    font-size: 1.1rem;
}

.work-panel-body {
    flex: 1;
    padding: 4px 0;
}

/* 工作新闻列表 */
.work-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.work-news-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-bottom: 1px dashed var(--gray-light);
    transition: background 0.2s;
}

.work-news-list li:last-child {
    border-bottom: none;
}

.work-news-list li:hover {
    background: #fafafa;
}

/* 左侧缩略图 */
.work-news-thumb {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    overflow: hidden;
    display: block;
}

.work-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-news-default {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 6px;
}

.work-news-default i {
    font-size: 0.9rem;
    color: #fff;
}

/* 标题 */
.work-news-text {
    flex: 1;
    min-width: 0;
    font-size: 0.85rem;
    color: #555;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    transition: color 0.2s;
}

.work-news-text:hover {
    color: var(--red-primary);
}

/* 右侧日期 */
.work-news-date {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: #bbb;
    font-family: 'Arial', sans-serif;
}

.work-empty {
    padding: 30px 0;
    text-align: center;
    color: #ccc;
    font-size: 0.9rem;
}

/* ===================== 资料库 ===================== */
.resource-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resource-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px dashed var(--gray-light);
    transition: background 0.2s;
}

.resource-list li:hover {
    background: #fafafa;
}

.resource-list li:last-child {
    border-bottom: none;
}

.resource-icon {
    flex-shrink: 0;
    color: #e74c3c;
    font-size: 1rem;
}

.resource-title {
    flex: 1;
    min-width: 0;
    font-size: 0.88rem;
    color: #555;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.resource-title:hover {
    color: var(--red-primary);
}

.resource-date {
    flex-shrink: 0;
    font-size: 0.78rem;
    color: #bbb;
}

/* 视频卡片 */
.video-card {
    display: block;
    text-decoration: none;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s, transform 0.3s;
}

.video-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

.video-thumb {
    position: relative;
    width: 100%;
    padding-top: 62.5%;
    overflow: hidden;
    background: #f0f0f0;
}

.video-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.video-card:hover .video-thumb img {
    transform: scale(1.05);
}

.video-thumb-default {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.video-thumb-default i {
    font-size: 2.5rem;
    color: rgba(255,255,255,0.6);
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-card:hover .video-play {
    opacity: 1;
}

.video-play i {
    color: #fff;
    font-size: 1.1rem;
}

.video-info {
    padding: 10px 12px;
}

.video-title {
    font-size: 0.85rem;
    color: #333;
    margin: 0 0 4px 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.video-card:hover .video-title {
    color: var(--red-primary);
}

.video-date {
    font-size: 0.75rem;
    color: #bbb;
}

/* ===================== 关于我们 ===================== */
.about-intro {
    font-size: 0.92rem;
    line-height: 1.8;
    color: #555;
    text-indent: 2em;
}

/* 侧边栏 */
.about-sidebar {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.about-sidebar-header {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: #fff;
    padding: 16px 18px;
    font-size: 1.05rem;
    font-weight: bold;
}

.about-sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-sidebar-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.about-sidebar-menu li:last-child {
    border-bottom: none;
}

.about-sidebar-menu li a {
    display: block;
    padding: 12px 18px;
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.about-sidebar-menu li a:hover {
    background: #fef5f5;
    color: var(--red-primary);
    padding-left: 22px;
}

.about-sidebar-menu li.active a {
    background: #fef5f5;
    color: var(--red-primary);
    font-weight: bold;
    border-left: 3px solid var(--red-primary);
}

/* 主内容区 */
.about-main {
    background: #fff;
    border-radius: 10px;
    padding: 24px 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    min-height: 400px;
}

/* 面包屑 */
.about-breadcrumb {
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 20px;
    font-size: 0.82rem;
    color: #999;
}

.about-breadcrumb a {
    color: #999;
    text-decoration: none;
}

.about-breadcrumb a:hover {
    color: var(--red-primary);
}

.about-breadcrumb span {
    color: #333;
}

/* 卡片列表 */
.about-section-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-section-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    transition: box-shadow 0.3s, border-color 0.3s;
}

.about-section-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    border-color: #e0e0e0;
}

.about-section-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-section-icon i {
    font-size: 1.3rem;
    color: #fff;
}

.about-section-body {
    flex: 1;
}

.about-section-body h4 {
    font-size: 1rem;
    margin: 0 0 8px 0;
}

.about-section-body h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.about-section-body h4 a:hover {
    color: var(--red-primary);
}

.about-section-body p {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.6;
    margin: 0 0 8px 0;
}

.about-read-more {
    font-size: 0.8rem;
    color: var(--red-primary);
    text-decoration: none;
}

.about-read-more:hover {
    opacity: 0.8;
}

/* 详情页 */
.about-detail-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin: 0 0 12px 0;
}

.about-detail-meta {
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 1px dashed #e0e0e0;
    margin-bottom: 20px;
    font-size: 0.82rem;
    color: #aaa;
}

.about-detail-content {
    font-size: 0.92rem;
    line-height: 1.9;
    color: #555;
}

.about-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 12px 0;
}

.about-detail-content p {
    margin-bottom: 14px;
}

/* ===================== 信息公开链接 ===================== */
.public-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.public-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 15px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.public-link-item:hover {
    background: #fff;
    border-color: var(--red-primary);
    color: var(--red-primary);
    box-shadow: 0 4px 12px rgba(220,53,69,0.1);
    transform: translateY(-2px);
}

.public-link-item i {
    font-size: 1.3rem;
    width: 38px;
    height: 38px;
    line-height: 38px;
    text-align: center;
    border-radius: 8px;
    background: #fff;
    flex-shrink: 0;
    transition: all 0.3s;
}

.public-link-item:hover i {
    background: var(--red-primary);
    color: #fff !important;
}

/* ===================== 友情链接 ===================== */
.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.friend-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--gray-light);
    border-radius: 20px;
    text-decoration: none;
    color: #555;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.friend-link:hover {
    background: var(--red-light);
    color: var(--red-primary);
}

.friend-link img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

/* ===================== 兼容旧样式 ===================== */
.section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.section-title {
    border-left: 4px solid var(--red-primary);
    padding-left: 15px;
    margin-bottom: 20px;
    font-size: 1.25rem;
    font-weight: bold;
}

.news-list .news-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-light);
}

.news-list .news-item:last-child {
    border-bottom: none;
}

.news-item h4 {
    margin-bottom: 10px;
}

.news-item h4 a {
    color: #333;
    text-decoration: none;
}

.news-item h4 a:hover {
    color: var(--red-primary);
}

.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.card-body i {
    margin-bottom: 10px;
}

.sidebar {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.sidebar h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--red-primary);
}

.sidebar .list-group-item {
    border: none;
    border-bottom: 1px solid var(--gray-light);
    padding: 10px 0;
    background: transparent;
}

.sidebar .list-group-item:last-child {
    border-bottom: none;
}

.sidebar .list-group-item a {
    color: #333;
    text-decoration: none;
}

.sidebar .list-group-item a:hover {
    color: var(--red-primary);
}

.content {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.content h2 {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--red-primary);
}

/* ===================== 翻页组件（美化） ===================== */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

/* 自定义翻页（排除联系页使用的 Bootstrap 原生 .pagination-sm） */
.pagination:not(.pagination-sm) a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.pagination:not(.pagination-sm) a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(229, 5, 22, 0.18);
}

.pagination:not(.pagination-sm) a.btn-red {
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(229, 5, 22, 0.28);
}

.pagination:not(.pagination-sm) a.btn-outline-red {
    background-color: #fff;
}

.article-meta {
    margin-bottom: 20px;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content img {
    max-width: 100% !important;
    height: auto !important;
    margin: 10px 0;
}

.content img {
    max-width: 100% !important;
    height: auto !important;
}

.article-content table {
    max-width: 100% !important;
    overflow-x: auto;
    display: block;
}

.article-content iframe,
.article-content video,
.article-content object {
    max-width: 100% !important;
}

.related-news {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-light);
}

.related-news h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* ===================== 首页捐赠专栏 ===================== */
.donate-section .donate-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 14px 15px;
}

.donate-section .donate-qrcode {
    flex: 0 0 auto;
    text-align: center;
}

.donate-section .donate-qrcode img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #eee;
}

.donate-section .donate-qrcode p {
    margin-top: 4px;
    font-size: 0.78rem;
    color: var(--red-primary);
    font-weight: 500;
}

.donate-section .donate-contact {
    flex: 1;
    min-width: 0;
}

.donate-section .donate-contact p {
    font-size: 0.82rem;
    color: #555;
    margin-bottom: 5px;
    display: flex;
    align-items: flex-start;
    gap: 5px;
    word-break: break-all;
}

.donate-section .donate-contact p i {
    color: var(--red-primary);
    margin-top: 3px;
    flex-shrink: 0;
}

/* 右侧栏（公告+捐赠）整体高度不超过左边最新动态 */
@media (min-width: 992px) {
    .col-lg-4 .section-block:first-child {
        max-height: 380px;
        overflow-y: auto;
    }
    .col-lg-4 .section-block:first-child .section-body {
        max-height: 320px;
        overflow-y: auto;
    }
}

@media (max-width: 991.98px) {
    .donate-section .donate-box {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .donate-section .donate-qrcode {
        flex: 0 0 auto;
    }
    .donate-section .donate-contact {
        flex: 1 1 200px;
    }
}

/* ===================== 页脚 ===================== */
.site-footer {
    margin-top: 50px;
    background: #1a1a2e;
    color: #b0b8c8;
    font-size: 0.85rem;
}

.footer-top {
    padding: 45px 0 30px;
}

.footer-widget {
    position: relative;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.footer-brand img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.footer-desc {
    font-size: 0.85rem;
    line-height: 1.8;
    color: #8892a6;
    margin-bottom: 12px;
}

.footer-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
    color: var(--red-primary) !important;
    text-decoration: none;
    transition: gap 0.3s;
}

.footer-more:hover {
    gap: 8px;
    color: #ff6b7a !important;
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 18px;
    padding-bottom: 10px;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 3px;
    background: var(--red-primary);
    border-radius: 2px;
}

.footer-contact {
    font-size: 0.85rem;
    line-height: 1.8;
    color: #8892a6;
}

.footer-contact p {
    margin-bottom: 6px;
}

.footer-contact p:last-child {
    margin-bottom: 0;
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #8892a6;
}

.footer-contact-list li:last-child {
    margin-bottom: 0;
}

.footer-contact-list li i {
    color: var(--red-primary);
    width: 16px;
    text-align: center;
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-links li {
    width: 100%;
}

.footer-links li a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #8892a6;
    text-decoration: none;
    padding: 5px 0;
    transition: color 0.3s, padding-left 0.3s;
}

.footer-links li a:hover {
    color: #fff;
    padding-left: 6px;
}

.footer-links li a i {
    font-size: 0.72rem;
    color: #4a5568;
    transition: color 0.3s;
}

.footer-links li a:hover i {
    color: var(--red-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 0;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.82rem;
    color: #6c757d;
    text-align: center;
}

.footer-empty {
    color: #4a5568;
    font-size: 0.85rem;
    margin: 0;
}

/* ===================== 表单 ===================== */
.form-group {
    margin-bottom: 15px;
}

.form-control:focus {
    border-color: var(--red-primary);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.flash-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.flash-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===================== 响应式 ===================== */
@media (max-width: 768px) {
    .banner-wrap .carousel-item img {
        height: 100%;
    }

    .top-bar-inner {
        height: 60px;
    }

    .top-bar .site-logo img {
        height: 36px;
    }

    .top-bar .site-logo .logo-text .logo-title {
        font-size: 1rem;
    }

    .top-bar .site-logo .logo-text .logo-sub {
        display: none;
    }

    .slogan-rotate {
        display: none !important;
    }

    .top-bar .top-links .top-link-icon {
        padding: 4px 10px;
        font-size: 0.78rem;
    }

    .navbar-main .navbar-nav .nav-link {
        padding: 10px 16px;
        text-align: center;
    }

    .navbar-main .navbar-nav .nav-link::after {
        display: none;
    }

    .navbar-nav {
        text-align: center;
    }

    .featured-news {
        flex-direction: column;
    }

    .featured-img {
        width: 100%;
        height: 180px;
    }

    .nav-item-quick {
        border-right: none;
        border-bottom: 1px solid var(--gray-light);
    }

    .xi-home-img {
        height: 140px;
    }

    .xi-home-title {
        font-size: 0.78rem;
        padding: 8px 10px;
    }

    .public-links {
        grid-template-columns: 1fr;
    }

    .top-bar {
        display: none;
    }

    .work-news-thumb {
        width: 30px;
        height: 30px;
    }

    .work-news-text {
        font-size: 0.8rem;
    }
}
