/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 布局容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(135deg, #1e5799 0%, #207cca 55%, #2989d8 100%);
    color: white;
    padding: 20px 0;
    min-height: 140px;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/pattern.svg');
    background-size: cover;
    opacity: 0.1;
    z-index: 0;
}

.header-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.location-icon {
    font-size: 2rem;
    margin-bottom: 5px;
    color: var(--accent-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-slogan {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 5px;
}

.header-slogan .highlight {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-slogan .highlight i {
    margin-right: 5px;
    font-size: 0.95rem;
}

.header-slogan .highlight:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* 主要内容区 */
.main-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    padding: 30px;
    margin: 30px 0;
    transition: all 0.3s ease;
}

.main-content:hover {
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #1e3a8a;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
}

h2 {
    font-size: 1.8em;
    color: #1e3a8a;
    margin: 25px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #eaeaea;
    position: relative;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background-color: #1e3a8a;
}

h3 {
    font-size: 1.4em;
    margin: 15px 0;
    color: #2563eb;
}

p {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* 面包屑导航 */
.breadcrumb {
    margin-bottom: 25px;
    font-size: 0.9em;
    color: #666;
    padding: 8px 0;
    border-bottom: 1px dashed #ddd;
}

.breadcrumb a {
    color: #1e3a8a;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* 省份和城市网格 */
.province-grid, .city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.province-item, .city-item {
    background-color: #e6f0ff;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #d1e1ff;
}

.province-item:hover, .city-item:hover {
    background-color: #cce0ff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.province-item a, .city-item a {
    text-decoration: none;
    color: #1e3a8a;
    font-weight: bold;
    display: block;
    width: 100%;
    height: 100%;
    transition: color 0.3s;
}

.province-item a:hover, .city-item a:hover {
    color: #2563eb;
}

/* 服务项目样式 */
.advantages {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 30px 0;
}

.advantage-item {
    flex-basis: 23%;
    background-color: #f0f4ff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #e6e6e6;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.service-item {
    background-color: #f5f8ff;
    border-radius: 8px;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border: 1px solid #e6e6e6;
}

.service-item:hover {
    background-color: #e6f0ff;
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.service-item h3 {
    color: #1e3a8a;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #ccc;
}

/* 服务区域样式 */
.service-area {
    background-color: #f0f4ff;
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
    border: 1px solid #d1e1ff;
}
/* 街道列表样式 */
.street-list-container {
    margin: 20px 0;
}

.street-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-left: 0;
}

.street-list li {
    list-style-type: none;
    padding: 12px 15px;
    background-color: #ffffff;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #e6e6e6;
    margin-bottom: 0;
    text-align: center;
    position: relative;
}

.street-list li::before {
    content: "";
    display: none;
}

.street-list li:hover {
    background-color: #e6f0ff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #d1e1ff;
}

.street-list li::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 15%;
    width: 70%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #1e3a8a, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.street-list li:hover::after {
    opacity: 0.5;
}

/* 联系信息样式 */
.contact-info, .contact-box {
    margin-top: 30px;
    background-color: #e6f0ff;
    padding: 25px;
    border-radius: 8px;
    position: relative;
    border: 1px solid #d1e1ff;
}

.contact-info h2, .contact-box h2 {
    color: #1e3a8a;
    border-bottom: none;
    padding-bottom: 0;
}

.contact-info h2:after, .contact-box h2:after {
    display: none;
}

.contact-info p, .contact-box p {
    margin-bottom: 8px;
}

.contact-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.contact-method {
    flex: 1;
    min-width: 200px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #e6e6e6;
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.contact-method h3 {
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #ddd;
}

/* 列表样式 */
ul, ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 8px;
    position: relative;
}

ul li {
    list-style-type: none;
    padding-left: 20px;
}

ul li::before {
    content: "•";
    color: #1e3a8a;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 服务流程样式 */
.process-steps {
    margin: 30px 0;
}

.step {
    display: flex;
    margin-bottom: 25px;
    align-items: center;
}

.step-number {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin-right: 20px;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.step-content {
    flex: 1;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid #1e3a8a;
}

/* 常见问题样式 */
.faq-section {
    margin: 30px 0;
}

.faq-item {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #ddd;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-weight: bold;
    color: #1e3a8a;
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.faq-question::before {
    content: "Q:";
    position: absolute;
    left: 0;
    color: #2563eb;
}

.faq-item p:not(.faq-question) {
    padding-left: 25px;
    position: relative;
}

.faq-item p:not(.faq-question)::before {
    content: "A:";
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
}

/* 增强的页脚样式 */
footer {
    background: linear-gradient(to right, #1c1c1c, #333);
    color: white;
    text-align: center;
    padding: 30px 0 20px;
    margin-top: 50px;
}

footer p {
    margin-bottom: 5px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.footer-description {
    max-width: 800px;
    margin: 0 auto 15px;
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
    font-size: 0.9rem;
}

.footer-info a {
    color: #ccc;
    text-decoration: none;
}

.footer-info a:hover {
    color: white;
}

.footer-icp, .footer-gongan {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-icp img, .footer-gongan img {
    height: 16px;
    width: auto;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 1.2em;
    opacity: 0.9;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    margin-bottom: 115px; /* 为下面的两个按钮留出空间 */
}

.back-to-top:hover {
    opacity: 1;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* 桌面端悬浮联系按钮 */
.desktop-contact-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
}

.contact-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
}

.contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.contact-button i {
    font-size: 20px;
}

.contact-button .tooltip {
    position: absolute;
    right: 55px;
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.contact-button .tooltip:after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5px;
    margin-top: -5px;
    border-width: 5px 0 5px 5px;
    border-style: solid;
    border-color: transparent transparent transparent #333;
}

.contact-button:hover .tooltip {
    visibility: visible;
    opacity: 1;
    right: 60px;
}

/* 移动端底部菜单 */
.mobile-bottom-menu {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to right, #1e3a8a, #2563eb);
    padding: 10px 0;
    box-shadow: 0 -3px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.mobile-menu-items {
    display: flex;
    justify-content: space-around;
}

.mobile-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 0.9em;
}

.mobile-menu-item i {
    font-size: 24px;
    margin-bottom: 5px;
}

/* 微信弹窗 */
.wechat-modal, .phone-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1001;
    align-items: center;
    justify-content: center;
}

.wechat-modal-content, .phone-modal-content {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    max-width: 350px;
    width: 90%;
    position: relative;
}

.wechat-qrcode {
    width: 200px;
    height: 200px;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wechat-qrcode img {
    max-width: 100%;
    max-height: 100%;
}

.wechat-id, .phone-number {
    font-size: 1.2em;
    margin: 15px 0;
    font-weight: bold;
    color: #1e3a8a;
    padding: 10px;
    background-color: #f0f4ff;
    border-radius: 5px;
    display: inline-block;
}

.copy-button {
    background-color: #1e3a8a;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    margin-top: 15px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    display: block;
    width: 100%;
}

.copy-button:hover {
    background-color: #2563eb;
}

.call-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    margin-top: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    display: block;
    width: 100%;
    text-decoration: none;
}

.call-button:hover {
    background-color: #45a049;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #1e3a8a;
}
.district-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin: 20px 0;
}
.district-item {
    background-color: #f9f9f9;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}
.district-item:hover {
    background-color: #e9f7fe;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.district-item a {
    color: #333;
    text-decoration: none;
    display: block;
    font-weight: 500;
}
/* 响应式设计 */
@media (max-width: 1200px) {
    .advantage-item {
        flex-basis: 48%;
    }
}

@media (max-width: 992px) {
    header h1 {
        font-size: 2.3em;
    }
    
    header p {
        font-size: 1.1em;
    }
    
    .province-grid, .city-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .service-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header {
        padding: 20px 0;
    }
    
    header h1 {
        font-size: 1.8em;
    }
    
    header p {
        font-size: 1em;
    }
    
    header .highlight {
        padding: 3px 6px;
        margin: 0 2px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    .province-grid, .city-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .advantage-item {
        flex-basis: 100%;
    }
    
    .contact-methods {
        flex-direction: column;
    }
    
    .desktop-contact-buttons {
        display: none;
    }
    
    .mobile-bottom-menu {
        display: block;
    }
    
    .back-to-top {
        display: none !important;
    }
    
    footer {
        margin-bottom: 50px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 20px;
    }
    
    .province-grid, .city-grid, .service-list {
        grid-template-columns: 1fr;
    }
    
    .step {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .step-number {
        margin-bottom: 10px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.slide-up {
    animation: slideUp 0.5s ease-out;
} 