/* ===================================================================
   GameToday 游戏库单页官网样式表
   视觉：冷白偏蓝灰底 + 亮天蓝 + 橙黄点缀；榜单卡片 + 实心序号徽章
   =================================================================== */

:root{
  --paper:#F2F7FB;
  --panel:#E3EEF5;
  --white:#FFFFFF;
  --ink:#16242F;
  --brand:#2E86DE;
  --brand-deep:#1B5FA6;
  --accent:#FF9F2E;
  --muted:#5F7480;
  --line:#CFDFE8;
  --wrap:1100px;
  --pad:18px;
  --mono:ui-monospace,"SFMono-Regular",Consolas,"Liberation Mono",Menlo,monospace;
}

*,*::before,*::after{box-sizing:border-box}

html{-webkit-text-size-adjust:100%}

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:"Segoe UI","Microsoft YaHei","PingFang SC","Hiragino Sans GB",system-ui,sans-serif;
  font-size:16px;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
}

img{max-width:100%;height:auto;display:block}
a{color:inherit}
h1,h2,h3,p,figure,figcaption,ol,ul,dl,dd{margin:0}
ol,ul{padding:0;list-style:none}

:focus-visible{outline:3px solid var(--ink);outline-offset:3px}

.wrap{
  width:100%;
  max-width:var(--wrap);
  margin:0 auto;
  padding:0 var(--pad);
}

/* ---------- 按钮 ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 22px;
  font-size:16px;
  font-weight:800;
  line-height:1;
  text-decoration:none;
  border:2px solid var(--ink);
  border-radius:0;
  cursor:pointer;
}
.btn-ink{background:var(--ink);color:var(--paper)}
.btn-ink:hover{background:#2A3B47}
.btn-line{background:transparent;color:var(--ink)}
.btn-line:hover{background:var(--panel)}
.btn-s{padding:8px 13px;font-size:14px}
.btn-white{background:var(--white);color:var(--brand-deep);border-color:var(--white)}
.btn-white:hover{background:#EAF3FA}

/* ---------- 顶栏 ---------- */
.head{
  position:sticky;
  top:0;
  z-index:60;
  background:var(--paper);
  border-bottom:2px solid var(--ink);
}
.head-row{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:58px;
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:17px;
  font-weight:800;
  letter-spacing:-0.02em;
  text-decoration:none;
  flex:1 1 auto;
  min-width:0;
}
.brand img{width:30px;height:30;border-radius:7px}
.brand-tag{
  font-family:var(--mono);
  font-size:10px;
  font-weight:600;
  letter-spacing:0.06em;
  color:var(--white);
  background:var(--brand);
  padding:1px 5px;
}
.menu{display:none}
@media (max-width:639.98px){
  .menu{
    position:absolute;
    left:0;
    right:0;
    top:100%;
    flex-direction:column;
    gap:0;
    padding:2px var(--pad) 10px;
    background:var(--paper);
    border-bottom:2px solid var(--ink);
  }
  body.nav-open .menu{display:flex}
  .menu a{
    font-size:15px;
    font-weight:700;
    text-decoration:none;
    padding:12px 0;
    border-bottom:1px dashed var(--line);
  }
  .menu a:last-child{border-bottom:0}
}
.burger{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:38px;
  padding:0;
  border:2px solid var(--ink);
  background:transparent;
  color:var(--ink);
  cursor:pointer;
  flex:0 0 auto;
}

/* ---------- 首屏 ---------- */
.hero{padding:30px 0 34px}
.kicker{
  font-family:var(--mono);
  font-size:11px;
  letter-spacing:0.06em;
  color:var(--muted);
}
.kicker span{
  background:var(--brand);
  color:var(--white);
  padding:2px 7px;
  margin-right:8px;
  letter-spacing:0.08em;
}
h1{
  margin:14px 0 0;
  font-size:clamp(38px,9vw,62px);
  font-weight:800;
  line-height:1;
  letter-spacing:-0.03em;
}
.lead{
  margin-top:18px;
  font-size:16px;
  line-height:1.85;
  color:var(--muted);
  max-width:32em;
}
.hero-btns{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:22px;
}
.quick{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0;
  margin:26px 0 0;
  border-top:2px solid var(--ink);
}
.quick li{
  padding:10px 8px 12px;
  border-left:1px dashed var(--line);
}
.quick li:first-child{padding-left:0;border-left:0}
.quick b{display:block;font-size:15px;font-weight:800;line-height:1.3}
.quick span{display:block;margin-top:2px;font-size:11.5px;color:var(--muted)}

/* 截图卡片 */
.shot{
  margin-top:24px;
  background:var(--white);
  border:1px solid var(--line);
  padding:10px;
  max-width:320px;
}
.shot-bar{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 6px 10px;
  font-family:var(--mono);
  font-size:11px;
  letter-spacing:0.05em;
  color:var(--brand-deep);
}
.shot-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--brand);
}
.shot img{width:100%;border:1px solid var(--line)}

/* ---------- 区块 ---------- */
.sec{padding:34px 0}
.sec-tint{background:var(--panel)}
.sec-head{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
}
.sec-no{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  background:var(--brand);
  color:var(--white);
  font-family:var(--mono);
  font-size:13px;
  font-weight:700;
}
.sec-name{font-size:22px;font-weight:800;letter-spacing:-0.02em}
.sec-sub{
  margin-left:auto;
  font-family:var(--mono);
  font-size:11px;
  letter-spacing:0.05em;
  color:var(--muted);
}
.sec-lead{
  margin-top:14px;
  font-size:15px;
  line-height:1.8;
  color:var(--muted);
  max-width:44em;
}

/* ---------- 功能卡片 ---------- */
.grid{
  display:grid;
  gap:18px;
  margin-top:22px;
}
.card{
  background:var(--white);
  border:1px solid var(--line);
  padding:16px 16px 18px;
}
.card-top{
  display:flex;
  align-items:center;
  gap:10px;
}
.card-idx{
  font-family:var(--mono);
  font-size:12px;
  font-weight:700;
  color:var(--brand);
}
.chip{
  font-family:var(--mono);
  font-size:10px;
  font-weight:700;
  letter-spacing:0.05em;
  background:var(--panel);
  color:var(--brand-deep);
  padding:2px 7px;
}
.chip-accent{background:var(--accent);color:var(--ink)}
.card h3{margin:12px 0 6px;font-size:17px;font-weight:800;line-height:1.35}
.card p{font-size:14px;line-height:1.8;color:var(--muted)}

/* ---------- 三步 ---------- */
.flow{
  display:grid;
  gap:22px;
  margin-top:22px;
}
.flow li{padding-top:4px}
.f-no{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  background:var(--brand);
  color:var(--white);
  font-family:var(--mono);
  font-size:13px;
  font-weight:700;
}
.flow h3{margin:10px 0 0;font-size:17.5px;font-weight:800}
.flow p{margin-top:6px;font-size:14px;line-height:1.8;color:var(--muted)}

/* ---------- 规格 ---------- */
.spec{
  display:grid;
  gap:12px;
  margin-top:22px;
}
.spec div{
  background:var(--white);
  border:1px solid var(--line);
  padding:12px 14px 14px;
}
.spec dt{
  font-family:var(--mono);
  font-size:11px;
  letter-spacing:0.06em;
  color:var(--brand);
}
.spec dd{margin-top:5px;font-size:15.5px;font-weight:800;line-height:1.45}
.spec span{display:block;margin-top:3px;font-size:12.5px;color:var(--muted)}

/* ---------- 引文 ---------- */
.sec-quote{padding:30px 0 36px}
.quote{
  font-size:clamp(20px,4.8vw,27px);
  font-weight:800;
  line-height:1.5;
  letter-spacing:-0.02em;
  max-width:26em;
  text-wrap:balance;
}
.quote-src{
  margin-top:10px;
  font-family:var(--mono);
  font-size:11px;
  letter-spacing:0.05em;
  color:var(--muted);
}

/* ---------- 问答 ---------- */
.asks{margin-top:18px;border-top:2px solid var(--ink)}
.asks details{border-bottom:1px dashed var(--line)}
.asks details:last-child{border-bottom:2px solid var(--ink)}
.asks summary{
  position:relative;
  list-style:none;
  cursor:pointer;
  padding:14px 40px 14px 0;
  font-size:16px;
  font-weight:800;
  line-height:1.5;
}
.asks summary::-webkit-details-marker{display:none}
.asks summary::after{
  content:"+";
  position:absolute;
  right:0;
  top:11px;
  display:flex;
  align-items:center;
  justify-content:center;
  width:24px;
  height:24px;
  line-height:1;
  font-family:"Segoe UI","Microsoft YaHei",system-ui,sans-serif;
  font-size:17px;
  font-weight:700;
  color:var(--white);
  background:var(--brand);
  border:2px solid var(--ink);
  border-radius:50%;
}
.asks details[open] summary::after{content:"–";background:var(--ink);color:var(--accent)}
.asks p{
  padding:0 0 15px;
  font-size:14.5px;
  line-height:1.85;
  color:var(--muted);
  max-width:42em;
}

/* ---------- 下载 ---------- */
.cta{
  background:var(--brand);
  color:var(--white);
  padding:36px 0 40px;
}
.cta-in{display:grid;gap:22px}
.cta-idx{
  font-family:var(--mono);
  font-size:11px;
  letter-spacing:0.08em;
  color:#D8ECFB;
}
.cta h2{
  margin-top:12px;
  font-size:clamp(24px,5.6vw,31px);
  font-weight:800;
  line-height:1.25;
  letter-spacing:-0.02em;
}
.cta-in > div > p{
  margin-top:11px;
  font-size:14px;
  line-height:1.8;
  color:#CFE4F5;
  max-width:40em;
}
.cta-act{display:flex;flex-wrap:wrap;align-items:center;gap:14px}
.cta-meta{
  font-family:var(--mono);
  font-size:11px;
  letter-spacing:0.05em;
  color:#B9D6EC;
}

/* ---------- 页脚 ---------- */
.foot{
  background:var(--paper);
  border-top:1px dashed var(--line);
  padding:14px 0 20px;
}
.foot-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 12px;
  font-size:12px;
  color:var(--muted);
}
.foot-mark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:22px;
  height:22px;
  background:var(--brand);
  color:var(--white);
  font-family:var(--mono);
  font-size:11px;
  font-weight:700;
}
.foot-name{font-size:13px;font-weight:800;color:var(--ink)}
.foot .copy{margin-left:auto;font-family:var(--mono);font-size:11px}

/* ================= 640 以上 ================= */
@media (min-width:640px){
  :root{--pad:26px}
  .head-row{min-height:64px;gap:16px}
  .burger{display:none}
  .menu{
    display:flex;
    position:static;
    flex-direction:row;
    gap:24px;
    padding:0;
    background:transparent;
    border:0;
  }
  .menu a{
    font-size:14px;
    font-weight:700;
    text-decoration:none;
    padding:3px 0;
    border-bottom:2px solid transparent;
  }
  .menu a:hover{border-bottom-color:var(--brand)}
  .head-row .btn-s{margin-left:auto}

  .hero{padding:40px 0 40px}
  .lead{font-size:17px}
  .flow{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
  .spec{grid-template-columns:repeat(2,minmax(0,1fr))}
  .quick b{font-size:16px}
}

/* ================= 900 以上 ================= */
@media (min-width:900px){
  .hero-row{
    display:grid;
    grid-template-columns:minmax(0,1fr) 360px;
    align-items:start;
    gap:52px;
  }
  .shot{margin-top:6px;max-width:320px}

  .sec{padding:46px 0}
  .grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
  .spec{grid-template-columns:repeat(4,minmax(0,1fr))}
  .cta{padding:44px 0 48px}
  .cta-in{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:36px}
  .cta-act{flex-direction:column;align-items:flex-end;gap:10px}
  .asks p{max-width:38em}
  .foot-row{font-size:13px}
}

@media (prefers-reduced-motion:reduce){
  *{transition:none !important;animation:none !important}
}
