* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 重置所有图片的默认样式 */
img {
    border: none !important;
    outline: none !important;
}

body {
    font-family: 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* 手机端优化容器内边距 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px; /* 减小手机端内边距 */
    }
    
    /* Logo 和导航在手机端垂直排列 */
    header .container {
        flex-direction: column !important;
        gap: 15px;
    }
    
    .site-logo {
        width: 100%;
        text-align: center;
    }
    
    .logo-image {
        max-width: 285px;
    }
    
    /* 导航链接保持3个一行 */
    #category-nav {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px;
        width: 100%;
        justify-content: center;
    }
    
    .nav-link {
        text-align: center;
        padding: 8px 12px;
        font-size: 0.9em;
    }
}

/* 头部样式 - 红色主题 */
header {
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border-bottom: 4px solid #ffd700;
}

header .container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

header nav {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

/* Logo 样式 */
.site-logo {
    flex-shrink: 0;
}

.logo-image {
    max-width: 135px;
    height: auto;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.logo-image:hover {
    transform: scale(1.05);
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
    border: 1px solid transparent;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: #ffd700;
}

.nav-link.active {
    background-color: #ffd700;
    color: #c41e3a;
    font-weight: bold;
    border-color: #fff;
}

/* 主要内容区域 */
main {
    padding: 40px 0;
}

/* 新闻容器 - 网格布局，每行 3 个模块 */
#news-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 100%;
}

/* 响应式：平板和移动端调整 */
@media (max-width: 1200px) {
    #news-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #news-container {
        grid-template-columns: 1fr; /* 移动端每行 1 个 */
    }
}

/* 新闻网格 */
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 100%;
}

/* 响应式：平板和移动端调整 */
@media (max-width: 1200px) {
    /* 平板端不需要额外设置，news-grid 已经是单列 */
}

@media (max-width: 768px) {
    #news-container {
        grid-template-columns: 1fr;
    }
    
    .news-card-title {
        font-size: 1.1em;
    }
    
    .news-card-content {
        padding: 15px;
    }
}

/* 新闻卡片 - 正规新闻网风格 */
.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e0e0e0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.15);
    border-color: #c41e3a;
}

.news-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background-color: #f0f0f0;
    border-bottom: 3px solid #c41e3a;
    /* 强制图片适应卡片 */
    max-width: 100%;
    display: block;
    flex-shrink: 0; /* 防止图片被压缩 */
}

.news-card-content {
    padding: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    min-width: 0;
}

.news-card-category {
    display: inline-block;
    padding: 5px 14px;
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    color: white;
    border-radius: 4px;
    font-size: 0.85em;
    margin-bottom: 12px;
    font-weight: 500;
}

.news-card-title {
    font-size: 1.4em;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
    font-weight: bold;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    display: block;
}

.news-card-summary {
    color: #555;
    font-size: 0.95em;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #888;
    font-size: 0.85em;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}

/* 新闻详情页 - 正规新闻网风格 */
.news-detail {
    background: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-top: 4px solid #c41e3a;
}

/* 版权及免责声明样式 */
.copyright-disclaimer {
    background: #f8f9fa;
    border-left: 4px solid #c41e3a;
    border-radius: 8px;
    padding: 25px 30px;
    margin-top: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.disclaimer-title {
    color: #c41e3a;
    font-size: 1.3em;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0e0e0;
    font-weight: 600;
}

.disclaimer-list {
    margin: 0;
    padding-left: 25px;
    line-height: 1.8;
    color: #555;
}

.disclaimer-list li {
    margin-bottom: 15px;
    text-align: justify;
    font-size: 0.95em;
}

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

.detail-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
}

.detail-category {
    display: inline-block;
    padding: 6px 18px;
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    color: white;
    border-radius: 4px;
    font-size: 0.9em;
    margin-bottom: 15px;
    font-weight: 500;
}

.detail-title {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
    font-weight: bold;
}

.detail-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    color: #666;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    font-size: 0.95em;
}

.detail-meta .meta-row {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
}

/* 大屏幕时，两行合并为一行 */
@media (min-width: 769px) {
    .detail-meta {
        flex-direction: row;
        justify-content: flex-end;
        gap: 25px;
    }
}

.detail-content {
    font-size: 1.1em;
    line-height: 1.8;
    color: #333;
}

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

/* 详情页内容图片自适应 */
.detail-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 分页 - 红色主题 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination button {
    padding: 8px 12px;
    border: 2px solid #c41e3a;
    background-color: white;
    color: #c41e3a;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    font-weight: 500;
    min-width: 40px;
    text-align: center;
}

@media (max-width: 768px) {
    .pagination button {
        padding: 6px 10px;
        min-width: 35px;
        font-size: 14px;
    }
}

.pagination button:hover:not(:disabled) {
    background-color: #c41e3a;
    color: white;
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #ccc;
    color: #ccc;
}

.pagination button.active {
    background-color: #c41e3a;
    color: white;
    font-weight: bold;
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    padding: 0 8px;
    color: #666;
    font-size: 16px;
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 60px 20px;
}

/* 分页容器 */
.pagination-container {
    margin-top: 30px;
    margin-bottom: 20px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #c41e3a;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: #666;
}

/* 页脚 - 红色主题 */
footer {
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    color: white;
    text-align: center;
    padding: 25px 0;
    margin-top: 40px;
    border-top: 3px solid #ffd700;
}

footer p {
    margin: 0;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

/* 类别模块样式 */
.category-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-top: 4px solid #c41e3a;
    height: 100%; /* 确保所有卡片高度一致 */
    display: flex;
    flex-direction: column;
    width: 100%; /* 确保填满网格单元格 */
    min-width: 0; /* 防止内容溢出 */
}

.category-header {
    margin-bottom: 30px;
}

.category-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #f0f0f0;
}

.category-title {
    font-size: 1.4em;
    color: #c41e3a;
    margin: 0;
    font-weight: bold;
}

.more-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.85em;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.more-link:hover {
    background: white;
    color: #c41e3a;
    border-color: #c41e3a;
    transform: translateX(-3px);
}

.more-link .arrow {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.more-link:hover .arrow {
    transform: translateX(3px);
}

/* 精选新闻卡片（带图片） */
.featured-news-card {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.featured-news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.15);
}

.featured-news-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.featured-news-category {
    display: none; /* 隐藏分类标签 */
}

/* 标题覆盖层 - 图片上方底部 */
.featured-news-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: none; /* 移除渐变背景 */
    padding: 0; /* 移除内边距 */
}

.featured-news-title-wrapper {
    background: rgba(255, 255, 255, 0.7); /* 白色半透明背景 */
    padding: 12px 18px;
    border-radius: 0; /* 移除圆角 */
    box-shadow: none; /* 移除阴影 */
    backdrop-filter: blur(5px); /* 毛玻璃效果 */
    width: 100%; /* 宽度与图片一致 */
}

.featured-news-title {
    font-size: 1.2em;
    color: #333;
    line-height: 1.4;
    margin: 0;
    font-weight: bold;
    /* 自动换行 */
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    display: block;
}

.featured-news-meta {
    display: none; /* 隐藏作者和日期 */
}

/* 简单新闻列表（只有标题） */
.news-list-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.simple-news-card {
    padding: 8px 10px;
    border-radius: 4px;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.simple-news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.1);
    border-color: #c41e3a;
}

.simple-news-category {
    display: none; /* 隐藏分类标签 */
}

.simple-news-title {
    font-size: 0.95em;
    color: #444; /* 保持原来的颜色，不是纯黑 */
    line-height: 1.4;
    margin-bottom: 0;
    font-weight: 400; /* 半加粗，不要太粗 */
    /* 自动换行，不限制行数 */
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    display: block;
}

.simple-news-meta {
    display: none; /* 隐藏日期 */
}

/* 首页新闻列表样式 - 采用分类页面的简洁样式 */
.category-news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.category-news-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.category-news-item:hover {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.05) 0%, rgba(139, 0, 0, 0.05) 100%);
    padding-left: 25px;
}

.category-news-item-title {
    font-size: 1.05em;
    color: #333;
    line-height: 1.4;
    margin: 0;
    font-weight: 500;
    /* 单行显示，超出部分用省略号 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 分类页面样式 */
.category-page-title {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-top: 4px solid #c41e3a;
}

.category-page-title h1 {
    font-size: 2em;
    color: #c41e3a;
    margin-bottom: 10px;
    font-weight: bold;
}

.category-page-title p {
    color: #666;
    font-size: 1em;
}

.category-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* 分类页面 - 纯文字列表布局 */
.category-news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* 分类页面主体布局 - 左侧新闻 + 右侧边栏 */
.category-main-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

.category-news-section {
    min-width: 0;
}

.category-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* 侧边栏广告模块 */
.sidebar-ad-module {
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.2);
}

.ad-header {
    padding: 8px 15px;
    background: rgba(0, 0, 0, 0.2);
}

.ad-label {
    color: white;
    font-size: 0.85em;
    font-weight: bold;
    text-transform: uppercase;
}

.ad-content {
    padding: 20px;
    text-align: center;
}

.ad-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.2);
}

.ad-title {
    color: white;
    font-size: 1.1em;
    margin: 0 0 8px 0;
    font-weight: bold;
}

.ad-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9em;
    margin: 0;
}

/* 侧边栏热门新闻 */
.sidebar-hot-news {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.sidebar-title {
    font-size: 1.2em;
    color: #c41e3a;
    margin: 0 0 15px 0;
    font-weight: bold;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.hot-news-item {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.hot-news-item:hover {
    padding-left: 8px;
    color: #c41e3a;
}

.hot-news-item-title {
    font-size: 0.95em;
    color: #333;
    line-height: 1.4;
    margin: 0;
    font-weight: 500;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 侧边栏快速链接 */
.sidebar-quick-links {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.quick-link {
    display: block;
    padding: 12px 15px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.05) 0%, rgba(139, 0, 0, 0.05) 100%);
    color: #c41e3a;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.quick-link:hover {
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.2);
}

.quick-link:last-child {
    margin-bottom: 0;
}

.category-news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.category-news-item:hover {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.05) 0%, rgba(139, 0, 0, 0.05) 100%);
    padding-left: 25px;
}

.category-news-item-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.category-news-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    color: white;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: bold;
    flex-shrink: 0;
}

.category-news-item-title {
    font-size: 1.05em;
    color: #333;
    line-height: 1.4;
    margin: 0;
    font-weight: 500;
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.category-news-item-meta {
    display: flex;
    gap: 15px;
    margin-top: 5px;
    font-size: 0.85em;
    color: #999;
}

.category-news-date {
    color: #999;
}

.category-news-source {
    color: #999;
}

.category-news-arrow {
    font-size: 1.5em;
    color: #c41e3a;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.category-news-item:hover .category-news-arrow {
    transform: translateX(5px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5em;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .detail-title {
        font-size: 1.8em;
    }

    /* 分类页面响应式 - 单栏布局 */
    .category-main-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .category-news-section {
        order: -1; /* 新闻列表在顶部显示 */
    }

    .category-sidebar {
        position: static;
    }

    .sidebar-ad-module,
    .sidebar-hot-news {
        margin-bottom: 15px;
    }

    /* 底部响应式 */
    .footer-links-list {
        justify-content: center;
    }
    
    .footer-details {
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-beian {
        flex-direction: column;
        gap: 8px;
    }
}

/* 网站底部样式 - 优化分行布局 */
#site-footer {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    border-top: 3px solid #c41e3a;
    padding: 25px 0 15px;
    margin-top: 50px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.footer-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

/* 友情链接区域 - 左右布局 */
.footer-links-section {
    text-align: left;
    margin-bottom: 12px;
    padding: 0 20px;
}

.footer-links-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links-title {
    font-size: 1em;
    color: #c41e3a;
    margin: 0;
    font-weight: bold;
    white-space: nowrap;
}

.footer-links-list {
    display: inline;
    gap: 0;
}

.footer-link-item {
    color: #555;
    text-decoration: none;
    font-size: 0.9em;
    padding: 0;
    background: none;
    border: none;
    transition: all 0.3s ease;
    display: inline;
}

.footer-link-item:not(:last-child)::after {
    content: ' ';
    color: #666;
}

.footer-link-item:hover {
    color: #c41e3a;
}

/* 分隔线 */
.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(196, 30, 58, 0) 0%, 
        rgba(196, 30, 58, 0.2) 50%, 
        rgba(196, 30, 58, 0) 100%);
    margin: 20px 0;
}

/* 版权信息区域 */
.footer-info {
    text-align: center;
    padding: 0 20px;
}

/* 底部信息块 - 统一容器（联系信息 + 备案信息 + 版权） */
.footer-info-block {
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    padding: 15px 20px;
    margin-top: 10px;
}

/* 版权行 */
.footer-copyright-line {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(196, 30, 58, 0.1);
}

.footer-copyright-line:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.footer-copyright {
    font-size: 0.9em;
    color: #555;
    font-weight: normal;
    text-align: center;
}

/* 联系信息行 - 地址、邮箱、电话 */
.footer-contact-line {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(196, 30, 58, 0.1);
}

.footer-contact-line:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.footer-contact-items {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
    color: #555;
}

.footer-contact-icon {
    color: #c41e3a;
    font-size: 1.1em;
}

/* 备案信息行 */
.footer-beian-line {
    margin-bottom: 0;
}

.footer-beian-items {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    font-size: 0.9em;
    color: #555;
}

.footer-beian-items a {
    color: #555;
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.footer-beian-items a:hover {
    color: #c41e3a;
    text-decoration: underline;
}

/* 公安备案 */
.footer-gongan-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(196, 30, 58, 0.05);
    border-radius: 4px;
    font-size: 0.85em;
    color: #666;
}

.footer-gongan-box a {
    color: #c41e3a;
    text-decoration: none;
    font-weight: 500;
}

.footer-gongan-box a:hover {
    text-decoration: underline;
    color: #8b0000;
}

.police-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #site-footer {
        padding: 20px 0 10px;
    }
    
    .footer-links-section {
        margin-bottom: 10px;
    }
    
    .footer-links-list {
        gap: 6px;
    }
    
    .footer-link-item {
        padding: 3px 8px;
        font-size: 0.85em;
    }
    
    .footer-contact-line {
        margin-bottom: 10px;
        padding: 8px 15px;
    }
    
    .footer-contact-items {
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-beian-line {
        margin-bottom: 8px;
        padding: 8px 12px;
    }
    
    .footer-beian-items {
        flex-direction: column;
        gap: 6px;
    }
    
    .footer-copyright {
        font-size: 0.85em;
        padding: 8px 15px;
    }
    
    .news-detail {
        padding: 20px;
    }
}

/* ========== 新闻详情页顶部样式 ========== */

/* 详情页头部 */
.detail-header {
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border-bottom: 4px solid #ffd700;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.detail-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.detail-site-title {
    font-size: 1.8em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
    text-align: center;
    flex: 1;
}

/* 返回按钮 */
.back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.95em;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(-3px);
}

.back-icon {
    font-size: 1.2em;
    font-weight: bold;
}

/* 首页链接 */
.home-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.95em;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.home-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(3px);
}

.home-icon {
    font-size: 1.1em;
}

/* 面包屑导航 */
.breadcrumb-container {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #c41e3a;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.breadcrumb a:hover {
    background: rgba(196, 30, 58, 0.1);
    text-decoration: underline;
}

.breadcrumb .separator {
    color: #999;
    font-weight: bold;
}

.breadcrumb .current {
    color: #666;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .detail-header-content {
        gap: 10px;
    }
    
    .detail-site-title {
        font-size: 1.3em;
    }
    
    .back-btn,
    .home-link {
        padding: 6px 12px;
        font-size: 0.85em;
        gap: 4px;
    }
    
    .back-text,
    .home-text {
        display: none; /* 手机端只显示图标 */
    }
    
    .breadcrumb {
        font-size: 0.85em;
    }
}

/* 工作人员照片样式 - 正方形显示 */
.staff-photo {
    width: 150px !important;
    height: auto !important; /* 高度自动，保持比例 */
    max-width: 150px !important;
    max-height: 200px !important; /* 最大高度限制 */
    object-fit: contain !important; /* 保持比例完整显示 */
    object-position: center !important;
    border-radius: 0 !important; /* 强制移除圆角，显示为正方形 */
    border: none !important; /* 强制移除边框 */
    outline: none !important; /* 移除轮廓 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    display: block !important;
    margin: 0 auto !important; /* 水平居中对齐 */
    padding: 0 !important; /* 移除内边距 */
    background: transparent !important; /* 透明背景 */
}

/* 工作人员卡片样式 */
.staff-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.staff-card-header {
    text-align: center;
    margin-bottom: 15px;
}

.staff-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* 首页顶部横幅广告样式 */
.index-banner-ad {
    width: 100%;
    grid-column: 1 / -1; /* 跨越所有列 */
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.index-banner-ad:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.banner-ad-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .banner-ad-image {
        height: 120px;
    }
}
