@import url("iconfont.css");

.index>main>section { position: relative; }

/* =========================================
   1. Home Banner (全屏轮播 & 现代控制条)
   ========================================= */
.home-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.new-hero-style {
    position: relative;
    width: 100vw; 
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}
.new-hero-style .swiper-slide {
    position: relative;
    height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.new-hero-style .pcimg img, 
.new-hero-style .mobimg img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    z-index: 1;
}
.new-hero-style .swiper-slide::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4); 
    z-index: 2;
}
.hero-content-wrapper {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    align-items: center; 
    z-index: 10; 
    pointer-events: none; 
}
.hero-content-wrapper .l-wrap {
    width: 100%;
    max-width: 1550px; /* 统一网站宽度 */
    margin: 0 auto;
    padding: 0 20px;
}
.hero-text-box {
    max-width: 600px; 
    pointer-events: auto; 
}
.hero-title {
    font-size: 56px;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero-desc {
    font-size: 18px;
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 40px;
}
.hero-action-buttons {
    display: flex;
    gap: 20px;
}
.btn-hero-primary {
    background-color: #139bb7; 
    color: #ffffff;
    padding: 16px 36px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    border: 2px solid #139bb7;
}
.btn-hero-primary:hover {
    background-color: #0e7d94;
    border-color: #0e7d94;
    color: #fff;
}
.btn-hero-secondary {
    background-color: transparent;
    color: #ffffff;
    padding: 16px 36px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #ffffff; 
    border-radius: 4px;
    transition: all 0.3s;
}
.btn-hero-secondary:hover {
    background-color: #ffffff;
    color: #333333;
}

/* 现代控制组件 (箭头 + 进度线) */
.modern-slider-controls {
    position: absolute;
    bottom: 50px;
    left: 0;
    width: 100%;
    z-index: 20;
    pointer-events: none; 
}
.modern-slider-controls .l-wrap {
    max-width: 1550px; 
    margin: 0 auto;
    padding: 0 20px;
}
.modern-slider-controls .controls-flex {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* 强制整体靠左对齐 */
    gap: 24px;
    pointer-events: auto; 
}

.modern-slider-controls .banner-button-prev,
.modern-slider-controls .banner-button-next {
    position: static !important; /* 抵抗原生绝对定位 */
    flex: 0 0 auto !important;   /* 确保大小固定，不被压缩 */
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 !important;
}

.modern-slider-controls .banner-button-prev:hover,
.modern-slider-controls .banner-button-next:hover {
    background: #139bb7;
    border-color: #139bb7;
    transform: scale(1.05);
}

.modern-slider-controls .banner-button-prev svg,
.modern-slider-controls .banner-button-next svg {
    width: 22px;
    height: 22px;
}

.modern-slider-controls .banner-button-prev em,
.modern-slider-controls .banner-button-next em {
    display: none !important;
}

/* 进度条式的分页器 */
.modern-slider-controls .swiper-pagination {
    position: static !important;
    width: auto !important;      /* 核心修复：干掉自带的 100% 宽度 */
    flex: 0 0 auto !important;   /* 不允许被外力拉伸 */
    display: flex !important;
    justify-content: center;
    gap: 10px;
    align-items: center;
    margin: 0 !important;
}

.modern-slider-controls .swiper-pagination-bullet {
    width: 25px !important;
    height: 4px !important;
    border-radius: 2px !important;
    background: rgba(255, 255, 255, 0.4) !important;
    opacity: 1 !important;
    margin: 0 !important;
    transition: all 0.3s ease;
    cursor: pointer;
}

.modern-slider-controls .swiper-pagination-bullet-active {
    width: 45px !important;
    background: #139bb7 !important; 
}

/* =========================================
   2. 数据统计条 (Stats Bar)
   ========================================= */
.home-stats-bar {
    background-color: #ffffff;
    padding: 50px 20px;
    border-bottom: 1px solid #eeeeee;
}
.stats-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1550px; /* 统一网站宽度 */
    margin: 0 auto;
    flex-wrap: wrap;
}
.stat-item {
    text-align: center;
    flex: 1;
    min-width: 200px;
}
.stat-num {
    font-size: 48px;
    font-weight: 800;
    color: #139bb7; 
    margin-bottom: 8px;
    line-height: 1;
}
.stat-text {
    font-size: 13px;
    color: #666666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
@media (max-width: 768px) {
    .stat-item { min-width: 50%; margin-bottom: 30px; }
}

/* =========================================
   3. 分类产品展示 (Category Showcase)
   ========================================= */
.custom-category-showcase {
    padding: 60px 20px;
    background-color: #f4f6fb; 
}
.custom-category-showcase .product-section-inner {
    max-width: 1550px; /* 统一网站宽度 */
    margin: 0 auto;
    display: flex;
    gap: 30px; 
}
.custom-category-showcase .sidebar {
    width: 280px;
    background-color: #0052d9; 
    flex-shrink: 0;
    border-radius: 8px; 
    overflow: hidden;
    align-self: start; 
}
.custom-category-showcase .sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.custom-category-showcase .sidebar li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
}
.custom-category-showcase .sidebar li:last-child {
    border-bottom: none;
}
.custom-category-showcase .sidebar a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.custom-category-showcase .sidebar a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    padding-left: 28px; 
}
.custom-category-showcase .sidebar li.active a {
    background-color: #ffffff;
    color: #0052d9;
    font-weight: 600;
}
.custom-category-showcase .product-grids-container {
    flex-grow: 1;
    position: relative;
}
.custom-category-showcase .product-grid {
    display: none; 
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-content: start;
}
.custom-category-showcase .product-grid.active {
    display: grid;
    animation: fadeIn 0.4s ease-in-out;
}
.custom-category-showcase .product-card {
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    border-radius: 8px; 
    border: 1px solid #eaeaea; 
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
}
.custom-category-showcase .product-card:hover {
    transform: translateY(-6px); 
    box-shadow: 0 12px 24px rgba(0,0,0,0.08); 
    border-color: #0052d9; 
}
.custom-category-showcase .product-card img {
    width: 100%; 
    aspect-ratio: 1 / 1; 
    object-fit: contain; 
    background-color: #f9f9f9; 
    display: block;
    padding: 15px; 
    box-sizing: border-box;
}
.custom-category-showcase .product-card .product-title {
    margin: 0;
    padding: 16px 12px; 
    font-size: 14px; 
    color: #333333;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word; 
    height: 72px; 
    box-sizing: border-box; 
    background-color: #ffffff;
}
@media (max-width: 1200px) {
    .custom-category-showcase .product-grid,
    .custom-category-showcase .product-grid.active { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
    .custom-category-showcase .product-section-inner { flex-direction: column; }
    .custom-category-showcase .sidebar { width: 100%; }
    .custom-category-showcase .product-grid,
    .custom-category-showcase .product-grid.active { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .custom-category-showcase .product-grid,
    .custom-category-showcase .product-grid.active { grid-template-columns: 1fr; }
}

/* =========================================
   4. 关于我们 (Modern About)
   ========================================= */
.modern-about-section {
    padding: 100px 20px;
    background-color: #ffffff;
}
.modern-about-container {
    max-width: 1550px; /* 统一网站宽度 */
    margin: 0 auto;
    display: flex;
    gap: 80px;
    align-items: center;
}
.modern-about-image-wrapper {
    flex: 1;
    position: relative;
}
.modern-about-image-wrapper img.main-img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    display: block;
    object-fit: cover;
    aspect-ratio: 4/3;
}
.modern-about-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background-color: #0052d9; 
    color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,82,217,0.2);
    text-align: center;
    z-index: 2;
}
.modern-about-badge span {
    display: block;
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
}
.modern-about-badge p {
    margin: 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    font-weight: 500;
}
.modern-about-content {
    flex: 1;
}
.modern-about-preheading {
    color: #139bb7;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: inline-block;
}
.modern-about-title {
    font-size: 42px;
    color: #222222;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
}
.modern-about-text {
    font-size: 16px;
    color: #666666;
    line-height: 1.8;
    margin-bottom: 30px;
}
.modern-about-features {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.modern-about-features li {
    position: relative;
    padding-left: 28px;
    font-size: 16px;
    color: #333333;
    font-weight: 600;
}
.modern-about-features li::before {
    content: '✓'; 
    position: absolute;
    left: 0; top: 0;
    color: #139bb7;
    font-weight: bold;
    font-size: 16px;
}
.modern-about-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}
.btn-about-primary {
    background-color: #0052d9;
    color: #ffffff;
    padding: 16px 36px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}
.btn-about-primary:hover { background-color: #003ca6; }

@media (max-width: 992px) {
    .modern-about-container { flex-direction: column; gap: 60px; }
    .modern-about-badge { bottom: -20px; right: 20px; padding: 20px; }
    .modern-about-features { grid-template-columns: 1fr; }
    .modern-about-title { font-size: 32px; }
}

/* =========================================
   5. 应用展示 (Application Showcase)
   ========================================= */
.custom-application-section {
    /* 开启全屏突破：无视父级限制，宽度强制等于屏幕物理宽度 */
    position: relative;
    width: 100vw; 
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 60px;
    
    /* 移除之前的 max-width: 1550px; 限制 */
    max-width: none; 
    
    display: flex;
    min-height: 500px;
    background-color: #f8f9fb;
}
.app-sidebar {
    width: 320px;
    background-color: rgba(30, 30, 30, 0.85); 
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 5;
}
.app-tab {
    flex: 1;
    padding: 30px 20px;
    color: #ffffff;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.app-tab:last-child { border-bottom: none; }
.app-tab:hover, .app-tab.active { background-color: #0052d9; }
.app-tab .num { font-size: 32px; line-height: 1; margin-bottom: 8px; font-weight: 400; }
.app-tab .title { font-size: 16px; font-weight: 500; }
.app-content-container {
    flex-grow: 1;
    position: relative;
    overflow: hidden;
    background-color: #e0e0e0;
}
.app-panel {
    position: absolute;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out;
}
.app-panel.active {
    opacity: 1;
    visibility: visible;
    position: relative; 
}
.app-panel img.bg-img {
    width: 100%; height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
    z-index: 1;
}
.app-info-box {
    position: absolute;
    bottom: 40px; right: 40px;
    width: 100%; max-width: 500px;
    background-color: rgba(10, 15, 30, 0.85); 
    padding: 40px;
    z-index: 2;
    color: #ffffff;
}
.app-info-box h3 { font-size: 24px; margin: 0 0 15px 0; font-weight: 600; color: #ffffff; }
.app-info-box p { font-size: 14px; line-height: 1.6; color: #d1d1d1; margin: 0 0 25px 0; }
.app-read-more {
    display: inline-block;
    padding: 10px 30px;
    border: 1px solid #ffffff;
    border-radius: 30px; 
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}
.app-read-more:hover { background-color: #ffffff; color: #000000; }
@media (max-width: 992px) {
    .custom-application-section { flex-direction: column; }
    .app-sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; }
    .app-tab { flex: 1 1 50%; padding: 20px; }
    .app-panel { min-height: 400px; }
    .app-info-box { position: relative; bottom: 0; right: 0; max-width: 100%; padding: 30px 20px; }
}
@media (max-width: 576px) { .app-tab { flex: 1 1 100%; } }

/* =========================================
   6. 行业新闻 (Modern News)
   ========================================= */
.modern-news-section {
    padding: 80px 20px;
    background-color: #ffffff;
    clear: both; /* 防止上方浮动影响 */
}

.modern-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.modern-section-header h2 {
    font-size: 36px;
    color: #222222;
    font-weight: 800;
    margin-bottom: 15px;
}

.modern-section-header p {
    font-size: 16px;
    color: #666666;
    max-width: 600px;
    margin: 0 auto;
}

/* --- 核心排版：确保这一段代码完整无误 --- */
.modern-news-grid {
    max-width: 1550px;
    margin: 50px auto; /* 👈 修改了这里：上下各增加 50px 的外边距，左右保持 auto 居中 */
    display: grid !important; 
    grid-template-columns: repeat(4, 1fr) !important; 
    gap: 30px;
    align-items: stretch;
}

.modern-news-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border: 1px solid #f0f0f0;
}

.modern-news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: #139bb7;
}

.modern-news-card .news-img-wrap {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.modern-news-card .news-img-wrap img {
    width: 100%; 
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    display: block;
}

.modern-news-card:hover .news-img-wrap img { 
    transform: scale(1.05); 
}

.modern-news-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.modern-news-meta {
    font-size: 13px;
    color: #888888;
    margin-bottom: 12px;
    font-weight: 500;
}

.modern-news-meta span { 
    color: #139bb7; 
}

.modern-news-title {
    font-size: 18px;
    color: #333333;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.modern-news-readmore {
    margin-top: auto;
    font-size: 14px;
    font-weight: 600;
    color: #139bb7;
    display: flex;
    align-items: center;
    gap: 5px;
}

.modern-news-readmore::after {
    content: '→';
    transition: transform 0.3s;
}

.modern-news-card:hover .modern-news-readmore::after { 
    transform: translateX(5px); 
}

/* --- 响应式适配 --- */
@media (max-width: 1200px) { 
    .modern-news-grid { 
        grid-template-columns: repeat(2, 1fr) !important; /* 平板一行两个 */
    } 
}
@media (max-width: 576px) { 
    .modern-news-grid { 
        grid-template-columns: 1fr !important; /* 手机一行一个 */
    } 
}

/* =========================================
   7. 常见问题 (Modern FAQ)
   ========================================= */
.modern-faq-section {
    padding: 80px 20px;
    background-color: #f8f9fb;
}
.modern-section-header {
    text-align: center;
    margin-bottom: 50px;
}
.modern-section-header h2 {
    font-size: 36px;
    color: #222222;
    font-weight: 800;
    margin-bottom: 15px;
}
.modern-section-header p {
    font-size: 16px;
    color: #666666;
    max-width: 600px;
    margin: 0 auto;
}

/* --- 修改为双列网格布局 --- */
.faq-container {
    max-width: 1550px; /* 与全站宽度保持一致 */
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 桌面端一行两个 */
    gap: 20px 30px; /* 上下间距 20px，左右间距 30px */
    align-items: start; /* 确保高度不一样的问答内容顶部对齐 */
}

.faq-item {
    background-color: #ffffff;
    border-radius: 6px;
    /* margin-bottom: 15px; 移除原来的底部边距，交给 grid 的 gap 控制 */
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border: 1px solid #eaeaea;
    overflow: hidden;
    height: fit-content; /* 允许折叠面板自由伸缩 */
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    transition: background-color 0.3s;
}
.faq-question:hover { background-color: #fcfcfc; }
.faq-question h4 {
    margin: 0;
    font-size: 16px;
    color: #222222;
    font-weight: 600;
    padding-right: 20px;
    line-height: 1.4;
}
.faq-icon {
    font-size: 24px;
    color: #0052d9;
    font-weight: 300;
    transition: transform 0.3s;
    line-height: 1;
}
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background-color: #ffffff;
}
.faq-answer-inner {
    padding: 0 25px 25px 25px;
    font-size: 15px;
    color: #666666;
    line-height: 1.7;
    border-top: 1px solid #f5f5f5;
    margin-top: 10px;
    padding-top: 20px;
}

/* 移动端适配：屏幕变小时恢复为单列布局 */
@media (max-width: 992px) {
    .faq-container {
        grid-template-columns: 1fr; /* 平板及手机端一行一个 */
        max-width: 900px; /* 限制单列时的最大宽度，避免太宽 */
    }
}
/* =========================================
   8. 询盘引导条 (Home Activity - 保留原有媒体查询)
   ========================================= */
@keyframes slideUpFade {
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width:1280px) {
    .home-activity::before { background: linear-gradient(90deg,var(--fontcolortitle) 0,rgba(0,0,0,.45) 100%); }
    .home-activity .activity-wrap { width: 100%; }
    .home-activity .activity-wrap .title { font-size: 30px; }
}
@media (max-width:768px) {
    .home-activity .activity-wrap .img { justify-content: space-between; align-items: flex-start; }
    .home-activity .activity-wrap .img img { margin: 0; height: auto; }
    .home-activity .activity-wrap .title { font-size: 26px; }
    .home-activity .activity-wrap .title br { display: none; }
}