/* ===== 全局重置与工具类 ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Inter', 'Microsoft Yahei', sans-serif;
    color: #404040;
    overflow-x: hidden;
    background-color: #fafafa;
    line-height: 1.6;
}
a {
    text-decoration: none;
    color: inherit;
}
img {
    display: block;
    max-width: 100%;
}
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.btn {
    display: inline-block;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 1rem;
    line-height: 1.5;
}
.btn-primary {
    background-color: #cf0413;
    color: #fff;
    border-color: #cf0413;
}
.btn-primary:hover {
    background-color: #9e0c23;
    border-color: #9e0c23;
}
.btn-outline-white {
    background: transparent;
    border-color: #fff;
    color: #fff;
}
.btn-outline-white:hover {
    background: #fff;
    color: #c8102e;
}
.btn-outline-primary {
    background: transparent;
    border-color: #c8102e;
    color: #c8102e;
}
.btn-outline-primary:hover {
    background: #c8102e;
    color: #fff;
}

/* 自定义色彩 */
.text-primary {
    color: #c8102e;
}
.bg-primary {
    background-color: #c8102e;
}
.bg-primary-dark {
    background-color: #9e0c23;
}
.bg-dark {
    background-color: #1a1a1a;
}
.text-white {
    color: #ffffff;
}
.text-gray-600 {
    color: #525252;
}
.text-gray-800 {
    color: #262626;
}

/* ===== 导航栏 ===== */
#navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 50;
    transition: background-color 0.3s, box-shadow 0.3s;
    background-color: #c8102e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
#navbar.scrolled {
    background-color: #cf0413;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
}
.logo img {
    height: 4rem;
    margin-left: -10px;
}
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.desktop-nav a {
    color: #fff;
    font-weight: 500;
    transition: opacity 0.2s;
    position: relative;
}
.desktop-nav a:hover {
    opacity: 0.8;
}
.desktop-nav a.active {
    opacity: 1;
    font-weight: 700;
	color: #f1f540;
}
.desktop-nav .lang-btn {
    border: 1px solid #fff;
    padding: 0.4rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.3s;
}
.desktop-nav .lang-btn:hover {
    background: #fff;
    color: #c8102e;
    opacity: 1;
}
.menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
}
/* 移动端菜单 */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(240, 109, 109, 1);
    backdrop-filter: blur(4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 0.5rem 0.5rem;
    padding: 1.5rem;
    flex-direction: column;
    gap: 0.5rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}
.mobile-menu.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.mobile-menu a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e5e5;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.2s;
}
.mobile-menu a:last-child {
    border-bottom: none;
}
.mobile-menu a:hover {
    color: #c8102e;
}

/* ===== Banner 页头区域 ===== */
.page-banner {
    position: relative;
    height: 460px;
    margin-top: 64px;
    overflow: hidden;
}
.page-banner .banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}
.page-banner .banner-slide.active {
    opacity: 1;
    z-index: 1;
}
.page-banner .banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.page-banner .banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(200, 16, 46, 0.5);
    z-index: 2;
}
.page-banner-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: #fff;
}
.page-banner-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.page-banner-content p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    opacity: 0.9;
}

/* ===== 通用区块 ===== */
.section {
    padding: 5rem 0;
}
.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 5rem;
    height: 0.25rem;
    background: #c8102e;
}
.section-title.centered {
    display: inline-block;
    text-align: center;
}
.section-title.centered::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ===== 新闻内容布局 ===== */
.news-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 0;
}

/* 侧边栏 */
.sidebar {
    order: 2;
}
.sidebar-card {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e5e5;
    overflow: hidden;
    margin-bottom: 2rem;
}
.sidebar-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    padding: 1.25rem 1.5rem;
    position: relative;
    background: #c8102e;
    border-bottom: 2px solid #c8102e;
}
.sidebar-card-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 3rem;
    height: 2px;
    background: #c8102e;
}
.sidebar-card-title span {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    padding-left: 0.75rem;
}
.sidebar-nav ul {
    list-style: none;
    padding: 0;
}
.sidebar-nav li a {
    display: block;
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    color: #404040;
    font-weight: 500;
    transition: all 0.2s;
    position: relative;
    padding-left: 2rem;
}
.sidebar-nav li a::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #c8102e;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
}
.sidebar-nav li a:hover,
.sidebar-nav li a.active {
    color: #c8102e;
    background: rgba(200, 16, 46, 0.05);
    padding-left: 2.5rem;
}
.sidebar-nav li a:hover::before,
.sidebar-nav li a.active::before {
    opacity: 1;
}
.sidebar-contact {
    padding: 1.5rem;
}
.sidebar-contact p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #525252;
    line-height: 1.8;
}
.sidebar-contact .label {
    font-weight: 700;
    color: #1a1a1a;
}
.sidebar-contact a {
    color: #c8102e;
    transition: opacity 0.2s;
}
.sidebar-contact a:hover {
    opacity: 0.8;
}

/* 主内容区 */
.main-content {
    order: 1;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0 1rem 20px;
    font-size: 0.9rem;
    color: #fff;
    flex-wrap: wrap;
    background: #c8102e;
    margin-bottom: 1rem;
}
.breadcrumb a {
    color: #fff;
    transition: color 0.2s;
}
.breadcrumb a:hover {
    color: #c8102e;
}
.breadcrumb .separator {
    color: #ccc;
}
.breadcrumb .current {
    color: #fff;
    font-weight: 500;
}

/* ===== 新闻列表区 ===== */
.news-section-header {
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e5e5;
    padding: 2rem 2.5rem;
}
.news-section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #c8102e;
}
.news-section-header h2 span {
    color: #c8102e;
}
.news-section-header .page-location {
    font-size: 0.85rem;
    color: #888;
    padding-top: 0.75rem;
}
.news-section-header .page-location a {
    color: #c8102e;
}
.news-section-header .page-location a:hover {
    text-decoration: underline;
}

/* 新闻列表 */
.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.news-item {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e5e5;
    padding: 1.5rem 2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    cursor: pointer;
}
.news-item:hover {
    box-shadow: 0 8px 20px rgba(200, 16, 46, 0.1);
    transform: translateX(4px);
    border-color: #c8102e;
}
.news-item-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}
.news-item-index {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #c8102e, #9e0c23);
    color: #fff;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}
.news-item-title {
    font-size: 1.05rem;
    color: #1a1a1a;
    transition: color 0.2s;
    line-height: 1.6;
}
.news-item:hover .news-item-title {
    color: #c8102e;
}
.news-item-date {
    font-size: 0.85rem;
    color: #888;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 1.5rem;
    padding-left: 1.5rem;
    border-left: 1px solid #e5e5e5;
}

/* 新闻摘要列表（更详细的展示） */
.news-list-detailed {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.news-card {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e5e5;
    overflow: hidden;
    transition: all 0.3s ease;
}
.news-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
    border-color: #c8102e;
}
.news-card-img {
    width: 100%;
    height: 200px;
    background: #e5e5e5;
    overflow: hidden;
}
.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.news-card:hover .news-card-img img {
    transform: scale(1.05);
}
.news-card-body {
    padding: 1.5rem;
}
.news-card-date {
    font-size: 0.8rem;
    color: #c8102e;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.news-card-date::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #c8102e;
    border-radius: 50%;
    display: inline-block;
}
.news-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-title a {
    color: inherit;
    transition: color 0.2s;
}
.news-card-title a:hover {
    color: #c8102e;
}
.news-card-summary {
    font-size: 0.9rem;
    color: #525252;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}
.news-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #c8102e;
    transition: gap 0.2s;
}
.news-card-link:hover {
    gap: 0.8rem;
}
.news-card-link svg {
    width: 16px;
    height: 16px;
}

/* 分页 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}
.pagination-info {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1rem;
    text-align: center;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}
.pagination a {
    background: #fff;
    color: #404040;
    border: 1px solid #e5e5e5;
}
.pagination a:hover {
    background: #c8102e;
    color: #fff;
    border-color: #c8102e;
}
.pagination span.current {
    background: #c8102e;
    color: #fff;
    border: 1px solid #c8102e;
    font-weight: 700;
}
.pagination .nav-page {
    background: #fff;
    color: #404040;
    border: 1px solid #e5e5e5;
    padding: 0 1rem;
}
.pagination .nav-page:hover {
    background: #c8102e;
    color: #fff;
    border-color: #c8102e;
}

/* ===== 页脚 ===== */
.footer {
    background: #cf0413;
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer h3 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}
.footer ul {
    list-style: none;
}
.footer li {
    margin-bottom: 0.5rem;
}
.footer a:hover {
    color: #fff;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    line-height: 2;
}
.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s;
}
.footer-bottom a:hover {
    color: #fff;
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: #9e0c23;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1.2rem;
    z-index: 40;
}
.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

/* ===== 新闻详情内页 ===== */
.article-detail {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e5e5;
    padding: 2.5rem;
}
.article-detail h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.6;
}
.article-detail .meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #888;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.article-detail .meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.article-detail .meta svg {
    width: 16px;
    height: 16px;
}
.article-detail .content {
    font-size: 1rem;
    line-height: 2;
    color: #404040;
}
.article-detail .content p {
    margin-bottom: 1rem;
    text-indent: 2em;
}
.article-detail .content img {
    max-width: 100%;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}
.article-detail .content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 1.5rem 0 1rem;
}
.article-detail .content ul,
.article-detail .content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.article-detail .content li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

/* 上一篇/下一篇 */
.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}
.article-nav-item {
    padding: 1.25rem;
    background: #fafafa;
    border-radius: 0.5rem;
    border: 1px solid #e5e5e5;
    transition: all 0.3s;
    display: block;
}
.article-nav-item:hover {
    border-color: #c8102e;
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.1);
}
.article-nav-item .label {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.article-nav-item .label svg {
    width: 14px;
    height: 14px;
}
.article-nav-item .link-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-nav-item:hover .link-text {
    color: #c8102e;
}
.article-nav-item.next {
    text-align: right;
}
.article-nav-item.next .label {
    justify-content: flex-end;
}

/* 响应式 */
@media (min-width: 768px) {
    .news-layout {
        grid-template-columns: 280px 1fr;
    }
    .sidebar {
        order: 1;
    }
    .main-content {
        order: 2;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .news-list-detailed {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }
    .menu-btn {
        display: none;
    }
}
@media (max-width: 767px) {
    .desktop-nav {
        display: none;
    }
    .menu-btn {
        display: block;
    }
    .logo img {
        height: 3rem;
    }
    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1.25rem;
    }
    .news-item-date {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
    }
    .news-section-header {
        padding: 1.5rem;
    }
    .article-detail {
        padding: 1.5rem;
    }
    .article-detail h1 {
        font-size: 1.3rem;
    }
    .article-nav {
        grid-template-columns: 1fr;
    }
    .article-nav-item.next {
        text-align: left;
    }
    .article-nav-item.next .label {
        justify-content: flex-start;
    }
    .page-banner {
        height: 280px;
    }
}
