/* ============================================
   YueYang Wire & Cable - 强化菜单可见版
   确保移动端菜单必定显示
============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Sarabun', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8fafc;
    color: #1e2f3c;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

/* ---------- 头部区域 ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 88, 163, 0.12);
    padding-top: env(safe-area-inset-top);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
    gap: 0.75rem;
}

/* Logo区域 */
.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    width: 3.25rem;
    height: 3.25rem;
    object-fit: contain;
}

.company-info {
    line-height: 1.3;
}

.name-th {
    font-size: 1rem;
    font-weight: 700;
    color: #004d73;
    white-space: nowrap;
}

.name-en {
    font-size: 0.7rem;
    color: #5f7f9e;
    white-space: nowrap;
}

/* 右侧功能区 */
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* 语言切换 */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f0f3f8;
    padding: 0.45rem 0.9rem;
    border-radius: 2.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    min-height: 2.5rem;
}

.lang.active {
    color: #0077b6;
}

/* 汉堡按钮 (移动端显示) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    background: transparent;
    border: none;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 1.5rem;
    height: 2.5px;
    background-color: #004d73;
    border-radius: 4px;
    transition: all 0.25s ease;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* 导航容器（桌面端样式） */
.nav-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-menu {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.nav-menu li a {
    position: relative;
    display: inline-block;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #2c3e4e;
    border-radius: 2rem;
    transition: all 0.25s ease;
    text-decoration: none;
    overflow: hidden;
}

/* 下划线特效 */
.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #2c7da0;
    transition: width 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border-radius: 2px;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 70%;
}

.nav-menu li a:hover {
    color: #2c7da0;
    transform: translateY(-2px);
}

.nav-menu li a.active {
    background: #2c7da0;
    color: white;
    box-shadow: 0 4px 12px rgba(44,125,160,0.3);
}



/* ========== 移动端样式（重点：菜单强制显示） ========== */
@media (max-width: 991px) {
    .header-container {
        height: 4.25rem;
        padding: 0 1rem;
    }

    .logo-img {
        width: 2.5rem;
        height: 2.5rem;
    }
    .name-th {
        font-size: 0.85rem;
        white-space: normal;
    }
    .name-en {
        font-size: 0.6rem;
        white-space: normal;
    }

    /* 显示汉堡按钮 */
    .hamburger {
        display: flex;
    }

    /* 菜单容器：默认隐藏，添加 .show 后强制显示 */
    .nav-wrapper {
        position: fixed !important;
        top: calc(4.25rem + env(safe-area-inset-top)) !important;
        left: 0 !important;
        right: 0 !important;
        background: #ffffff !important;
        flex-direction: column !important;
        align-items: stretch !important;
        box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.25) !important;
        border-top: 1px solid rgba(0, 88, 163, 0.2) !important;
        border-bottom: 1px solid #eef2f6 !important;
        z-index: 9999 !important;           /* 最高层级 */
        display: none !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.35s ease-out !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }

    /* 显示菜单时覆盖所有限制 */
    .nav-wrapper.show {
        display: flex !important;
        max-height: 70vh !important;         /* 最高70%视口高度 */
        opacity: 1 !important;
        visibility: visible !important;
        overflow-y: auto !important;         /* 超出滚动 */
        pointer-events: auto !important;     /* 确保可点击 */
    }

    .nav-menu {
        flex-direction: column !important;
        width: 100% !important;
        padding: 1.5rem 1rem 2rem !important;
        gap: 0.5rem !important;
        margin: 0 !important;
    }

    .nav-menu li {
        width: 100% !important;
    }

    .nav-menu li a {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 0.9rem 1rem !important;
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        white-space: normal !important;
        border-radius: 3rem !important;
        background: transparent !important;
    }

    .nav-menu li a:active {
        background: #eef2fc !important;
    }

    .nav-menu li a.active {
        background: #e6f3fc !important;
        color: #0077b6 !important;
    }
}

/* 极小屏幕（≤360px） */
@media (max-width: 360px) {
    .header-container {
        padding: 0 0.75rem;
        gap: 0.5rem;
    }
    .logo-img {
        width: 2.2rem;
        height: 2.2rem;
    }
    .name-th {
        font-size: 0.75rem;
    }
    .name-en {
        font-size: 0.55rem;
    }
    .lang-toggle {
        padding: 0.25rem 0.65rem;
        font-size: 0.7rem;
    }
    .nav-menu li a {
        font-size: 1rem;
        padding: 0.7rem 0.5rem !important;
    }
}

/* 横屏模式（高度较小） */
@media (orientation: landscape) and (max-height: 500px) {
    .nav-wrapper.show {
        max-height: 85vh !important;
    }
    .nav-menu {
        padding: 1rem !important;
        gap: 0.25rem !important;
    }
    .nav-menu li a {
        padding: 0.5rem !important;
        font-size: 0.9rem !important;
    }
}

/* 平板竖屏（768px-991px） */
@media (min-width: 768px) and (max-width: 991px) {
    .header-container {
        height: 4.75rem;
    }
    .nav-wrapper {
        top: calc(4.75rem + env(safe-area-inset-top)) !important;
    }
}

/* 桌面端恢复常规样式 */
@media (min-width: 992px) {
    .nav-wrapper {
        display: flex !important;
        position: static !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        max-height: none !important;
        overflow: visible !important;
        opacity: 1 !important;
        visibility: visible !important;
        flex-direction: row !important;
    }
    .nav-menu {
        flex-direction: row !important;
        padding: 0 !important;
    }
    .hamburger {
        display: none !important;
    }
}

/* 紧凑型 footer */
.footer {
    background: #0a2a38;
    color: #cbdbe2;
    padding: 40px 0 30px;   /* 减少上下内边距 */
}

.footer .container {
    max-width: 1000px;       /* 更窄的容器 */
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;               /* 减小列间距 */
}

.footer-col {
    flex: 0 0 auto;
    width: 260px;            /* 列宽缩小 */
    text-align: left;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: #fff;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col li {
    margin-bottom: 6px;
}

.footer-col a {
    color: #b3c7d6;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #fff;
}

.keyword-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.keyword-links a {
    background: rgba(255,255,255,0.1);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
}

.address {
    margin-bottom: 12px;
    line-height: 1.4;
    font-size: 0.8rem;
}

address strong {
    display: block;
    margin-bottom: 2px;
    color: #fff;
}

address br {
    margin: 0;
}

.cert-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 12px;
}

.cert-badges span {
    background: rgba(255,255,255,0.1);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    color: #fff;
}

.social-links {
    display: flex;
    gap: 12px;
    margin: 12px 0;
}

.social-links a {
    color: #fff;
    font-size: 1.2rem;
}

.copyright {
    font-size: 0.7rem;
    text-align: left;
    margin-top: 12px;
    line-height: 1.4;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .footer-grid {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    .footer-col {
        width: 100%;
        text-align: center;
    }
    .footer-col .keyword-links,
    .footer-col .cert-badges,
    .footer-col .social-links {
        justify-content: center;
    }
    .copyright {
        text-align: center;
    }
}

* {
     margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Sarabun', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
            background-color: #f8fafc;
            color: #1e2f3c;
            line-height: 1.5;
        }

        /* 通用容器 */
        .container {
            width: 100%;
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 24px;
        }

        /* 通用区块 */
        .section {
            padding: 60px 0;
        }

        .section-title {
            font-size: 2rem;
            font-weight: 700;
            color: #003753;
            text-align: center;
            margin-bottom: 2rem;
        }

        @media (max-width: 768px) {
            .section {
                padding: 40px 0;
            }
            .section-title {
                font-size: 1.6rem;
            }
        }

        /* ========== 1. 首屏大图轮播 ========== */
        /* ========== 轮播图核心样式 ========== */
.hero {
    position: relative;
    overflow: hidden;
    height: 91vh;
    min-height: 500px;
}
.swiper {
    position: relative;
    width: 100%;
    height: 100%;
}
.swiper-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}
.swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    position: relative;
}
.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* 轮播按钮与分页点样式（已有） */
.swiper-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: white;
    font-size: 20px;
    transition: 0.3s;
}
.swiper-button:hover {
    background: rgba(0,0,0,0.8);
}
.swiper-button-prev { left: 20px; }
.swiper-button-next { right: 20px; }
.swiper-pagination {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 10;
}
.dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}
.dot.active {
    background: white;
    transform: scale(1.2);
}
/* 移动端适配 */
@media (max-width: 768px) {
    .hero {
        height: 70vh;
        min-height: 450px;
    }
    .hero-content {
        left: 5%;
        right: 5%;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 2rem;
        margin-top: 0;
    }
    .hero-content p {
        font-size: 1rem;
        background: rgba(0,0,0,0.55);
        display: inline-block;
        padding: 12px 20px;
        border-radius: 40px;
        backdrop-filter: blur(4px);
        color: white;
        margin-bottom: 0.5rem;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.5;
    }
    .hero-buttons {
        justify-content: center;
        margin-top: 20px;
    }
}

        .hero-content {
            position: absolute;
            top: 50%;
            left: 10%;
            transform: translateY(-50%);
            max-width: 600px;
            color: rgb(7, 7, 7);
            text-shadow: 0 2px 10px rgba(0,0,0,0.3);
            z-index: 2;
        }

        .hero-content h1 {
            font-size: 3rem;
            margin-bottom: 1rem;
            font-weight: 800;
        }

        .hero-content p {
            font-size: 1.2rem;
            margin-bottom: 2rem;
            opacity: 0.9;
        }

        .hero-buttons {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
        }

        .btn {
            display: inline-block;
            padding: 12px 28px;
            border-radius: 40px;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s;
        }

        .btn-primary {
            background: #0077b6;
            color: white;
        }

        .btn-primary:hover {
            background: #005f8c;
            transform: translateY(-2px);
        }

        .btn-secondary {
            background: transparent;
            border: 2px solid rgb(5, 5, 5);
            color: rgb(6, 6, 6);
        }

        .btn-secondary:hover {
            background: rgba(255,255,255,0.2);
            transform: translateY(-2px);
        }

       
        @media (max-width: 768px) {
            .hero {
                height: 70vh;
                min-height: 450px;
            }

            .hero-content {
                left: 5%;
                right: 5%;
                text-align: center;
                /* 不调整整个容器的位置，只移动内部文字 */
            }

            /* 标题和描述向上移动，露出电缆 */
            .hero-content h1,
            .hero-content p {
                transform: translateY(-20px);   /* 向上偏移20px，可根据实际效果微调 */
            }

            .hero-content h1 {
                font-size: 2rem;
                margin-top: 0;
            }

            .hero-content p {
                font-size: 1rem;
                background: rgba(255, 255, 255, 0.5);
                display: inline-block;
                padding: 12px 20px;
                border-radius: 40px;
                backdrop-filter: blur(4px);
                color: #000000;
                margin-bottom: 0.5rem;          /* 减小与按钮的间距，避免上移后重叠 */
                max-width: 90%;
                margin-left: auto;
                margin-right: auto;
                line-height: 1.5;
            }

            /* 按钮保持原有样式，增加上边距防止与上移文字重叠 */
            .hero-buttons {
                justify-content: center;
                margin-top: 20px;               /* 确保按钮不会与上移后的文字挤在一起 */
            }
        }

        /* ========== 2. 关于越洋 ========== */
        .about-grid {
            display: flex;
            gap: 40px;
            align-items: center;
            flex-wrap: wrap;
        }
        .about-media {
            flex: 1;
            min-width: 280px;
        }
        .about-media video, .about-media img {
            width: 100%;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }
        .about-text {
            flex: 1;
        }
        .stats {
            display: flex;
            gap: 30px;
            margin: 30px 0;
            flex-wrap: wrap;
        }
        .stat-item {
            text-align: center;
        }
        .stat-number {
            font-size: 2.5rem;
            font-weight: 800;
            color: #0077b6;
            line-height: 1;
        }
        .stat-label {
            font-size: 0.9rem;
            color: #5f7f9e;
        }
        .global-map {
            margin-top: 30px;
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            justify-content: space-between;
            border-top: 1px solid #e2e8f0;
            padding-top: 30px;
        }
        .global-point {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.9rem;
        }
        .global-point i {
            font-size: 20px;
            color: #0077b6;
        }

        @media (max-width: 768px) {
            .about-grid { flex-direction: column; }
            .stats { justify-content: center; }
            .global-point { flex: 1 0 40%; }
        }

        /* ========== 3. 核心产品中心 ========== */
        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 30px;
        }
        .product-card {
            background: white;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            transition: all 0.3s;
            position: relative;
        }
        .product-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        }
        .product-img {
            height: 200px;
            background-size: cover;
            background-position: center;
            transition: 0.3s;
        }
        .product-card h3 {
            padding: 20px 20px 10px;
            font-size: 1.2rem;
            color: #003753;
        }
        .product-card p {
            padding: 0 20px 20px;
            color: #5f7f9e;
            font-size: 0.9rem;
        }
        /* hover遮罩 */
        .product-card .overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,119,182,0.9);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 20px;
            opacity: 0;
            transition: 0.3s;
            pointer-events: none;
            border-radius: 20px;
        }
        .product-card:hover .overlay {
            opacity: 1;
        }

        @media (max-width: 768px) {
            .products-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
            .product-img { height: 150px; }
            .product-card h3 { font-size: 1rem; }
        }
        @media (max-width: 480px) {
            .products-grid { grid-template-columns: 1fr; }
        }

        /* ========== 4. 企业优势 ========== */
        .advantages-grid {
            display: flex;
            gap: 30px;
            justify-content: space-between;
            flex-wrap: wrap;
        }
        .advantage-card {
            flex: 1;
            min-width: 240px;
            background: white;
            border-radius: 20px;
            padding: 30px 20px;
            text-align: center;
            box-shadow: 0 5px 15px rgba(0,0,0,0.03);
            transition: 0.3s;
        }
        .advantage-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        }
        .advantage-icon {
            font-size: 48px;
            color: #0077b6;
            margin-bottom: 20px;
        }
        .advantage-card h3 {
            font-size: 1.3rem;
            margin-bottom: 15px;
        }
        .advantage-card p {
            color: #5f7f9e;
        }

        /* ========== 5. 合作伙伴 ========== */
        .partners {
            background: #fff;
            padding: 40px 0;
            border-top: 1px solid #eef2f6;
            border-bottom: 1px solid #eef2f6;
        }
        .partner-slider {
            display: flex;
            overflow-x: auto;
            scroll-behavior: smooth;
            gap: 40px;
            padding: 20px 0;
            -webkit-overflow-scrolling: touch;
        }
        .partner-slider::-webkit-scrollbar {
            height: 6px;
        }
        .partner-item {
            flex-shrink: 0;
            width: 140px;
            text-align: center;
            transition: 0.3s;
        }
        .partner-item:hover {
            filter: grayscale(0);
            opacity: 1;
        }
        .partner-item img {
            max-width: 100%;
            height: auto;
            max-height: 60px;
        }

        /* ========== 6. 底部栏 ========== */
        .footer {
            background: #0a2a38;
            color: #cbdbe2;
            padding: 60px 0 30px;
        }
        .footer-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 40px;
            justify-content: space-between;
        }
        .footer-col {
            flex: 1;
            min-width: 180px;
        }
        .footer-col h4 {
            color: white;
            margin-bottom: 20px;
            font-size: 1.1rem;
        }
        .footer-col ul {
            list-style: none;
        }
        .footer-col li {
            margin-bottom: 10px;
        }
        .footer-col a {
            color: #b3c7d6;
            text-decoration: none;
            transition: 0.2s;
        }
        .footer-col a:hover {
            color: white;
        }
        .keyword-links {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-top: 15px;
        }
        .keyword-links a {
            font-size: 0.8rem;
            background: rgba(255,255,255,0.1);
            padding: 4px 12px;
            border-radius: 20px;
        }
        address {
            font-style: normal;
            line-height: 1.6;
        }
        .cert-badges {
            display: flex;
            gap: 15px;
            margin: 20px 0;
            flex-wrap: wrap;
        }
        .cert-badges img {
            height: 40px;
            filter: brightness(0) invert(1);
            opacity: 0.8;
        }
        .social-links {
            display: flex;
            gap: 15px;
            margin: 20px 0;
        }
        .social-links a {
            color: white;
            font-size: 24px;
        }
        .copyright {
            text-align: center;
            margin-top: 40px;
            padding-top: 20px;
            border-top: 1px solid #1f495e;
            font-size: 0.8rem;
        }

        @media (max-width: 768px) {
            .footer-grid { flex-direction: column; text-align: center; }
            .footer-col { text-align: center; }
            .keyword-links { justify-content: center; }
            .cert-badges { justify-content: center; }
            .social-links { justify-content: center; }
        }
       
.floating-contact-bar {
    position: fixed;
    right: 20px;
    bottom: 100px;          /* 从底部向上偏移，避免与 footer 重叠 */
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    color: #333;
    font-size: 24px;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

/* 按钮专属颜色 */
.line-btn {
    background: #06C755;
    color: white;
}
.line-btn:hover {
    background: #05a347;
}

.inquiry-btn {
    background: #2c7da0;
    color: white;
}
.inquiry-btn:hover {
    background: #1f5e7a;
}

.top-btn {
    background: #34495e;
    color: white;
}
.top-btn:hover {
    background: #2c3e50;
}

/* 提示文本 */
.tooltip {
    position: absolute;
    right: 70px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    font-family: sans-serif;
}

.contact-btn:hover .tooltip {
    opacity: 1;
}

/* 模态框样式 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-container {
    background: white;
    width: 90%;
    max-width: 480px;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: #1e2f3c;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #888;
    transition: color 0.2s;
}
.modal-close:hover {
    color: #333;
}

#inquiryForm input,
#inquiryForm textarea {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 16px;
    border: 1px solid #ddd;
    border-radius: 40px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: inherit;
}

#inquiryForm textarea {
    border-radius: 20px;
    resize: vertical;
}

.submit-btn {
    background: #2c7da0;
    color: white;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
.submit-btn:hover {
    background: #1f5e7a;
}

.modal-note {
    text-align: center;
    font-size: 12px;
    color: #777;
    margin-top: 16px;
}

/* 二维码模态框 */
.qr-container {
    text-align: center;
}
.qr-code img {
    width: 180px;
    height: 180px;
    margin: 20px auto;
    display: block;
    border-radius: 12px;
}
.line-link {
    display: inline-block;
    margin-top: 12px;
    background: #06C755;
    color: white;
    padding: 8px 16px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 14px;
}
.line-link:hover {
    background: #05a347;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式：移动端缩小按钮尺寸 */
@media (max-width: 768px) {
    .floating-contact-bar {
        right: 15px;
        bottom: 80px;
        gap: 12px;
    }
    .contact-btn {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    .tooltip {
        right: 55px;
        font-size: 11px;
        padding: 4px 8px;
    }
}

/* 如果页面底部有询价表单，滚动时高亮（可选） */
#inquiry-form {
    scroll-margin-top: 80px; /* 避免被固定头部遮挡 */
}
