/* ==========================================
   首页 1：第一屏轮播图 (Hero Slider)
   ========================================== */
.home-hero { width: 100%; position: relative; overflow: hidden; background-color: #111; }
.hero-slider { position: relative; width: 100%; height: 700px; } /* 👈 轮播图总高度，觉得太高或太矮改这里 */

/* 幻灯片基础设定 */
.hero-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 0.8s ease-in-out; z-index: 1;
    display: flex; align-items: center; justify-content: center; text-align: center;
}
.hero-slide.active { opacity: 1; z-index: 2; }

/* 黑色半透明蒙版，压暗背景图让文字清晰 */
.slide-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); z-index: 1;
}

/* 内部文字区域与动画 */
.slide-content { position: relative; z-index: 3; color: #fff; max-width: 1000px; padding: 0 40px; }
.slide-content h1 {
    font-size: 56px; font-weight: 800; margin: 0 0 20px 0; text-transform: uppercase;
    transform: translateY(30px); opacity: 0; transition: all 0.8s ease 0.3s;
}
.slide-content p {
    font-size: 20px; line-height: 1.6; margin: 0 0 40px 0; color: #f0f0f0;
    transform: translateY(30px); opacity: 0; transition: all 0.8s ease 0.5s;
}
.slide-btns { display: flex; gap: 20px; justify-content: center; transform: translateY(30px); opacity: 0; transition: all 0.8s ease 0.7s; }

/* 激活时的浮现动画 */
.hero-slide.active .slide-content h1,
.hero-slide.active .slide-content p,
.hero-slide.active .slide-btns { transform: translateY(0); opacity: 1; }

/* 按钮样式 */
.slide-btns a {
    padding: 15px 40px; font-size: 16px; font-weight: bold; text-transform: uppercase;
    text-decoration: none; border-radius: 4px; transition: 0.3s;
}
.btn-primary { background: #F08200; color: #fff; border: 2px solid #F08200; }
.btn-primary:hover { background: transparent; color: #F08200; }
.btn-secondary { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-secondary:hover { background: #F08200; border-color: #F08200; }

/* 左右箭头 */
.slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.3); border: none; width: 56px; height: 56px; cursor: pointer;
    z-index: 5; transition: 0.3s; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.slider-arrow svg { width: 30px; height: 30px; fill: #fff; }
.slider-arrow:hover { background: #F08200; }
.prev-arrow { left: 40px; }
.next-arrow { right: 40px; }

/* 底部圆点 */
.slider-dots { position: absolute; bottom: 40px; width: 100%; text-align: center; z-index: 5; display: flex; justify-content: center; gap: 12px; }
.slider-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: 0.3s; }
.slider-dot.active, .slider-dot:hover { background: #F08200; transform: scale(1.3); }

/* ==========================================
   全站统一区块标题：丝滑滑动线风格 (Updated)
   鼠标不用悬停，自己就在滑动，颜色和粗细均按要求设置
   ========================================== */
.standard-title-wrapper { width: 100%; text-align: center; margin-bottom: 60px; }

/* 🚩 【修改线条间距】改这里 gap */
.line-shift-wrapper {
    width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; /* <--- 两条线的上下间距 */ height: 30px; margin-bottom: 20px;
}

/* 🚩 【修改粗细】：独立设置上面黑色线的粗细 (height) */
.line-shift-top {
    width: 60px; 
    height: 1px; /* <--- 上面线的粗细 */ background: #111;
    animation: shiftRightTesting 4s ease-in-out infinite alternate;
}

/* 🚩 【修改粗细】：独立设置下面橙色线的粗细 (height) */
.line-shift-bottom {
    width: 60px; 
    height: 2px; /* <--- 下面线的粗细 */ background: #F08200;
    animation: shiftLeftTesting 4s ease-in-out infinite alternate;
}

/* 动画效果：无需悬停，自动左右滑动 */
@keyframes shiftRightTesting { 0% { transform: translateX(-15px); } 100% { transform: translateX(15px); } }
@keyframes shiftLeftTesting { 0% { transform: translateX(15px); } 100% { transform: translateX(-15px); } }

/* 标题：强制 #333 */
.standard-header h2 { font-size: 36px; font-weight: 700; color: #333; margin: 0 0 10px 0; text-transform: uppercase; }

/* 描述：强制 #777 */
.standard-header p { font-size: 16px; color: #777; margin: 0; }

/* ==========================================
   首页 2：热门产品 (Hot Products) - 你的原版网格样式 (保持不变)
   ========================================== */
.classic-wrapper { width: 100%; max-width: 1350px; margin: 0 auto; padding: 0 15px; box-sizing: border-box; }
.classic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.classic-card { display: flex; flex-direction: column; background: #fff; text-decoration: none; height: 100%; border: 1px solid #f2f2f2; box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08); border-radius: 4px; overflow: hidden; transition: all 0.5s ease; }
.classic-card:hover { border-color: #F08200; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12); transform: translateY(-5px); }
.classic-img-box { width: 100%; aspect-ratio: 1 / 1; background: #fff; padding: 10px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.classic-img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.8s ease; }
.classic-card:hover .classic-img { transform: scale(1.05); }
.classic-content { padding: 20px 10px; text-align: center; flex-grow: 1; display: flex; flex-direction: column; gap: 12px; }
.classic-title { font-size: 18px; color: #333; font-weight: 600; margin: 0; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.3s; }
.classic-card:hover .classic-title { color: #F08200; }
.classic-desc { font-size: 14px; color: #999; margin: 0; line-height: 1.6; height: 3.2em; display: -webkit-box; overflow: hidden; }
.classic-btn { width: 90%; margin: auto auto 0 auto; padding: 10px 0; border: 1px solid #F08200; color: #F08200; font-size: 14px; font-weight: 700; text-transform: uppercase; border-radius: 4px; transition: all 0.4s ease; }
.classic-card:hover .classic-btn { background: #F08200; color: #fff; }

/* ==========================================
   首页 3：应用领域 (Applications) - 像素级对称修正版
   ========================================== */
.app-standard-section { 
    position: relative; 
    width: 100%; 
    padding: 80px 0; 
    background: #fff; 
    overflow: hidden; 
}

/* 1. 背景：黑色背景压低，确保箭头在黑底上 */
.app-bg-split { 
    position: absolute; 
    top: 0; left: 0; width: 100%; 
    height: 75%; 
    background: #1c1c1c; 
    z-index: 1; 
}

/* 2. 1350px 核心框：必须没有任何 padding */
.app-main-1350 { 
    position: relative; 
    z-index: 2; 
    width: 1350px; 
    margin: 0 auto; 
    padding: 0 !important; 
}

/* 3. 轮播视口：锁定 1350px 并隐藏外部 */
.app-carousel-portal { 
    position: relative; 
    width: 100%; 
    margin-top: 50px; 
}

.app-viewport-clip { 
    width: 1350px; 
    overflow: hidden; 
}

/* 4. 轨道：由 JS 精准控制位移 */
.app-track-native { 
    display: flex; 
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

/* 5. 卡片：物理宽度锁定 307.5px */
.app-card-unit { 
    flex: 0 0 307.5px; 
    margin-right: 20px; /* 👈 间距锁死 20px */
    box-sizing: border-box; 
}

/* 6. 卡片内部：高度锁死 325px */
.app-card-content { 
    position: relative; 
    height: 325px; 
    background: #000; 
    overflow: hidden; 
    cursor: pointer; 
}

.app-card-content img { 
    width: 100%; height: 100%; object-fit: cover; 
    transition: 0.8s ease; 
}

/* 7. 文字与蒙版：标题纯白，描述浅灰 */
.app-mask-layer { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.5); 
    transition: 0.4s; z-index: 2; 
}

.app-text-layer { 
    position: absolute; bottom: 0; left: 0; width: 100%; 
    padding: 25px 20px; z-index: 3; transition: 0.4s; 
}

.app-text-layer h3 { 
    font-size: 20px; font-weight: 700; 
    color: #ffffff !important; /* 👈 纯白 */
    margin: 0 0 5px 0; 
}

.app-text-layer p { 
    font-size: 13px; 
    color: #cccccc !important; /* 👈 浅灰 */
    margin: 0; line-height: 1.4; 
}

/* 8. 悬停剥离交互 */
.app-card-content:hover .app-mask-layer,
.app-card-content:hover .app-text-layer { 
    opacity: 0; 
}
.app-card-content:hover img { transform: scale(1.06); }

/* 9. 导航箭头：放大版 + 橙色悬停 #F08200 */
.app-ctrl-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 60px; height: 60px; background: transparent; 
    border: none; cursor: pointer; z-index: 10;
    display: flex; align-items: center; justify-content: center;
}

.app-ctrl-btn svg { 
    width: 50px; height: 50px; /* 👈 大箭头 */
    fill: #ffffff; transition: 0.3s; 
}

.app-ctrl-btn:hover svg { 
    fill: #F08200; /* 👈 品牌橙 */
}

/* 按钮定位在 1350px 容器的边缘（稍微往外一点点，或者贴边看你喜好） */
.app-ctrl-btn.prev { left: -70px; }
.app-ctrl-btn.next { right: -70px; }
/* ==========================================
   首页 4：产品分类 - 像素级对齐 + #F7F7F7
   ========================================== */
.home-product-cats {
    background: #F7F7F7; /* 👈 你的要求 1 */
    padding: 90px 0;
    width: 100%;
    overflow: hidden;
}

.prod-cat-container-1350 {
    width: 100%;
    max-width: 1350px; /* 👈 你的要求 2 */
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* 核心对齐网格：锁定 630px */
.prod-grid-fixed {
    display: grid;
    grid-template-columns: 4fr 6fr; /* 左4右6 */
    gap: 30px;
    height: 630px; /* 👈 强制高度，解决对不齐的问题 */
    margin-top: 50px;
}

/* 左侧 Hero 卡片样式 */
.hero-card-sync {
    position: relative;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 50px;
    background: url('https://linearleddiffuser.com/wp-content/uploads/2026/01/666.png') center center / cover no-repeat;
    transition: 0.4s ease;
}

.hero-card-sync::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1; transition: 0.4s;
}

.hero-card-sync:hover::before {
    background: linear-gradient(to bottom, rgba(240, 130, 0, 0.2) 0%, rgba(240, 130, 0, 0.9) 100%);
}

.hero-card-sync:hover { transform: translateY(-5px); }

.hero-card-content { position: relative; z-index: 2; color: #FFF; }
.hero-title { font-size: 42px; font-weight: 800; margin-bottom: 15px; line-height: 1.1; }
.hero-desc { font-size: 16px; line-height: 1.6; margin-bottom: 30px; opacity: 0.95; }
.hero-btn {
    display: inline-block; padding: 12px 30px; background: #FFF; color: #111;
    font-weight: 700; border-radius: 4px; text-transform: uppercase; font-size: 14px;
    transition: 0.3s;
}
.hero-card-sync:hover .hero-btn { background: #111; color: #FFF; }

/* 右侧 2x2 网格样式 */
.std-grid-sync {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr; /* 👈 强制两行平分高度 */
    gap: 30px;
    height: 100%;
}

.sync-card {
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    height: 100%; /* 自动计算高度，绝对对齐左侧 */
}

.sync-card img {
    width: 100%; height: 100%; object-fit: cover;
    transition: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.sync-card::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1; transition: 0.4s ease; background: rgba(0,0,0,0.2);
}

.sync-card:hover::before { background: rgba(0,0,0,0.6); }
.sync-card:hover img { transform: scale(1.1); }

/* 文字滑入效果 */
.sync-text {
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: 0 20px 25px 20px; z-index: 2;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    transform: translateY(45px); /* 初始下沉 */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.sync-title { 
    font-size: 19px; font-weight: 800; color: #FFF; 
    margin-bottom: 12px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); 
}

.sync-btn-orange {
    font-size: 11px; font-weight: 700; color: #FFF; background: #F08200;
    padding: 8px 22px; border-radius: 30px; text-transform: uppercase;
    opacity: 0; transition: opacity 0.3s ease;
}

.sync-card:hover .sync-text { transform: translateY(0); }
.sync-card:hover .sync-btn-orange { opacity: 1; }

/* 响应式适配 */
@media (max-width: 1024px) {
    .prod-grid-fixed { height: auto; grid-template-columns: 1fr; }
    .std-grid-sync { height: auto; }
    .sync-card { height: 300px; }
}