* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, 'Microsoft YaHei', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.5;
}

/* 头部样式 */
.header {
    background-color: #4CAF50;
    color: white;
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.logo img {
    height: 40px;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.nav li {
    position: relative;
}

.nav a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: block;
    padding: 8px 0;
}

.nav a:hover {
    color: white;
}

/* 下拉菜单样式 */
.nav .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #4CAF50;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    display: none;
}

.nav .dropdown li {
    width: 100%;
}

.nav .dropdown a {
    padding: 8px 16px;
    white-space: nowrap;
}

.nav .dropdown a:hover {
    background-color: #4CAF50;
}

.nav li:hover .dropdown {
    display: block;
}

/* 容器样式 */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    margin-top: 20px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

/* 服务项目板块样式 */
.services-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

/* 服务项目网格布局 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 10px;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* 服务项目样式 */
.service-item {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 60px;
    overflow: hidden;
}

.service-item-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 10px;
}

.service-item h3 {
    color: #4CAF50;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .service-item {
        min-height: 50px;
    }
    
    .service-item h3 {
        font-size: 12px;
        white-space: nowrap;
    }
}

/* 手机最小版响应式设计 */
@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 5px;
    }
    
    .service-item {
        min-height: 30px;
        padding: 4px 3px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.1);
        border-radius: 4px;
    }
    
    .service-item-content {
        justify-content: center;
        padding: 0 2px;
        width: 100%;
        display: flex;
        align-items: center;
    }
    
    .service-item h3 {
        font-size: 9px;
        text-align: center;
        white-space: nowrap;
        margin: 0;
        width: 100%;
        line-height: 1.1;
    }
}

.service-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 60px;
    margin-left: 10px;
}

.service-item:hover {
    transform: none;
    box-shadow: none;
    background-color: #f9f9f9;
}

.service-btn:hover {
    background-color: #4CAF50;
    transform: none;
    box-shadow: none;
}

/* 服务项目板块文字链接样式 */
.service-item-content h3 a {
    color: #4CAF50;
    text-decoration: none;
}

.service-item-content h3 a:hover {
    color: #4CAF50;
    text-decoration: none;
}

/* 服务区域板块样式 */
.regions-section {
    margin-top: 20px;
}

/* 友情链接板块样式 */
.links-section {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.links-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

/* 友情链接网格布局 */
.links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.links-grid a {
    color: #4CAF50;
    text-decoration: none;
    font-size: 14px;
}

.links-grid a:hover {
    color: #4CAF50;
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .links-section {
        margin-top: 20px;
        padding-top: 15px;
    }
    
    .links-section h3 {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .links-grid {
        gap: 15px;
    }
    
    .links-grid a {
        font-size: 12px;
    }
    
    /* 确保服务区域板块在手机版显示为一列 */
    .regions-section .region-container {
        display: block !important;
    }
    
    .regions-section .region-group {
        width: 100%;
        padding-bottom: 15px;
        margin-bottom: 15px;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .regions-section .region-group:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
}

/* 行政区划容器 */
.region-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* 行政区划分组 */
.region-group {
    width: 100%;
}

/* 地理大区标题 */
.region-group h2 {
    color: #333;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
}

/* 省份组样式 */
.province-group {
    margin-bottom: 8px;
    line-height: 1.6;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* 列表样式 */
.region-list {
    list-style: none;
    margin-bottom: 10px;
    line-height: 1.6;
}

/* 省份样式 */
.province-item {
    color: #ff0000;
    font-size: 12px;
    font-weight: 600;
    margin-right: 10px;
    text-decoration: none;
    white-space: nowrap;
}

/* 城市样式 */
.city-item {
    color: #333;
    font-size: 12px;
    margin-right: 10px;
    text-decoration: none;
    white-space: nowrap;
}

.city-item:hover {
    color: #ff6a00;
}

/* 县级地名容器 */
.county-container {
    margin-top: 8px;
    margin-left: 0;
    padding: 8px 0;
    border-top: 1px dashed #e0e0e0;
    width: 100%;
    white-space: normal;
    display: block;
    clear: both;
}

/* 县级地名样式 */
.county-item {
    color: #666;
    font-size: 11px;
    margin-right: 8px;
    text-decoration: none;
}

.county-item:hover {
    color: #ff6a00;
}

/* 乡镇地名容器 */
.town-container {
    margin-top: 8px;
    margin-left: 0;
    padding: 8px 0;
    border-top: 1px dashed #e0e0e0;
    width: 100%;
    white-space: normal;
    display: block;
    clear: both;
}

/* 乡镇地名样式 */
.town-item {
    color: #666;
    font-size: 11px;
    margin-right: 8px;
    text-decoration: none;
}

.town-item:hover {
    color: #ff6a00;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .nav ul {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    
    .logo img {
        height: 40px;
    }
    
    .container {
        padding: 15px;
    }
    
    .region-group h2 {
        font-size: 13px;
    }
    
    .province-item,
    .city-item {
        font-size: 11px;
        margin-right: 8px;
    }
    
    .county-item {
        font-size: 10px;
        margin-right: 6px;
    }
    
    .county-container {
        margin-left: 30px;
    }
}

/* 页脚样式 */
.footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    margin-top: 20px;
}

.footer-content {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer p {
    font-size: 12px;
    line-height: 1.5;
}

.footer a {
    color: white;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: none;
}

@media (max-width: 768px) {
    .footer-content {
        padding: 0 15px;
    }
    
    .footer p {
        font-size: 10px;
    }
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #ffffff;
    margin: 10% auto;
    padding: 30px;
    border: none;
    width: 80%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #45a049);
}

.close {
    color: #999;
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    border-radius: 50%;
}

.close:hover,
.close:focus {
    color: #999;
    background-color: transparent;
}

.modal-content h2 {
    margin-top: 10px;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
    position: relative;
}

.modal-content h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #4CAF50;
    margin: 15px auto 0;
    border-radius: 2px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.contact-item {
    font-size: 16px;
    line-height: 1.6;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 300px;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.contact-item:hover {
    background-color: #f8f9fa;
}

.contact-item strong {
    color: #4CAF50;
    margin-right: 10px;
    min-width: 60px;
}

.qrcode {
    margin-top: 20px;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.qrcode:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.qrcode img {
    max-width: 180px;
    height: auto;
    border: 2px solid #ffffff;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.qrcode p {
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.close-btn {
    display: block;
    margin: 20px auto 0;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.close-btn:hover {
    background-color: #4CAF50;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 15% auto;
        padding: 20px;
    }
    
    .modal-content h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .contact-item {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .qrcode img {
        max-width: 150px;
        padding: 10px;
    }
    
    .qrcode p {
        font-size: 12px;
    }
}