@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

:root{
  /* 取自 Logo：白 #FDFDFD / 浅蓝 #91D2FC / 黑 #0A0A0A */
  --bg:#ffffff;
  --tint:#F4FAFE;          /* 浅蓝底纹，用于交替 section */
  --line:#E3EEF7;          /* 带蓝调的分割线 */
  --line2:#C9E2F4;
  --blue:#91D2FC;          /* Logo 蓝，主辅色 */
  --blue-d:#1A72B0;        /* 深一档，专用于文字：白底 5.15:1 / 蒙版底 4.64:1，均达 WCAG AA */
  --blue-soft:#EAF5FE;
  --ink:#0A0A0A;
  --txt:#16202B;
  --mut:#63758A;
  --max:1160px;
  --nav-h:76px;
  --f-head:'Poppins',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --f-body:'Open Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background:var(--bg); color:var(--txt); line-height:1.75;
  font-family:var(--f-body); font-size:16px; letter-spacing:.1px;
  -webkit-font-smoothing:antialiased; overflow-x:hidden;
}
a{color:inherit;text-decoration:none}
:focus-visible{outline:2px solid var(--blue-d);outline-offset:3px;border-radius:4px}
.links a,.foot a{padding:4px 2px}
.burger{min-width:44px;min-height:44px}
img{max-width:100%}
.wrap{max-width:var(--max);margin:0 auto;padding:0 24px}
.grad{color:var(--blue-d)}

/* ---------- 顶部导航（白底） ---------- */
header{position:fixed;top:0;left:0;right:0;z-index:50;background:#fff;
  border-bottom:1px solid var(--line);will-change:auto}
body{padding-top:var(--nav-h)}
nav{display:flex;align-items:center;justify-content:space-between;height:var(--nav-h)}
/* 固定导航后，锚点跳转要留出导航高度 */
section[id],div[id]{scroll-margin-top:calc(var(--nav-h) + 12px)}
.logo{font-family:var(--f-head);display:flex;align-items:center;gap:11px;font-weight:800;letter-spacing:.3px;color:var(--ink)}
.logo img{height:40px;width:40px;object-fit:contain;flex:none;display:block}
.logo span small{display:block;font-size:9.5px;font-weight:500;color:var(--mut);letter-spacing:2.6px}
.links{display:flex;gap:30px;font-size:14.5px;color:var(--mut)}
.burger{display:none;font-size:22px;color:var(--ink);background:none;border:0;cursor:pointer}

/* 按钮 */
.btn{font-family:var(--f-head);cursor:pointer;display:inline-block;padding:12px 26px;border-radius:6px;font-size:14px;font-weight:600;
  background:var(--ink);color:#fff;border:1px solid var(--ink)}
.btn.ghost{background:#fff;color:var(--ink);border-color:var(--line2)}

/* ---------- Hero + 游戏 icon 拼贴墙 ---------- */
.hero{position:relative;padding:96px 0 104px;border-bottom:1px solid var(--line);
  background:linear-gradient(180deg,#fff 0%,var(--tint) 100%);overflow:hidden;text-align:center;
  display:grid;align-items:center;min-height:clamp(560px,78vh,720px)}
/* icon 墙：由 games.js 用游戏 icon 铺满，斜切 + 浮动动画 */
.hero-wall{position:absolute;inset:-9% -7%;z-index:0;pointer-events:none;
  display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:20px;
  transform:rotate(-4deg) scale(1.06);opacity:.42}
.hero-wall img{width:100%;aspect-ratio:1;object-fit:cover;display:block;border-radius:22%;
  box-shadow:0 8px 22px rgba(26,114,176,.16);
  animation:floaty 7s ease-in-out infinite}
@keyframes floaty{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}
/* 蒙版：中央文字区叠白光，保证 4.5:1 对比度 */
.hero:after{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:
    radial-gradient(ellipse 46% 58% at 50% 47%,rgba(255,255,255,.95) 0%,rgba(255,255,255,.66) 52%,rgba(255,255,255,0) 80%),
    linear-gradient(180deg,rgba(255,255,255,.35) 0%,rgba(255,255,255,.18) 40%,rgba(244,250,254,.75) 100%)}
.hero .wrap{position:relative;z-index:1}

.tag{display:inline-flex;align-items:center;gap:9px;padding:6px 15px;border:1px solid var(--line2);
  border-radius:999px;font-size:12.5px;color:var(--blue-d);background:#ffffffcc;margin-bottom:26px}
.tag i{width:6px;height:6px;border-radius:50%;background:var(--blue-d);display:inline-block}
h1{font-family:var(--f-head);font-size:clamp(32px,5vw,56px);line-height:1.22;font-weight:800;letter-spacing:-1.2px;color:var(--ink)}
h1 .grad{color:var(--blue-d)}
.hero p.lead{margin:26px auto 38px;max-width:600px;font-size:16.5px;color:#3B4D61}
.cta{display:flex;gap:14px;flex-wrap:wrap}
.hero .cta{justify-content:center}

/* 数据条 */
.stats{display:grid;grid-template-columns:repeat(4,1fr);margin-top:78px;
  border:1px solid var(--line);border-radius:10px;background:#ffffffd9;overflow:hidden}
.stat{padding:26px 24px;border-right:1px solid var(--line);text-align:center}
.stat:last-child{border-right:0}
.stat b{font-family:var(--f-head);display:block;font-size:32px;font-weight:800;letter-spacing:-1px;color:var(--ink);line-height:1.2}
.stat b.grad{color:var(--blue-d)}
.stat small{color:var(--mut);font-size:13px}

/* ---------- 通用 section ---------- */
section{padding:104px 0}
section:nth-of-type(even){background:var(--tint)}
#services{background:#fff}
.eyebrow{font-family:var(--f-head);font-size:12px;letter-spacing:3.4px;text-transform:uppercase;color:var(--blue-d);font-weight:700}
h2{font-family:var(--f-head);font-size:clamp(26px,3.4vw,38px);font-weight:800;margin:14px 0 16px;letter-spacing:-.6px;color:var(--ink)}
.sub{color:var(--mut);max-width:660px}
.head{text-align:center;margin-bottom:8px}
.head .sub{margin-left:auto;margin-right:auto}
.grid{display:grid;gap:16px;margin-top:48px}
.g3{grid-template-columns:repeat(3,1fr)}
.g4{grid-template-columns:repeat(4,1fr)}
.g2{grid-template-columns:1.05fr .95fr;gap:60px;align-items:center}
/* 卡片：文字左上，图标压在右下角 */
.card{position:relative;overflow:hidden;border-radius:16px;
  background:linear-gradient(160deg,#F2F9FE 0%,var(--blue-soft) 100%);
  border:1px solid #DDEDFA;
  padding:24px 24px 26px;min-height:188px;
  display:flex;flex-direction:column;isolation:isolate}
.card h3{font-family:var(--f-head);font-size:17.5px;font-weight:600;margin-bottom:9px;color:var(--ink);
  position:relative;z-index:1}
.card p{color:#4E617A;font-size:14.5px;position:relative;z-index:1;max-width:84%}
/* 图标：大尺寸压在右下角，半透明作水印，不抢正文 */
.card .ico{position:absolute;right:-14px;bottom:-16px;width:118px;height:118px;z-index:0;
  opacity:.3;pointer-events:none}
.card .ico svg{width:100%;height:100%;display:block}
.card .ico img{width:100%;height:100%;object-fit:contain;display:block}

/* ---------- 游戏 icon 网格 ---------- */
.games-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));
  gap:28px 22px;margin-top:48px}
.gtile{display:block;text-align:center;color:inherit}
.gtile .ic{position:relative;width:100%;aspect-ratio:1;border-radius:24%;overflow:hidden;
  background:var(--blue-soft);border:1px solid var(--line);
  box-shadow:0 4px 14px rgba(22,32,43,.07);
  transition:transform .25s ease,box-shadow .25s ease}
/* 无图标/图标加载失败时的首字母占位（压在 img 下面） */
.gtile .init{position:absolute;inset:0;display:grid;place-items:center;
  font-family:var(--f-head);font-size:34px;font-weight:700;color:var(--blue-d)}
.gtile .ic img{position:relative;width:100%;height:100%;object-fit:cover;display:block}
.gtile .nm{display:none;margin-top:10px;font-size:12.5px;line-height:1.4;color:var(--txt)}
/* 桌面 hover 浮层：名称 + 分类 + 商店链接 */
.gtile .ov{position:absolute;inset:0;z-index:1;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:7px;padding:10px;text-align:center;
  opacity:0;transition:opacity .25s ease;color:#fff;
  background:linear-gradient(180deg,rgba(10,10,10,.30) 0%,rgba(10,10,10,.74) 100%)}
.gtile .ov b{font-family:var(--f-head);font-size:13.5px;font-weight:600;line-height:1.35}
.gtile .ov .pill{margin-top:0;font-size:10px;padding:3px 10px;color:#fff;
  background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.4)}
.gtile .ov .go{font-size:11.5px;font-weight:600;border-bottom:1px solid rgba(255,255,255,.55);padding-bottom:1px}
@media(hover:hover){
  .gtile:hover .ic{transform:translateY(-5px);box-shadow:0 16px 32px rgba(26,114,176,.22)}
  .gtile:hover .ov{opacity:1}
}
/* 触屏无 hover：名称常驻在 icon 下方 */
@media(hover:none){
  .gtile .nm{display:block}
}
.pill{display:inline-block;margin-top:14px;font-size:11.5px;color:var(--blue-d);
  background:var(--blue-soft);border:1px solid var(--line);padding:4px 12px;border-radius:999px}

/* ---------- 列表面板 ---------- */
.why li{list-style:none;display:flex;gap:16px;padding:18px 0;border-bottom:1px solid var(--line)}
.why li:last-child{border:0;padding-bottom:0}
.why .n{flex:none;width:30px;height:30px;background:var(--blue);color:var(--ink);display:grid;
  place-items:center;font-size:12px;font-weight:800;border-radius:8px}
.why h4{font-family:var(--f-head);font-size:15.5px;color:var(--ink)}
.why p{color:var(--mut);font-size:14px}
.panel{background:#fff;border:1px solid var(--line);border-radius:14px;padding:36px}

/* ---------- 联系（黑底，呼应 Logo 底色） ---------- */
.contact{background:var(--ink);color:#fff;padding:66px 44px;text-align:center;border-radius:16px}
.contact .eyebrow{font-family:var(--f-head);color:var(--blue)}
.contact h2{font-family:var(--f-head);color:#fff;margin-bottom:14px}
.contact .sub{color:#9AA7B4;margin:0 auto}
.contact .grad{color:var(--blue)}
.contact .btn{background:var(--blue);color:var(--ink);border-color:var(--blue)}
.mail{font-family:var(--f-head);display:inline-block;margin-top:28px;font-size:22px;font-weight:700;color:var(--blue);
  border-bottom:1px solid #33414F;padding-bottom:4px}
.meta{display:flex;gap:38px;justify-content:center;flex-wrap:wrap;margin-top:30px;color:#9AA7B4;font-size:14px}

/* ---------- 页脚 ---------- */
footer{border-top:1px solid var(--line);padding:40px 0;color:var(--mut);font-size:13.5px;background:#fff}
.foot{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;align-items:center}
.foot nav{height:auto;gap:22px;display:flex}

/* ---------- 法务页 ---------- */
.legal{padding:56px 0 96px;max-width:800px}
.legal h1{font-family:var(--f-head);font-size:34px;margin-bottom:8px}
.legal .date{color:var(--mut);font-size:13.5px;margin-bottom:38px;padding-bottom:24px;border-bottom:1px solid var(--line)}
.legal h2{font-family:var(--f-head);font-size:20px;margin:36px 0 10px;color:var(--ink)}
.legal p,.legal li{color:#3B4A5A;font-size:15.5px;line-height:1.78}
.legal ul{padding-left:20px;margin:10px 0}
.legal .grad{color:var(--blue-d);text-decoration:underline}

@media(max-width:900px){
  .g3,.g4{grid-template-columns:repeat(2,1fr)}
  .g2{grid-template-columns:1fr;gap:36px}
  .stats{grid-template-columns:repeat(2,1fr)}
  .stat:nth-child(2){border-right:0}
  .stat:nth-child(1),.stat:nth-child(2){border-bottom:1px solid var(--line)}
}
@media(max-width:640px){
  @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

:root{--nav-h:64px}
  .links{display:none}
  .links.open{display:flex;position:fixed;top:var(--nav-h);left:0;right:0;background:#fff;
    flex-direction:column;padding:18px 24px;gap:16px;border-bottom:1px solid var(--line)}
  .burger{display:block}
  nav .btn{display:none}
  .g3,.g4{grid-template-columns:1fr}
  section{padding:68px 0}
  .games-grid{grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:18px 12px}
  .hero-wall{grid-template-columns:repeat(auto-fill,minmax(60px,1fr));gap:12px;inset:-6% -10%}
  .contact{padding:44px 22px}
  .stats{grid-template-columns:1fr}
  .stat{border-right:0;border-bottom:1px solid var(--line)}
  .stat:last-child{border-bottom:0}
}
