/* reset & base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 顶部通知条 - 浅灰色 ========== */
.top-bar {
    background: #f0f0f0;
    color: #555;
    font-size: 13px;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.social {
    display: flex;
    align-items: center;
    gap: 20px;
}
.social a {
    color: #555;
    transition: 0.3s;
    font-size: 18px;
}
.social a:hover { color: #c49a2b; }

/* 微信浮窗二维码 - 鼠标悬停显示 */
.wechat-wrapper {
    position: relative;
    display: inline-block;
}
.wechat-qr-popup {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    width: 140px;
}
.wechat-qr-popup img {
    width: 100px;
    height: 100px;
    display: block;
    margin-bottom: 8px;
}
.wechat-qr-popup p {
    font-size: 12px;
    color: #c49a2b;
    margin: 0;
}
.wechat-wrapper:hover .wechat-qr-popup {
    opacity: 1;
    visibility: visible;
}

/* ========== header ========== */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}
.logo-img {
    max-width: 200px;
    height: auto;
}
@media (min-width: 768px) {
    .logo-img { max-width: 280px; }
}
@media (min-width: 1200px) {
    .logo-img { max-width: 330px; }
}
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}
.main-nav a {
    text-decoration: none;
    color: #1e2a36;
    font-weight: 600;
    transition: 0.3s;
}
.main-nav a:hover { color: #c49a2b; }
.header-phone {
    font-size: 1.2rem;
    font-weight: bold;
    color: #c49a2b;
    white-space: nowrap;
}
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ========== Hero 轮播 ========== */
.hero { position: relative; width: 100%; overflow: hidden; }
.heroSwiper { width: 100%; height: 550px; }
.hero-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}
.hero-content {
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}
.hero-content h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.hero-content h3 { font-size: 1.8rem; margin-bottom: 1rem; }
.hero-content p { font-size: 1.1rem; margin-bottom: 2rem; }
.btn-primary {
    display: inline-block;
    background: #c49a2b;
    color: #fff;
    padding: 12px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}
.btn-primary:hover { background: #a07c22; transform: translateY(-2px); }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.swiper-pagination-bullet-active { background: #c49a2b !important; }
.swiper-button-next, .swiper-button-prev {
    color: #c49a2b !important;
    background: rgba(0,0,0,0.3);
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

/* ========== 公司介绍 ========== */
.about {
    background: #f0f2f5;
    padding: 70px 0;
}
.about-flex {
    display: flex;
    gap: 50px;
    align-items: center;
    flex-wrap: wrap;
}
.about-text {
    flex: 1;
}
.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1e2a36;
}
.about-text h2 span {
    font-size: 1rem;
    font-weight: normal;
    color: #c49a2b;
    margin-left: 10px;
}
.about-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
}
.btn-outline {
    display: inline-block;
    border: 2px solid #c49a2b;
    color: #c49a2b;
    padding: 10px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    transition: 0.3s;
}
.btn-outline:hover {
    background: #c49a2b;
    color: white;
}
.about-image {
    flex-shrink: 0;
}
.image-placeholder {
    height: 550px !important;
    width: 520px !important;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* 响应式适配 */
@media (max-width: 992px) {
    .about-flex {
        flex-direction: column;
        gap: 35px;
    }
    .about-text {
        order: 1;
    }
    .about-image {
        order: 0;
    }
    .image-placeholder {
        height: 420px !important;
        width: 400px !important;
    }
}

@media (max-width: 768px) {
    .about {
        padding: 50px 0;
    }
    .about-text h2 {
        font-size: 1.6rem;
    }
    .image-placeholder {
        height: 350px !important;
        width: 100% !important;
        max-width: 400px;
    }
}
/* ========== 其他模块通用样式 ========== */
.process, .cases, .products, .contact {
    padding: 70px 0;
}
.process { background: #f9f9f9; }
.contact { background: #1e2a36; color: white; }
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title h2 {
    font-size: 2rem;
    color: #1e2a36;
}
.section-title h2 span {
    font-size: 1rem;
    color: #c49a2b;
    margin-left: 10px;
}
.section-title p {
    color: #666;
}
.process-grid, .cases-grid, .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}
.process-card, .case-item, .product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.process-card { padding: 30px 20px; text-align: center; }
.process-icon { font-size: 3rem; color: #c49a2b; margin-bottom: 1rem; }
.case-img, .product-img { height: 200px; background-size: cover; background-position: center; }
.case-item h4, .product-card h4 {
    padding: 15px 15px 5px;
    font-size: 1.1rem;
}
.case-item p, .product-card p {
    padding: 0 15px 15px;
    color: #666;
}

/* ========== 联系我们模块 ========== */
.contact-flex {
    display: flex;
    gap: 50px;
}
.contact-info, .contact-form { flex: 1; }
.contact-info h2 {
    margin-bottom: 1.5rem;
    color: #c49a2b;
}
.contact-info p {
    margin-bottom: 1rem;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: none;
    border-radius: 6px;
}
.contact-form button {
    width: 100%;
    font-size: 1rem;
}

/* ========== 页脚 - 深绿色 ========== */
footer {
    background: #1a4a2a;
    color: #d4e6d4;
    padding: 40px 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 5fr 4fr 1fr;
    gap: 40px;
    align-items: center;
    text-align: center;
}
.footer-copyright {
    text-align: left;
    font-size: 13px;
    line-height: 1.8;
}
.footer-copyright p {
    margin: 5px 0;
}
.footer-phone {
    font-size: 18px;
    display: flex;
    flex-direction: column;
    align-items:  flex-start;
    gap: 8px;
}
.footer-phone i {
    font-size: 28px;
    color: #c49a2b;
}
.footer-phone span {
    font-size: 16px;
    font-weight: bold;
}
.footer-qrcode {
    text-align: right;
}
.footer-qrcode img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    border: 2px solid #c49a2b;
}
.footer-qrcode p {
    font-size: 12px;
    margin-top: 8px;
    color: #c49a2b;
}
@media (max-width: 868px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    .footer-copyright, .footer-qrcode {
        text-align: center;
    }
}

/* ========== 浮动元素 ========== */
.float-qrcode {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    cursor: pointer;
}
.qrcode-content {
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    text-align: center;
    position: relative;
}
.qrcode-content img {
    width: 120px;
    height: 120px;
    display: block;
    margin-bottom: 10px;
}
.qrcode-content p {
    font-size: 12px;
    color: #c49a2b;
    margin: 0;
}
.close-qrcode {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #333;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    transition: 0.3s;
}
.qrcode-content:hover .close-qrcode { opacity: 1; }

.float-phone {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    cursor: pointer;
}
.phone-content {
    background: #c49a2b;
    color: white;
    padding: 15px;
    border-radius: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transition: 0.3s;
}
.phone-content i { font-size: 24px; }
.phone-content span { font-size: 14px; font-weight: bold; }
.phone-content p { font-size: 11px; margin: 0; }
.float-phone:hover .phone-content { transform: scale(1.05); background: #a07c22; }

.float-map {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
}
.map-toggle {
    background: #c49a2b;
    color: white;
    padding: 12px 20px;
    border-radius: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: 0.3s;
}
.map-toggle:hover { background: #a07c22; transform: scale(1.05); }
.map-container {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 350px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    overflow: hidden;
    display: none;
}
.map-container.active { display: block; }
#baiduMap { width: 100%; height: 200px; }
.map-address {
    padding: 12px;
    background: #f5f5f5;
    font-size: 12px;
}
.map-address p { margin: 5px 0; }

/* ========== 响应式 ========== */
@media (max-width: 992px) {
    .about-flex, .contact-flex { flex-direction: column; }
    .header-phone { display: none; }
    .mobile-toggle { display: block; }
    .main-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 90%;
        height: 100vh;
        background: white;
        transition: 0.3s;
        z-index: 999;
    }
    .main-nav.active { left: 0; }
    .main-nav ul { flex-direction: column; padding: 30px; gap: 1.5rem; }
    .heroSwiper { height: 450px; }
    .hero-content h2 { font-size: 1.8rem; }
    .float-qrcode { left: 10px; }
    .float-phone { right: 10px; }
    .qrcode-content img { width: 80px; height: 80px; }
}
@media (max-width: 600px) {
    .heroSwiper { height: 350px; }
    .hero-content h2 { font-size: 1.3rem; }
    .hero-content h3 { font-size: 1rem; }
    .float-qrcode, .float-phone { display: none; }
    .map-container { width: 280px; right: -10px; }
}