/* ============================================================
   Clash Verge下载 · download.css
   下载页专属样式:下载 Hero / 平台 tab 徽章 / 客户端卡网格 /
   系统要求面板 / 内核区 / FAQ 折叠
   颜色与圆角一律引用 base.css 设计令牌
   ============================================================ */

/* ---------- 下载页 Hero ---------- */
.dl-hero{
  position:relative;
  overflow:clip;
  padding-top:80px;
  padding-bottom:56px;
}
.dl-hero-inner{
  position:relative;
  z-index:1;
  max-width:860px;
}
.dl-hero h1{
  margin:22px 0 16px;
}
.dl-hero .lede{
  max-width:640px;
  font-size:17px;
  line-height:1.75;
  color:var(--text-muted);
}
.dl-hero .lede strong{
  color:var(--text);
  font-weight:600;
}
.dl-hero-chips{
  margin-top:30px;
}
.dl-hero .outline-a{
  right:-18vw;
  top:-16vh;
  width:50vw;
  height:64vh;
}
.dl-hero .outline-b{
  right:-2vw;
  top:38vh;
  width:34vw;
  height:38vh;
}

/* ---------- 平台 tab 区 ---------- */
.dl-download{
  padding-top:8px;
  padding-bottom:88px;
}
.dl-tabs{
  display:grid;
  gap:40px;
}

/* tab 内圆形徽章底:平台图标统一取景 */
.dl-tab-ico{
  width:30px;
  height:30px;
  flex-shrink:0;
  border-radius:50%;
  background:var(--bg-panel);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:var(--text-muted);
  transition:background .18s,color .18s;
}
.dl-tab-ico svg{
  width:16px;
  height:16px;
}
.tab:hover .dl-tab-ico{
  color:var(--accent);
}
.tab[aria-selected="true"] .dl-tab-ico{
  background:rgba(255,255,255,.2);
  color:var(--bg);
}

/* ---------- 平台面板 ---------- */
.dl-panel-intro{
  max-width:780px;
}
.dl-panel-intro h2{
  font-size:clamp(22px,2vw,28px);
  margin-bottom:12px;
}
.dl-panel-intro p{
  font-size:15.5px;
  line-height:1.8;
  color:var(--text-muted);
}
.dl-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
  margin-top:32px;
}

/* ---------- 客户端卡内部 ---------- */
.dl-app-name{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.dl-app-name img{
  width:48px;
  height:48px;
  flex-shrink:0;
}
.dl-app-name h3{
  font-size:19px;
  min-width:0;
}
.dl-card-sub{
  margin-top:6px;
}

/* 主下载按钮:卡内视觉最重元素,实色主色大按钮 */
.dl-card-actions .btn{
  flex:1 1 160px;
  min-height:52px;
}
.dl-card-actions .btn-ghost{
  flex:1 1 auto;
  min-height:46px;
}
.dl-card-actions .ver-slot{
  flex-basis:100%;
  text-align:center;
}

/* ---------- 系统要求面板 ---------- */
.dl-req{
  margin-top:44px;
  background:var(--bg-panel);
  border:1px solid var(--border);
  border-radius:var(--r-panel);
  padding:28px;
}
.dl-req-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:18px;
}
.dl-req-head h3{
  font-size:17px;
}
.dl-req .table-wrap{
  background:var(--bg);
}
.dl-req .data-table thead th{
  background:var(--bg-panel);
}

/* ---------- 内核区 ---------- */
.core-note{
  margin-top:20px;
}

/* ---------- 选型指南 ---------- */
.dl-guide{
  padding-top:0;
  padding-bottom:88px;
}

/* ---------- 下载 FAQ ---------- */
.dl-faq{
  padding-top:72px;
  padding-bottom:96px;
  border-top:1px solid var(--border);
}
.dl-faq-list{
  display:grid;
  gap:12px;
}
.dl-faq-item{
  border:1px solid var(--border);
  border-radius:var(--r-panel);
  background:var(--bg);
  overflow:hidden;
  min-width:0;
}
.dl-faq-item summary{
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:18px 22px;
  min-height:56px;
  font-size:15.5px;
  font-weight:600;
  cursor:pointer;
}
.dl-faq-item summary::-webkit-details-marker{
  display:none;
}
.dl-faq-item summary::after{
  content:"+";
  font-size:20px;
  line-height:1;
  color:var(--text-muted);
  flex-shrink:0;
  transition:transform .2s,color .2s;
}
.dl-faq-item[open] summary::after{
  transform:rotate(45deg);
  color:var(--accent);
}
.dl-faq-item summary:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:-2px;
}
.dl-faq-body{
  padding:0 22px 20px;
  font-size:14.5px;
  line-height:1.8;
  color:var(--text-muted);
}
.dl-faq-body p{
  margin:0 0 .8em;
}
.dl-faq-body p:last-child{
  margin-bottom:0;
}
.dl-faq-body a{
  color:var(--accent);
  font-weight:500;
}
.dl-faq-body a:hover{
  color:var(--accent-dark);
}

/* ---------- 响应式 ---------- */
@media (max-width:1000px){
  .dl-hero{
    padding-top:56px;
    padding-bottom:48px;
  }
  .dl-download{
    padding-top:8px;
    padding-bottom:64px;
  }
  .dl-grid{
    grid-template-columns:1fr;
  }
}
@media (max-width:640px){
  .dl-hero{
    padding-top:40px;
    padding-bottom:36px;
  }
  .dl-panel-intro p{
    font-size:14.5px;
  }
  .dl-req{
    padding:20px;
    margin-top:32px;
  }
  .dl-faq{
    padding-top:48px;
    padding-bottom:64px;
  }
  .dl-faq-item summary{
    padding:16px 18px;
    font-size:15px;
  }
  .dl-faq-body{
    padding:0 18px 18px;
  }
}