/* ===========================
   沧州市新华区文化馆 - 网站样式
   =========================== */

/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background-color: #f5f5f5;
    line-height: 1.8;
}

a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #b91c1c;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* ===========================
   顶部公告条
   =========================== */
.top-bar {
    background: #8b0000;
    color: #fff;
    font-size: 12px;
    padding: 5px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar .welcome {
    opacity: 0.9;
}

.top-bar .top-links a {
    color: #fff;
    margin-left: 15px;
    opacity: 0.9;
}

.top-bar .top-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ===========================
   头部
   =========================== */
.header {
    background: #fff;
    padding: 20px 0;
    border-bottom: 3px solid #8b0000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: contain;
    background: #fff;
    flex-shrink: 0;
    display: block;
}

.logo-text h1 {
    font-size: 24px;
    color: #8b0000;
    font-weight: bold;
    letter-spacing: 2px;
}

.logo-text .subtitle {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
    letter-spacing: 1px;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.search-box {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.search-box input {
    width: 200px;
    padding: 6px 12px;
    border: none;
    outline: none;
    font-size: 13px;
}

.search-box button {
    background: #8b0000;
    color: #fff;
    border: none;
    padding: 6px 16px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #a01919;
}

.header-date {
    font-size: 12px;
    color: #999;
}

/* ===========================
   导航栏
   =========================== */
.nav {
    background: linear-gradient(to bottom, #8b0000, #a01515);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: relative;
    z-index: 100;
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav li {
    position: relative;
}

.nav a {
    display: block;
    color: #fff;
    padding: 15px 28px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.nav a:hover, .nav a.active {
    background: rgba(0,0,0,0.2);
    color: #ffd700;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: #ffd700;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav a:hover::after, .nav a.active::after {
    width: 60%;
}

/* 移动端菜单按钮 */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
}

/* ===========================
   容器
   =========================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===========================
   轮播图
   =========================== */
.banner {
    position: relative;
    width: 100%;
    padding: 20px 15px;
    background-color: #f5f2ed;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='%23c9b8a0' opacity='0.12'%3E%3Cpath d='M80 20c8 10 22 14 30 24-8 10-12 24-30 34-18-10-22-24-30-34 8-10 22-14 30-24z'/%3E%3Cpath d='M20 80c10-8 14-22 24-30 10 8 24 12 34 30-10 18-24 22-34 30-10-8-14-22-24-30z'/%3E%3Cpath d='M80 140c-8-10-22-14-30-24 8-10 12-24 30-34 18 10 22 24 30 34-8 10-22 14-30 24z'/%3E%3Cpath d='M140 80c-10 8-14 22-24 30-10-8-24-12-34-30 10-18 24-22 34-30 10 8 14 22 24 30z'/%3E%3Ccircle cx='80' cy='80' r='6'/%3E%3C/g%3E%3C/svg%3E");
    overflow: hidden;
}

/* 左侧大图 + 右侧缩略图布局 */
.banner-with-thumbs {
    display: flex;
    max-width: 1200px;
    height: 420px;
    margin: 0 auto;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    overflow: hidden;
}

.banner-main {
    flex: 3;
    position: relative;
    overflow: hidden;
    min-width: 0;
    background: #f0f0f0;
}

.banner-thumbs {
    flex: 1;
    min-width: 240px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: #f8f8f8;
    border-left: 1px solid #e8e8e8;
}

.banner-thumbs .thumb-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-bottom: 1px solid #e8e8e8;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.banner-thumbs .thumb-item:hover {
    background: #fff;
}

.banner-thumbs .thumb-item.active {
    background: #fff;
    border-left: 4px solid #b32424;
    padding-left: 11px;
}

.banner-thumbs .thumb-item img {
    width: 90px;
    height: 64px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    background: #eee;
}

.banner-thumbs .thumb-item .thumb-title {
    flex: 1;
    font-size: 13px;
    line-height: 1.5;
    color: #444;
    max-height: 3em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.banner-thumbs .thumb-item.active .thumb-title {
    color: #b32424;
    font-weight: 500;
}

.banner-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    pointer-events: none;
}

.banner-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.banner-slide .slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    z-index: 1;
    background: #f0f0f0;
}

.banner-slide .slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    text-align: left;
    color: #fff;
    padding: 50px 30px 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
}

.banner-slide .slide-content h2 {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.8);
    line-height: 1.4;
    max-width: 80%;
}

.banner-slide .slide-content p {
    font-size: 14px;
    opacity: 0.9;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
    max-width: 80%;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.banner-slide .slide-content .slide-date {
    display: inline-block;
    margin-top: 12px;
    padding: 3px 12px;
    background: rgba(179,36,36,0.9);
    border-radius: 20px;
    font-size: 12px;
}

.banner-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.35);
    color: #fff;
    border: none;
    padding: 14px 10px;
    cursor: pointer;
    font-size: 22px;
    z-index: 10;
    transition: background 0.3s;
}

.banner-btn:hover {
    background: rgba(179,36,36,0.85);
}

.banner-btn.prev { left: 12px; }
.banner-btn.next { right: 12px; }

.banner-dots {
    display: none;
}

.banner-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: #fff;
    font-size: 13px;
    z-index: 10;
    background: rgba(0,0,0,0.45);
    padding: 3px 10px;
    border-radius: 12px;
}

/* ===========================
   快捷入口
   =========================== */
.quick-access {
    background: #fff;
    padding: 25px 0;
    margin-top: 0;
    border-bottom: 1px solid #eee;
}

.quick-access .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
}

.quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 100px;
}

.quick-item:hover {
    background: #fef2f2;
    transform: translateY(-3px);
}

.quick-item .icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
}

.quick-item .icon.red { background: linear-gradient(135deg, #8b0000, #c41e3a); }
.quick-item .icon.orange { background: linear-gradient(135deg, #d97706, #f59e0b); }
.quick-item .icon.green { background: linear-gradient(135deg, #15803d, #22c55e); }
.quick-item .icon.blue { background: linear-gradient(135deg, #1e40af, #3b82f6); }
.quick-item .icon.purple { background: linear-gradient(135deg, #6b21a8, #9333ea); }
.quick-item .icon.teal { background: linear-gradient(135deg, #0f766e, #14b8a6); }

.quick-item .label {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

/* ===========================
   主内容区
   =========================== */
.main-content {
    padding: 30px 0;
}

.section-row {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* 左侧大图新闻区 */
.news-feature {
    flex: 1;
    min-width: 300px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.news-feature .feature-image {
    display: block;
    width: 100%;
    height: 250px;
    min-height: 250px;
    max-height: 250px;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
}

.news-feature .feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s;
}

.news-feature .feature-image:hover img {
    transform: scale(1.05);
}

.news-feature .feature-image .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 30px 20px 15px;
}

.news-feature .feature-image .overlay h3 {
    color: #fff;
    font-size: 18px;
    line-height: 1.5;
}

.news-feature .feature-image .overlay .date {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    margin-top: 5px;
}

.news-feature .feature-list {
    padding: 15px 20px;
}

.news-feature .feature-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.news-feature .feature-list li a {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 15px;
    font-size: 14px;
}

.news-feature .feature-list li .date {
    color: #999;
    font-size: 12px;
    flex-shrink: 0;
}

.news-feature .feature-list li a::before {
    content: '\25C6';
    color: #8b0000;
    margin-right: 8px;
    font-size: 10px;
}

/* 右侧通知公告 */
.news-notice {
    width: 380px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.section-tabs {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
}

.section-tab {
    padding: 14px 25px;
    font-size: 16px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.section-tab.active {
    color: #8b0000;
    border-bottom-color: #8b0000;
}

.section-tab:hover {
    color: #8b0000;
}

.tab-content {
    display: none;
    padding: 15px 20px;
}

.tab-content.active {
    display: block;
}

.tab-content li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.tab-content li:last-child {
    border-bottom: none;
}

.tab-content li a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    padding-right: 80px;
    position: relative;
}

.tab-content li .date {
    position: absolute;
    right: 0;
    top: 0;
    color: #999;
    font-size: 12px;
}

.tab-content li a::before {
    content: '\25C6';
    color: #8b0000;
    margin-right: 8px;
    font-size: 10px;
}

.section-more {
    text-align: right;
    padding: 10px 20px;
    border-top: 1px solid #f0f0f0;
}

.section-more a {
    font-size: 13px;
    color: #999;
}

.section-more a:hover {
    color: #8b0000;
}

/* ===========================
   内容区块通用样式
   =========================== */
.content-block {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 25px;
}

.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 2px solid #f0f0f0;
    background: linear-gradient(to right, #fff5f5, #fff);
}

.block-header h3 {
    font-size: 18px;
    font-weight: bold;
    color: #8b0000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.block-header h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: #8b0000;
    border-radius: 2px;
}

.block-header .more-link {
    font-size: 13px;
    color: #999;
}

.block-header .more-link:hover {
    color: #8b0000;
}

.block-body {
    padding: 20px;
}

/* ===========================
   公益培训网格
   =========================== */
.training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.training-card {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.training-card:hover {
    box-shadow: 0 4px 16px rgba(139,0,0,0.12);
    transform: translateY(-3px);
    border-color: #8b0000;
}

.training-card .card-image {
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, #8b0000, #c41e3a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 36px;
}

.training-card .card-body {
    padding: 12px 15px;
}

.training-card .card-body h4 {
    font-size: 15px;
    color: #333;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.training-card .card-body .card-date {
    font-size: 12px;
    color: #999;
}

/* ===========================
   文章列表页
   =========================== */
.article-list {
    padding: 0;
}

.article-list-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s;
}

.article-list-item:hover {
    background: #fef9f9;
}

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

.article-list-item .item-date {
    flex-shrink: 0;
    width: 70px;
    text-align: center;
    border-right: 1px solid #f0f0f0;
    padding-right: 20px;
}

.article-list-item .item-date .day {
    font-size: 28px;
    font-weight: bold;
    color: #8b0000;
    line-height: 1;
}

.article-list-item .item-date .month {
    font-size: 12px;
    color: #999;
    margin-top: 3px;
}

.article-list-item .item-content {
    flex: 1;
}

.article-list-item .item-content h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
}

.article-list-item .item-content h4 a:hover {
    color: #8b0000;
}

.article-list-item .item-content p {
    font-size: 13px;
    color: #666;
    line-height: 1.7;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ===========================
   非遗展示网格
   =========================== */
.heritage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.heritage-card {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.heritage-card .card-image {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
}

.heritage-card .card-body {
    padding: 12px 15px;
}

.heritage-card .card-body h4 {
    font-size: 15px;
    margin-bottom: 5px;
}

.heritage-card .card-body p {
    font-size: 12px;
    color: #999;
}

/* ===========================
   通知公告列表
   =========================== */
.notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notice-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px dashed #eee;
    gap: 15px;
    transition: background 0.2s;
}

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

.notice-item:hover {
    background: #fef2f2;
}

.notice-date {
    font-size: 13px;
    color: #999;
    white-space: nowrap;
    min-width: 80px;
}

.notice-title {
    font-size: 15px;
    color: #333;
    text-decoration: none;
    line-height: 1.5;
    flex: 1;
}

.notice-title:hover {
    color: #c41e3a;
}

/* ===========================
   分页
   =========================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 30px 0;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
    transition: all 0.3s;
}

.pagination a:hover {
    background: #8b0000;
    color: #fff;
    border-color: #8b0000;
}

.pagination .current {
    background: #8b0000;
    color: #fff;
    border-color: #8b0000;
}

/* ===========================
   文章详情页
   =========================== */
.article-detail {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.article-detail-header {
    text-align: center;
    padding: 35px 30px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.article-detail-header h1 {
    font-size: 26px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.5;
}

.article-meta {
    font-size: 13px;
    color: #999;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.article-detail-body {
    padding: 30px 40px;
    font-size: 16px;
    line-height: 2;
    color: #444;
}

.article-detail-body p {
    margin-bottom: 20px;
    text-indent: 2em;
}

.article-detail-body h2,
.article-detail-body h3,
.article-detail-body h4 {
    margin: 25px 0 15px;
    color: #8b0000;
    text-indent: 0;
}

.article-detail-body h2 { font-size: 22px; }
.article-detail-body h3 { font-size: 18px; }
.article-detail-body h4 { font-size: 16px; }

.article-detail-body strong {
    color: #8b0000;
}

.article-detail-body img {
    margin: 20px auto;
    border-radius: 6px;
    max-width: 100%;
}

/* 导入文章内容样式适配 */
.article-detail-body section {
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    box-sizing: border-box !important;
}

.article-detail-body section > section {
    margin: 0;
}

.article-detail-body img {
    max-width: 100% !important;
    height: auto !important;
}

.article-detail-body span {
    max-width: 100%;
    word-break: break-word;
}

.article-detail-body table {
    max-width: 100%;
    border-collapse: collapse;
}

.article-detail-body table img {
    max-width: 100%;
}

/* 微信图文样式适配 */
.article-detail-body .rich_pages {
    max-width: 100% !important;
}

.article-detail-body [data-src] {
    display: inline-block;
}

/* 清除可能导致溢出的固定宽度 */
.article-detail-body [style*="width:"] {
    max-width: 100% !important;
}

.article-detail-body [style*="max-width:"] {
    max-width: 100% !important;
}

/* 文章中的视频/媒体占位 */
.article-detail-body .media-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #8b0000, #c41e3a);
    border-radius: 8px;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    font-size: 48px;
}

.article-detail-footer {
    padding: 20px 40px 30px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
    color: #999;
}

.article-detail-footer .editors {
    display: flex;
    gap: 30px;
    justify-content: flex-end;
}

.article-nav {
    padding: 20px 40px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
}

.article-nav a {
    font-size: 14px;
    color: #666;
}

.article-nav a:hover {
    color: #8b0000;
}

/* ===========================
   面包屑导航
   =========================== */
.breadcrumb {
    padding: 15px 0;
    font-size: 13px;
    color: #999;
}

.breadcrumb a {
    color: #999;
}

.breadcrumb a:hover {
    color: #8b0000;
}

.breadcrumb .separator {
    margin: 0 8px;
}

/* ===========================
   页面布局
   =========================== */
.page-layout {
    display: flex;
    gap: 25px;
}

.page-main {
    flex: 1;
    min-width: 0;
}

.page-sidebar {
    width: 280px;
    flex-shrink: 0;
}

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

.sidebar-block .block-header {
    padding: 12px 15px;
}

.sidebar-block .block-header h3 {
    font-size: 16px;
}

.sidebar-block .block-body {
    padding: 10px 15px;
}

.sidebar-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #f0f0f0;
}

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

.sidebar-list li a {
    display: block;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 60px;
    position: relative;
}

.sidebar-list li .date {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 12px;
    color: #ccc;
}

/* ===========================
   馆务信息条
   =========================== */
/* ===========================
   底部
   =========================== */
.footer {
    background: #2d1010;
    color: #ccc;
    padding: 35px 0 20px;
    margin-top: 0;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-info {
    flex: 1.6;
    min-width: 320px;
    max-width: 680px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-brand-logo {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}

.footer-brand-titles h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 3px;
}

.footer-brand-titles p {
    color: rgba(255,255,255,0.55);
    font-size: 10px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    line-height: 1.4;
}

.footer-info-body {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-info-items {
    flex: 1;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-info-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.6;
}

.footer-info-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin-top: 3px;
    color: rgba(255,255,255,0.7);
}

.footer-info-label {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    flex-shrink: 0;
    width: 56px;
}

.footer-info-text {
    color: rgba(255,255,255,0.65);
    font-size: 13px;
    flex: 1;
}

.footer-info-qr {
    flex-shrink: 0;
    text-align: center;
}

.footer-info-qr img {
    width: 64px;
    height: 64px;
    border-radius: 4px;
    background: #fff;
    padding: 3px;
    display: block;
    margin: 0 auto 6px;
}

.footer-info-qr span {
    color: rgba(255,255,255,0.65);
    font-size: 12px;
}

.footer-links {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-links h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 12px;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    font-size: 13px;
    color: #aaa;
}

.footer-links ul li a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 12px;
    color: #888;
}

.footer-bottom p {
    margin-bottom: 5px;
}

.footer-bottom .beian-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-bottom .gongan-beian {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #888;
    text-decoration: none;
}

.footer-bottom .gongan-beian img {
    width: 16px;
    height: 16px;
    display: block;
}

.footer-bottom .gongan-beian:hover,
.footer-bottom a:hover {
    color: #fff;
}

@media (max-width: 480px) {
    .footer-bottom .beian-row {
        flex-direction: column;
        gap: 8px;
    }
}

/* ===========================
   回到顶部
   =========================== */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 45px;
    height: 45px;
    background: #8b0000;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: none;
    z-index: 999;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.back-to-top:hover {
    background: #a01919;
    transform: translateY(-3px);
}

.back-to-top.show {
    display: block;
}

/* ===========================
   响应式设计
   =========================== */
@media (max-width: 1024px) {
    .news-notice {
        width: 100%;
    }
    
    .page-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #8b0000;
    }
    
    .nav ul.show {
        display: flex;
    }
    
    .nav a {
        padding: 12px 20px;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-toggle {
        display: block;
    }
    
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-right {
        align-items: center;
    }
    
    .search-box input {
        width: 150px;
    }
    
    .banner {
        padding: 15px 10px;
    }

    .banner-with-thumbs {
        flex-direction: column;
        height: auto;
    }

    .banner-main {
        height: 200px;
        flex: none;
    }

    .banner-btn {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }

    .banner-counter {
        bottom: 8px;
        right: 10px;
        padding: 3px 8px;
        font-size: 12px;
    }

    .banner-thumbs {
        flex: none;
        max-width: none;
        min-width: auto;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        border-left: none;
        border-top: 1px solid #e8e8e8;
        height: 75px;
    }

    .banner-thumbs .thumb-item {
        min-width: 140px;
        padding: 8px 10px;
        border-bottom: none;
        border-right: 1px solid #e8e8e8;
    }

    .banner-thumbs .thumb-item.active {
        border-left: none;
        border-bottom: 3px solid #b32424;
        padding-left: 10px;
        padding-bottom: 5px;
    }

    .banner-thumbs .thumb-item img {
        width: 70px;
        height: 48px;
    }

    .banner-thumbs .thumb-item .thumb-title {
        font-size: 12px;
        line-height: 1.4;
    }

    .banner-slide .slide-content {
        padding: 15px 12px 12px;
    }

    .banner-slide .slide-content h2 {
        font-size: 16px;
        max-width: 100%;
        line-height: 1.4;
    }

    .banner-slide .slide-content p {
        display: none;
    }
    
    .section-row {
        flex-direction: column;
    }
    
    .article-list-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-list-item .item-date {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        padding-right: 0;
        padding-bottom: 10px;
        display: flex;
        align-items: baseline;
        gap: 8px;
    }
    
    .article-list-item .item-date .day {
        font-size: 20px;
    }
    
    .article-detail-body {
        padding: 20px 15px;
    }
    
    .article-detail-header {
        padding: 20px 15px;
    }
    
    .article-detail-header h1 {
        font-size: 20px;
    }
    
    .footer-main {
        flex-direction: column;
        gap: 35px;
    }

    .footer-info {
        max-width: 100%;
    }

    .footer-info-body {
        gap: 22px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
    }
    
    .training-grid,
    .heritage-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .notice-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .notice-date {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .training-grid,
    .heritage-grid {
        grid-template-columns: 1fr;
    }

    .notice-item {
        padding: 8px 10px;
    }

    .notice-title {
        font-size: 14px;
    }
    
    .quick-access .container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 0 10px;
    }

    .quick-item {
        padding: 12px 5px;
        min-width: auto;
    }

    .quick-item .icon {
        width: 46px;
        height: 46px;
        font-size: 20px;
    }

    .quick-item .label {
        font-size: 13px;
    }

    /* 手机端首页轮播进一步缩小，避免占用过多首屏 */
    .banner {
        padding: 10px 8px;
    }

    .banner-main {
        height: 160px;
    }

    .banner-thumbs {
        height: 62px;
    }

    .banner-thumbs .thumb-item {
        min-width: 120px;
        padding: 6px 8px;
    }

    .banner-thumbs .thumb-item img {
        width: 56px;
        height: 40px;
    }

    .banner-thumbs .thumb-item .thumb-title {
        font-size: 11px;
    }

    .banner-slide .slide-content {
        padding: 10px 10px 8px;
    }

    .banner-slide .slide-content h2 {
        font-size: 14px;
    }

    .footer-brand-titles h3 {
        font-size: 16px;
    }

    .footer-info-label {
        width: auto;
        margin-right: 4px;
    }
}

/* 超小屏手机 fallback：每行 2 个，避免 3 列过挤 */
@media (max-width: 360px) {
    .quick-access .container {
        grid-template-columns: repeat(2, 1fr);
    }
}
