/* ===== 首页样式 ===== */

/* 粒子画布 */
#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Banner */
.banner {
    position: relative;
    overflow: hidden;
}

.banner-slides {
    position: relative;
}

.banner-slide {
    position: relative;
    /*min-height: 100vh;*/
    display: none;
}

.banner-slide.active {
    display: block;
    height: 520px;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.bg-1 {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 50%, #1976d2 100%);
}

.bg-2 {
    background: linear-gradient(135deg, #1565c0 0%, #2196f3 50%, #64b5f6 100%);
}

.bg-3 {
    background: linear-gradient(135deg, #0a3d91 0%, #1e88e5 50%, #42a5f5 100%);
}

/* 几何图形动画 */
.geo-shape {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.15);
    z-index: 2;
}

.g1 {
    width: 400px;
    height: 400px;
    top: 10%;
    right: 5%;
    transform: rotate(45deg);
    animation: floatRotate 20s ease-in-out infinite;
}

.g2 {
    width: 250px;
    height: 250px;
    top: 40%;
    right: 20%;
    border-radius: 50%;
    animation: floatRotate 15s ease-in-out infinite reverse;
}

.g3 {
    width: 150px;
    height: 150px;
    bottom: 15%;
    right: 10%;
    animation: floatRotate 25s ease-in-out infinite;
}

.g4 {
    width: 80px;
    height: 80px;
    top: 20%;
    right: 30%;
    background: rgba(255, 255, 255, 0.05);
    animation: pulse 3s ease-in-out infinite;
}

.g5 {
    width: 120px;
    height: 120px;
    bottom: 30%;
    right: 35%;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite reverse;
}

.g6 {
    width: 60px;
    height: 60px;
    top: 50%;
    right: 15%;
    background: rgba(255, 255, 255, 0.08);
    animation: floatRotate 8s ease-in-out infinite;
}

.sg1 { width: 350px; height: 350px; top: 5%; right: 10%; transform: rotate(30deg); animation: floatRotate 18s ease-in-out infinite; }
.sg2 { width: 200px; height: 200px; top: 50%; right: 25%; border-radius: 50%; animation: floatRotate 12s ease-in-out infinite reverse; }
.sg3 { width: 100px; height: 100px; bottom: 20%; right: 5%; animation: pulse 5s ease-in-out infinite; }

.hg1 { width: 300px; height: 300px; top: 10%; left: 5%; transform: rotate(-15deg); animation: floatRotate 22s ease-in-out infinite; }
.hg2 { width: 200px; height: 200px; top: 40%; left: 15%; border-radius: 50%; animation: floatRotate 16s ease-in-out infinite reverse; }
.hg3 { width: 150px; height: 150px; bottom: 10%; left: 10%; background: rgba(255, 255, 255, 0.05); animation: pulse 6s ease-in-out infinite; }

@keyframes floatRotate {
    0%, 100% { transform: rotate(45deg) translate(0, 0); }
    50% { transform: rotate(45deg) translate(30px, -30px); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.banner-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
    padding: 150px 0 100px;
}

.banner-content h1 {
    font-size: clamp(42px, 7vw, 72px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.banner-content h1 span {
    display: block;
    font-size: 0.6em;
    opacity: 0.9;
    margin-top: 10px;
}

.banner-content p {
    font-size: clamp(16px, 2.5vw, 22px);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
}

.banner-btns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.banner .container {
    position: relative;
    z-index: 10;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: bounce 2s ease-in-out infinite;
    z-index: 10;
}

.scroll-indicator span {
    font-size: 12px;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.6);
}

.scroll-indicator .arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid rgba(255, 255, 255, 0.6);
    border-bottom: 2px solid rgba(255, 255, 255, 0.6);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

.banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.banner-dots span {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dots span.active {
    background: #fff;
    width: 30px;
    border-radius: 6px;
}

.banner-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 20;
}

.arrow-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.arrow-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.arrow-btn svg {
    width: 24px;
    height: 24px;
}

/* 入场动画 */
.animate-item {
    opacity: 0;
    transform: translateY(30px);
    animation: slideIn 0.8s ease forwards;
}

.animate-item[data-delay="0"] { animation-delay: 0s; }
.animate-item[data-delay="200"] { animation-delay: 0.2s; }
.animate-item[data-delay="400"] { animation-delay: 0.4s; }

@keyframes slideIn {
    to { opacity: 1; transform: translateY(0); }
}

/* 数据统计 */
.stats {
    background: #fff;
    padding: 60px 0;
    margin-top: -40px;
    position: relative;
    z-index: 30;
    border-radius: 20px 20px 0 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fafc, #fff);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(21, 101, 192, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #1565c0, #1976d2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.stat-icon svg {
    width: 28px;
    height: 28px;
}

.stat-num {
    font-size: 42px;
    font-weight: 700;
    color: #1565c0;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

/* 产品区块 */
.products-section {
    padding: 80px 0;
    background: #f5f7fa;
}

.products-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 500;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    color: #666;
}

.tab-btn:hover, .tab-btn.active {
    background: #1565c0;
    border-color: #1565c0;
    color: #fff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(21, 101, 192, 0.15);
}

.product-img {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

.img-placeholder svg {
    width: 60px;
    height: 60px;
    stroke: #1565c0;
    opacity: 0.5;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff6b00;
    color: #fff;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
}

.product-badge.hot {
    background: #f44336;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(21, 101, 192, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.overlay-btn {
    padding: 10px 24px;
    background: #fff;
    color: #1565c0;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.product-info p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-specs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.product-specs span {
    font-size: 11px;
    color: #1565c0;
    background: rgba(21, 101, 192, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
}

.products-more {
    text-align: center;
    margin-top: 50px;
}

.products-more .btn-outline {
    border-color: #1565c0;
    color: #1565c0;
}

.products-more .btn-outline:hover {
    background: #1565c0;
    color: #fff;
}

/* FAQ区块 */
.faq-section {
    padding: 80px 0;
    background: #fff;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.faq-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 30px;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.faq-card:hover {
    border-color: #1565c0;
    box-shadow: 0 8px 30px rgba(21, 101, 192, 0.1);
}

.faq-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1565c0, #1976d2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.faq-icon svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
}

.faq-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.faq-card > p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.faq-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding-top: 0;
}

.faq-card.active .faq-detail {
    max-height: 500px;
    padding-top: 15px;
}

.faq-detail p {
    font-size: 14px;
    color: #444;
    line-height: 1.7;
    margin-bottom: 10px;
}

.faq-detail ul {
    padding-left: 20px;
    margin-bottom: 10px;
}

.faq-detail li {
    font-size: 13px;
    color: #555;
    line-height: 1.8;
    list-style: disc;
}

.faq-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #1565c0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 15px;
    padding: 0;
    font-family: inherit;
}

.faq-toggle svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.faq-card.active .faq-toggle svg {
    transform: rotate(180deg);
}

.faq-more {
    text-align: center;
    margin-top: 50px;
}

/* 底部公司信息 */
.company-info-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0d47a1, #1565c0);
}

.company-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.info-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.info-icon {
    width: 70px;
    height: 70px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.info-icon svg {
    width: 32px;
    height: 32px;
    stroke: #1565c0;
}

.info-card h4 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 15px;
}

.phone-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.phone-number:hover {
    color: #ffd700;
}

.info-card .sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.info-card .address {
    font-size: 16px;
    color: #fff;
    margin-bottom: 8px;
}

.info-card .intro {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    text-align: left;
}

/* 响应式 */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats {
        margin-top: 0;
        border-radius: 0;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .company-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .banner-arrows {
        display: none;
    }
}

@media (max-width: 768px) {
    [data-animate].fadeInLeft {
        transform: translateX(0);
    }
    .banner-content h1 {
        font-size: 32px;
    }
    
    .banner-content p {
        font-size: 15px;
    }
    
    .banner-btns {
        flex-direction: column;
        gap: 12px;
    }
    
    .banner-btns .btn {
        width: 100%;
    }
    .banner-slide.active {
        height: 400px;
    }
        
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-img {
        height: 100px;
    }
    
    /* 产品区块 */
    .products-section {
        padding: 30px 0;
        background: #f5f7fa;
    }
        
    /* 移动端隐藏悬浮层，整个卡片可点击 */
    .product-card { cursor: pointer; }
    .product-card .product-overlay { display: none; }
    
    .product-info {
        padding: 12px;
    }
    
    .product-info h3 {
        font-size: 14px;
    }
    
    .product-info p {
        font-size: 11px;
    }
    
    .product-specs {
        font-size: 11px;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .info-card {
        padding: 20px 15px;
    }
    
    .phone-number {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-num {
        font-size: 36px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tab-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    .banner-slide.active {
        height: 250px;
    }
    .company-info-grid {
        grid-template-columns: 1fr 1fr;
    }
}
/* ===== FAQ ���� ===== */
#faqModal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

#faqModal.active {
    display: flex;
    animation: faqOverlayIn 0.25s ease;
}

@keyframes faqOverlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.faq-modal-box {
    background: #fff;
    border-radius: 20px;
    padding: 40px 36px 32px;
    max-width: 560px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 60px rgba(0,0,0,0.2);
    animation: faqBoxIn 0.28s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes faqBoxIn {
    from { opacity: 0; transform: scale(0.88) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.faq-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.faq-modal-close:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

.faq-modal-close svg {
    width: 18px;
    height: 18px;
    color: #555;
}

.faq-modal-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #1565c0, #1976d2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.faq-modal-icon svg {
    width: 28px;
    height: 28px;
    color: #fff;
    stroke: #fff;
}

.faq-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 20px;
    line-height: 1.4;
    padding-right: 30px;
}

.faq-modal-body {
    font-size: 15px;
    color: #444;
    line-height: 1.8;
}

.faq-modal-body p {
    margin-bottom: 10px;
}

.faq-modal-body strong {
    color: #1a1a2e;
    font-weight: 600;
}

.faq-modal-body ul {
    padding-left: 0;
    list-style: none;
    margin: 8px 0 12px;
}

.faq-modal-body ul li {
    padding: 6px 0 6px 20px;
    position: relative;
    border-bottom: 1px solid #f5f5f5;
    color: #555;
}

.faq-modal-body ul li:last-child { border-bottom: none; }

.faq-modal-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1565c0;
}

.faq-modal-more {
    display: inline-block;
    margin-top: 24px;
    padding: 10px 20px;
    background: #f0f4ff;
    color: #1565c0;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.faq-modal-more:hover {
    background: #1565c0;
    color: #fff;
}

/* 弹窗内强制显示 faq-detail（覆盖手风琴隐藏样式） */
#faqModal .faq-modal-body .faq-detail,
#faqModal .faq-modal-body p,
#faqModal .faq-modal-body ul,
#faqModal .faq-modal-body li {
    max-height: none !important;
    overflow: visible !important;
    display: block !important;
}

/* �ƶ������� */
@media (max-width: 480px) {
    .faq-modal-box {
        padding: 32px 20px 24px;
        border-radius: 16px;
        max-height: 90vh;
    }

    .faq-modal-title { font-size: 17px; }
    .faq-modal-body  { font-size: 14px; }
}
