
/* ===== 全局重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa;
    padding-top: 70px;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== 导航栏 ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #005A9C;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    flex-wrap: nowrap;
}
.logo a {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
}
.main-nav {
    display: flex;
    align-items: center;
    flex-shrink: 1;
    min-width: 0;
}
.main-nav ul {
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}
.main-nav > ul > li {
    position: relative;
    white-space: nowrap;
}
.main-nav > ul > li > a {
    color: #fff;
    padding: 25px 14px;
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.2s;
    white-space: nowrap;
}
.main-nav > ul > li > a:hover {
    background: rgba(255,255,255,0.15);
}
.header-phone {
    background: #ff6b00;
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}
.header-phone a {
    color: #fff;
}
.header-phone:hover {
    background: #e55a00;
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
    padding: 5px;
}

/* ===== 下拉菜单 ===== */
.has-dropdown .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 8px 0;
    border-radius: 0 0 6px 6px;
    z-index: 999;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
}
.has-dropdown .dropdown::-webkit-scrollbar {
    width: 6px;
}
.has-dropdown .dropdown::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}
.has-dropdown .dropdown::-webkit-scrollbar-track {
    background: #f0f0f0;
}
.has-dropdown:hover .dropdown {
    display: block;
}
.has-dropdown:last-child .dropdown {
    left: auto;
    right: 0;
}
.dropdown li a {
    display: block;
    padding: 8px 20px;
    color: #333;
    transition: background 0.2s;
}
.dropdown li a:hover {
    background: #f0f4ff;
    color: #005A9C;
}

/* ===== 面包屑 ===== */
.breadcrumb {
    background: #f5f8fa;
    padding: 12px 0;
    border-bottom: 1px solid #e8edf0;
}
.breadcrumb .container {
    font-size: 0.9rem;
    color: #666;
}
.breadcrumb a {
    color: #005A9C;
}
.breadcrumb a:hover {
    text-decoration: underline;
}

/* ===== Banner ===== */
.main-banner {
    min-height: 550px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
}
.main-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}
.banner-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.banner-content {
    max-width: 800px;
    margin: 0 auto;
    color: #fff;
    text-align: center;
}
.banner-content h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}
.banner-content .banner-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
.btn-phone {
    background: #ff6b00;
    color: #fff;
    padding: 12px 30px;
    border-radius: 40px;
    display: inline-block;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
}
.btn-phone:hover {
    background: #e55a00;
    transform: scale(1.05);
}

/* ===== 快速故障 ===== */
.quick-faults {
    padding: 60px 0;
    background: #fff;
}
.quick-faults h2 {
    text-align: center;
    font-size: 2rem;
    color: #005A9C;
    margin-bottom: 40px;
}
.faults-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}
.fault-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eef2f7;
}
.fault-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,90,156,0.12);
    border-color: #005A9C;
}
.fault-icon {
    font-size: 2.5rem;
    color: #005A9C;
    margin-bottom: 10px;
}
.fault-card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}
.fault-card p {
    font-size: 0.9rem;
    color: #666;
}

/* ===== 优势 ===== */
.advantages {
    padding: 60px 0;
    background: #f5f9fd;
}
.advantages h2 {
    text-align: center;
    font-size: 2rem;
    color: #005A9C;
    margin-bottom: 40px;
}
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.advantage-item {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.advantage-icon {
    font-size: 2.8rem;
    color: #005A9C;
    margin-bottom: 15px;
}
.advantage-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.advantage-item p {
    font-size: 0.9rem;
    color: #666;
}

/* ===== 服务流程 ===== */
.service-process {
    padding: 60px 0;
    background: #fff;
}
.service-process h2 {
    text-align: center;
    font-size: 2rem;
    color: #005A9C;
    margin-bottom: 40px;
}
.process-steps {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.step {
    flex: 1;
    min-width: 180px;
    text-align: center;
    padding: 30px 15px;
    background: #f9f9f9;
    border-radius: 12px;
}
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #005A9C;
    color: #fff;
    border-radius: 50%;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
}
.step-content h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}
.step-content p {
    font-size: 0.9rem;
    color: #666;
}

/* ===== 页脚 ===== */
.site-footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 40px 0 20px;
    margin-top: 40px;
}
.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}
.footer-links h4 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1rem;
}
.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
}
.friend-links a {
    background: #005A9C;
    color: #fff !important;
    padding: 4px 14px;
    border-radius: 20px;
    transition: background 0.3s;
    font-size: 0.9rem;
}
.friend-links a:hover {
    background: #004080;
}
.footer-qr {
    text-align: center;
    flex-shrink: 0;
}
.footer-qr img {
    max-width: 100px;
    border-radius: 8px;
    border: 2px solid #444;
}
.footer-qr p {
    margin-top: 5px;
    font-size: 12px;
    color: #aaa;
}
.footer-contact {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 15px;
    margin-top: 10px;
}
.footer-phone {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.footer-phone a {
    color: #ff6b00;
}
.footer-copyright {
    font-size: 0.85rem;
    color: #888;
}
.footer-copyright a {
    color: #aaa;
}
.footer-copyright a:hover {
    color: #fff;
}

/* ===== 悬浮电话 ===== */
.floating-phone {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #ff6b00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(255,107,0,0.4);
    z-index: 999;
    transition: transform 0.3s;
}
.floating-phone:hover {
    transform: scale(1.1);
}

/* ===== 移动端响应式（已修正汉堡菜单位置） ===== */
@media (max-width: 768px) {
    .site-header {
        height: 60px;
    }
    .header-container {
        flex-wrap: nowrap !important;
        justify-content: flex-start;
        align-items: center;
    }
    .logo {
        flex: 0 0 auto; 
        font-size: 1.2rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 70%; 
    }
    .logo a {
        font-size: 1.2rem;
    }
    .header-phone {
        display: none !important;  /* 完全隐藏电话 */
    }
    .menu-toggle {
        display: block !important;
        font-size: 1.8rem;
        color: #fff;
        margin-left: auto;
        flex-shrink: 0;
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px 10px;
        order: 0; 
    }
    .main-nav {
        position: absolute;            /* 脱离文档流 */
        top: 60px;                    /* 与 header 高度一致 */
        left: 0;
        width: 100%;
        background: #005A9C;          /* 与导航栏背景一致 */
        order: 0;                     /* 无关紧要 */
    }
    .main-nav ul {
        display: none;
        flex-direction: column;
        position: absolute;           /* 已经 absolute，内部 ul 也 absolute 可覆盖全屏下拉 */
        top: 0;                       /* 相对 .main-nav 定位 */
        left: 0;
        width: 100%;
        background: #005A9C;
        padding: 20px 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        border-radius: 0 0 8px 8px;
        z-index: 1000;
    }
    .main-nav ul.active {
        display: flex;
    }
    .main-nav > ul > li > a {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        white-space: normal;
    }
    .has-dropdown .dropdown {
        position: static;
        background: rgba(255,255,255,0.1);
        box-shadow: none;
        padding-left: 20px;
        display: none;
        max-height: none;
        overflow-y: visible;
    }
    .has-dropdown:hover .dropdown {
        display: none;
    }
    .has-dropdown.active .dropdown {
        display: block;
    }
    .dropdown a {
        color: #fff !important;
        padding: 8px 20px;
    }
    .banner-content h1 {
        font-size: 2rem;
    }
    .advantages-grid {
        grid-template-columns: 1fr 1fr;
    }
    .process-steps {
        flex-direction: column;
        align-items: center;
    }
    .step {
        width: 100%;
        max-width: 300px;
    }
    .footer-grid {
        flex-direction: column;
        align-items: center;
    }
    .friend-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .faults-grid {
        grid-template-columns: 1fr 1fr;
    }
    .advantages-grid {
        grid-template-columns: 1fr;
    }
}
