/* ============================================
   Dakzhou Theme - Home Page
   首页样式
   ============================================ */

/* ===== 首页Section ===== */
.home .section,
.front-page .section{
  padding:48px 0;
}
.home .section-head,
.front-page .section-head{
  margin-bottom:28px;
}
.home .section-head h2,
.front-page .section-head h2{
  font-size:1.75rem;
}
.home .section-head p,
.front-page .section-head p{
  margin-top:10px;
  font-size:.9rem;
}

/* ===== Hero区域 ===== */
.hero{
  position:relative;
}
.hero::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:clamp(72px,16vw,168px);
  z-index:1;
  background:linear-gradient(rgba(0,0,0,.42),rgba(0,0,0,0));
  pointer-events:none;
}

/* Hero顶部导航叠加 */
.hero-top{
  position:absolute;
  top:0;
  left:0;
  right:0;
  z-index:62;
  transition:background .3s var(--ease), box-shadow .3s var(--ease);
}
.hero-top .topbar{
  background:transparent;
  color:rgba(255,255,255,.85);
  border-bottom:none;
}
.hero-top .topbar .container{
  justify-content:flex-end;
}
.hero-top .topbar-meta{
  color:rgba(255,255,255,.85);
}
.hero-top .topbar-meta a{
  color:rgba(255,255,255,.85);
}
.hero-top .topbar-meta a:hover{
  color:#fff;
}
.hero-top .header{
  background:transparent;
  border-bottom:none;
  padding:14px 0;
}
.hero-top .search-bar input{
  background:rgba(255,255,255,.16);
  color:#fff;
  border-color:rgba(255,255,255,.45);
}
.hero-top .search-bar input::placeholder{
  color:rgba(255,255,255,.7);
}
.hero-top .search-bar svg{
  color:rgba(255,255,255,.85);
}
.hero-top .icon-btn{
  color:rgba(255,255,255,.92);
  border-color:transparent;
}
.hero-top .icon-btn:hover{
  background:rgba(255,255,255,.16);
  color:#fff;
}

/* 滚动后Hero导航变白 */
.hero.scrolled .hero-top{
  background:#fff;
  box-shadow:0 2px 14px rgba(15,23,42,.10);
}
.hero.scrolled .header{
  background:transparent;
}
.hero.scrolled .search-bar input{
  background:var(--bg-soft);
  color:var(--ink);
  border-color:var(--border);
}
.hero.scrolled .search-bar input::placeholder{
  color:var(--muted-2);
}
.hero.scrolled .search-bar svg{
  color:var(--muted);
}
.hero.scrolled .icon-btn{
  color:var(--ink-2);
}
.hero.scrolled .icon-btn:hover{
  background:var(--mint);
  color:var(--emerald);
}
.hero.scrolled .topbar-meta{
  color:var(--muted);
}
.hero.scrolled .topbar-meta a{
  color:var(--ink-2);
}

/* ===== Banner轮播 ===== */
.banner{
  position:relative;
  overflow:hidden;
  background:var(--ink);
}
.banner-slides{
  display:flex;
  width:100%;
  will-change:transform;
  transition:transform .9s var(--ease-soft);
}
.banner-slide{
  flex:0 0 100%;
  position:relative;
  aspect-ratio:8 / 3;
}
.banner-slide img{
  display:block;
  width:100%;
  height:auto;
}

/* 轮播箭头 */
.banner-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:50px;
  height:50px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.28);
  background:rgba(255,255,255,.10);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  color:#fff;
  font-size:1.2rem;
  cursor:pointer;
  z-index:3;
  transition:all .25s var(--ease);
  display:flex;
  align-items:center;
  justify-content:center;
}
.banner-arrow:hover{
  background:rgba(255,255,255,.22);
  border-color:rgba(255,255,255,.6);
}
.banner-arrow.prev{left:24px;}
.banner-arrow.next{right:24px;}

/* 轮播指示点 */
.banner-dots{
  position:absolute;
  bottom:24px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  gap:8px;
  z-index:3;
}
.banner-dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background:rgba(255,255,255,.40);
  border:none;
  cursor:pointer;
  transition:all .35s var(--ease);
  padding:0;
}
.banner-dot.active{
  width:32px;
  background:#fff;
}

/* ===== 信任栏 ===== */
.trust-bar{
  background:#fff;
  padding:24px 0;
  border-bottom:1px solid var(--border);
}
.trust-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
}
.trust-item{
  display:flex;
  align-items:center;
  gap:14px;
}
.trust-icon{
  width:44px;
  height:44px;
  border-radius:12px;
  background:var(--mint);
  color:var(--emerald);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.trust-icon svg{
  width:20px;
  height:20px;
}
.trust-text h4{
  font-size:.92rem;
  font-weight:600;
  color:var(--ink);
  margin:0 0 2px;
}
.trust-text p{
  font-size:.76rem;
  color:var(--muted);
  margin:0;
  line-height:1.5;
}

/* ===== 通用Section ===== */
.section{
  padding:var(--sp-7) 0;
}
.section-tint{
  background:var(--bg-soft);
}
.section-head{
  text-align:center;
  margin-bottom:var(--sp-5);
}
.section-head .label{
  display:inline-block;
  font-size:var(--t-xs);
  font-weight:700;
  letter-spacing:2.6px;
  text-transform:uppercase;
  color:var(--emerald);
  margin-bottom:var(--sp-2);
}
.section-head h2{
  font-size:var(--t-h2);
  font-weight:800;
  color:var(--ink);
  letter-spacing:-.025em;
  line-height:1.15;
  margin:0;
}
.section-head p{
  margin-top:12px;
  color:var(--muted);
  font-size:.95rem;
  max-width:600px;
  margin-left:auto;
  margin-right:auto;
}

/* ===== 首页产品网格 ===== */
.home .prod-grid{
  gap:16px;
}
.home .prod-card{
  border-radius:12px;
  transition:transform .2s,box-shadow .2s,border-color .2s;
}
.home .prod-card:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 28px rgba(15,23,42,.10);
  border-color:var(--emerald);
}

/* ===== 响应式 ===== */
@media (max-width:1024px){
  .trust-grid{
    grid-template-columns:repeat(2,1fr);
    gap:16px;
  }
  .banner-slide{
    aspect-ratio:16 / 9;
  }
}
@media (max-width:768px){
  .home .section,
  .front-page .section{
    padding:32px 0;
  }
  .home .section-head h2,
  .front-page .section-head h2{
    font-size:1.4rem;
  }
  .trust-grid{
    grid-template-columns:1fr;
    gap:12px;
  }
  .banner-arrow{
    width:40px;
    height:40px;
    font-size:1rem;
  }
  .banner-arrow.prev{left:12px;}
  .banner-arrow.next{right:12px;}
  .banner-dots{
    bottom:16px;
  }
}
