/*
Theme Name: 仙桃市园林绿化所
Theme URI: http://ylj.cnxiantao.com/
Author: 仙桃市园林绿化所
Author URI: http://ylj.cnxiantao.com/
Description: 仙桃市园林绿化所官方网站主题模板，基于WordPress 6.9.4和PHP 7.4开发
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lvhua
Tags: government, landscaping, green, custom-menu, featured-images, theme-options, translation-ready
*/

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

body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    color: #2d8659;
}

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

ul, ol {
    list-style: none;
}

.container {
    width: 1000px;
    margin: 0 auto;
    padding: 0 10px;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.site {
    background-color: #fff;
}

/* Header Styles */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.top-bar {
    background-color: #4a9c5d;
    color: #fff;
    padding: 8px 0;
    font-size: 12px;
    height: 36px;
}

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

.top-info span {
    margin-right: 20px;
}

.top-info i {
    margin-right: 5px;
}

.header-main {
    padding: 15px 0;
    background-color: #fff;
}

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

.site-branding {
    display: flex;
    align-items: center;
}

.site-branding .custom-logo {
    max-height: 50px;
    width: auto;
    margin-right: 15px;
}

.site-title {
    font-size: 24px;
    font-weight: bold;
    color: #4a9c5d;
    margin: 0;
}

.site-title a:hover {
    color: #3a7c4a;
}

.site-description {
    font-size: 12px;
    color: #888;
    margin: 0;
}

.main-navigation {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 5px 10px;
    color: #333;
}

#primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

#primary-menu > li {
    position: relative;
    margin-left: 3px;
}

#primary-menu > li > a {
    display: block;
    padding: 10px 18px;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}

#primary-menu > li > a:hover,
#primary-menu > li.current-menu-item > a {
    background-color: #4a9c5d;
    color: #fff;
}

#primary-menu li:hover > .sub-menu {
    display: block;
}

.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    min-width: 160px;
    z-index: 1000;
}

.sub-menu li {
    border-bottom: 1px solid #eee;
}

.sub-menu li:last-child {
    border-bottom: none;
}

.sub-menu a {
    display: block;
    padding: 10px 18px;
    color: #333;
    font-size: 14px;
}

.sub-menu a:hover {
    background-color: #4a9c5d;
    color: #fff;
}

/* Home Banner */
.home-banner {
    width: 100%;
    height: 400px;
    overflow: hidden;
    background-color: #4a9c5d;
}

.banner-list {
    width: 100%;
    height: 100%;
}

.banner-item {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.banner-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
}

.banner-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.banner-title {
    font-size: 32px;
    color: #fff;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin: 0;
    padding: 10px 30px;
    background: rgba(0,0,0,0.4);
    border-radius: 5px;
}

/* Home Main Content */
.home-main {
    padding: 20px 0 40px;
}

.home-row {
    margin-bottom: 20px;
}

.home-row::after {
    content: "";
    display: table;
    clear: both;
}

.home-col {
    float: left;
    padding: 0 10px;
}

.about-col {
    width: 35%;
}

.news-col {
    width: 65%;
}

.services-col {
    width: 35%;
}

.projects-col {
    width: 65%;
}

.home-box {
    background-color: #fff;
    border: 1px solid #e0e0e0;
}

.home-box-title {
    background: linear-gradient(to right, #4a9c5d, #5cb371);
    padding: 12px 15px;
    display: flex;
    align-items: center;
    position: relative;
}

.home-box-title h3 {
    color: #fff;
    font-size: 16px;
    margin: 0;
    font-weight: bold;
}

.home-box-title .title-icon {
    width: 4px;
    height: 18px;
    background-color: #fff;
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
}

.home-box-title .more-link {
    position: absolute;
    right: 15px;
    color: #fff;
    font-size: 12px;
}

.home-box-title .more-link:hover {
    color: #e8f5e9;
}

.home-box-content {
    padding: 15px;
    min-height: 200px;
}

/* About Section */
.home-box-content p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
    text-align: justify;
}

.home-box-content .more-link {
    display: inline-block;
    color: #4a9c5d;
    font-size: 13px;
}

.home-box-content .more-link:hover {
    color: #3a7c4a;
    text-decoration: underline;
}

/* News List */
.news-list {
    margin: 0;
    padding: 0;
}

.news-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #e0e0e0;
    display: flex;
    align-items: center;
}

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

.news-list .news-date {
    flex: 0 0 80px;
    color: #888;
    font-size: 12px;
}

.news-list .news-title {
    flex: 1;
    color: #333;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-list .news-title:hover {
    color: #4a9c5d;
}

/* Services List */
.services-list {
    margin: 0;
    padding: 0;
}

.services-list li {
    padding: 12px 0;
    display: flex;
    align-items: center;
    border-bottom: 1px dashed #e0e0e0;
}

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

.service-icon {
    font-size: 28px;
    margin-right: 12px;
    width: 40px;
    text-align: center;
}

.service-info h4 {
    color: #4a9c5d;
    font-size: 15px;
    margin: 0 0 3px;
}

.service-info p {
    color: #888;
    font-size: 12px;
    margin: 0;
}

/* Projects Grid */
.projects-grid {
    display: flex;
    flex-wrap: wrap;
    margin: -5px;
}

.projects-grid .project-item {
    width: 25%;
    padding: 5px;
}

.project-img,
.project-img-placeholder {
    width: 100%;
    height: 100px;
    background-color: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #4a9c5d;
    font-weight: bold;
}

.project-title {
    background-color: #f5f5f5;
    padding: 8px;
    text-align: center;
    font-size: 12px;
    color: #555;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-title a:hover {
    color: #4a9c5d;
}

/* Footer Styles */
.site-footer {
    background-color: #2d2d2d;
    color: #ccc;
}

.footer-top {
    background-color: #383838;
    padding: 25px 0;
}

.footer-top .container {
    display: flex;
}

.footer-widget-area {
    flex: 1;
    padding: 0 10px;
}

.footer-widget-area:first-child {
    padding-left: 0;
}

.footer-widget-area:last-child {
    padding-right: 0;
}

.quick-links h3,
.footer-contact h3 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #4a9c5d;
    font-weight: bold;
}

.quick-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.quick-links a {
    color: #aaa;
    font-size: 13px;
}

.quick-links a:hover {
    color: #4a9c5d;
}

.footer-contact p {
    color: #aaa;
    font-size: 13px;
    margin-bottom: 8px;
}

.footer-contact i {
    margin-right: 8px;
    color: #4a9c5d;
}

.footer-bottom {
    background-color: #222;
    padding: 15px 0;
    text-align: center;
}

.footer-info {
    font-size: 12px;
    color: #888;
    line-height: 1.8;
}

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

.footer-info a:hover {
    color: #4a9c5d;
}

.footer-links {
    margin-top: 10px;
}

.footer-menu {
    display: flex;
    justify-content: center;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu a {
    color: #666;
    font-size: 12px;
}

.footer-menu a:hover {
    color: #4a9c5d;
}

/* Main Content Area */
#main-content {
    min-height: 400px;
}

.content-wrapper {
    padding: 25px 0;
}

/* Page Header */
.page-header {
    background: linear-gradient(to right, #4a9c5d, #3a7c4a);
    padding: 30px 0;
    margin-bottom: 25px;
}

.page-title {
    color: #fff;
    font-size: 24px;
    margin: 0;
    text-align: center;
    font-weight: bold;
}

/* Entry Styles */
.entry-header {
    margin-bottom: 20px;
}

.entry-title {
    font-size: 22px;
    color: #4a9c5d;
    margin-bottom: 10px;
    font-weight: bold;
}

.entry-title a {
    color: #4a9c5d;
}

.entry-title a:hover {
    color: #3a7c4a;
}

.entry-content {
    line-height: 1.8;
    color: #444;
}

.entry-content p {
    margin-bottom: 15px;
}

.entry-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.edit-link a {
    color: #888;
    font-size: 12px;
}

/* Post Thumbnail */
.post-thumbnail {
    margin-bottom: 15px;
}

.post-thumbnail img {
    border-radius: 4px;
}

/* Widget Styles */
.widget {
    margin-bottom: 20px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    padding: 15px;
}

.widget-title {
    font-size: 15px;
    color: #4a9c5d;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #4a9c5d;
    font-weight: bold;
}

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

.widget li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

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

.widget a {
    color: #555;
    font-size: 13px;
}

.widget a:hover {
    color: #4a9c5d;
}

/* Screen Reader Text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .container {
        width: 100%;
    }
    
    .header-main .container {
        flex-direction: column;
        text-align: center;
    }
    
    .site-branding {
        margin-bottom: 10px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    #primary-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #fff;
        box-shadow: 0 3px 10px rgba(0,0,0,0.15);
        z-index: 1000;
    }
    
    #primary-menu.toggled {
        display: flex;
    }
    
    #primary-menu li {
        margin: 0;
        border-bottom: 1px solid #eee;
    }
    
    #primary-menu > li > a {
        padding: 12px 20px;
    }
    
    .sub-menu {
        position: static;
        box-shadow: none;
        background-color: #f5f5f5;
    }
    
    .home-banner {
        height: 250px;
    }
    
    .banner-item {
        height: 250px;
    }
    
    .banner-title {
        font-size: 20px;
    }
    
    .home-col {
        float: none;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .home-box-content {
        min-height: auto;
    }
    
    .projects-grid .project-item {
        width: 50%;
    }
    
    .footer-top .container {
        flex-direction: column;
    }
    
    .footer-widget-area {
        width: 100%;
        margin-bottom: 20px;
        padding: 0;
    }
}

@media screen and (max-width: 480px) {
    .top-bar .container {
        flex-direction: column;
        gap: 5px;
    }
    
    .top-info span {
        display: block;
        margin-right: 0;
        margin-bottom: 3px;
    }
    
    .site-title {
        font-size: 18px;
    }
    
    .banner-title {
        font-size: 16px;
        padding: 8px 15px;
    }
    
    .home-box-title h3 {
        font-size: 14px;
    }
}

/* Home Content - Slider & Tabs */
.home-content {
    padding: 20px 0;
}

.home-main {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.home-slider {
    flex: 0 0 400px;
    width: 400px;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    min-width: 590px;
    min-height: 358px;
    height: 0;
    padding-bottom: 40%;
    overflow: hidden;
    background-color: #f0f0f0;
}

@media (max-width: 590px) {
    .slider-wrapper {
        min-width: 100%;
        min-height: 358px;
        padding-bottom: 56.25%;
    }
}

.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slider-item {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.slider-item:first-child {
    display: block;
}

.slider-item.active {
    display: block;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 40px;
    background-color: rgba(0,0,0,0.6);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.slider-caption h3 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: calc(100% - 30px);
}

.slider-caption h3 a {
    color: #fff;
}

.slider-caption h3 a:hover {
    color: #5cb371;
}

.slider-nav {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: rgba(0,0,0,0.6);
    padding: 10px;
    display: flex;
    gap: 5px;
}

.slider-dot {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #ff6600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
    color: #fff;
}

.slider-dot.active,
.slider-dot:hover {
    background-color: #cc5200;
}

.home-tabs {
    flex: 1;
    min-width: 0;
    background-color: #fff;
    border: 1px solid #e0e0e0;
}

.tab-titles {
    display: flex;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.tab-title {
    flex: 1;
    padding: 12px 10px;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    color: #555;
    margin: 0;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-title:hover {
    color: #4a9c5d;
    background-color: #fff;
}

.tab-title.active {
    color: #4a9c5d;
    background-color: #fff;
    border-bottom-color: #4a9c5d;
}

.tab-contents {
    min-height: 250px;
}

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

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

.tab-article-list {
    margin: 0;
    padding: 0;
}

.tab-article-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #e0e0e0;
    display: flex;
    align-items: center;
}

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

.tab-article-list .article-date {
    flex: 0 0 90px;
    color: #888;
    font-size: 13px;
}

.tab-article-list .article-title {
    flex: 1;
    color: #333;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tab-article-list .article-title:hover {
    color: #4a9c5d;
    text-decoration: underline;
}

/* Category Sections */
.category-sections {
    margin-top: 20px;
}

.home-section {
    margin-bottom: 25px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
}

.section-header {
    background: linear-gradient(to right, #4a9c5d, #5cb371);
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    color: #fff;
    font-size: 18px;
    margin: 0;
    font-weight: bold;
}

.section-header .more-link {
    color: #fff;
    font-size: 12px;
}

.section-header .more-link:hover {
    color: #e8f5e9;
    text-decoration: underline;
}

.section-content {
    padding: 15px;
}

.article-list {
    margin: 0;
    padding: 0;
}

.article-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #e0e0e0;
    display: flex;
    align-items: center;
}

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

.article-list .article-date {
    flex: 0 0 100px;
    color: #888;
    font-size: 14px;
}

.article-list .article-title {
    flex: 1;
    color: #333;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-list .article-title:hover {
    color: #4a9c5d;
    text-decoration: underline;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .home-main {
        flex-direction: column;
    }
    
    .home-slider {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .slider-wrapper {
        height: 200px;
    }
    
    .slider-item img {
        height: 200px;
    }
    
    .home-tabs {
        width: 100%;
    }
    
    .tab-titles {
        flex-wrap: wrap;
    }
    
    .tab-title {
        flex: 0 0 50%;
    }
    
    .article-date {
        flex: 0 0 80px !important;
        font-size: 12px !important;
    }
}

/* Archive List */
.archive-list {
    background-color: #fff;
    border: 1px solid #e0e0e0;
}

.archive-item {
    padding: 12px 15px;
    border-bottom: 1px dashed #e0e0e0;
    display: flex;
    align-items: center;
    transition: background-color 0.2s ease;
}

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

.archive-item:hover {
    background-color: #f9f9f9;
}

.archive-item .archive-date {
    flex: 0 0 100px;
    color: #888;
    font-size: 14px;
}

.archive-item .archive-title {
    flex: 1;
    color: #333;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.archive-item .archive-title:hover {
    color: #4a9c5d;
    text-decoration: underline;
}

.archive-pagination {
    margin-top: 20px;
    text-align: center;
}

.archive-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    color: #555;
    font-size: 14px;
    transition: all 0.3s ease;
}

.archive-pagination .page-numbers:hover {
    background-color: #4a9c5d;
    border-color: #4a9c5d;
    color: #fff;
}

.archive-pagination .current {
    background-color: #4a9c5d;
    border-color: #4a9c5d;
    color: #fff;
}

.no-content {
    padding: 40px;
    text-align: center;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    color: #888;
}

/* Footer Middle */
.footer-middle {
    background-color: #f8f8f8;
    padding: 40px 0;
    border-bottom: 1px solid #e0e0e0;
}

.footer-middle-inner {
    display: flex;
    align-items: center;
    gap: 30px;
}

.footer-middle-image {
    flex: 0 0 300px;
    width: 300px;
}

.footer-middle-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 4px;
}

.footer-middle-content {
    flex: 1;
}

.footer-middle-title {
    font-size: 20px;
    color: #4a9c5d;
    margin: 0 0 15px;
    font-weight: bold;
}

.footer-middle-text {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-middle-link {
    display: inline-block;
    padding: 8px 20px;
    background-color: #4a9c5d;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.footer-middle-link:hover {
    background-color: #3a7c4a;
    color: #fff;
}

@media screen and (max-width: 768px) {
    .footer-middle-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-middle-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 200px;
    }
}
