/* 乡镇页面V2样式 - 改进版 */

/* 面包屑导航 */
.breadcrumb {
    background: linear-gradient(90deg, #f8f9fa, #e9ecef);
    padding: 12px 0;
    font-size: 13px;
    border-bottom: 1px solid #dee2e6;
}

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

.breadcrumb a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.breadcrumb span {
    color: #6c757d;
    font-weight: 500;
}

/* 镇区概况横幅 - 带背景图 */
.town-hero {
    position: relative;
    padding: 80px 0;
    color: white;
    text-align: center;
    overflow: hidden;
}

.town-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 95, 45, 0.85), rgba(139, 69, 19, 0.85));
    z-index: 1;
}

.town-hero .container {
    position: relative;
    z-index: 2;
}

.town-hero h2 {
    font-size: 56px;
    margin-bottom: 15px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
    font-weight: 700;
    letter-spacing: 8px;
}

.town-hero .town-slogan {
    font-size: 24px;
    opacity: 0.95;
    margin-bottom: 15px;
    font-weight: 300;
    letter-spacing: 4px;
}

.town-hero .town-desc {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 统计数据 */
.town-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px 30px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s, background 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.25);
}

.stat-item .stat-number {
    display: block;
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-item .stat-label {
    display: block;
    font-size: 14px;
    opacity: 0.9;
    letter-spacing: 1px;
}

/* 内容布局 */
.main-content {
    padding: 40px 0;
    background: #f8f9fa;
}

.main-content > .container {
    display: grid;
    grid-template-columns: 260px 1fr 280px;
    gap: 25px;
    align-items: start;
}

/* 左侧栏 */
.sidebar-left {
    position: sticky;
    top: 20px;
}

.side-nav, .side-contact, .side-weather {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.side-nav h3, .side-contact h3, .side-weather h3 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.side-nav ul {
    list-style: none;
}

.side-nav li {
    margin-bottom: 8px;
}

.side-nav a {
    display: block;
    padding: 10px 12px;
    color: #495057;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
}

.side-nav a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.side-contact p {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 10px;
    line-height: 1.6;
}

.weather-widget {
    text-align: center;
}

.weather-main {
    font-size: 32px;
    margin-bottom: 15px;
}

.weather-detail p {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 5px;
}

/* 中间内容区 */
.content-main section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.section-title {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 特色专题 */
.feature-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 25px;
    align-items: start;
}

.feature-text h3 {
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.feature-text p {
    color: #495057;
    line-height: 1.8;
    margin-bottom: 15px;
}

.feature-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.feature-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

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

/* 图片画廊 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.gallery-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    transition: all 0.3s;
    cursor: pointer;
}

.gallery-img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* 新闻动态 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s;
}

.news-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.news-item.highlight {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-left: 4px solid var(--primary-color);
}

.news-image {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    flex: 1;
}

.news-content h4 {
    font-size: 15px;
    margin-bottom: 8px;
}

.news-content h4 a {
    color: #212529;
    text-decoration: none;
}

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

.news-summary {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 8px;
}

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

/* 特色产业 */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.industry-card {
    text-align: center;
    padding: 25px 15px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    transition: all 0.3s;
}

.industry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.industry-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.industry-card h4 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.industry-card p {
    font-size: 13px;
    color: #6c757d;
}

/* 便民服务 */
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 15px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s;
}

.service-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.service-icon {
    font-size: 28px;
}

.service-name {
    font-size: 14px;
}

/* 通知公告 */
.notice-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notice-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s;
}

.notice-item:hover {
    background: #e9ecef;
}

.notice-item.important {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-left: 4px solid #ffc107;
}

.notice-tag {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.notice-item.important .notice-tag {
    background: #dc3545;
    color: white;
}

.notice-item:not(.important) .notice-tag {
    background: var(--primary-color);
    color: white;
}

.notice-item a {
    flex: 1;
    color: #212529;
    text-decoration: none;
    font-size: 14px;
}

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

.notice-date {
    font-size: 12px;
    color: #adb5bd;
}

/* 右侧栏 */
.sidebar-right {
    position: sticky;
    top: 20px;
}

.quick-links, .town-feature, .related-links {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.quick-links h3, .town-feature h3, .related-links h3 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.quick-link {
    display: block;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: #495057;
    font-size: 13px;
    transition: all 0.3s;
}

.quick-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.feature-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.feature-gallery img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
}

.feature-gallery img:hover {
    transform: scale(1.05);
}

.feature-desc {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.6;
}

.related-links ul {
    list-style: none;
}

.related-links li {
    margin-bottom: 10px;
}

.related-links a {
    color: #495057;
    text-decoration: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.related-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* 下辖村居 */
.villages-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.villages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.village-card {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.village-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.village-card h4 {
    font-size: 15px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.village-card p {
    font-size: 12px;
    color: #6c757d;
}

/* 招商引资 */
.investment-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 50px 0;
    margin-top: 40px;
    color: white;
}

.investment-section .section-title {
    color: white;
    border-bottom-color: rgba(255,255,255,0.3);
}

.invest-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.invest-advantages h3, .invest-projects h3 {
    font-size: 18px;
    margin-bottom: 20px;
    opacity: 0.95;
}

.invest-advantages ul {
    list-style: none;
}

.invest-advantages li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    font-size: 15px;
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.project-item {
    background: rgba(255,255,255,0.15);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.project-item h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.project-item p {
    font-size: 13px;
    opacity: 0.9;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .main-content > .container {
        grid-template-columns: 220px 1fr 240px;
    }
    
    .feature-content {
        grid-template-columns: 1fr 250px;
    }
}

@media (max-width: 992px) {
    .main-content > .container {
        grid-template-columns: 1fr;
    }
    
    .sidebar-left, .sidebar-right {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .side-nav, .side-contact, .side-weather,
    .quick-links, .town-feature, .related-links {
        margin-bottom: 0;
    }
    
    .town-hero h2 {
        font-size: 42px;
    }
    
    .town-stats {
        gap: 30px;
    }
    
    .feature-content {
        grid-template-columns: 1fr;
    }
    
    .feature-image {
        order: -1;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .industry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .invest-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .town-hero {
        padding: 50px 0;
    }
    
    .town-hero h2 {
        font-size: 32px;
        letter-spacing: 4px;
    }
    
    .town-hero .town-slogan {
        font-size: 18px;
    }
    
    .town-stats {
        gap: 15px;
    }
    
    .stat-item {
        padding: 15px 20px;
    }
    
    .stat-item .stat-number {
        font-size: 28px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .industry-grid, .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .villages-grid {
        grid-template-columns: 1fr;
    }
}
