/* 全局变量 */
:root {
    --primary-color: #a01e25;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --light-text: #fff;
    --border-color: #ddd;
    --hover-color: #850625;
    --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 基础样式 */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-image: url('../images/body_bg.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Optional: keeps the background fixed during scroll */
    background-color: #f5f5f5; /* Fallback color */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--hover-color);
    text-decoration: none;
}

/* 顶部区域 */
.header-area {
    background-color: #fff;
    background-size: cover;
    box-shadow: var(--box-shadow);
    position: relative;
}
.header-area .header-top-img{
    width: 100%;
}

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

.logo {
    width: 60px;
    height: 60px;
    margin-right: 15px;
}

.logo-text h1 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.logo-text h2 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--text-color);
}

.search-box {
    position: relative;
    display: flex;
}

.search-box input {
    border-radius: 20px;
    padding-right: 40px;
    border: 1px solid var(--border-color);
}

.search-btn {
    position: absolute;
    right: 0;
    top: 0;
    background: var(--primary-color);
    border: none;
    color: white;
    border-radius: 0 20px 20px 0;
    height: 100%;
    width: 40px;
}

/* 导航菜单 */
.main-nav {
    background-color: var(--primary-color);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 100;
}

.navbar-nav {
    width: 100%;
    display: flex;
    justify-content: space-around;
}

.nav-link {
    color: var(--light-text) !important;
    font-weight: 500;
    padding: 12px 25px !important;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 2px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.nav-link:hover, .nav-link.active {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--light-text);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 70%;
}

/* 主视觉区域 */
.hero-area {
    position: relative;
    height: 50vh;
    min-height: 300px;
    overflow: hidden;
}

.hero-image {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/home-banner.jpg') no-repeat center center;
    background-size: cover;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-content {
    color: var(--light-text);
    text-align: center;
    padding: 20px;
}

.hero-content h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 信息板块 */
.info-section {
    padding: 40px 0;
}

.info-box {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: var(--box-shadow);
    height: 100%;
    overflow: hidden;
}

.info-title {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 10px 15px;
    margin: 0;
    font-size: 1.2rem;
}

.info-content {
    padding: 15px;
}

.info-content p {
    margin-bottom: 8px;
}

.link-box a {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.link-box a:last-child {
    border-bottom: none;
}

/* 主要内容区域 */
.main-content {
    flex: 1 0 auto;
}

/* 底部区域 */
.footer-area {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 20px 0;
    margin-top: auto;
    flex-shrink: 0;
}

.footer-info {
    text-align: center;
}

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

.footer-info a {
    color: var(--light-text);
}

.footer-info a:hover {
    color: var(--light-text);
    text-decoration: underline;
}

/* 文章列表页 */
.breadcrumb-area {
    background-color: var(--secondary-color);
    padding: 10px 0;
    margin-bottom: 20px;
}

.article-list {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: var(--box-shadow);
    padding: 20px;
    margin-bottom: 30px;
}

.article-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.article-title {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.article-date {
    color: #777;
    font-size: 0.9rem;
}

.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 30px;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-item {
    margin: 0 5px;
}

.page-link {
    display: block;
    padding: 8px 12px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.page-item.disabled .page-link {
    color: #aaa;
    pointer-events: none;
    background-color: #f5f5f5;
}

/* 文章详情页 */
.article-detail {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: var(--box-shadow);
    padding: 25px;
    margin-bottom: 30px;
}

.article-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.article-header h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.article-meta {
    color: #777;
    font-size: 0.9rem;
}

.article-content {
    line-height: 1.8;
}

.article-attachment {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.attachment-title {
    font-weight: bold;
    margin-bottom: 10px;
}

.attachment-link {
    display: inline-block;
    padding: 8px 15px;
    background-color: #f5f5f5;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    margin-right: 10px;
    margin-bottom: 10px;
}

.attachment-link i {
    margin-right: 5px;
}

/* 加载状态 */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-message {
    text-align: center;
    padding: 20px;
    color: #d9534f;
}

/* 响应式调整 */
@media (max-width: 991.98px) {
    .logo-text h1 {
        font-size: 1.3rem;
    }
    
    .logo-text h2 {
        font-size: 1rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .navbar-nav {
        padding: 10px 0;
    }
    
    .nav-link {
        padding: 10px 15px !important;
        margin: 5px 0;
        border-radius: 4px;
    }
    
    .nav-link:hover, .nav-link.active {
        transform: none;
        box-shadow: none;
    }
}

/* 公开事项页面样式 - REMOVE THIS DUPLICATE BLOCK */
/*
.disclosure-section {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    padding: 20px;
    padding-top:0px;
}
.disclosure-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    text-align: center;
}
.disclosure-category {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}
.disclosure-category:last-child {
    border-bottom: none;
}
.category-title {
    width: 120px;
    font-weight: bold;
    color: var(--primary-color);
    padding-right: 15px;
    text-align: right;
    flex-shrink: 0;
}
.category-links {
    flex-grow: 1;
    display: flex;
    flex-wrap: wrap;
}
.category-links a {
    color: var(--text-color);
    margin-right: 15px;
    margin-bottom: 5px;
    padding: 2px 5px;
    border-radius: 3px;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.category-links a:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
    text-decoration: none;
}
*/

/* 汉堡菜单图标样式 */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-toggler.collapsed .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-toggler:not(.collapsed) .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M6 6L24 24M6 24L24 6'/%3e%3c/svg%3e") !important;
}

@media (max-width: 767.98px) {
    .logo {
        width: 50px;
        height: 50px;
    }
    
    .logo-text h1 {
        font-size: 1.1rem;
    }
    
    .logo-text h2 {
        font-size: 0.9rem;
    }
    
    .hero-area {
        height: 40vh;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .info-section .col-md-4 {
        margin-bottom: 20px;
    }
    
    .pagination .page-item:not(.prev):not(.next):not(.active) {
        display: none;
    }
}

/* 移除重复的公开事项样式块 */

@media (max-width: 575.98px) {
    .header-area .row {
        flex-direction: column;
    }
    
    .logo-area {
        justify-content: center;
        margin-bottom: 15px;
    }
    
    .search-box {
        width: 100%;
    }
    
    .hero-area {
        height: 30vh;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .article-header h1 {
        font-size: 1.5rem;
    }
}

/* 公开事项页面样式 */
.disclosure-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    padding: 30px;
    transition: all 0.3s ease;
}

.disclosure-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.disclosure-category {
    display: flex;
    border-bottom: 1px solid rgba(221, 221, 221, 0.5);
    padding: 20px 0;
    transition: all 0.3s ease;
}

.disclosure-category:hover {
    background-color: rgba(248, 249, 250, 0.5);
}

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

.category-title {
    width: 160px;
    font-weight: bold;
    color: var(--primary-color);
    padding-right: 20px;
    text-align: right;
    flex-shrink: 0;
    font-size: 1.05rem;
}

.category-links {
    flex-grow: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.category-links a {
    color: var(--text-color);
    margin-right: 15px;
    margin-bottom: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    font-size: 0.95rem;
}

.category-links a:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 移除竖线分隔符，使用更现代的间距 */
.category-links a + a::before {
    content: '';
    margin: 0;
}

@media (max-width: 767.98px) {
    .disclosure-section {
        padding: 20px 15px;
    }
    
    .disclosure-title {
        font-size: 1.5rem;
    }
    
    .disclosure-category {
        flex-direction: column;
        padding: 15px 0;
    }
    
    .category-title {
        width: 100%;
        text-align: left;
        padding-right: 0;
        margin-bottom: 10px;
        border-left: 3px solid var(--primary-color);
        padding-left: 10px;
    }
    
    .category-links {
        padding-left: 13px;
    }
    
    .category-links a {
        margin-right: 10px;
        margin-bottom: 8px;
        padding: 4px 8px;
    }
}

/* 这部分样式已经在上面定义过，移除重复代码 */

/* 所有重复的公开事项样式代码已移除 */