/* ==========================================================
   逗猫剧场 · 首页（下载入口） · 深色影院风 v1
   与 promo2.css 同一套视觉语言
   ========================================================== */

:root{
  --bg:#070a10;
  --ink:#eef2f9;
  --sub:#9aa7ba;
  --dim:#76839a;
  --stroke:rgba(255,255,255,.085);
  --card-a:rgba(255,255,255,.062);
  --card-b:rgba(255,255,255,.028);
  --brand-1:#7b5cff;
  --brand-2:#3d8bff;
  --ok:#4fd6a1;
}

*{margin:0;padding:0;box-sizing:border-box}

html{background:var(--bg)}

body{
  min-height:100vh;
  color:var(--ink);
  background:
    radial-gradient(90% 42% at 50% -4%, rgba(123,92,255,.32), transparent 62%),
    radial-gradient(70% 34% at 100% 4%, rgba(61,139,255,.16), transparent 60%),
    radial-gradient(60% 30% at 0% 34%, rgba(123,92,255,.09), transparent 62%),
    var(--bg);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei","Helvetica Neue",Helvetica,Arial,sans-serif;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

/* ---------------- 顶部导航 ---------------- */
.topbar{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(7,10,16,.74);
  border-bottom:1px solid rgba(255,255,255,.07);
  -webkit-backdrop-filter:blur(16px) saturate(1.3);
  backdrop-filter:blur(16px) saturate(1.3);
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  height:52px;
  max-width:560px;
  margin:0 auto;
  padding:0 16px;
}

.topbar-brand{
  display:flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
  color:#fff;
  font-size:14px;
  font-weight:700;
  letter-spacing:1px;
  white-space:nowrap;
}
.topbar-logo{
  display:block;
  width:26px;
  height:26px;
  border-radius:8px;
  box-shadow:0 0 0 1px rgba(255,255,255,.12), 0 4px 12px rgba(96,74,255,.4);
}

.topbar-links{
  display:flex;
  align-items:center;
  gap:4px;
}
.topbar-links a{
  padding:6px 10px;
  border-radius:8px;
  color:#9aa7ba;
  font-size:12.5px;
  font-weight:600;
  letter-spacing:.3px;
  text-decoration:none;
  white-space:nowrap;
  transition:color .16s ease, background .16s ease;
}
.topbar-links a:hover{color:#fff;background:rgba(255,255,255,.07)}

/* 锚点定位时避开吸顶导航 */
#top,#dl,#features,#faq{scroll-margin-top:64px}

.home{
  max-width:560px;
  margin:0 auto;
  padding:24px 16px 34px;
}

/* ---------------- 顶部品牌区 ---------------- */
.hero{
  text-align:center;
  padding:12px 0 30px;
}

.logo-wrap{
  display:inline-block;
  margin-bottom:18px;
  position:relative;
}
.logo{
  display:block;
  width:92px;
  height:92px;
  border-radius:24px;
  object-fit:cover;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.14),
    0 20px 48px rgba(96,74,255,.45),
    0 6px 16px rgba(0,0,0,.5);
}

.brand{
  font-size:27px;
  font-weight:800;
  letter-spacing:3px;
  color:#fff;
  text-shadow:0 2px 22px rgba(123,92,255,.5);
}

.tagline{
  margin-top:8px;
  font-size:13px;
  letter-spacing:.6px;
  color:var(--sub);
  font-weight:400;
}

/* 副标题下方的小字 */
.tagline-sub{
  margin-top:7px;
  font-size:11.5px;
  letter-spacing:1.4px;
  color:#6b7789;
  font-weight:400;
}

/* ---------------- 下载区 ---------------- */
.dl{
  margin-bottom:16px;
}

.dl-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin:0 4px 12px;
}
.dl-head h2{
  font-size:16px;
  font-weight:700;
  letter-spacing:.3px;
  color:#fff;
}
.dl-live{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:11px;
  letter-spacing:.3px;
  color:#71c9a3;
}
.dl-live i{
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--ok);
  box-shadow:0 0 9px rgba(79,214,161,.9);
  animation:pulse 1.9s ease-in-out infinite;
}

/* 一排三个下载入口：整张卡都可点，底部按钮只是视觉引导 */
.dl-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}

.dl-tile{
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:15px 8px 12px;
  background:linear-gradient(180deg,var(--card-a),var(--card-b));
  border:1px solid var(--stroke);
  border-radius:16px;
  box-shadow:0 14px 32px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.055);
  text-decoration:none;
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
  transition:transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.dl-tile:hover{
  transform:translateY(-3px);
  border-color:rgba(123,92,255,.45);
  box-shadow:0 20px 42px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.09);
}
.dl-tile:active{transform:translateY(-1px) scale(.98)}

.tile-icon{
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  margin-bottom:9px;
  border-radius:12px;
  background:#f4f7fb;
  box-shadow:0 6px 15px rgba(0,0,0,.34);
}
.tile-icon img{display:block;width:25px;height:25px;object-fit:contain}

.tile-name{
  font-size:13px;
  font-weight:700;
  line-height:18px;
  height:18px;
  letter-spacing:.2px;
  color:#fff;
  white-space:nowrap;
}

.tile-ver{
  margin-top:4px;
  font-size:10.5px;
  line-height:14px;
  height:14px;
  letter-spacing:.1px;
  color:var(--dim);
  white-space:nowrap;
}

.tile-cta{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:30px;
  margin-top:10px;
  border-radius:8px;
  background:linear-gradient(135deg,var(--brand-1),var(--brand-2));
  color:#fff;
  font-size:12px;
  font-weight:700;
  letter-spacing:.4px;
  box-shadow:0 6px 15px rgba(88,86,255,.30), inset 0 1px 0 rgba(255,255,255,.22);
  transition:filter .16s ease;
}
.dl-tile:hover .tile-cta{filter:brightness(1.12)}

/* ---------------- 使用说明 ---------------- */
.notes{
  margin-bottom:14px;
  padding:18px;
  background:linear-gradient(180deg,var(--card-a),var(--card-b));
  border:1px solid var(--stroke);
  border-radius:17px;
  box-shadow:0 14px 34px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.05);
}

.notes h2{
  display:flex;
  align-items:center;
  gap:9px;
  margin-bottom:12px;
  font-size:15px;
  font-weight:700;
  letter-spacing:.3px;
  color:#fff;
}
.notes h2:before{
  content:"";
  width:3px;
  height:15px;
  border-radius:99px;
  background:linear-gradient(180deg,var(--brand-1),var(--brand-2));
  box-shadow:0 0 10px rgba(123,92,255,.8);
}

.notes ul{list-style:none}
.notes li{
  position:relative;
  padding-left:15px;
  margin-bottom:8px;
  font-size:13px;
  line-height:1.75;
  color:var(--sub);
}
.notes li:last-child{margin-bottom:0}
.notes li:before{
  content:"";
  position:absolute;
  left:0;
  top:9px;
  width:5px;
  height:5px;
  border-radius:50%;
  background:rgba(123,92,255,.85);
  box-shadow:0 0 7px rgba(123,92,255,.7);
}
.notes b{color:#a9c6ff;font-weight:700}

/* ---------------- 区块标题（功能特色 / 常见问题通用） ---------------- */
.sec-title{
  display:flex;
  align-items:center;
  gap:9px;
  margin:0 4px 12px;
  font-size:16px;
  font-weight:700;
  letter-spacing:.3px;
  color:#fff;
}
.sec-title:before{
  content:"";
  width:3px;
  height:15px;
  border-radius:99px;
  background:linear-gradient(180deg,var(--brand-1),var(--brand-2));
  box-shadow:0 0 10px rgba(123,92,255,.8);
}

/* ---------------- 功能特色 ---------------- */
.features{margin-bottom:20px}

.feat-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
}

.feat{
  padding:15px 14px;
  background:linear-gradient(180deg,var(--card-a),var(--card-b));
  border:1px solid var(--stroke);
  border-radius:16px;
  box-shadow:0 12px 28px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.05);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
}

.feat-icon{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  margin-bottom:10px;
  border-radius:10px;
  background:linear-gradient(135deg,rgba(123,92,255,.9),rgba(61,139,255,.9));
  color:#fff;
  box-shadow:0 6px 16px rgba(88,86,255,.36);
}
.feat-icon svg{
  width:19px;
  height:19px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.feat h3{
  margin-bottom:5px;
  font-size:13.5px;
  font-weight:700;
  letter-spacing:.2px;
  color:#fff;
}

.feat p{
  font-size:11.5px;
  line-height:1.65;
  color:#8b98ac;
}

/* ---------------- 常见问题 ---------------- */
.faq{margin-bottom:18px}

.faq-list{
  padding:2px 16px;
  background:linear-gradient(180deg,var(--card-a),var(--card-b));
  border:1px solid var(--stroke);
  border-radius:17px;
  box-shadow:0 14px 34px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.05);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
}

.faq-list details{
  border-bottom:1px solid rgba(255,255,255,.07);
}
.faq-list details:last-child{border-bottom:0}

.faq-list summary{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  padding:14px 26px 14px 0;
  font-size:13.5px;
  font-weight:600;
  line-height:1.5;
  color:#e6ecf7;
  cursor:pointer;
  list-style:none;
  transition:color .16s ease;
}
.faq-list summary::-webkit-details-marker{display:none}
.faq-list summary::marker{content:""}
.faq-list summary:hover{color:#fff}

.faq-list summary::after{
  content:"";
  position:absolute;
  right:2px;
  top:50%;
  width:9px;
  height:9px;
  margin-top:-6px;
  border-right:1.6px solid #7c8aa0;
  border-bottom:1.6px solid #7c8aa0;
  transform:rotate(45deg);
  transition:transform .22s ease, border-color .16s ease;
}
.faq-list details[open] summary::after{
  transform:rotate(-135deg) translateY(-2px);
  border-color:var(--brand-2);
}
.faq-list details[open] summary{color:#fff}

.faq-list details p{
  margin:0;
  padding:0 8px 15px 0;
  font-size:12.5px;
  line-height:1.75;
  color:var(--sub);
  animation:fadeIn .24s ease-out both;
}

/* ---------------- 页脚 ---------------- */
.foot{
  max-width:30em;
  margin:0 auto;
  padding:16px 6px 0;
  font-size:11px;
  line-height:1.9;
  color:#5f6b7d;
  text-align:center;
  letter-spacing:.2px;
  text-wrap:balance;
}
.foot p{margin:0}

/* ---------------- 宽屏：三列更宽松 ---------------- */
@media(min-width:520px){
  .dl-grid{gap:12px}
  .dl-tile{padding:17px 10px 14px;border-radius:17px}
  .tile-icon{width:48px;height:48px;border-radius:13px}
  .tile-icon img{width:27px;height:27px}
  .tile-name{font-size:14px}
  .tile-ver{font-size:11px}
  .tile-cta{height:32px;font-size:12.5px}
}

/* ---------------- 响应式 ---------------- */
@media(max-width:400px){
  .home{padding:20px 12px 28px}
  .topbar-inner{padding:0 12px;height:50px}
  .topbar-links a{padding:6px 7px;font-size:12px}
  .logo{width:82px;height:82px;border-radius:22px}
  .brand{font-size:24px;letter-spacing:2.4px}
  .domain-chip{gap:7px;padding:8px 13px}
  .chip-value{font-size:13px}
  .dl-grid{gap:8px}
  .dl-tile{padding:13px 5px 10px;border-radius:14px}
  .tile-icon{width:40px;height:40px;border-radius:11px}
  .tile-icon img{width:23px;height:23px}
  .tile-name{font-size:12.5px}
  .tile-ver{font-size:10px}
  .tile-cta{height:28px;font-size:11.5px;}
}

/* ---------------- 动画 ---------------- */
@keyframes pulse{
  0%,100%{opacity:1;transform:scale(1)}
  50%{opacity:.45;transform:scale(.82)}
}

@keyframes fadeIn{
  from{opacity:0;transform:translateY(14px)}
  to{opacity:1;transform:translateY(0)}
}
.hero,.dl,.notes,.foot{animation:fadeIn .55s ease-out both}
.hero{animation-delay:.05s}
.dl{animation-delay:.15s}
.notes{animation-delay:.25s}
.foot{animation-delay:.33s}

:focus-visible{outline:2px solid rgba(123,92,255,.65);outline-offset:3px}

@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
  }
}
