/* ============================================
   Lighting 聚缘® - 全局样式表
   XAL / FLOS 极简风格
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, "Microsoft YaHei", sans-serif;
    background: #fff;
    color: #111;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ─── 导航栏 ─── */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #f0f0f0;
}
.logo {
    font-size: 20px;
    letter-spacing: 2px;
    font-weight: 500;
    position: relative;
}
.logo em {
    font-style: normal;
    color: #888;
    font-size: 14px;
    position: absolute;
    top: 3px;
}
nav ul { display: flex; gap: 32px; list-style: none; }
nav a {
    font-size: 12px;
    letter-spacing: 3px;
    color: #222;
    position: relative;
    padding-bottom: 4px;
    transition: color .3s;
}
nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: #000;
    transition: width .3s ease;
}
nav a:hover::after,
nav a.active::after { width: 100%; }
nav a.active { color: #000; font-weight: 600; }

/* ============================================
   首页轮播【修复版 · 淡入淡出模式，匹配当前JS】
   JS只控制opacity，slide全部absolute堆叠，不做横向位移
   ============================================ */
.hero {
    width: 100%;
	max-width:1900px;/*限制宽度1*/
    margin:0 auto;/*限制宽度11*/
    height: 95vh;/*设置轮播图片轮廓大小*/
    position: relative;
    background: #000;
    overflow: hidden;
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

/* 轨道：只做容器，删除flex、max‑content、transform动画！！ */
.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
    /* 删除 display:flex !important; flex-direction:row; width:max-content !important; transition:transform... */
}

/* 幻灯片：全部absolute堆叠在一起，淡入淡出 */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background-size: cover;*/
	 background‑size: 55% auto;/*设置图片轮廓里面的比例宽度*/
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.slide.active {
    opacity: 1;
    z-index:2; /* 激活的层级提高，盖住其他幻灯片 */
}

/* 暗色叠加层 */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15), transparent 40%, rgba(0,0,0,0.45));
    z-index: 3;
    pointer-events: none;
}

/* 左右箭头 */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.4);
    background: rgba(0,0,0,.25);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
}
.slider-btn.prev { left: 28px; }
.slider-btn.next { right: 28px; }

/* 圆点指示器 */
.slider-dots {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.slider-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.35);
    cursor: pointer;
}
.slider-dots span.active {
    background: #fff;
}

/* 首屏文字 */
.hero-text {
    position: absolute;
    left: 6%;
    bottom: 80px;
    z-index: 4;
    color: #fff;
    pointer-events: none;
}
.hero-text h1 {
    font-size: 56px;
    font-weight: 200;
    letter-spacing: 6px;
    text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.hero-text p {
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 3px;
    opacity: .9;
    text-shadow: 0 1px 6px rgba(0,0,0,.3);
}

/* 手机端 */
@media (max-width: 768px) {
    .slider-btn { width: 36px; height: 36px; font-size: 16px; }
    .slider-btn.prev { left: 12px; }
    .slider-btn.next { right: 12px; }
    .hero-text h1 { font-size: 28px; letter-spacing: 3px; }
    .hero-text p { font-size: 13px; }
    .slider-dots { bottom: 60px; }
}
/* ============================================
   以下为你原有样式（完全未改动）
   ============================================ */

/* ─── 区块标题 ─── */
.section-title {
    font-size: 26px;
    font-weight: 400;
    margin-bottom: 50px;
    padding-left: 10px;
    letter-spacing: 2px;
}
.section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    background: #111;
    margin-right: 14px;
    vertical-align: middle;
}

/* ─── 按钮通用 ─── */
.btn {
    display: inline-block;
    padding: 12px 32px;
    background: #111;
    color: #fff;
    font-size: 13px;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
    transition: background .3s, transform .3s;
}
.btn:hover { background: #333; transform: translateY(-2px); }
.btn-outline {
    background: transparent;
    color: #111;
    border: 1px solid #111;
}
.btn-outline:hover { background: #111; color: #fff; }

/* ─── 分类入口卡片 ─── */
.entry-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 30px;
}
.entry-card {
    height: 280px;
    background: #f8f8f8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .4s ease;
    position: relative;
    overflow: hidden;
}
.entry-card:hover {
    background: #111;
    color: #fff;
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,.15);
}
.entry-card .icon {
    font-size: 48px;
    margin-bottom: 16px;
    transition: transform .4s;
}
.entry-card:hover .icon { transform: scale(1.1); }
.entry-card h3 { font-size: 18px; font-weight: 500; letter-spacing: 2px; }
.entry-card span {
    font-size: 12px;
    color: #888;
    margin-top: 8px;
    letter-spacing: 1px;
}
.entry-card:hover span { color: #ccc; }

/* ─── 产品卡片 ─── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 50px 30px;
}
.product-card {
    cursor: default;
    transition: transform .35s ease;
}
.product-card:hover { transform: translateY(-4px); }
.product-pic {
    width: 100%;
    height: 340px;
    background: #f8f8f8 center/contain no-repeat;
    margin-bottom: 18px;
    transition: background-color .3s;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}
.product-card:hover .product-pic { background-color: #f0f0f0; }
.product-pic::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.4), transparent 60%);
    opacity: 0;
    transition: opacity .3s;
}
.product-card:hover .product-pic::after { opacity: 1; }

/* 颜色选择器 */
.color-picker {
    display: flex;
    gap: 8px;
    margin: 10px 0 6px;
}
.color-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform .2s, border-color .2s;
}
.color-dot:hover { transform: scale(1.2); }
.color-dot.active { border-color: #111; }
.color-dot.black { background: #1a1a1a; }
.color-dot.white { background: #f5f5f5; border: 1px solid #ddd; }
.color-dot.gray  { background: #888; }
.color-dot.gold  { background: linear-gradient(135deg,#d4af37,#b8860b); }
.color-dot.raw   { background: #c9a87c; }

.product-name { font-size: 16px; font-weight: 500; }
.product-model { font-size: 12px; color: #999; margin-top: 2px; letter-spacing: 1px; }
.product-desc { font-size: 13px; color: #666; margin-top: 6px; line-height: 1.6; }

/* ─── 下载按钮组 ─── */
.download-group {
    margin-top: 14px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 11px;
    border: 1px solid #ddd;
    border-radius: 2px;
    background: #fff;
    color: #444;
    cursor: pointer;
    transition: all .25s;
    letter-spacing: 0.5px;
}
.download-btn:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}
.download-btn .badge {
    font-size: 9px;
    background: #eee;
    color: #888;
    padding: 1px 5px;
    border-radius: 2px;
    margin-left: 2px;
}
.download-btn:hover .badge { background: #333; color: #aaa; }

/* ─── 产品详情展开区 ─── */
.product-detail {
    display: none;
    margin-top: 16px;
    padding: 20px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 4px;
}
.product-detail.open { display: block; animation: fadeIn .3s; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.detail-grid h4 { font-size: 13px; font-weight: 600; margin-bottom: 8px; color: #333; }
.detail-grid ul { list-style: none; font-size: 12px; color: #666; line-height: 2; }
.detail-grid ul li::before { content: '· '; color: #999; }

/* ─── 筛选标签 ─── */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.filter-btn {
    padding: 8px 20px;
    font-size: 12px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    border-radius: 20px;
    transition: all .3s;
    letter-spacing: 1px;
}
.filter-btn:hover,
.filter-btn.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* ─── 案例瀑布流 ─── */
.masonry {
    column-count: 3;
    column-gap: 24px;
}
.masonry-item {
    break-inside: avoid;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.masonry-item img {
    width: 100%;
    display: block;
    transition: transform .5s ease;
}
.masonry-item:hover img { transform: scale(1.04); }
.masonry-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: #fff;
    opacity: 0;
    transition: opacity .35s;
}
.masonry-item:hover .masonry-overlay { opacity: 1; }
.masonry-overlay h3 { font-size: 16px; font-weight: 500; }
.masonry-overlay p { font-size: 12px; color: #ddd; margin-top: 4px; }

/* ─── 关于工厂 ─── */
.factory-video {
    width: 100%;
    max-height: 800px;
    aspect-ratio: 16/9;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
}
.factory-video video { width: 100%; height: 100%; object-fit: cover; }

.stats-bar {
    display: flex;
    justify-content: space-around;
    padding: 50px 0;
    margin-top: 60px;
    background: #fafafa;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.stat-item { text-align: center; }
.stat-num {
    font-size: 44px;
    font-weight: 300;
    color: #111;
    display: block;
    line-height: 1.1;
}
.stat-label { font-size: 13px; color: #888; margin-top: 6px; letter-spacing: 1px; }

.factory-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 24px;
    margin-top: 50px;
}
.factory-grid img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform .4s;
}
.factory-grid img:hover { transform: scale(1.03); }

/* ─── 询价对接 ─── */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    padding: 60px 0;
}
.social-block { position: relative; }
.social-icons { display: flex; gap: 30px; margin-bottom: 40px; }
.social-icon {
    width: 80px;
    height: 80px;
    border-radius: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .3s, box-shadow .3s;
    border: 1px solid #eee;
    font-size: 14px;
    font-weight: 500;
}
.social-icon:hover { transform: scale(1.1); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.social-icon.douyin   { background: linear-gradient(135deg,#1a1a1a,#333); color: #fff; }
.social-icon.wechat   { background: linear-gradient(135deg,#07c160,#10d870); color: #fff; }
.social-icon.xiaohongshu { background: linear-gradient(135deg,#fe2c55,#ff6b81); color: #fff; }

.qrcode-display {
    width: 200px;
    height: 240px;
    margin-top: 10px;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: all .3s;
}
.qrcode-display img { max-width: 90%; max-height: 90%; }
.qrcode-display .placeholder { color: #bbb; font-size: 13px; text-align: center; }

/* 留言板 */
.contact-form { background: #fafafa; padding: 40px; border-radius: 4px; }
.contact-form h3 { font-size: 20px; font-weight: 400; margin-bottom: 8px; }
.contact-form > p { font-size: 13px; color: #888; margin-bottom: 28px; }
.form-row { margin-bottom: 20px; }
.form-row label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}
.form-row input,
.form-row textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 2px;
    font-size: 14px;
    transition: border-color .3s;
    font-family: inherit;
}
.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #111;
}
.form-row textarea { height: 100px; resize: vertical; }
.captcha-row { display: flex; gap: 12px; align-items: flex-start; }
.captcha-row input { flex: 1; }
.captcha-box {
    width: 120px;
    height: 46px;
    background: linear-gradient(135deg,#f0f0f0,#e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #333;
    cursor: pointer;
    border: 1px solid #ddd;
    user-select: none;
    font-family: "Courier New", monospace;
}
.captcha-box:hover { background: linear-gradient(135deg,#e8e8e8,#d5d5d5); }
.form-submit { margin-top: 10px; width: 100%; }

/* ─── 回到顶部 ─── */
.back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
    z-index: 1000;
    font-size: 20px;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: #333; transform: translateY(-3px); }

/* ─── 品牌文字滚动 ─── */
.text-row-loop {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    line-height: 0.8;
    background: #fff;
    padding: 30px 0;
}
.text-row-loop .scroll-content {
    display: inline-block;
    animation: rowScroll 60s linear infinite;
}
.text-row-loop .scroll-content span {
    display: inline-block;
    margin-right: 60px;
    font-weight: 400;
    letter-spacing: 3px;
}
@keyframes rowScroll {
    0%   { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

/* ─── 响应式 ─── */
@media (max-width: 1024px) {
    .entry-grid { grid-template-columns: repeat(2,1fr); }
    .product-grid { grid-template-columns: repeat(2,1fr); }
    .factory-grid { grid-template-columns: repeat(2,1fr); }
    .masonry { column-count: 2; }
    .contact-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    nav ul { display: none; }
    .entry-grid { grid-template-columns: repeat(2,1fr); }
    .product-grid { grid-template-columns: 1fr; }
    .factory-grid { grid-template-columns: 1fr; }
    .masonry { column-count: 1; }
    .stats-bar { flex-wrap: wrap; gap: 20px; }
    .stat-num { font-size: 32px; }
    .detail-grid { grid-template-columns: 1fr; }
    footer { flex-direction: column; gap: 16px; text-align: center; }
}