/* =========================================================
   页面特有样式：品牌中心(home) / 产品(product) / 加盟(join)
   / 资讯(news) / 联系(contact)
   ========================================================= */

/* ============ HOME 品牌中心 ============ */
.home-hero{position:relative;height:clamp(360px,42vw,560px);width:100%;background:var(--navy);display:flex;flex-direction:column;justify-content:flex-end;padding:clamp(40px,6vw,80px) var(--page-pad);overflow:hidden;}
.home-hero .mask,.hero .mask{position:absolute;inset:0;background:linear-gradient(180deg,rgba(26,35,126,.15),rgba(26,35,126,.55));z-index:1;pointer-events:none;}
.home-hero .inner,.hero .inner{position:relative;z-index:2;display:flex;flex-direction:column;gap:16px;}
.hero-title{color:#fff;font-size:clamp(32px,5vw,48px);font-weight:700;line-height:1.2;}
.hero-sub{color:var(--lightblue);font-size:clamp(16px,2vw,18px);line-height:28px;}
.hero-slide{position:absolute;inset:0;opacity:0;transition:opacity 1s ease-in-out;z-index:0;}
.hero-slide.active{opacity:1;z-index:1;}
.hero-slide img,.hero-slide .img-ph{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.hero-slide a.hero-slide-link{display:block;position:absolute;inset:0;width:100%;height:100%;cursor:pointer;z-index:2;}
.hero-slide a.hero-slide-link img,.hero-slide a.hero-slide-link .img-ph{position:static;width:100%;height:100%;}
.hero-dots{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);display:flex;gap:10px;z-index:3;}
.hero-dot{width:10px;height:10px;border-radius:50%;background:rgba(255,255,255,.5);border:none;padding:0;cursor:pointer;transition:background .2s;}
.hero-dot.active{background:#fff;}

.about-content{display:flex;justify-content:space-between;gap:60px;flex-wrap:wrap;}
.about-text{flex:1 1 380px;display:flex;flex-direction:column;gap:16px;}
.about-text p{font-size:15px;color:var(--gray444);line-height:28px;text-indent:2em;}
.about-img{flex:1 1 380px;height:clamp(240px,28vw,320px);border-radius:8px;overflow:hidden;background:var(--img-gray);min-width:0;}
.about-img img{width:100%;height:100%;object-fit:cover;}
.metrics{display:flex;gap:40px;flex-wrap:wrap;margin-top:8px;}
.metric .v{font-size:clamp(28px,4vw,40px);font-weight:700;color:var(--orange);line-height:1;}
.metric .l{font-size:14px;color:var(--gray666);margin-top:6px;}

/* 时间轴 —— 自适应、不溢出 */
.timeline{padding:var(--sec-pad-y) var(--page-pad);background:#fff;display:flex;flex-direction:column;align-items:center;gap:0;}
.tl-top,.tl-bottom{width:100%;max-width:1320px;display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:clamp(16px,2vw,32px);}
.tl-item{flex:1 1 0;min-width:clamp(120px,16%,180px);max-width:100%;display:flex;flex-direction:column;align-items:flex-start;}
.tl-item.center{align-items:center;text-align:center;}
.tl-year{font-size:clamp(20px,2.4vw,28px);font-weight:700;color:var(--navy);}
.tl-desc{font-size:clamp(12px,1.1vw,13px);color:var(--gray666);line-height:1.7;margin-top:8px;}
.tl-dot{width:12px;height:12px;border-radius:6px;background:var(--navy);margin-top:14px;flex-shrink:0;}
.tl-dot.top{margin-top:0;margin-bottom:8px;}
.tl-strip{width:100%;max-width:1320px;height:clamp(48px,7vw,74px);margin:clamp(16px,2vw,24px) 0;border-radius:37px 0 37px 0;overflow:hidden;background:var(--img-gray);}
.tl-strip img{width:100%;height:100%;object-fit:cover;}
.tl-mobile{display:none;}

/* 媒体资讯 */
.media-grid{display:flex;gap:24px;align-items:stretch;}
.m-left{width:420px;height:420px;flex-shrink:0;display:flex;flex-direction:column;border:1px solid var(--border);border-radius:8px;overflow:hidden;background:#fff;cursor:pointer;}
.m-left .img{height:240px;background:var(--img-gray);}
.m-left .img img{width:100%;height:100%;object-fit:cover;}
.m-left .body{flex:1;padding:24px;display:flex;flex-direction:column;gap:12px;}
.m-left .t{font-size:18px;font-weight:700;color:var(--navy);line-height:22px;}
.m-left .d{font-size:13px;color:var(--gray999);}
.m-left .x{font-size:14px;color:var(--gray666);line-height:24px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.m-right{flex:1;display:flex;flex-direction:column;gap:24px;min-width:0;}
.m-card{display:flex;height:124px;border-radius:8px;overflow:hidden;background:#fff;border:1px solid var(--border);cursor:pointer;}
.m-card:hover .t{color:var(--red);text-decoration:underline;}
.m-left:hover .t{color:var(--red);text-decoration:underline;}
.m-card .img{flex:0 0 200px;background:var(--img-gray);}
.m-card .img img{width:100%;height:100%;object-fit:cover;}
.m-card .body{flex:1;padding:10px 20px 0;display:flex;flex-direction:column;gap:8px;min-width:0;}
.m-card .t{font-size:16px;font-weight:700;color:var(--navy);display:block;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.m-card .d{font-size:12px;color:var(--gray999);}
.m-card .x{font-size:13px;color:var(--gray666);line-height:22px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
@media(max-width:1024px){.media-grid{flex-direction:column;}.m-left{width:100%;height:auto;}.m-left .img{height:220px;}}

/* 媒体矩阵 */
.social-grid{display:flex;justify-content:space-between;flex-wrap:nowrap;gap:clamp(12px,1.5vw,20px);}
.social-card{flex:1 1 0;min-width:0;height:clamp(160px,18vw,240px);border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(10px,1.2vw,16px);padding:clamp(8px,1.5vw,20px);}
.social-card .qr{width:clamp(64px,8vw,120px);height:clamp(64px,8vw,120px);border-radius:8px;background:#fff;}
.social-card .qr img{width:100%;height:100%;object-fit:contain;}
.social-card .nm{color:#fff;font-size:clamp(14px,1.5vw,18px);font-weight:700;}
@media(max-width:1024px){.social-grid{flex-wrap:wrap;}.social-card{flex:1 1 30%;}}
@media(max-width:640px){.social-card{flex:1 1 45%;}}

/* ============ PRODUCT 产品中心 ============ */
.hero{position:relative;height:clamp(360px,42vw,560px);background:var(--navy);display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:18px;padding:0 var(--page-pad);overflow:hidden;}
.crumb{color:var(--lightblue);font-size:13px;}
.crumb a,.bc a,.breadcrumb a{color:inherit;text-decoration:none;cursor:pointer;transition:color .2s;}
.crumb a:hover,.bc a:hover{color:#fff;text-decoration:underline;}
.breadcrumb a:hover{color:var(--navy);text-decoration:underline;}
.hero-title{color:#fff;font-size:clamp(32px,5vw,48px);font-weight:700;line-height:1.2;}
.hero-en{color:var(--lightblue);font-size:16px;}
.hero-sub{color:var(--lightblue);font-size:18px;line-height:28px;max-width:378px;}

.card-cab{border:1px solid var(--border);border-radius:8px;overflow:hidden;background:#fff;cursor:pointer;transition:box-shadow .2s;}
.card-cab:hover{box-shadow:0 6px 20px rgba(0,0,0,.1);}
.card-cab .img{height:clamp(180px,20vw,228px);background:var(--img-gray);}
.card-cab .img img,.card-cab .img .img-ph{width:100%;height:100%;object-fit:cover;}
.card-cab .name{height:55px;display:flex;align-items:center;justify-content:center;color:var(--navy);font-size:18px;font-weight:700;}
.card-soft{border:1px solid var(--border);border-radius:8px;overflow:hidden;background:#fff;}
.card-soft .img{height:clamp(170px,18vw,204px);background:var(--img-gray);cursor:zoom-in;}
.card-soft .img img,.card-soft .img .img-ph{width:100%;height:100%;object-fit:cover;}
.card-soft .meta{padding:16px;}
.card-soft .name{color:var(--navy);font-size:18px;font-weight:700;line-height:22px;}
.card-soft .desc{color:var(--gray666);font-size:13px;line-height:22px;margin-top:4px;}

/* 石材色卡 + 轮播 */
.stone-carousel{position:relative;width:100%;max-width:100%;margin:0 auto;}
.stone-stage{width:100%;max-width:100%;overflow:hidden;}
.stone-track{display:flex;gap:20px;transition:transform .3s ease;}
.swatch{flex:0 0 calc((100% - 40px) / 3);border:1px solid var(--border);border-radius:8px;overflow:hidden;background:#fff;min-width:0;}
.swatch .color{height:clamp(170px,18vw,204px);cursor:zoom-in;position:relative;overflow:hidden;border-radius:6px;background:var(--img-gray);}
.swatch .color .stone-img{width:100%;height:100%;object-fit:cover;display:block;}
.swatch .color .stone-fallback{position:absolute;inset:0;}
.swatch .meta{padding:16px;display:flex;align-items:center;gap:10px;}
.swatch .code{color:var(--navy);font-size:15px;font-weight:700;}
.swatch .sname{color:var(--gray666);font-size:14px;}
.sc-arrow{position:absolute;top:50%;transform:translateY(-50%);width:50px;height:50px;border-radius:50%;background:#8C8C8C;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:5;font-size:22px;user-select:none;}
.sc-arrow.prev{left:-100px;}.sc-arrow.next{right:-100px;}
.sc-arrow:hover{background:var(--navy);}
@media(max-width:1200px){.sc-arrow.prev{left:-60px;}.sc-arrow.next{right:-60px;}}
@media(max-width:1024px){.swatch{flex:0 0 calc((100% - 20px) / 2);}.sc-arrow.prev{left:-50px;}.sc-arrow.next{right:-50px;}}
@media(max-width:768px){.swatch{flex:0 0 100%;}.sc-arrow{width:40px;height:40px;}.sc-arrow.prev{left:0;}.sc-arrow.next{right:0;}}
@media(max-width:640px){.swatch{flex:0 0 100%;}}

/* 整家详情页 画廊 */
.detail-wrap{padding:calc(var(--sec-pad-y) / 2) 360px var(--sec-pad-y);display:flex;flex-direction:column;gap:24px;}
@media(max-width:1440px){.detail-wrap{padding:calc(var(--sec-pad-y) / 2) var(--page-pad) var(--sec-pad-y);}}
.breadcrumb{color:var(--lightblue);font-size:13px;}
.detail-title{color:var(--navy);font-size:clamp(24px,3.4vw,32px);font-weight:700;}
.detail-sub{color:var(--gray666);font-size:15px;}
.gallery-main{position:relative;width:100%;aspect-ratio:16/9;border-radius:8px;overflow:hidden;background:var(--img-gray);}
.gallery-main img{width:100%;height:100%;object-fit:cover;}
.gallery-main .g-arrow{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:48px;border-radius:50%;background:rgba(255,255,255,.9);display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:22px;color:var(--navy);}
.gallery-main .g-arrow.prev{left:16px;}.gallery-main .g-arrow.next{right:16px;}
.gallery-main .g-count{position:absolute;right:16px;bottom:16px;background:rgba(0,0,0,.6);color:#fff;font-size:14px;padding:4px 10px;border-radius:4px;}
.gallery-thumbs{display:flex;gap:12px;justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;padding-bottom:8px;}
.gallery-thumbs img{flex:0 0 auto;width:100px;height:70px;border-radius:4px;object-fit:cover;border:2px solid transparent;cursor:pointer;}
.gallery-thumbs img.active{border-color:var(--navy);}
.gallery-thumbs .thumb{flex:0 0 auto;width:100px;height:70px;border-radius:4px;object-fit:cover;border:2px solid transparent;cursor:pointer;background:var(--img-gray);box-sizing:border-box;}
.gallery-thumbs::-webkit-scrollbar{height:8px;}
.gallery-thumbs::-webkit-scrollbar-track{background:var(--border);border-radius:4px;}
.gallery-thumbs::-webkit-scrollbar-thumb{background:var(--gray999);border-radius:4px;}
@media(max-width:768px){.gallery-main .g-arrow{width:40px;height:40px;}.gallery-thumbs img{width:72px;height:52px;}.gallery-thumbs .thumb{width:72px;height:52px;}}


/* ============ JOIN 加盟中心 ============ */
.join-hero{position:relative;height:clamp(360px,42vw,560px);display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:0 clamp(20px,8.33vw,120px);overflow:hidden;}
.join-hero .mask{position:absolute;inset:0;background:linear-gradient(180deg,rgba(26,35,126,.15),rgba(26,35,126,.55));z-index:1;pointer-events:none;}
.join-hero .inner{position:relative;z-index:2;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:24px;}
.join-hero .jt{color:#fff;font-size:clamp(28px,4vw,48px);font-weight:700;line-height:1.3;max-width:900px;}
.join-hero .jt.is-empty{visibility:hidden;}
.join-hero .js{color:var(--lightblue);font-size:clamp(16px,2vw,24px);}
.join-hero .js.is-empty{visibility:hidden;}
.adv-hero{width:100%;border-radius:8px;overflow:hidden;background:var(--img-gray);}
.adv-hero img{width:100%;display:block;}
.adv-block{display:flex;flex-direction:column;gap:20px;}
.adv-block.compact{gap:10px;}
.adv-head-img{width:100%;border-radius:8px;overflow:hidden;background:var(--img-gray);}
.adv-head-img img{width:100%;display:block;}
.adv-caption{font-size:17px;font-weight:700;color:var(--navy);text-align:center;line-height:24px;}
.adv-main-img{width:100%;border-radius:8px;overflow:hidden;background:var(--img-gray);}
.adv-main-img img{width:100%;display:block;}
/* 加盟中心占位图改为白色底，避免页面出现灰块 */
.adv-hero,.adv-head-img,.adv-main-img,
.adv-hero .img-ph,.adv-head-img .img-ph,.adv-main-img .img-ph{background:#fff;}
.join-contact{padding:var(--sec-pad-y) var(--page-pad);background:#fff;display:flex;flex-direction:column;gap:24px;}
.join-contact .form-card{gap:3px;}
.join-contact .form-row{gap:12px;}
.join-contact .form-field textarea{height:70px;}
.ct{font-size:clamp(24px,3.4vw,32px);font-weight:700;color:var(--navy);}
.ci{font-size:16px;color:var(--gray444);line-height:28px;white-space:pre-line;}

/* ============ NEWS 资讯中心 ============ */
.news-hero{height:clamp(160px,20vw,221px);background:var(--navy);display:flex;flex-direction:column;justify-content:center;gap:14px;padding:0 var(--page-pad);}
.news-hero .bc{color:var(--lightblue);font-size:13px;}
.news-hero .ht{color:#fff;font-size:clamp(28px,4vw,40px);font-weight:700;}
.news-hero .he{color:var(--lightblue);font-size:14px;}
.news-card{display:flex;border:1.5px solid var(--border);border-radius:8px;min-height:240px;overflow:hidden;cursor:pointer;transition:box-shadow .2s,transform .2s;}
.news-card:hover{box-shadow:0 6px 18px rgba(0,0,0,.08);transform:translateY(-2px);}
.news-card:hover .nt{color:var(--red);text-decoration:underline;}
.news-card .cover{flex:0 0 400px;height:240px;background:var(--img-gray);}
.news-card .cover img,.news-card .cover .img-ph{width:100%;height:100%;}
.news-card .content{flex:1;padding:24px;display:flex;flex-direction:column;gap:16px;min-width:0;}
.news-card .nt{font-size:20px;font-weight:700;color:var(--navy);line-height:24px;transition:color .2s;}
.news-card .ns{font-size:14px;color:var(--gray666);line-height:24px;}
.news-card .nb{margin-top:auto;display:flex;align-items:center;justify-content:space-between;}
.news-card .nd{font-size:14px;color:var(--gray999);}
.news-card .na{font-size:20px;color:var(--navy);}
@media(max-width:768px){.news-card{flex-direction:column;}.news-card .cover{flex:none;width:100%;height:200px;}}
@media(max-width:640px){.news-card .cover{height:180px;}}

/* 资讯详情 */
.article{max-width:820px;margin:0 auto;display:flex;flex-direction:column;gap:20px;}
.article .a-title{font-size:clamp(26px,4vw,36px);font-weight:700;color:var(--navy);line-height:1.3;}
.article .a-meta{font-size:14px;color:var(--gray999);display:flex;gap:16px;flex-wrap:wrap;}
.article .a-cover{width:100%;border-radius:8px;overflow:hidden;background:var(--img-gray);}
.article .a-cover img{width:100%;display:block;}
.article .a-body{font-size:16px;color:var(--gray444);line-height:30px;}
.article .a-body h2{font-size:22px;color:var(--navy);margin:24px 0 12px;}
.article .a-body p{margin-bottom:14px;}
.article .a-body img{max-width:100%;border-radius:8px;margin:12px 0;}
.a-nav{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;border-top:1px solid var(--border);padding-top:20px;margin-top:12px;}
.a-nav a{color:var(--navy);font-size:14px;cursor:pointer;}
.a-nav a:hover{text-decoration:underline;}

/* ============ CONTACT 联系我们 ============ */
.contact-hero{height:clamp(160px,20vw,221px);background:var(--navy);display:flex;flex-direction:column;justify-content:center;gap:14px;padding:0 var(--page-pad);}
.contact-hero .crumb{color:var(--lightblue);font-size:13px;}
.contact-hero .t{color:#fff;font-size:clamp(28px,4vw,40px);font-weight:700;}
.contact-hero .en{color:var(--lightblue);font-size:14px;}
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:40px;}
.c-item{display:flex;gap:16px;align-items:center;}
.c-badge{width:48px;height:48px;border-radius:24px;background:var(--navy);flex-shrink:0;display:flex;align-items:center;justify-content:center;}
.c-badge svg{width:22px;height:22px;stroke:#fff;}
.c-main{font-size:18px;font-weight:700;color:var(--navy);}
.c-sub{font-size:13px;color:var(--gray666);line-height:20px;margin-top:6px;}
@media(max-width:1024px){.contact-grid{grid-template-columns:1fr;}}

.result-area{display:grid;grid-template-columns:minmax(320px,384px) 1fr;grid-template-rows:1fr auto;gap:12px 24px;align-items:stretch;}
.outlet-col{display:contents;}
.outlet-list{grid-column:1;grid-row:1;display:flex;flex-direction:column;gap:12px;height:420px;}
#outletPager{grid-column:1;grid-row:2;}
.map-box{grid-column:2;grid-row:1;height:420px;}
.map-box.tall{grid-row:1 / span 2;height:auto;}
.pagination:empty{margin-top:0;}
.outlet-list-scroll{max-height:420px;overflow-y:auto;padding-right:4px;}
.outlet-list-scroll::-webkit-scrollbar{width:6px;}
.outlet-list-scroll::-webkit-scrollbar-thumb{background:var(--border);border-radius:3px;}
.outlet-item{display:flex;gap:12px;padding:16px 20px;background:var(--form-bg);border-radius:8px;cursor:pointer;transition:box-shadow .2s;}
.outlet-item:hover,.outlet-item.active{box-shadow:0 4px 14px rgba(26,35,126,.15);}
.seq-badge{width:24px;height:24px;border-radius:50%;background:var(--navy);color:#fff;font-size:13px;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.outlet-name{font-size:16px;font-weight:700;color:var(--navy);}
.outlet-line{font-size:13px;color:var(--gray666);line-height:20px;margin-top:4px;}
@media(max-width:1024px){.result-area{grid-template-columns:1fr;grid-template-rows:auto auto auto;gap:24px;}.outlet-list{grid-column:1;grid-row:1;min-height:auto;}.map-box{grid-column:1;grid-row:2;height:auto;min-height:320px;}.map-box.tall{grid-row:2;}#outletPager{grid-column:1;grid-row:3;}}

/* 灯箱 Lightbox */
.lightbox{position:fixed;inset:0;z-index:1100;background:rgba(0,0,0,.85);display:flex;align-items:center;justify-content:center;opacity:0;pointer-events:none;transition:opacity .2s;}
.lightbox.show{opacity:1;pointer-events:auto;}
.lightbox img{max-width:90vw;max-height:85vh;object-fit:contain;transform:scale(.95);transition:transform .2s;}
.lightbox.show img{transform:scale(1);}
.lightbox .lb-close{position:absolute;top:24px;right:24px;width:44px;height:44px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:28px;cursor:pointer;z-index:10;pointer-events:auto;user-select:none;}
@media(max-width:768px){.lightbox img{max-width:100vw;max-height:80vh;}}

/* Toast */
.toast{position:fixed;bottom:32px;left:50%;transform:translateX(-50%) translateY(20px);background:var(--navy);color:#fff;padding:12px 24px;border-radius:8px;font-size:14px;opacity:0;transition:all .25s;z-index:1200;pointer-events:none;}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0);}

/* =========================================================
   移动端适配补充（≤768 / ≤640）
   ========================================================= */

/* HOME：媒体资讯小卡在窄屏纵向堆叠，更紧凑易读 */
@media(max-width:640px){
  .m-card{flex-direction:column;height:auto;}
  .m-card .img{flex:0 0 160px;height:160px;width:100%;}
  .m-card .body{padding:14px 16px;}

  /* 公司历程时间轴：≤640px 隐藏桌面布局，显示按年份排序的纵向时间轴 */
  .tl-top,.tl-bottom,.tl-strip{display:none;}
  .tl-mobile{display:flex;width:100%;max-width:1320px;flex-direction:column;gap:18px;position:relative;padding-left:26px;}
  .tl-mobile::before{content:'';position:absolute;left:5px;top:10px;bottom:10px;width:2px;background:var(--navy);opacity:.25;}
  .tl-m-item{display:flex;gap:14px;align-items:flex-start;position:relative;}
  .tl-m-item .tl-dot{margin:4px 0 0;}
  .tl-m-body{display:flex;flex-direction:column;gap:4px;}
  .tl-m-body .tl-year{font-size:22px;}
  .tl-m-body .tl-desc{margin-top:0;font-size:13px;}
}

/* 时间轴中等屏幕优化（桌面端，641px~768px） */
@media(max-width:768px){
  .tl-top,.tl-bottom{gap:14px;}
  .tl-item{min-width:110px;}
  .tl-year{font-size:20px;}
  .tl-desc{font-size:12px;}
  .tl-strip{height:clamp(40px,8vw,56px);border-radius:28px 0 28px 0;}
}

/* JOIN：手机端表单行间距恢复舒适，CTA 占满并居中 */
@media(max-width:768px){
  .join-contact .form-card{gap:14px;}
  .join-cta{width:100%;max-width:320px;}
}

/* CONTACT：手机端网点列表滚动高度适当减小 */
@media(max-width:640px){
  .outlet-list-scroll{max-height:320px;}
}
