/* ================= 全局样式 ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    background-color: #fff;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* 进场动画定义 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ani-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.ani-scale {
    animation: fadeInScale 1s ease-out forwards;
}

/* 通用容器 */
.container {
    width: 100%;
    max-width: 1562px; /* 1920 - 179*2 */
    margin: 0 auto;
    padding: 0 40px; /* Safe padding for smaller screens */
    position: relative;
    box-sizing: border-box;
}

/* Responsive Logic for 1920 to 1280 Adaptation */
@media (max-width: 1600px) {
    .container {
        padding: 0 20px;
        width: 95%;
    }

    .intro-stats-overlay {
        /* 统计数据浮层 - 在蓝色背景上 */
            position: relative;
            display: flex;
            align-items: flex-start;
            gap: 40px;
            z-index: 10;
            color: #fff;
            /* Use same responsive logic as .container */
            width: 100%;
            max-width: 1562px;
            margin: 0 auto; /* Center it */
            margin-top: -80px;
            padding: 80px 55px 60px !important;
    }

        .section-title h2 {
        font-size: 40px;
    }
}

/* 标题组件 */
.section-title {
    margin-bottom: 50px;
    text-align: left !important;
}

.section-title h2 {
    font-size: 50px;
    font-family: "Source Han Sans", sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    color: #E6E6E6;
    letter-spacing: 2px;
    margin-bottom: 25px;
    /* Increased margin for underline space */
    line-height: 1.2;
    text-align: left !important;
    position: relative;
    /* For pseudo-element positioning */
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    /* Position below the English text */
    left: 0 !important;
    transform: none !important;
    width: 40px;
    height: 3px;
    background: #2a4477;
}

.history-title>.historyTitle:after{
    background: white !important;
}

/* Specific override for white underline in intro section */
.intro .section-title h2::after {
    background: #ffffff;
}


.section-title h3 {
    font-size: 40px;
    color: #333;
    position: relative;
    padding-bottom: 0;
    /* Removed padding */
    font-weight: 500;
    font-family: "Source Han Sans", sans-serif;
    line-height: 1.2;
    letter-spacing: 1px;
    text-align: left !important;
}

/* Removed h3::after */



/* Modifier for titles on dark/colored backgrounds */
.section-title.white-title h2 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.section-title.white-title h3 {
    color: #fff !important;
}

.section-title.white-title h3::after {
    background: #fff !important;
}

/* 按钮组件 */
.btn {
    display: inline-block;
    padding: 12px 35px;
    border: 1px solid #003366;
    color: #003366;
    margin-top: 20px;
    font-size: 14px;
    transition: all 0.3s;
}

.btn:hover {
    background: #003366;
    color: #fff;
}

/* ================= 头部导航 (Header) ================= */
header {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 999;
    background: transparent;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo {
    display: flex;
    align-items: center;
}

.nav {
    display: flex;
    gap: 40px;
}

.nav li a {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    opacity: 0.8;
}

.nav li a:hover,
.nav li a.active {
    color: #fff;
    opacity: 1;
    border-bottom: 2px solid #fff;
    padding-bottom: 5px;
}

/* ================= 底部 (Footer) ================= */
footer {
    background: #232323;
    /* Darker as seen in reference */
    color: #666;
    padding: 80px 0;
    font-size: 14px;
}

.footer-content {
    width: 95%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-nav-columns {
    display: flex;
    gap: 80px;
    /* Wider spacing between nav columns */
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 25px;
    /* More space below headings */
}

.footer-column a {
    color: #4D4D4D;
    /* More muted gray for secondary links */
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #fff;
}

.footer-contact-wrap {
    display: flex;
    align-items: center;
    gap: 60px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 25px;
    min-width: 200px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
    font-size: 18px;
    /* Slightly larger for emphasis */
}

.contact-icon {
    width: 20px;
    text-align: center;
    color: #fff;
    font-size: 16px;
}

.footer-qr-side {
    padding-left: 60px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    /* Vertical separator line */
}

.footer-qr {
    text-align: center;
}

.footer-qr img {
    width: 100px;
    height: 100px;
    background: #fff;
    padding: 5px;
    margin-bottom: 15px;
}

.footer-qr p {
    color: #4D4D4D;
    font-size: 14px;
    margin-top: 5px;
}

/* ================= 首页 (index.php) 特定模块 ================= */
.hero-banner {
    height: 650px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-content h1 {
    font-size: 52px;
    margin-bottom: 20px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

.hero-content p {
    font-size: 20px;
    letter-spacing: 8px;
    opacity: 0.9;
}

.intro {
    padding: 100px 0 0;
    background: url('切图 6.svg') no-repeat center center;
    background-size: cover;
    position: relative;
    overflow: visible;
    padding-bottom: 0;
    z-index: 2;
}

.intro .container {
    position: relative;
    z-index: 10;
    min-height: 600px;
}

.intro-box {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-direction: row;
    justify-content: space-between;
    position: relative;
    padding-bottom: 260px;
    background-image: url("切图 6.png");
    background-repeat: no-repeat;
    background-position: center;
}

/* Responsive adjustments for Intro Section */
.intro-text {
    width: 704px;
    max-width: 50%;
    flex-shrink: 1; /* Allow shrinking */
    padding-top: 50px;
    position: relative;
    z-index: 10;
}

.intro-desc {
    width: 100%; /* Was fixed 585px */
    max-width: 585px;
    height: auto; /* Remove fixed height to prevent overflow */
    font-family: "Source Han Sans", sans-serif;
    font-weight: 400;
    font-size: 30px;
    color: #282828;
    line-height: 46px;
    text-align: left;
    font-style: normal;
    text-transform: none;
    margin-top: 141px;
    margin-bottom: 36px;
}

.intro-info {
    width: 100%; /* Was 704px */
    max-width: 704px;
    margin-bottom: 40px;
}

.intro-info p {
    width: 100%; /* Was 704px */
    height: auto; /* Remove fixed height */
    font-family: "Source Han Sans", sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #282828;
    line-height: 26px;
    text-align: left;
    font-style: normal;
    text-transform: none;
    margin-bottom: 26px;
}

.intro-info p:last-child {
    margin-bottom: 0;
}

/* 统计数据 - 在文字区域内 */
.intro-stats {
    display: none;
}

/* 统计数据浮层 - 在蓝色背景上 */
.intro-stats-overlay {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 40px;
    z-index: 10;
    color: #fff;
    /* Use same responsive logic as .container */
    width: 100%;
    max-width: 1562px;
    margin: 0 auto; /* Center it */
    margin-top: -80px;
    padding: 80px 15px 60px;
}

.intro-stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.intro-stat-top {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.intro-stat-num {
    font-size: 60px;
    font-weight: 600;
    color: #fff;
    line-height: 1;
}

.intro-stat-unit {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.intro-stat-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 10px;
}

.intro-stat-sep {
    width: 1px;
    height: 70px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 10px;
}

.intro-text .section-title {
    margin-bottom: 0;
}

/* Sub-styles for intro title (already inherits globals) */

.brand-history-banner {
    background: url('切图 39.svg') no-repeat center;
    background-size: cover;
    /* Fixed: use cover instead of fixed width */
    height: 1444px;
    /* Set height to match background spec */
    position: relative;
    padding-top: 80px;
    padding-bottom: 80px;
    /* Reduced to fit in background */
    z-index: 1;
    margin-top: -260px;
    /* Removed overflow: hidden to allow intro-img overlap */
}

.brand-history-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 51, 102, 0.4);
    z-index: 1;
}

.intro-img {
    width: 782px;
    max-width: 45%; /* Prevent it from taking too much space */
    height: auto; /* Maintain aspect ratio */
    object-fit: cover;
    object-position: right;
    flex-shrink: 1; /* Allow shrinking */
    position: relative;
    z-index: 5;
    margin-top: 179px;
    margin-bottom: -240px;
    border: 4px solid #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin-left: -20px;
    top: 111px;
    border: none;
}

/* Media Queries for smaller screens (e.g., 1280px) */
@media (max-width: 1440px) {
    .intro-desc {
        font-size: 24px;
        line-height: 1.4;
        margin-top: 100px;
    }
    
    .intro-img {
        margin-top: 120px;
        top: 128px; /* Reset top offset as space is tighter */
    }

    .intro-img::after {
        width: calc(100% + 20px);
        bottom: -10px;
        left: -10px;
    }
    
    .intro-box {
        padding-bottom: 150px; /* Reduce bottom padding */
    }
}



.intro-stats-banner {
    display: none;
}

.intro-stats-banner .container {
    width: 1400px;
    max-width: 95%;
}

.stats-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 704px;
    /* Match the text block width precisely as requested */
    max-width: 100%;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-top {
    display: flex;
    flex-direction: row;
    align-items: baseline;
}

.stat-num {
    font-size: 86px;
    font-weight: 500;
    font-family: "Source Han Sans", sans-serif;
    line-height: 1;
}

.stat-unit {
    font-size: 16px;
    opacity: 0.9;
    margin-left: 8px;
}

.stat-label {
    font-size: 20px;
    margin-top: 12px;
    opacity: 0.9;
}

.stat-sep {
    width: 1px;
    height: 70px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 10px;
}

/* Intro image position is handled in the brand-history-banner section above */

.intro-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /*border: 7px solid #004098;*/
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.4);
}

.intro-img::after{
    display: block;
    content: "";
    width: calc(100% + 28px); /* Responsive width: 100% + 14px left + 14px right */
    height: 33%; /* Responsive height: ~1/3 of image height */
    background: #5583D2;
    position: absolute;
    bottom: -14px;
    left: -14px;
    z-index: -1;
}



/* ================= 品牌历程 (History) ================= */
.history {
    position: relative;
    color: #fff;
}

.history-main {
    position: relative;
    z-index: 2;
}

.history::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 51, 102, 0.4);
}

.history .container {
    position: relative;
    z-index: 2;
}

.history-title {
    margin-bottom: 50px;
    text-align: center;
    /* 标题居中 */
    margin-top: 239px;
}

.history-slider {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 修改：居中 */
    justify-content: center;
    /* 修改：居中 */
    margin-top: 40px;
    position: relative;
    padding-left: 0;
    /* 移除左侧内边距 */
}

.arrow {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    position: absolute;
    top: 50%;
    /* 居中 */
    transform: translateY(-50%);
    /* 居中 */
    z-index: 20;
}

.arrow.prev {
    left: 0;
}

.arrow.next {
    right: 0;
    /* 对称位置 */
}

/* On very large screens, push arrows out slightly if desired, but keep them visible */
@media (min-width: 2500px) {
    .arrow.prev {
        left: -80px;
    }
    
    .arrow.next {
        right: -80px;
    }
}

.arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

.arrow img {
    width: 32px;
    height: 32px;
}

/* Timeline responsive */
.history-content-row {
    display: flex;
    align-items: center;
    gap: 100px;
    justify-content: center;
    /* 整体居中 */
    margin-bottom: 60px;
    flex-wrap: wrap;
}

@media (max-width: 1440px) {
    .history-content-row {
        gap: 40px;
    }
    
    .history-image-wrap {
        width: 450px;
        max-width: 45%;
        height: auto;
        aspect-ratio: 508/340;
    }
    
    .arrow.prev {
        left: -40px;
    }
    
    .arrow.next {
        right: -40px;
    }
    
    .footer-nav-columns {
        gap: 40px;
    }
}

.history-node-active {
    text-align: center;
    /* 修改：居中 */
    color: #fff;
}

.node-year-box {
    width: 200px;
    height: 80px;
    border: 2px solid #fff;
    font-size: 48px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    /* 修改：居中 */
    color: #fff;
    transition: opacity 0.4s ease-in-out;
    opacity: 1;
}

.node-year-box.fade-hidden {
    opacity: 0;
}

.node-line {
    width: 2px;
    height: 60px;
    background: #fff;
    margin: 0 auto 30px;
    /* 修改：居中 */
}

.node-desc {
    font-size: 24px;
    font-weight: 500;
    color: #fff;
    max-width: 400px;
    /* 可选：限制宽度使文本更易读 */
    margin: 0 auto;
    /* 居中 */
    transition: opacity 0.4s ease-in-out;
    opacity: 1;
}

.node-desc.fade-hidden {
    opacity: 0;
}

.history-image-wrap {
    width: 508px;
    height: 340px;
    border: 0px solid #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.history-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease-in-out;
    opacity: 1;
}

.history-main-img.fade-hidden {
    opacity: 0;
}

/* ================= 明星产品 (Products) ================= */
.products {
    padding: 100px 0 220px;
    /* Added padding to accommodate staggered items */
}

/* ================= 品牌历程时间轴 (New Timeline) ================= */
.timeline-container {
    width: 100%;
    max-width: 1006px;
    margin-top: 30px;
    position: relative;
    z-index: 10;
}

.timeline-active-display {
    width: 92px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #fff;
    font-family: "Source Han Sans", sans-serif;
    font-weight: 500;
    margin: 0 auto 15px;
    letter-spacing: 1px;
    transition: opacity 0.4s ease-in-out;
    opacity: 1;
}

.timeline-active-display.fade-hidden {
    opacity: 0;
}

.timeline-track-wrapper {
    position: relative;
    width: 100%;
    padding: 20px 0;
}

.timeline-track-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 0;
    border-top: 2px dashed rgba(255, 255, 255, 0.5);
    transform: translateY(-50%);
    z-index: 1;
}

.timeline-points {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 0 20px;
    /* Give some breathing room on edges */
}

.t-point {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    cursor: pointer;
}

/* Default Dot */
.t-point::before {
    content: '';
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    margin-bottom: 15px;
    /* Space between dot and text */
    transition: 0.3s;
}

/* Year Text */
.t-year {
    position: absolute;
    top: 35px;
    /* Push below the dot */
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-family: Arial, sans-serif;
}

/* Active State Styles */
.timeline-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    z-index: 10;
    transition: left 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
    /* Removed padding-bottom/margin logic, using absolute positioning */
}

.t-marker-main {
    width: 24px;
    height: 24px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: rgba(0, 51, 102, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.t-marker-center {
    width: 12px;
    height: 12px;
    background: transparent;
    border-radius: 50%;
}

/* Triangle Indicator */
.t-triangle {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 8px solid #fff;
    position: absolute;
    top: 28px; /* Adjusted to be below the marker */
    left: 50%;
    transform: translateX(-50%);
}

/* Ensure points don't change size */
.t-point {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    cursor: pointer;
    /* Ensure height is consistent */
    height: 60px; 
}

/* Active class on point only affects text now */
.t-point.active .t-year {
    color: #fff;
    font-weight: bold;
    opacity: 0; /* Hide text when active */
}
.t-point:not(.active):hover::before {
    transform: scale(1.5);
    background: #fff;
}

.t-point:not(.active):hover .t-year {
    color: #fff;
}

/* Adjust the slider layout to accommodate the new timeline */
.history-slider {
    margin-top: 30px;
    /* Reduced margin */
    flex-wrap: wrap;
    /* Allow wrapping if needed */
}

.history-content-row {
    /* Ensure it looks good below timeline */
    margin-top: 20px;
}

/* ================= 栅格布局 (Grids) ================= */
.prod-grid {
    display: flex;
    justify-content: center;
    gap: 0;
    width: 100%;
    margin: 0 auto;
}

.prod-card {
    width: 25%;
    max-width: 390px;
    height: auto;
    aspect-ratio: 390 / 531;
    background: transparent;
    transition: 0.3s;
    border: none;
    position: relative;
    overflow: visible;
    /* Changed from hidden to avoid clipping if necessary, though height is fixed */
}

/* 1 & 3 High, 2 & 4 Low - staggered layout */
.prod-card:nth-child(2),
.prod-card:nth-child(4) {
    margin-top: 120px !important;
    position: relative;
    top: 60px;
}

.prod-card:nth-child(1),
.prod-card:nth-child(3) {
    margin-top: 0 !important;
}

.img-wrap {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.prod-card:hover .img-wrap img {
    transform: scale(1.05);
}

.prod-info {
    display: none;
}

/* Overlay Styles */
.prod-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    pointer-events: none;
    padding: 40px 20px;
    box-sizing: border-box;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.3) 100%);
}

.overlay-top {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.top-separator {
    width: 1px;
    height: 15px;
    background-color: #fff;
    margin: 5px auto 0;
}

.overlay-title {
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    margin-top: 20px;
}

.overlay-bottom {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    opacity: 0.9;
}

.overlay-bottom span {
    margin-left: 5px;
    font-weight: bold;
}

/* ================= 资质和专利 (Qualifications) ================= */
.qual-fan-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.q-fan-item {
    width:411px;
    position: relative;
    transition: all 0.5s ease;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 6px solid #fff;
    margin: 0 -60px; /* Overlap effect */
}

.q-fan-item img {
    width: 100%;
    display: block;
}

/* Fan Stacking */
.q-fan-item.i1 { z-index: 1; transform: scale(0.85); filter: brightness(0.9); }
.q-fan-item.i2 { z-index: 2; transform: scale(0.92); filter: brightness(0.95); }
.q-fan-item.i3 { z-index: 3; transform: scale(1.1); box-shadow: 0 25px 50px rgba(0,0,0,0.3); outline-width: 2px; }
.q-fan-item.i4 { z-index: 2; transform: scale(0.92); filter: brightness(0.95); }
.q-fan-item.i5 { z-index: 1; transform: scale(0.85); filter: brightness(0.9); }

/* Hover Effects */
.q-fan-item:hover {
    z-index: 10;
    transform: scale(1.15);
    filter: brightness(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1280px) {
    .q-fan-item {
        width: 200px;
        margin: 0 -45px;
    }
}

/* ================= 资质证书 (Certificates Section) ================= */
.certificates-section {
    background: url('切图 15.png') no-repeat center;
    background-size: cover;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.cert-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    /* Container handles 179px margins via its global class */
}

.cert-column {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 31%;
}

.cert-item {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: 0.3s;
}

.cert-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.cert-img-box {
    width: 100%;
    margin-bottom: 20px;
    border: 1px dashed #ff4e50;
    /* Subtle dashed border as seen in reference */
    padding: 5px;
}

.cert-img-box img {
    width: 100%;
    height: auto;
    display: block;
}

.cert-label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    line-height: 1.5;
}

.middle-cert {
    margin-top: 40px;
    /* Stagger slightly or keep centered */
}

/* ================= 海参科普 (Knowledge Redesign) ================= */
.knowledge {
    display: flex;
    position: relative;
    padding: 0;
    background: #fff;
    overflow: hidden;
    height: 955px;
}

.knowledge-main {
    width: 55%;
    z-index: 2;
    position: relative;
    background: #fff;
    padding: 100px 0 100px 50px;
    /* Updated from 100px to 179px */
    display: flex;
    align-items: center;
}

.knowledge-content {
    margin-left: 0;
    max-width: 100%;
}

.k-cards-flex {
    display: flex;
    margin-top: 60px;
    margin-left: 0;
    background: #fff;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    width: fit-content;
}

.k-card {
    width: 300px;
    height: 344px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: 0.3s;
    border-right: 1px solid #f0f0f0;
}

.k-card:last-child {
    border-right: none;
}

.k-card.active {
    background: #284173;
    color: #fff;
    border-right-color: #2a4477;
}

.k-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.k-icon img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.k-card.active .k-icon img {
    filter: brightness(0) invert(1);
}

/* 特殊处理：第一个卡片（泡发方法）的原图是白色的，所以在非 active 状态下需要变黑 */
.k-card:first-of-type .k-icon img {
    filter: brightness(0);
}

.k-card.active:first-of-type .k-icon img {
    filter: brightness(0) invert(1);
}

.k-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 30px;
}

.k-more-btn {
    font-size: 13px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 6px 15px;
    border-radius: 2px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
}

.k-card.active .k-more-btn {
    opacity: 1;
    transform: translateY(0);
}



/* ================= 使用场景 (Usage Scenarios Final) ================= */
.scenarios-layout {
    display: flex;
    gap: 20px;
    margin-top: 50px;
    align-items: stretch;
}

.scenarios-left {
    flex: 1;
}

.scenarios-right {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
}

.scenario-card-custom {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    height: 100%;
}

.scenarios-left .scenario-card-custom {
    height: 100%;
}

.scenarios-right .scenario-card-custom {
    min-height: 240px;
}

.scenario-card-custom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease-in-out;
}

.scenario-card-custom:hover img {
    transform: scale(1.05);
}

.scenario-card-custom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.scenario-card-label {
    position: absolute;
    bottom: 25px;
    left: 20px;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    z-index: 2;
    pointer-events: none;
}

/* ================= 页脚 (Footer Final Redesign) ================= */
footer {
    font-size: 14px;
    padding: 0;
}

.footer-main {
    background: #2b2b2b;
    padding: 60px 0 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-nav-columns {
    display: flex;
    gap: 60px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
}

.footer-column a {
    display: block;
    color: #666;
    text-decoration: none;
    transition: 0.3s;
    font-size: 14px;
    line-height: 1.8;
}

.footer-column a:hover {
    color: #fff;
}

/* Contact Section */
.footer-contact-wrap {
    display: flex;
    align-items: flex-start;
    gap: 50px;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 0;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 18px;
}

.contact-row span {
    font-size: 18px;
}

.contact-icon {
    width: 20px;
    text-align: center;
    color: #00b4d8;
    font-size: 16px;
}

.footer-qr-side {
    text-align: center;
}

.footer-qr img {
    width: 110px;
    height: 110px;
    background: #fff;
    padding: 5px;
    border-radius: 4px;
}

.footer-qr p {
    margin-top: 12px;
    font-size: 12px;
    color: #666;
}

/* Footer Bottom */
.footer-bottom {
    background: #2b2b2b;
    padding: 20px 0;
    width: 95% ;
    margin: 0 auto;
}

.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
}

.footer-icp {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.footer-icp span {
    color: #666;
}

.police-icon {
    display: inline-flex;
    align-items: center;
}

.police-icon img {
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 40px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

/* Footer Copyright Bar */
.footer-copyright-bar {
    background: #2b2b2b;
    border-top: 1px solid #444;
    padding: 20px 0;
}

.footer-copyright-bar p {
    text-align: center;
    color: #666;
    font-size: 13px;
    margin: 0;
}


/* ================= 1280px Screen Adaptation (Universal Compatibility) ================= */
@media (max-width: 1440px) {
    /* 0. Header & Nav Fixes */
    .nav {
        gap: 20px;
    }

    .nav li a {
        font-size: 14px;
    }
    
    .header-inner {
        padding: 0 20px;
    }

    /* 1. Global Scale Down */
    .section-title {
        margin-bottom: 30px;
    }

    .section-title h2 {
        font-size: 36px;
        margin-bottom: 15px;
    }

    .section-title h3 {
        font-size: 28px;
    }

    /* 2. Hero Banner */
    .hero-content h1 {
        font-size: 40px;
    }

    .hero-content p {
        font-size: 16px;
        letter-spacing: 4px;
    }

    /* 3. Intro Section */
    .intro-box {
        gap: 20px;
        padding-bottom: 100px; /* Reduced from 260px to prevent text hitting blue bg */
    }

    .intro-text {
        padding-top: 20px;
    }

    .intro-desc {
        font-size: 18px; /* Further reduced */
        line-height: 1.5;
        margin-top: 60px;
        margin-bottom: 20px;
        color: #282828; /* Ensure readable */
        max-width: 100%;
    }

    /* Fix overlapping text issue by pushing banner down slightly or pulling up less */
    .brand-history-banner {
        margin-top: -150px; /* Was -260px, reduced to show less overlap */
        padding-top: 200px;
    }

    .intro-info p {
        font-size: 14px;
        line-height: 22px;
        margin-bottom: 15px;
    }
    
    .intro-stats-overlay {
        padding: 80px 28px 40px !important;
        gap: 20px;
        margin-top: -265px;
    }

    .history-title{
        margin-top: 143px;
    }
    
    .intro-stat-num {
        font-size: 40px;
    }
    
    .intro-stat-label {
        font-size: 14px;
    }

    /* 4. Products Section */
    .overlay-top {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .overlay-title {
        font-size: 16px;
        margin-top: 10px;
    }
    
    .prod-card {
         /* Ensure aspect ratio keeps them fitting */
    }

    /* 5. Qualifications Section */
    .cert-grid {
        gap: 15px;
    }

    .cert-column {
        gap: 20px;
    }

    .cert-item {
        padding: 15px;
    }
    
    .cert-label {
        font-size: 12px;
    }

    /* 6. Knowledge Section - Critical Fixes for 1280px */
    .knowledge-main {
        padding: 60px 0 60px 20px; /* Minimized padding */
        width: 60%; /* Give more space to text area */
    }



    .knowledge {
        display: flex;
        position: relative;
        padding: 0;
        background: #fff;
        overflow: hidden;
        height: 655px;
    }

    .knowledge-content{
        margin-left: 0;
        max-width: 100%;
        position: relative;
        z-index: 1000;
        right: -10px;
    }

    .knowledge-image-side {
        width: 40%;
    }

    .k-cards-flex {
        margin-top: 40px;
        width: 100%; 
        overflow: hidden; /* Prevent scrollbar */
        flex-wrap: nowrap; /* Force single row */
    }

    .k-card {
        min-width: 0; /* Allow shrinking */
        flex: 1; /* Distribute space evenly */
        height: 260px; 
    }

    .k-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 15px;
        transform: scale(0.9);
    }

    .k-title {
        font-size: 15px;
        margin-bottom: 15px;
        white-space: nowrap; /* Prevent title wrapping */
    }
    
    .k-more-btn {
        padding: 4px 10px;
        font-size: 12px;
    }

    /* 7. Scenarios Section */
    .scenarios-layout {
        gap: 15px;
        margin-top: 30px;
    }
    
    .scenario-card-label {
        font-size: 14px;
        bottom: 15px;
        left: 15px;
    }
    
    .scenarios-right .scenario-card-custom {
        min-height: 180px; /* Reduced height */
    }

    /* 8. Footer Section */
    .footer-content {
        flex-wrap: wrap; /* Allow wrapping if absolutely necessary, but try to fit */
        gap: 30px;
    }

    .footer-nav-columns {
        gap: 30px;
    }

    .footer-contact-wrap {
        gap: 30px;
        flex-direction: column; /* Stack contact info on smaller screens */
        align-items: flex-start;
    }
    
    .contact-row, .contact-row span {
        font-size: 14px;
    }
    
    .footer-qr img {
        width: 80px;
        height: 80px;
    }
    
    .footer-qr-side {
        padding-left: 0;
        border-left: none;
        margin-top: 20px;
        text-align: left;
        display: flex;
        gap: 20px;
        align-items: center;
    }
}

.fa-phone,.fa-envelope,.fa-location-dot{
    color: white;
}

/*.section-title:before{*/
/*    content: "";*/
/*    content: "";*/
/*    display: block;*/
/*    width: 60px;*/
/*    height: 4px;*/
/*    background-color: #003366;*/
/*    position: relative;*/
/*    bottom: -50%;*/
/*}*/

/*.section-title.white-title:after {*/
/*    background-color: #fff;*/
/*}*/