/* ============================================================================
 * 美天机电官网 首页专属样式
 * 版权所有 (C) 西安尊云信息科技有限公司
 * Author: 缘境 (yvsm@zunyunkeji.com)
 * ============================================================================ */
/* 首页板块顺序 */
.site-header{order:0}
.hero{order:1}
#recommend{order:2}
#about{order:3}
#products{order:4}
#apps{order:5}
#cases{order:6}
#news{order:7}
.footer{order:8}

/* ===== HERO：PC/手机双广告位，纯图轮播 ===== */
.hero{position:relative;background:#1a1a1a;overflow:hidden;max-height:520px}
.hero-track{position:relative;width:100%;height:520px;max-height:520px;overflow:hidden}
.hero-pc{display:block}
.hero-m{display:none}
.hero-slide{position:absolute;left:0;top:0;width:100%;height:100%;opacity:0;transition:opacity .8s;pointer-events:none;z-index:0;background:#1a1a1a}
.hero-slide.active{opacity:1;pointer-events:auto;z-index:1}
.hero-slide a{display:block;width:100%;height:100%;line-height:0}
.hero-slide img{width:100%;height:100%;max-height:520px;object-fit:cover;object-position:center center;display:block}
.hero-dots{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);z-index:3;display:flex;gap:10px}
.hero-dots button{width:10px;height:10px;border-radius:50%;border:2px solid #fff;background:transparent;cursor:pointer;padding:0}
.hero-dots button.active{background:#fff}

.sec-head .sec-slogan{margin-top:16px;color:#9a9a9a;font-size:15px;letter-spacing:2px;font-weight:400}
html[lang="en"] .sec-head .sec-slogan{letter-spacing:1px;font-size:14px;font-family:Outfit,sans-serif}

/* ===== ABOUT ===== */
.about-grid{display:grid;grid-template-columns:1.05fr 1fr;gap:48px;align-items:center}
.about-photo{position:relative}
.about-photo img{width:100%;height:400px;object-fit:cover;border-radius:4px}
.about-photo .accent{position:absolute;left:-16px;bottom:-16px;width:120px;height:120px;background:var(--orange);opacity:.9;z-index:-1;border-radius:4px}
.about-body p{color:var(--muted);font-size:15px;line-height:1.9;margin-bottom:16px}
.features{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:28px 0}
.feat{text-align:center}
.feat-icon{width:64px;height:64px;margin:0 auto 10px;border:2px solid var(--orange);border-radius:50%;display:grid;place-items:center;color:var(--orange);font-size:22px;font-weight:800;font-family:Outfit,sans-serif}
.feat h5{font-size:15px;font-weight:700;margin-bottom:4px}
.feat p{font-size:14px;color:var(--muted);margin:0}

/* ===== RECOMMEND CAROUSEL ===== */
.sec-bg::before{content:"";position:absolute;right:-80px;top:40px;width:280px;height:280px;background:var(--orange);opacity:.08;transform:rotate(25deg);border-radius:40px}
.sec-bg::after{content:"";position:absolute;left:-60px;bottom:-40px;width:200px;height:200px;background:var(--navy);opacity:.06;border-radius:50%}
.rec-carousel{position:relative;z-index:1}
.rec-viewport{overflow:hidden}
.rec-track{display:flex;gap:22px;transition:transform .55s cubic-bezier(.4,0,.2,1)}
.rec-card{flex:0 0 calc((100% - 66px)/4);background:#fff;border-radius:6px;transition:.3s;overflow:hidden;box-shadow:0 4px 18px rgba(0,0,0,.06);display:flex;flex-direction:column}
.rec-card:hover{transform:translateY(-6px);box-shadow:0 16px 40px rgba(244,86,8,.16)}
.rec-card .pic{height:200px;overflow:hidden;background:#eef1f5}
.rec-card .pic img{width:100%;height:100%;object-fit:cover;display:block;transition:.35s}
.rec-card:hover .pic img{transform:scale(1.05)}
.rec-card .body{padding:18px 20px 20px;flex:1;display:flex;flex-direction:column}
.rec-card h4{font-size:16px;font-weight:700;margin-bottom:8px;color:var(--navy-dark)}
.rec-card p{font-size:14px;color:var(--muted);margin-bottom:14px;line-height:1.7;flex:1}
.rec-card .more{display:block;text-align:right;color:var(--orange);font-size:14px;font-weight:600;margin-top:auto}
.rec-card .more:hover{color:var(--orange-deep)}
.rec-dots{display:flex;justify-content:center;gap:10px;margin-top:30px}
.rec-dots button{width:10px;height:10px;border-radius:50%;border:none;background:#cfcfcf;cursor:pointer;padding:0;transition:.25s}
.rec-dots button.active{background:var(--orange);width:26px;border-radius:6px}

/* ===== PRODUCT DISPLAY ===== */
.cat-bar{display:flex;background:var(--orange);border-radius:4px;overflow:hidden;margin-bottom:32px}
.cat-bar a{flex:1;display:block;text-align:center;background:transparent;color:#fff;padding:16px 8px;font-size:16px;cursor:pointer;font-family:inherit;font-weight:400;transition:.2s;opacity:.9}
.cat-bar a:hover,.cat-bar a.active{background:rgba(0,0,0,.18);opacity:1;font-weight:700}
.cat-bar a+a{border-left:1px solid rgba(255,255,255,.18)}
.prod-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.prod-item{border:1px solid var(--line);background:#fff;transition:.25s;overflow:hidden}
.prod-item:hover{border-color:var(--orange);box-shadow:0 8px 24px rgba(244,86,8,.12)}
.prod-item .pic{height:200px;overflow:hidden;background:#eef1f5;padding:0}
.prod-item .pic img{width:100%;height:100%;object-fit:cover;display:block;transition:.3s}
.prod-item:hover .pic img{transform:scale(1.06)}
.prod-item h4{padding:14px;text-align:center;font-size:14px;font-weight:600;border-top:1px solid var(--line);background:#fff}

/* ===== APPLICATIONS ===== */
.app-strip{display:grid;grid-template-columns:repeat(5,1fr);gap:0;margin-top:8px}
.app-item{position:relative;height:320px;overflow:hidden}
.app-item img{width:100%;height:100%;object-fit:cover;transition:.5s}
.app-item:hover img{transform:scale(1.08)}
.app-item .label{position:absolute;left:0;right:0;bottom:0;padding:24px 16px 20px;background:linear-gradient(transparent,rgba(20,20,20,.92));color:#fff;text-align:center}
.app-item .label h4{font-size:16px;font-weight:700;margin-bottom:4px}
.app-item .label span{font-size:14px;opacity:.75;font-family:Outfit,sans-serif;letter-spacing:.08em}
.app-more{background:var(--orange);display:none;flex-direction:column;align-items:center;justify-content:center;color:#fff;text-align:center;cursor:pointer;gap:10px;transition:.3s;height:320px}
.app-more:hover{background:var(--orange-deep)}
.app-more b{font-size:18px;font-weight:700}
.app-more span{font-size:14px;font-family:Outfit,sans-serif;letter-spacing:.12em;opacity:.92}
.app-more .am-ic{width:52px;height:52px;border:2px solid rgba(255,255,255,.85);border-radius:50%;display:grid;place-items:center}
.app-more .am-ic svg{width:26px;height:26px;fill:#fff}

/* ===== CASES ===== */
.case-row{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.case-card{overflow:hidden;border-radius:4px;position:relative}
.case-card img{width:100%;height:200px;object-fit:cover;transition:.4s}
.case-card:hover img{transform:scale(1.06)}
.case-card figcaption{position:absolute;left:0;right:0;bottom:0;padding:14px;background:rgba(244,86,8,.9);color:#fff;font-size:14px;font-weight:600;text-align:center}

/* ===== NEWS ===== */
.news-tabs{display:flex;justify-content:center;gap:8px;margin-bottom:32px;flex-wrap:wrap}
.news-tabs a{background:#fff;border:1px solid var(--line);padding:8px 22px;font-family:inherit;font-size:14px;border-radius:20px;color:var(--muted);text-decoration:none;display:inline-block;line-height:1.4;transition:.2s}
.news-tabs a:hover{background:var(--orange);color:#fff;border-color:var(--orange)}
.news-layout{display:grid;grid-template-columns:1.2fr .9fr;gap:32px;align-items:stretch}
.news-list{background:#fff;padding:8px 28px;border-radius:6px;box-shadow:0 2px 12px rgba(0,0,0,.04)}
.news-row{display:flex;justify-content:space-between;align-items:center;padding:18px 0;border-bottom:1px solid var(--line);gap:20px}
.news-row:last-child{border-bottom:none}
.news-row:hover a{color:var(--orange)}
.news-row a{font-size:15px;font-weight:500;flex:1;line-height:1.55;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.news-row time{font-size:14px;color:var(--muted);font-family:Outfit,sans-serif;flex-shrink:0;letter-spacing:.02em}
.news-feature{position:relative;border-radius:6px;overflow:hidden;min-height:100%}
.news-feature img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.news-feature .cap{position:absolute;left:0;right:0;bottom:0;padding:28px 24px;background:linear-gradient(transparent,rgba(0,0,0,.85));color:#fff}
.news-feature .cap h4{font-size:18px;margin-bottom:8px;line-height:1.45;font-weight:700}

/* ===== HOMEPAGE RESPONSIVE ===== */
@media(max-width:1024px){
  .rec-card{flex:0 0 calc((100% - 22px)/2)}
  .prod-grid,.case-row{grid-template-columns:repeat(2,1fr)}
  .app-strip{grid-template-columns:repeat(2,1fr)}
  .about-grid,.news-layout{grid-template-columns:1fr}
  .features{grid-template-columns:repeat(2,1fr)}
  .app-item{height:220px}
  .app-more{display:flex;height:220px}
}
@media(max-width:768px){
  .hero,.hero-track{height:360px;max-height:360px}
  .hero-slide img{max-height:360px}
  .hero-pc{display:none}
  .hero-m{display:block}
  .hero-dots{bottom:12px}
  .app-item{height:200px}
  .app-more{height:200px}
}
@media(max-width:640px){
  .rec-track{gap:0}
  .rec-card{flex:0 0 100%}
  .prod-grid,.case-row{grid-template-columns:1fr}
  .cat-bar{flex-wrap:wrap}
  .cat-bar a{flex:1 1 33%}
  .cat-bar a+a{border-left:none}
}
