body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    padding-top: 56px;
    background: #f7f9fc;
    color: #222;
}

.bg-primary {
    background-color: #0A192F !important;
}

header {
    background: linear-gradient(135deg, #1e3a8a, #2563eb), url('/img/common/sewer03.jpg');
    background-blend-mode: overlay;
    background-size: cover;
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

header > * {
    position: relative;
    z-index: 1;
}

nav {
    background: #1e3a8a;
    text-align: center;
    padding: 10px;
}

.navbar {
    background-color: #0A192F; /* 更专业的深蓝色 */
}

nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #ffdd57;
}

.hero h1 {
    font-size: 52px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
    font-weight: 700;
}

.hero p {
    font-size: 22px;
    margin: 15px 0 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
    font-weight: 600;
}

.btn {
    background: #f97316;
    color: white;
    padding: 15px 30px;
    border: none;
    font-size: 18px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.3s ease;
    text-transform: uppercase;
}

.btn:hover {
    background: #ea580c;
}

.services, .testimonials, .contact, .additional-services {
    padding: 50px 20px;
    max-width: 1100px;
    margin: auto;
    margin-bottom: 50px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    font-weight: 600;
    color: #1e3a8a;
}

.service-item, .testimonial-item {
    background: white;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);

}

.additional-services ul {
    list-style-type: disc;
    margin-left: 20px;
    padding-left: 10px;
}

.additional-services li {
    margin-bottom: 10px;
    color: #444;
    font-size: 16px;
}

.carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 20px;
    margin-top: 5px;
    background-color: #e8edf3;
    border-radius: 8px;
}

.carousel-container img {
    width: 100%;
    max-width: 400px;
    height: auto;
    scroll-snap-align: center;
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#custom-carousel {
    width: 100%;
    position: relative;
    text-align: center;
    overflow: hidden;
    background-color: #f9fafb;
}

#custom-carousel img {
    max-height: 50vh;
    width: auto;
    height: auto;
    display: inline-block;
    object-fit: contain;
    border-radius: 6px;
}

@media (max-width: 768px) {
    #custom-carousel img {
        width: 100%;
        height: auto;
        max-height: none;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 16px;
    }
}

.floating-contact {
    position: fixed;
    right: 10px;
    bottom: 0;
    transform: translateY(-50%);
    z-index: 1050;
}

.floating-contact a {
    display: block;
    margin: 5px 0;
    border-radius: 8px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.floating-contact a:hover {
    transform: scale(1.05);
}

.wechat-qr {
    width: 120px;
    vertical-align: middle;
    display: block;
    margin: 0 auto;
}

.floating-icon {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
}

.floating-icon img {
    width: 50px;
    height: 50px;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    padding: 20px 0;
}

.service-item {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item .card-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-item .card-text {
    font-size: 15px;
    color: #555;
}

button, .btn, a.btn, .call-btn {
    min-width: 48px;
    min-height: 48px;
    padding: 12px 16px;
    font-size: 16px;
    line-height: 1.5;
}

/* 默认样式（桌面端） */
h1 {
    font-size: 48px;
}

.btn {
    font-size: 18px;
    padding: 12px 24px;
}

.responsive-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* 移动端优化（屏幕宽度小于等于 768px） */
@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }

    .btn {
        font-size: 16px;
        padding: 10px 16px;
    }

    .responsive-img {
        max-width: 100%;
        height: auto;
        margin-bottom: 1rem;
    }

    .hero-text {
        text-align: center;
        padding: 1rem;
    }
}

.cta-button {
    display: inline-block;
    padding: 14px 24px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    background-color: #ff6a00;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    min-width: 180px;
    min-height: 48px;
    z-index: 999;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

/* 📱 移动端适配 */
@media (max-width: 768px) {
    .cta-button {
        font-size: 16px;
        padding: 12px 20px;
        width: 100%;
        box-sizing: border-box;
    }
}

.btn:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease-in-out;
}

.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
}

.map-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.language-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.language-switcher button {
    margin: 5px;
    padding: 5px 10px;
    border: none;
    background: #f97316;
    color: white;
    border-radius: 5px;
}

.language-switcher button:hover {
    background: #ea580c;
}

.floating-contact {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.floating-contact .btn {
    padding: 8px 12px;
    font-size: 0.875rem;
}

.language-switcher {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
}

.language-switcher button {
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 4px;
}

@media (max-width: 576px) {
    .floating-contact {
        right: 5px;
        bottom: 5px;
        gap: 6px;
    }

    .floating-contact .btn {
        font-size: 0.75rem;
        padding: 6px 10px;
    }

    .language-switcher button {
        font-size: 0.75rem;
        padding: 4px 6px;
    }
}

a.btn.cta-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body[data-i18n-loading="true"] {
    visibility: hidden;
}
