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

body {
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    background: #f2f2f2;
    color: #333;
    scroll-behavior: smooth;
}

/* 全局动画定义 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.container {
    width: 1200px;
    margin: 0 auto;
}

/* ===== Header ===== */
.header {
    background: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    align-items: center;
    height: 70px;
}

.logo {
    width: 120px;
    height: 40px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.logo a {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

.logo img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav {
    margin-left: auto;
}

.nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #333;
    font-size: 19px;
    font-weight: 700;
    position: relative;
    transition: color 0.3s ease;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e60000;
    transition: width 0.3s ease;
}

.nav a:hover {
    color: #e60000;
}

.nav a:hover::after {
    width: 100%;
}

/* ===== Mega Menu Dropdown ===== */
.nav-dropdown {
    display: inline-block;
    position: relative;
    margin-left: 20px;
}

.nav-dropdown-trigger {
    margin-left: 0 !important;
    cursor: pointer;
}

.mega-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100vw;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-top: 2px solid #e60000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 200;
    padding: 30px 0 35px;
}

.nav-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Keep trigger style active while menu is open */
.nav-dropdown:hover .nav-dropdown-trigger {
    color: #e60000;
}
.nav-dropdown:hover .nav-dropdown-trigger::after {
    width: 100%;
}

.mega-menu-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 0 20px;
}

.mega-col {
    display: flex;
    flex-direction: column;
}

.mega-img {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    background: #f8f8f8;
    border-radius: 10px;
}

.mega-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.mega-col:hover .mega-img img {
    transform: scale(1.05);
}

.mega-cat-title {
    font-size: 16px;
    font-weight: 800;
    color: #222;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding-bottom: 10px;
}

.mega-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #e60000, #ff6666);
    margin-bottom: 12px;
    border-radius: 1px;
}

.mega-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mega-links a {
    margin-left: 0 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #555 !important;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease, padding-left 0.2s ease;
    padding: 2px 0;
}

.mega-links a::after {
    display: none !important;
}

.mega-links a:hover {
    color: #e60000 !important;
    padding-left: 5px;
}

/* ===== Banner ===== */

/* ===== Section Common ===== */
.section {
    background: #fff;
    padding: 60px 0;
}

/* 紧凑间距模块 */
.section-compact {
    padding: 30px 0;
}

/* 全宽 section */
.section-full {
    padding: 60px 0;
}

.section-full .section-title,
.section-full .review-subtitle {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    display: block;
}

.section-title {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #e60000, #ff6666);
    border-radius: 2px;
}

/* ===== Video + Category ===== */
.video-row {
    display: flex;
    gap: 30px;
}

.video-box {
    width: 770px;
    height: 440px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.category-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* 上下均匀分布 */
    padding: 20px 0;
    /* 关键：上下留白 */
}

.category-box a {
    display: block;
    background: #fff;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    color: #333;
    padding: 20px 0;
    margin-bottom: 55px;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

.category-box a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 0, 0, 0.4);
    background: linear-gradient(135deg, #e60000 0%, #cc0000 100%);
    color: #fff;
    border-color: transparent;
}

.category-box a:active {
    transform: translateY(-1px);
}

/* ===== Text ===== */
.text-box {
    background: linear-gradient(135deg, #f5f5f5 0%, #ebebeb 100%);
    padding: 40px;
    text-align: center;
    font-size: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* ===== Factory ===== */
.factory-row {
    display: flex;
    gap: 30px;
}

.factory-img {
    width: 800px;
    height: 600px;
    background: #eee;
    overflow: hidden;
    position: relative;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.factory-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.factory-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.factory-slider img.active {
    opacity: 1;
}

/* 轮播指示点 */
.factory-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.factory-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.factory-dots .dot:hover {
    transform: scale(1.2);
}

.factory-dots .dot.active {
    background: #fff;
}

.factory-text {
    flex: 1;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    padding: 30px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.factory-text-slider {
    position: relative;
    width: 100%;
    min-height: 200px;
}

.factory-text-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.factory-text-item.active {
    opacity: 1;
    position: relative;
}

.factory-text-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.factory-text-item p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 10px;
}

/* ===== Products ===== */
.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    flex: 1;
}

.product {
    text-align: center;
}

/* ===== Product Image ===== */
.product-img {
    width: 370px;
    height: 370px;
    margin: 0 auto 12px;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.product:hover .product-img {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 不变形 */
    display: block;
    transition: transform 0.4s ease;
}

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

.product-name {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
    color: #333;
    margin-top: 8px;
    transition: color 0.3s ease;
}

.product:hover .product-name {
    color: #e60000;
}


/* ===== Reviews ===== */
.reviews {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding: 0 40px 80px 40px;
    justify-content: center;
}

.review {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.review-img {
    width: 100%;
    height: 325px;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #999;
    background-size: contain;
    border-radius: 16px;
    /* 关键 */
}

.review:nth-child(2) .review-img {
    background-image: url("/static/img/81edff8f92839caf8f60a860abee7cdc.webp");
}

.review:nth-child(1) .review-img {
    background-image: url("/static/img/8e0dda912ed6b1b67860504760d90995.webp");
}

.review-content {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    background: #fff;
    padding: 20px 20px 20px 25px;
    border-left: 4px solid #ddd;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.review-content h4 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.review-content p {
    font-size: 14px;
    line-height: 1.7;
    color: #666;
}

/* 第二个评论卡片向下偏移 */
.review:nth-child(2) {
    margin-top: 120px;
}

.review-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* ===== FAQ ===== */
.faq-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.faq-question {
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f8f8f8 0%, #fff 100%);
    border-left: 4px solid #e60000;
}

.faq-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #e60000;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 24px;
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    background: #fff;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 20px 24px;
    border-top: 1px solid #f0f0f0;
}

/* ===== Certificates ===== */
.certs-full {
    width: 100%;
    padding: 0;
}

/* 证书横图 */
.certs-image {
    width: 100%;
    height: auto;
    display: block;
}

/* 证书横图 */
.certs-image {
    width: 100%;
    height: auto;
    /* 保持比例，关键 */
    display: block;
    border-radius: 6px;
}

/* ===== Banner Slider ===== */
.banner {
    position: relative;
    overflow: hidden;
    background: #000;
}

.banner-slider {
    display: grid;
}

.banner-slider .slide {
    grid-area: 1 / 1;
    width: 100%;
    display: block;
    opacity: 0;
    transition: opacity 1s ease;
}

.banner-slider .slide.active {
    opacity: 1;
}

/* 小圆点 */
.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.banner-dots .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 6px;
    cursor: pointer;
}

.banner-dots .dot.active {
    background: #fff;
}

/* ===== Middle Banner ===== */
.banner-middle {
    padding: 0;
    background: #fff;
}

.middle-image {
    width: 100%;
    height: 100%;
    /* 推荐高度，可调 260~360 */
    overflow: hidden;
}

.middle-image img {
    width: 100%;
    object-fit: cover;
    display: block;
    height: auto;
}

/* ===== FAQ Image ===== */
.faq-row {
    display: flex;
    gap: 24px;
    align-items: stretch;
    /* 核心：左右等高 */
}

.faq-row .faq-img {
    flex: 6;
    min-height: 420px;
    background-image: url('/static/img/4d5e7fc069f1f4500b79982e57282e03.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 6px;
}

.faq-row .faq-panel {
    flex: 4;
    background: #f2f2f2;
    border-radius: 10px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.faq-row-full {
    display: flex;
    gap: 0;
    align-items: stretch;
    width: 100%;
}

.faq-row-full .faq-img {
    flex: 6;
    min-height: 420px;
    background-image: url('/static/img/4d5e7fc069f1f4500b79982e57282e03.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.faq-row-full .faq-panel {
    flex: 4;
    background: #f2f2f2;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-actions {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    width: 60px;
    background-color: rgba(158, 158, 158, 0.85);
    border-radius: 8px 0 0 8px;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.side-item-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.side-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 50px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    z-index: 2;
}

.side-item svg {
    width: 28px;
    height: 28px;
    fill: #fff;
    transition: fill 0.3s ease;
}

/* 悬浮面板样式 */
.hover-panel {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: #2b5797;
    border-radius: 30px;
    padding: 12px 70px 12px 25px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    min-width: 200px;
}

.hover-panel-text {
    color: #fff;
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 1px;
}

/* 图片类型的悬浮面板 */
.hover-panel-image {
    padding: 15px 70px 15px 15px;
    border-radius: 20px 30px 20px 20px;
}

.hover-panel-image img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    display: block;
}

/* 悬浮时显示面板 */
.side-item-wrapper:hover .hover-panel {
    opacity: 1;
    visibility: visible;
}

.side-item-wrapper:hover .side-item {
    background-color: #2b5797;
    border-radius: 0 8px 8px 0;
}

.side-item-wrapper:hover .side-item svg {
    fill: #fff;
}

.video-section {
    padding-bottom: 20px;
    /* 原来一般是 60–80 */
}

.video-desc {
    padding-top: 1px;
    /* 让文字贴近视频 */
}

/* ===== Footer ===== */
.footer {
    background: #000;
    color: #fff;
    padding: 60px 0 0;
    width: 100%;
}

.footer .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-section h3 {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: capitalize;
    position: relative;
    padding-left: 20px;
}

.footer-section h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 2px;
    background-color: #e60000;
}

.footer-section p {
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

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

.footer-section ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
}

.footer-section ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #fff;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #00d4d4;
}

.footer-section .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    color: #fff;
    font-size: 14px;
}

.footer-section .contact-item .icon-wrapper {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border: 1px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.footer-section .contact-item svg {
    width: 14px;
    height: 14px;
    fill: #fff;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid #e60000;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
    width: 100%;
}

.footer-bottom p {
    color: #666;
    font-size: 14px;
    margin: 0;
}
