/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}
html {
    scroll-behavior: smooth;
}
body {
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}
body.no-scroll {
    overflow: hidden;
}
img {
    width: 100%;
    display: block;
    object-fit: cover;
}
a {
    text-decoration: none;
    color: inherit;
}
ul, li {
    list-style: none;
}
button {
    border: none;
    background: transparent;
    cursor: pointer;
}

/* 通用工具类 */
.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}
.section {
    padding: 60px 0;
}
.black-bg {
    background: #000;
    color: #fff;
}
.red-label {
    color: #e60020;
    font-weight: bold;
    font-size: 14px;
}
.mt10 {
    margin-top: 10px;
}
.section-title {
    text-align: center;
    margin-bottom: 40px;
}
.section-title h2 {
    font-size: 42px;
    margin-bottom: 10px;
}
.section-title p {
    opacity: 0.8;
}
.section-title-main {
    font-size: 32px;
    margin: 8px 0 40px;
}
.white {
    color: #fff;
}

/* 导航栏 */
.header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    opacity: 1;
}
.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}
.logo img {
    width: 160px;
}
.nav-menu {
    display: flex;
    gap: 28px;
}
.nav-menu a {
    font-size: 20px;
    font-weight: 700;
    transition: color 0.3s;
}
.nav-menu a.active {
    color: #e60020;
}
.nav-menu a:hover {
    color: #e60020;
}
.mobile-menu-btn {
    font-size: 24px;
    display: none;
}
.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border-top: 1px solid #eee;
}
.mobile-nav.show {
    display: flex;
}

/* Banner首屏 */
.banner {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.banner-slider {
    position: absolute;
    inset: 0;
    z-index: -2;
}
.banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}
.banner-slide.active {
    opacity: 1;
}
.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: -1;
}
.banner-content {
    color: #fff;
    max-width: 700px;
}
.banner-content h1 {
    font-size: 32px;
    margin-bottom: 16px;
    line-height: 1.3;
}
.banner-content p {
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.7;
}
.btn-red {
    display: inline-block;
    background: #e60020;
    color: #fff;
    padding: 12px 26px;
    border-radius: 4px;
    text-transform: lowercase;
    font-weight: bold;
    transition: all 0.3s ease;
}
.btn-red:hover {
    background: #1102e0;
    transform: translateY(-3px);
}
.banner-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}
.dot.active {
    background: #e60020;
    transform: scale(1.2);
}

/* About板块 */
.about .container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
    align-items: flex-start;
}
.about-left h2 {
    font-size: 36px;
    line-height: 1.2;
    margin-top: 8px;
}
.faq-item h4 {
    color: #e60020;
    margin: 16px 0 6px;
    font-size: 16px;
}
.btn-more {
    display: inline-block;
    margin-top: 20px;
    background: #e60020;
    color: #fff;
    padding: 6px 14px;
    font-size: 13px;
}

/* 产品设备板块 */
.product-list {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}
.product-card {
    text-align: center;
}
.product-card img {
    width: 280px;
    margin-bottom: 16px;
}
.product-card h3 {
    font-size: 18px;
}

/* 视频横幅 */
.video-banner {
    height: 60vh;
    min-height: 360px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #111;
}
.video-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.video-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1;
}
.play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}
.play-btn:hover {
    background: rgba(255,255,255,0.6);
    transform: scale(1.15);
}
.video-banner {
    cursor: pointer;
}
.video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.video-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.video-modal-content {
    position: relative;
    width: min(900px, 100%);
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(20px) scale(0.98);
    transition: transform 0.35s ease;
}
.video-modal.active .video-modal-content {
    transform: translateY(0) scale(1);
}
.video-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    color: #111;
    font-size: 22px;
    line-height: 1;
    z-index: 2;
}
.video-modal-frame {
    aspect-ratio: 16 / 9;
}
.video-modal iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Case案例板块 */
.case-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.case-card img {
    margin-bottom: 14px;
}
.case-card h4 {
    margin-bottom: 10px;
    font-size: 16px;
}
.case-card p {
    font-size: 13px;
    opacity: 0.85;
    line-height: 1.5;
}

/* Solutions解决方案 */
.solutions-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.sol-card {
    text-align: center;
}
.sol-card img {
    margin-bottom: 12px;
}
.sol-card h4 {
    font-size: 14px;
    font-weight: normal;
}

/* 页脚 */
.footer {
    padding: 60px 0 30px;
}
.follow-us {
    text-align: right;
    margin-bottom: 30px;
}
.social-icons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    align-items: center;
    margin-top: 10px;
}
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    transition: all 0.3s ease;
}
.social-icons a:hover {
    background: #e60020;
    transform: translateY(-2px);
}
.social-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}
.qr-popup {
    position: absolute;
    left: 50%;
    top: calc(100% + 10px);
    width: 136px;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(6px);
    transition: all 0.3s ease;
    z-index: 30;
}
.qr-popup img {
    width: 100%;
    display: block;
    border-radius: 6px;
    transform: scale(0.8);
    transform-origin: center;
}
.social-item:hover .qr-popup,
.social-item.active .qr-popup {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.follow-us h3 {
    font-size: 16px;
    margin-bottom: 10px;
}
.social-icons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}
.social-icons a {
    width: 28px;
    height: 28px;
    background: #e60020;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-logo img {
    width: 140px;
    margin-bottom: 12px;
}
.footer-logo p {
    max-width: 480px;
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 40px;
}
.footer-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}
.footer-col h4 {
    margin-bottom: 14px;
    font-size: 16px;
}
.footer-col p {
    font-size: 14px;
    opacity: 0.8;
    margin: 4px 0;
}
.copyright {
    text-align: center;
    font-size: 13px;
    opacity: 0.6;
    padding-top: 20px;
    border-top: 1px solid #333;
}

/* 滚动动画初始状态 */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s ease-out;
}
.scroll-animate.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   Cookie Consent
=========================== */
.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 15, .94);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: none;
    padding: 20px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .3);
    pointer-events: none;
}
.cookie-box {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    pointer-events: auto;
}
.cookie-title {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
}
.cookie-text {
    flex: 1;
    color: #ddd;
    line-height: 1.8;
    font-size: 15px;
}
.cookie-text a {
    color: #ffb300;
    text-decoration: none;
}
.cookie-text a:hover {
    text-decoration: underline;
}
.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.cookie-btn {
    border: none;
    padding: 12px 22px;
    border-radius: 6px;
    cursor: pointer;
    transition: .25s;
    font-size: 14px;
}
.cookie-btn.primary {
    background: #d9232d;
    color: #fff;
}
.cookie-btn.primary:hover {
    background: #b71c25;
}
.cookie-btn.secondary {
    background: #555;
    color: #fff;
}
.cookie-btn.secondary:hover {
    background: #666;
}
.cookie-btn.outline {
    background: transparent;
    border: 1px solid #888;
    color: #fff;
}
.cookie-btn.outline:hover {
    border-color: #fff;
}

/* 手机 */
@media (max-width: 768px) {
    .cookie-box {
        flex-direction: column;
        align-items: flex-start;
    }
    .cookie-buttons {
        width: 100%;
    }
    .cookie-btn {
        flex: 1;
    }
}

/* 平板适配 1024px */
@media screen and (max-width: 1024px) {
    .case-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .solutions-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 移动端 768px */
@media screen and (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .about .container {
        grid-template-columns: 1fr;
    }
    .about-left h2 {
        font-size: 32px;
    }
    .banner-content h1 {
        font-size: 24px;
    }
    .section-title h2 {
        font-size: 30px;
    }
    .case-list {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        grid-template-columns: 1fr;
    }
    .follow-us {
        text-align: left;
    }
    .social-icons {
        justify-content: flex-start;
    }
}