/* ========== 全局样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #009944;
    --primary-dark: #007a35;
    --secondary-color: #00a06d;
    --accent-color: #e60012;
    --text-color: #333;
    --text-light: #666;
    --border-color: #ddd;
    --bg-light: #f5f5f5;
    --bg-white: #fff;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'SimHei', sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--bg-white);
    font-size: 14px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

a:hover {
    color: var(--primary-color);
}

.logo h1 a:hover {
    color: white;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ========== Header ========== */
.header {
    background: var(--primary-color);
    color: white;
    padding: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
}

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

.logo-img {
    height: 40px;
    width: auto;
}

.logo h1 {
    font-size: 1.4em;
}

.logo h1 a {
    color: white;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
}

.logo-text h1 {
    font-size: 1.5em;
    font-weight: bold;
}

.logo-text .tagline {
    font-size: 0.85em;
    opacity: 0.9;
}

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

.nav ul li a {
    display: block;
    padding: 28px 25px;
    color: white;
    font-size: 15px;
    transition: background 0.3s;
}

.nav ul li a:hover,
.nav ul li a.active {
    background: var(--primary-dark);
    text-decoration: none;
}

/* ========== Banner ========== */
.banner {
    background: linear-gradient(135deg, #009944 0%, #00a86b 50%, #00c853 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="15" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="60" r="25" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="80" r="10" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 200px;
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner-content h2 {
    font-size: 2.2em;
    margin-bottom: 15px;
    letter-spacing: 3px;
}

.banner-content p {
    font-size: 1.1em;
    margin-bottom: 30px;
    opacity: 0.95;
    letter-spacing: 2px;
}

.banner-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ========== 按钮 ========== */
.btn {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #c40010;
    color: white;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
    text-decoration: none;
}

/* ========== Main Content ========== */
.main {
    padding: 30px 0;
    background: var(--bg-light);
    flex: 1;
}

.row {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 4px;
    margin-bottom: 0;
}

.col-main {
    width: 100%;
}

/* ========== 公示信息 ========== */
.public-notice {
    background: white;
    padding: 35px 0;
}

.notice-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.notice-left, .notice-right {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
}

.notice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 12px 20px;
}

.notice-header h3 {
    font-size: 15px;
    font-weight: bold;
}

.notice-header .more {
    color: white;
    font-size: 13px;
    opacity: 0.9;
}

.notice-header .more:hover {
    color: white;
    opacity: 1;
}

.notice-list {
    list-style: none;
}

.notice-list li {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

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

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

.notice-list a {
    color: var(--text-color);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-list a:hover {
    color: var(--primary-color);
}

.notice-list span {
    color: #999;
    font-size: 13px;
    margin-left: 15px;
    white-space: nowrap;
}

/* ========== 新闻动态 ========== */
.news-section {
    padding: 35px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.section-header h2 {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--primary-color);
}

.section-header .more {
    color: var(--text-light);
    font-size: 13px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.news-card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s;
}

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

.news-img {
    height: 150px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 3.5em;
}

.news-content {
    padding: 15px;
}

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

.news-content h3 {
    margin: 8px 0;
    font-size: 15px;
    line-height: 1.4;
}

.news-content h3 a {
    color: var(--text-color);
}

.news-content h3 a:hover {
    color: var(--primary-color);
}

.news-content p {
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* autoprefixer: ignore next */
    -webkit-box-orient: vertical;
}

/* ========== 鏀跨瓥娉曡 ========== */
.laws-section {
    background: white;
    padding: 35px 0;
}

.laws-list {
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
}

.law-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

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

.law-item:hover {
    background: #fafafa;
}

.law-date {
    color: #999;
    font-size: 13px;
    margin-right: 20px;
    white-space: nowrap;
}

.law-title {
    flex: 1;
    color: var(--text-color);
}

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

.law-tag {
    background: #f0f0f0;
    color: var(--text-light);
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    margin-left: 15px;
}

/* ========== 鍏充簬鎴戜滑棰勮 ========== */
.about-preview {
    padding: 40px 0;
    background: linear-gradient(to bottom, var(--bg-light), white);
}

.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: bold;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.8;
    font-size: 14px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
}

.stat-num {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-light);
    font-size: 13px;
}

/* ========== 服务项目 ========== */
.services-section {
    background: white;
    padding: 40px 0;
    border-top: 1px solid #f0f0f0;
}

.services-section .section-header {
    text-align: center;
    border-bottom: none;
    flex-direction: column;
    padding-bottom: 0;
    margin-bottom: 30px;
}

.services-section .section-header h2 {
    font-size: 20px;
    margin-bottom: 8px;
    justify-content: center;
}

.services-section .section-header h2::before {
    display: none;
}

.services-section .section-header p {
    color: var(--text-light);
    font-size: 14px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-item {
    background: white;
    padding: 25px 20px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s;
}

.service-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,153,68,0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.service-icon i {
    font-size: 2.2em;
    color: var(--primary-color);
}

.service-item h3 {
    color: var(--text-color);
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: bold;
}

.service-item p {
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.6;
}

/* ========== Footer ========== */
.footer {
    background: #2c2c2c;
    color: #ccc;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
    justify-items: center;
}

.footer-col h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 15px;
    font-weight: bold;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.footer-col p {
    line-height: 1.8;
    margin-bottom: 8px;
    font-size: 13px;
}

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

.footer-col ul li {
    margin-bottom: 8px;
    font-size: 13px;
}

.qrcode {
    width: 90px;
    height: 90px;
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qrcode img {
    max-width: 80px;
    max-height: 80px;
    border-radius: 4px;
}

.footer-bottom {
    border-top: 1px solid #404040;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
}

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

.footer-bottom a {
    color: #aaa;
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

/* ========== 暂无内容 ========== */
.no-content {
    text-align: center;
    padding: 60px;
    color: #999;
    grid-column: 1 / -1;
}

/* ========== 文章详情 ========== */
.post-title-wrap {
    text-align: center;
    padding: 30px 0 15px;
}

.post-title-center {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.5;
}

.post-date-center {
    color: #999;
    font-size: 13px;
}

.post-divider {
    height: 2px;
    background: linear-gradient(to right, #e60012, #ff4d4d);
    margin: 15px 0 25px;
    border-radius: 1px;
}

.post-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    background: #f8f8f8;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 30px;
    border-left: 3px solid var(--primary-color);
}

.info-item {
    font-size: 14px;
}

.info-item .label {
    color: #666;
    font-weight: 500;
}

.info-item .value {
    color: #333;
}

.post-content {
    line-height: 2;
    font-size: 15px;
    color: #444;
}

.post-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.post-attachments {
    background: #f8f8f8;
    padding: 25px;
    border-radius: 4px;
    margin-top: 30px;
    border: 1px solid #eee;
}

.post-attachments h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.attachment-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.attachment-item .file-preview {
    color: #009944;
    font-size: 14px;
}

.attachment-item .file-preview:hover {
    text-decoration: underline;
}

.file-download-btn {
    padding: 3px 10px;
    background: #009944;
    color: white !important;
    border-radius: 3px;
    font-size: 12px;
}

.file-download-btn:hover {
    background: #007a35;
}

.download-btn .icon {
    font-size: 16px;
}

/* ========== 响应式 ========== */
@media (max-width: 992px) {
    .notice-wrapper {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        padding: 15px 0;
    }
    
    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 10px;
    }
    
    .nav ul li a {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .banner {
        padding: 40px 0;
    }
    
    .banner-content h2 {
        font-size: 1.5em;
        letter-spacing: 1px;
    }
    
    .banner-btns {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-col h3 {
        display: block;
        border-bottom: none;
        padding-bottom: 5px;
    }
    
    .footer-col h3::after {
        content: '';
        display: block;
        width: 40px;
        height: 2px;
        background: var(--primary-color);
        margin: 10px auto 0;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .post-title-center {
        font-size: 20px;
    }
    
    .post-info-grid {
        grid-template-columns: 1fr;
    }
    
    .attachment-list {
        flex-direction: column;
    }
    
    .download-btn {
        width: 100%;
        justify-content: center;
    }
}

/* 分类页文章列表 - 一行行样式 */
.posts-list {
    margin-top: 20px;
}

.post-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.post-row:first-child {
    border-top: 1px solid #ddd;
}

.post-row-title {
    flex: 1;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 20px;
}

.post-row-title:hover {
    color: #007bff;
}

.post-row-date {
    color: #999;
    font-size: 14px;
    flex-shrink: 0;
}

/* 分类页标题 */
.category-header {
    padding: 10px 0;
    margin-bottom: 5px;
}

.category-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a5c32;
    margin: 0;
}

/* 关于我们页面美化 */
.about-page {
    padding: 15px 0;
}

.about-header {
    padding: 20px 25px;
    background: linear-gradient(135deg, #1a5c32 0%, #2e7d50 100%);
    border-radius: 8px;
    margin-bottom: 25px;
}

.about-title {
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    margin: 0;
}

.about-section {
    padding: 20px 25px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a5c32;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8f5e9;
}

.section-text {
    color: #555;
    font-size: 15px;
    line-height: 1.9;
    margin: 0;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.about-list li {
    color: #555;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.list-icon {
    color: #1a5c32;
    font-size: 12px;
}

.about-contact {
    padding: 25px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 8px;
    margin-top: 25px;
}

.contact-items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    font-size: 15px;
}

.contact-icon {
    width: 36px;
    height: 36px;
    background: #1a5c32;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* 美化分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #1a5c32;
    border-color: #1a5c32;
    color: #fff;
}

.pagination a.pag-link {
    color: #666;
}

.pagination .current {
    background: #1a5c32;
    border-color: #1a5c32;
    color: #fff;
    font-weight: bold;
}

.pagination .disabled {
    color: #ccc;
    cursor: not-allowed;
    background: #f5f5f5;
}

.pagination .disabled:hover {
    background: #f5f5f5;
    border-color: #ddd;
    color: #ccc;
}

/* 首页/末页/上一页/下一页样式 */
.pagination a.pag-extreme {
    font-size: 13px;
    color: #888;
}

.pagination a.pag-extreme:hover {
    color: #fff;
}

/* 移动端适配 */
@media (max-width: 576px) {
    .pagination {
        gap: 4px;
    }
    .pagination a,
    .pagination span {
        min-width: 34px;
        height: 34px;
        padding: 0 8px;
        font-size: 13px;
    }
}
