/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

html, body {
    width: 100%;
    overflow-x: hidden; 
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* 头部样式 */
.header {
    position: relative;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    overflow: hidden;
    z-index: 100;
}

/* 自定义工具提示样式 */
.tooltip-text {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    font-size: 14px;
    pointer-events: none; /* 确保tooltip不会干扰鼠标事件 */
    min-width: 60px; /* 设置最小宽度以确保文字被正确包裹 */
    text-align: center; /* 文字居中 */
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}

.tooltip-show {
    opacity: 1;
    visibility: visible;
}





/* 修改logo样式以适应新的SVG元素 */
.nav-logo {
    display: flex;
    align-items: center;
    height: 60px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-container {
    position: relative;
    width: 100px; /* 调整回原始大小 */
    height: 60px; /* 保持高度不变 */
    overflow: hidden;
}

/* 确保SVG元素有正确的定位 */
.logo-primary {
    position: absolute;
    top: 0;
    left: 0;
    width: 100px; /* 固定宽度100px */
    height: auto; /* 保持比例 */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 导航栏样式 */
.nav-container {
    position: fixed;
    top: 20px;
    left: 5%;
    right: 5%;
    width: 90%;
    padding: 25px 50px;  /* 确保有足够的左右内边距 */
    display: flex;
    justify-content: flex-start; /* 让logo靠左 */
    align-items: center;
    z-index: 50;
    background: rgba(255, 255, 255, 0);
    transition: all 0.3s ease;
}

.nav-container.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 100px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 导航栏隐藏状态 */
.nav-container.hidden {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

/* 导航栏显示状态 */
.nav-container.visible {
    transform: translateY(0);
    transition: transform 0.3s ease;
}


.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 35px;
}

.nav-links a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
    letter-spacing: 1px;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #4fc3f7;
    transition: width 0.3s ease;
}

.nav-links a:hover:after {
    width: 100%;
}

.nav-container.scrolled .nav-logo {
    color: #333;
}

.nav-container.scrolled .nav-links a {
    color: #333;
}



/* 内容区域样式 */

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        padding: 15px 20px;
        background-color: rgba(255, 255, 255, 0.7);
        border-radius: 20px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        justify-content: space-between;
    }
    
    .nav-logo {
        margin-left: 10px;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: rgba(26, 42, 108, 0.95);
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .menu-toggle-btn { /* 确保菜单按钮在手机端可见 */
        display: block !important;
        color: #333;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
}

/* 全屏弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.show {
    opacity: 1;
}

.modal-content {
    position: absolute;
    top: 5%;
    left: 2%;
    right: 2%;
    bottom: 5%;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
    flex-shrink: 0;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.5em;
    font-weight: 600;
}

.close {
    color: #666;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    background: none;
    border: none;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
    transform: rotate(90deg);
}

.modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.iframe-container {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
    height: 100%;
}

#3d-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
    display: block;

}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding: 20px 30px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    flex-shrink: 0;
}

.open-btn {
    background: #00a859;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
}

.open-btn:hover {
    background: #00a859;
}

.close-btn {
    background: #f0f0f0;
    color: #666;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.close-btn:hover {
    background: #e0e0e0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 修改：全屏菜单样式 */
.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 42, 108, 0.95);
    z-index: 21;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.fullscreen-menu.active {
    transform: translateY(0);
}


.fullscreen-menu-nav {
    list-style: none;
    text-align: center;
}

.fullscreen-menu-nav li {
    margin: 20px 0;
}

.fullscreen-menu-nav a {
    color: white;
    text-decoration: none;
    font-size: 2rem;
    font-weight: 500;
    display: block;
    padding: 10px 20px;
    transition: color 0.3s ease;
    position: relative;
}

.fullscreen-menu-nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    background-color: #4fc3f7;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.fullscreen-menu-nav a:hover:after {
    width: 100%;
}

.fullscreen-menu-nav a:hover {
    color: #4fc3f7;
}

.menu-toggle-btn {
    background: none;
    border: none;
    color: rgb(0, 0, 0);
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: auto;
    width: 120px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    background-color: #00a859;
    z-index: 500;
    gap: 10px;
    border-radius: 25px;
}

.menu-toggle-btn:hover {
    background: #1A2A6C;
    color: #fff;
}

.nav-container.scrolled .menu-toggle-btn {
    color: #333;
}

@media (min-width: 769px) {
    .menu-toggle-btn {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .fullscreen-menu-nav a {
        font-size: 1.5rem;
    }
    
}

@media (max-width: 768px) {
    .masonry-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-info {
        padding: 15px;
    }

    .modal-content {
        margin: 5% auto;
        width: 95%;
    }

    .modal-actions {
        flex-direction: column;
    }
}






/* 全屏菜单内的联系方式区域样式 */
.fullscreen-menu .lianxiwomen {
    margin-top: 20px;
    padding: 30px;
    max-width: 400px;
    text-align: center;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.fullscreen-menu .lianxiwomen p {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
}

.fullscreen-menu .lianxiwomen p:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.fullscreen-menu .lianxiwomen p span {
    display: flex;
    align-items: center;
    margin-right: 15px;
    min-width: 35px;
    justify-content: center;
}

/* 修复：移除滤镜效果，保持图标原始颜色 */
.fullscreen-menu .lianxiwomen p span img {
    margin-right: 8px;
    transition: transform 0.3s ease;
    /* 移除这行：filter: brightness(0) invert(1); */
}

.fullscreen-menu .lianxiwomen p:hover span img {
    transform: scale(1.1);
}

/* 电话号码样式 */
.fullscreen-menu .lianxiwomen p:first-child,
.fullscreen-menu .lianxiwomen p:nth-child(2) {
    font-weight: 600;
    font-size: 1.1em;
    color: #fff;
}

.fullscreen-menu .lianxiwomen p:last-child {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1em;
}

/* 时间图标样式 */
.fullscreen-menu .lianxiwomen p:last-child span {
    font-size: 1.2em;
    color: #4fc3f7;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .fullscreen-menu .lianxiwomen {
        margin-top: 40px;
        padding: 20px;
        max-width: 300px;
    }
    
    .fullscreen-menu .lianxiwomen p {
        padding: 12px 15px;
        margin: 15px 0;
        flex-direction: column;
        gap: 8px;
    }
    
    .fullscreen-menu .lianxiwomen p span {
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .fullscreen-menu .lianxiwomen p:first-child,
    .fullscreen-menu .lianxiwomen p:nth-child(2) {
        font-size: 1em;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fullscreen-menu .lianxiwomen p {
    animation: fadeInUp 0.6s ease forwards;
}

.fullscreen-menu .lianxiwomen p:nth-child(1) { animation-delay: 0.5s; }
.fullscreen-menu .lianxiwomen p:nth-child(2) { animation-delay: 0.6s; }
.fullscreen-menu .lianxiwomen p:nth-child(3) { animation-delay: 0.7s; }





/* 首页对比大图文字模块样式优化 - 磨砂玻璃效果 */
.text-module {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    /* 移除渐变背景，改为半透明背景增强磨砂效果 */
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 320px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
    /* 增强磨砂玻璃效果 */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
}

/* 修改::before伪元素，增强磨砂质感 */
.text-module::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* 移除渐变，改为纯色半透明背景 */
    background: rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    z-index: -1;
    transform: translateZ(-1px);
    backdrop-filter: blur(5px);
}

.text-module.visible {
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
    animation: textSlideIn 0.6s ease-out;
}

.left-text {
    left: 8%;
}

.right-text {
    right: 8%;
}

.text-module h2 {
    margin-top: 0;
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    position: relative;
    padding-bottom: 10px;
    line-height: 1.3;
}

.text-module h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
}

.text-module p {
    margin-bottom: 0;
    font-size: 1.1em;
    line-height: 1.6;
    font-weight: 300;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    opacity: 0.95;
}

/* 悬停效果 - 调整为适合磨砂玻璃 */
.text-module:hover {
    transform: translateY(-50%) scale(1.08);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(25px) saturate(200%);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* 动画效果 */
@keyframes textSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-50%) translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.right-text.visible {
    animation: textSlideInRight 0.6s ease-out;
}

@keyframes textSlideInRight {
    0% {
        opacity: 0;
        transform: translateY(-50%) translateX(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .text-module {
        max-width: 250px;
        padding: 20px;
        left: 5% !important;
        right: 5% !important;
        transform: translateY(-50%) scale(0.9);
        backdrop-filter: blur(15px) saturate(180%);
    }
    
    .text-module.visible {
        transform: translateY(-50%) scale(0.95);
    }
    
    .text-module h2 {
        font-size: 1.4em;
    }
    
    .text-module p {
        font-size: 0.95em;
    }
}

/* 添加图标装饰 */
.text-module::after {
    content: '💡';
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 2em;
    opacity: 0.3;
    transform: rotate(15deg);
    animation: iconFloat 3s ease-in-out infinite;
}

.left-text::after {
    content: '🌳';
    left: -15px;
    right: auto;
}

.right-text::after {
    content: '⚙️';
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0) rotate(15deg);
    }
    50% {
        transform: translateY(-5px) rotate(20deg);
    }
}





