:root {
  --bg: #030712;
  --bg-soft: #050b18;
  --bg-softer: #050817;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.2);
  --accent-strong: rgba(56, 189, 248, 0.8);
  --text-main: #e5f4ff;
  --text-soft: #9ca3af;
  --border-soft: rgba(148, 163, 184, 0.35);
  --card-bg: rgba(15, 23, 42, 0.88);
  --danger: #fb7185;
  --good: #4ade80;
}

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

html,body {
  margin: 0;
  padding: 0;
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",sans-serif;
  background: radial-gradient(circle at top,#020617 0,#020617 22%,#000 60%) fixed;
  color: var(--text-main);
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 粒子背景层 */

#bg-particles {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at 10% 0,#0f172a 0,transparent 45%),
              radial-gradient(circle at 90% 0,#0b1120 0,transparent 45%),
              radial-gradient(circle at 50% 110%,#020617 0,#000 60%);
}

#bg-particles canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: .4;
}

/* 顶部水波光带 */

.aura {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  mix-blend-mode: screen;
  opacity: .7;
  background: radial-gradient(circle at 10% 0,rgba(56,189,248,.16),transparent 55%),
              radial-gradient(circle at 90% 10%,rgba(14,165,233,.28),transparent 60%),
              radial-gradient(circle at 50% 120%,rgba(56,189,248,.26),transparent 65%);
  animation: aura-drift 18s ease-in-out infinite alternate;
}

@keyframes aura-drift{
  0%{transform:translate3d(0,0,0) scale(1);filter:blur(0);}
  50%{transform:translate3d(0,-16px,0) scale(1.03);filter:blur(1px);}
  100%{transform:translate3d(0,-32px,0) scale(1.06);filter:blur(2px);}
}

/* 布局 */

.page-shell {
  max-width: 1120px;
  padding: 1.5rem 1.25rem 3.5rem;
  margin: 0 auto;
}

@media (min-width:1024px){
  .page-shell { padding-top: 2rem; }
}

/* 顶部导航 */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom,
              rgba(2,6,23,.9),
              rgba(2,6,23,.6),
              transparent);
  border-bottom: 1px solid rgba(15,23,42,.9);
}

.nav-bar {
  max-width: 1120px;
  padding: .55rem 1.25rem .75rem;
  margin: 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
}

.nav-left {
  display:flex;
  align-items:center;
  gap:.75rem;
}

.logo-badge {
  width:32px;
  height:32px;
  border-radius:999px;
  background: radial-gradient(circle at 30% 20%,#e5f4ff,#38bdf8 40%,#020617 100%);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 0 0 1px rgba(56,189,248,.4),
             0 6px 16px rgba(15,23,42,.88);
  font-size:.9rem;
  font-weight:700;
  letter-spacing:.06em;
  color:#020617;
}

.brand-block{display:flex;flex-direction:column;gap:.05rem;}

.brand-name{
  font-size:.9rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:#e5f4ff;
}

.brand-sub{font-size:.7rem;color:var(--text-soft);}

.nav-links{
  display:flex;
  align-items:center;
  gap:.65rem;
  font-size:.8rem;
}

.nav-links a{
  position:relative;
  text-decoration:none;
  color:var(--text-soft);
  padding:.25rem .4rem;
  border-radius:999px;
  transition:color .18s ease,background .18s ease,transform .18s ease;
}

.nav-links a::after{
  content:"";
  position:absolute;
  inset:auto auto .1rem .4rem;
  height:1px;
  width:0;
  border-radius:999px;
  background:linear-gradient(to right,#38bdf8,transparent);
  transition:width .18s ease;
  opacity:.9;
}

.nav-links a:hover{
  color:#e5f4ff;
  background:rgba(15,23,42,.9);
  transform:translateY(-1px);
}

.nav-links a:hover::after{width:1.6rem;}

.nav-tag{
  font-size:.65rem;
  padding:.15rem .5rem;
  border-radius:999px;
  border:1px solid rgba(56,189,248,.6);
  background:radial-gradient(circle at 0 0,rgba(56,189,248,.3),transparent);
  color:#e5f4ff;
  text-transform:uppercase;
  letter-spacing:.15em;
}

@media(max-width:720px){
  .nav-links{display:none;}
  .nav-tag{margin-left:auto;}
}

/* Hero */

.hero{
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);
  gap:2.25rem;
  margin-top:1.6rem;
  align-items:center;
}

@media(max-width:900px){
  .hero{
    grid-template-columns:minmax(0,1fr);
    margin-top:1.2rem;
  }
}

.hero-main{position:relative;}

.pill{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  padding:.2rem .6rem;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.55);
  background:radial-gradient(circle at 0 0,rgba(56,189,248,.32),transparent 55%),
             radial-gradient(circle at 120% 30%,rgba(14,165,233,.16),transparent 55%);
  font-size:.7rem;
  color:var(--text-soft);
  margin-bottom:.8rem;
  backdrop-filter:blur(8px);
}

.pill-dot{
  width:8px;height:8px;border-radius:999px;
  background:var(--accent);
  box-shadow:0 0 14px rgba(56,189,248,.9);
}

.pill-label{font-weight:500;color:#e5f4ff;}

.pill-tag{
  padding:.06rem .4rem;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.7);
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:.65rem;
}

.hero-title{
  font-size:clamp(2.2rem,3.1vw + 1.6rem,3.2rem);
  line-height:1.05;
  letter-spacing:.04em;
  text-transform:uppercase;
  margin:0 0 .35rem;
  background:linear-gradient(to bottom right,
              #e0f2fe 0,
              #bae6fd 40%,
              #7dd3fc 60%,
              #38bdf8 80%,
              #0ea5e9 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  text-shadow:0 0 60px rgba(56,189,248,.25);
}

.hero-sub{
  font-size:.95rem;
  color:var(--text-soft);
  max-width:32rem;
  margin-bottom:1.2rem;
}

.hero-sub strong{color:#e5f4ff;font-weight:500;}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:.6rem;
  margin-bottom:.85rem;
}

.btn{
  border-radius:999px;
  padding:.55rem 1.2rem;
  font-size:.85rem;
  border:1px solid transparent;
  cursor:pointer;
  background:transparent;
  color:var(--text-main);
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  transition:background .18s ease,color .18s ease,transform .18s ease,
             box-shadow .18s ease,border-color .18s ease;
}

.btn-primary{
  border-color:rgba(56,189,248,.9);
  background:radial-gradient(circle at 0 0,rgba(56,189,248,.6),#0f172a);
  box-shadow:0 0 0 1px rgba(56,189,248,.5),
             0 14px 30px rgba(15,23,42,.9);
}

.btn-primary span.icon{font-size:1rem;}

.btn-primary:hover{
  transform:translateY(-1px) translateZ(0);
  box-shadow:0 16px 40px rgba(15,23,42,1);
  background:radial-gradient(circle at 10% 0,rgba(56,189,248,.85),#020617);
}

.btn-ghost{
  border-color:rgba(148,163,184,.7);
  background:rgba(15,23,42,.85);
}

.btn-ghost:hover{
  transform:translateY(-1px);
  background:rgba(15,23,42,1);
  border-color:rgba(148,163,184,1);
}

.hero-meta{
  display:flex;
  flex-wrap:wrap;
  gap:1.2rem;
  font-size:.75rem;
  color:var(--text-soft);
  margin-top:.5rem;
}

.hero-meta-item span{display:block;}

.hero-meta-label{
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:.68rem;
  margin-bottom:.1rem;
}

.hero-meta-value{color:#e5f4ff;font-size:.82rem;}

/* Hero 右侧 */

.hero-visual{position:relative;min-height:220px;}

.water-card{
  position:relative;
  border-radius:1.35rem;
  border:1px solid rgba(148,163,184,.4);
  background:radial-gradient(circle at 0 0,rgba(56,189,248,.16),transparent 60%),
             radial-gradient(circle at 100% 0,rgba(14,165,233,.22),transparent 60%),
             radial-gradient(circle at 50% 130%,#020617,#000 65%);
  box-shadow:0 20px 45px rgba(15,23,42,.95);
  padding:.9rem;
  overflow:hidden;
  height:100%;
  min-height:230px;
  isolation:isolate;
}

.water-inner{
  position:relative;
  border-radius:1.05rem;
  overflow:hidden;
  border:1px solid rgba(15,23,42,.9);
  height:100%;
  background:radial-gradient(circle at 15% 0,#1e293b 0,#020617 45%),
             radial-gradient(circle at 80% 0,#0b1120 0,#000 55%);
}

.water-layer,
.water-layer-2{
  position:absolute;
  inset:0;
  background-repeat:no-repeat;
  mix-blend-mode:screen;
  opacity:.7;
  filter:blur(.5px);
  pointer-events:none;
}

.water-layer{
  background-image:radial-gradient(circle at 10% 0,rgba(56,189,248,.5) 0,transparent 60%),
                   radial-gradient(circle at 90% 0,rgba(14,165,233,.5) 0,transparent 60%),
                   radial-gradient(circle at 50% 120%,rgba(56,189,248,.45) 0,transparent 60%);
  animation:water-drift 7s ease-in-out infinite alternate;
}

.water-layer-2{
  background-image:radial-gradient(circle at 30% 20%,rgba(248,250,252,.4) 0,transparent 60%),
                   radial-gradient(circle at 70% 40%,rgba(59,130,246,.5) 0,transparent 60%);
  animation:water-drift-2 9s ease-in-out infinite alternate;
}

@keyframes water-drift{
  0%{transform:translate3d(0,0,0) scale(1.04);}
  50%{transform:translate3d(-8px,5px,0) scale(1.05);}
  100%{transform:translate3d(4px,-4px,0) scale(1.03);}
}

@keyframes water-drift-2{
  0%{transform:translate3d(0,0,0) scale(1.03);}
  50%{transform:translate3d(6px,4px,0) scale(1.05);}
  100%{transform:translate3d(-6px,-3px,0) scale(1.02);}
}

.water-status{
  position:absolute;
  inset:auto 0 0;
  padding:.75rem .9rem;
  display:flex;
  justify-content:space-between;
  gap:.8rem;
  align-items:center;
  background:linear-gradient(to top,
              rgba(15,23,42,.96),
              rgba(15,23,42,.7),
              transparent);
  border-top:1px solid rgba(15,23,42,.9);
  backdrop-filter:blur(12px);
}

.water-status-group{
  font-size:.72rem;
  color:var(--text-soft);
}

.water-status-title{
  text-transform:uppercase;
  letter-spacing:.16em;
  font-size:.65rem;
  margin-bottom:.15rem;
}

.water-status-value{
  color:#e5f4ff;
  font-size:.8rem;
}

.water-tag-ok{
  padding:.1rem .4rem;
  border-radius:999px;
  background:rgba(22,163,74,.5);
  color:#bbf7d0;
  border:1px solid rgba(22,163,74,.9);
  font-size:.68rem;
  text-transform:uppercase;
  letter-spacing:.14em;
}

.water-pill{
  padding:.18rem .5rem;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.7);
  font-size:.68rem;
  color:var(--text-soft);
  display:inline-flex;
  align-items:center;
  gap:.3rem;
}

.water-pill-dot{
  width:7px;height:7px;border-radius:999px;
  background:radial-gradient(circle,#f97316,#ea580c);
  box-shadow:0 0 12px rgba(249,115,22,.8);
}

.water-mini-caption{
  position:absolute;
  top:.65rem;
  left:.9rem;
  padding:.12rem .4rem;
  border-radius:999px;
  background:rgba(15,23,42,.9);
  border:1px solid rgba(148,163,184,.8);
  font-size:.7rem;
  text-transform:uppercase;
  letter-spacing:.15em;
  color:var(--text-soft);
}

.water-mini-badge{
  position:absolute;
  top:.65rem;
  right:.9rem;
  padding:.12rem .5rem;
  border-radius:999px;
  background:rgba(15,23,42,.85);
  border:1px solid rgba(56,189,248,.7);
  font-size:.7rem;
  display:inline-flex;
  align-items:center;
  gap:.3rem;
  color:#e5f4ff;
}

.water-mini-dot{
  width:7px;height:7px;border-radius:999px;
  background:radial-gradient(circle,#22c55e,#16a34a);
  box-shadow:0 0 9px rgba(34,197,94,.9);
}

.water-center-label{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
  font-size:.9rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:rgba(226,232,240,.7);
  text-shadow:0 0 30px rgba(15,23,42,1);
}

/* 通用 sections */

section{margin-top:2.8rem;}

.section-label{
  font-size:.7rem;
  text-transform:uppercase;
  letter-spacing:.16em;
  color:var(--text-soft);
  margin-bottom:.5rem;
}

.section-title-row{
  display:flex;
  justify-content:space-between;
  gap:1rem;
  align-items:flex-end;
  margin-bottom:1.1rem;
}

.section-title{
  font-size:1.15rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#e5f4ff;
}

.section-sub{
  font-size:.8rem;
  color:var(--text-soft);
  max-width:26rem;
}

/* 游戏卡片 */

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:1.1rem;
}

.card{
  border-radius:1rem;
  border:1px solid var(--border-soft);
  background:radial-gradient(circle at 0 0,rgba(15,23,42,.95),#020617);
  padding:.9rem .95rem .95rem;
  box-shadow:0 14px 30px rgba(15,23,42,.95);
  position:relative;
  overflow:hidden;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease,background .2s ease;
}

.card::before{
  content:"";
  position:absolute;
  inset:-20%;
  background:radial-gradient(circle at 0 0,rgba(56,189,248,.12),transparent 55%),
             radial-gradient(circle at 100% 0,rgba(14,165,233,.18),transparent 55%);
  opacity:0;
  pointer-events:none;
  transition:opacity .25s ease,transform .25s ease;
  mix-blend-mode:screen;
}

.card:hover{
  transform:translateY(-2px) translateZ(0);
  border-color:rgba(94,234,212,.9);
  box-shadow:0 20px 46px rgba(15,23,42,1);
  background:radial-gradient(circle at 0 0,rgba(15,23,42,.95),#000);
}

.card:hover::before{
  opacity:.9;
  transform:translate3d(0,-6px,0);
}

.card-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.8rem;
  margin-bottom:.6rem;
}

.card-title-block{display:flex;flex-direction:column;gap:.1rem;}

.card-title{
  font-size:.95rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#e5f4ff;
}

.card-sub{font-size:.76rem;color:var(--text-soft);}

.chip{
  font-size:.65rem;
  padding:.16rem .55rem;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.8);
  color:var(--text-soft);
  text-transform:uppercase;
  letter-spacing:.14em;
}

.chip-live{
  border-color:rgba(74,222,128,.9);
  color:#bbf7d0;
  background:rgba(22,163,74,.3);
}

.card-body{
  font-size:.78rem;
  color:var(--text-soft);
  margin-bottom:.7rem;
}

.card-meta-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.6rem;
  font-size:.7rem;
  color:var(--text-soft);
}

.pill-small{
  padding:.16rem .45rem;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.8);
  display:inline-flex;
  align-items:center;
  gap:.3rem;
}

.pill-small-dot{
  width:6px;height:6px;border-radius:999px;
  background:radial-gradient(circle,#f97316,#ea580c);
}

.card-link{
  color:#e5f4ff;
  text-decoration:none;
  border-bottom:1px dashed rgba(148,163,184,.7);
  padding-bottom:.05rem;
}

.card-link:hover{border-bottom-style:solid;}

/* Studio / Contact */

.stack{
  display:flex;
  flex-direction:column;
  gap:.8rem;
  font-size:.8rem;
  color:var(--text-soft);
}

.stack strong{color:#e5f4ff;}

.contact-grid{
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);
  gap:1rem;
  margin-top:.8rem;
}

@media(max-width:900px){
  .contact-grid{grid-template-columns:minmax(0,1fr);}
}

.contact-card{
  border-radius:1rem;
  border:1px solid var(--border-soft);
  background:radial-gradient(circle at 0 0,rgba(15,23,42,.95),#020617);
  padding:.9rem;
  font-size:.78rem;
  color:var(--text-soft);
}

.contact-card strong{color:#e5f4ff;}

.contact-card a{
  color:#e5f4ff;
  text-decoration:none;
  border-bottom:1px dashed rgba(148,163,184,.7);
}

.contact-card a:hover{border-bottom-style:solid;}

/* Mini Game */

.game-shell{
  border-radius:1.1rem;
  border:1px solid rgba(56,189,248,.5);
  background:radial-gradient(circle at 0 0,rgba(56,189,248,.24),#020617);
  box-shadow:0 18px 40px rgba(15,23,42,.95);
  padding:.9rem;
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(0,0.9fr);
  gap:.8rem;
}

@media(max-width:980px){
  .game-shell{grid-template-columns:minmax(0,1fr);}
}

.game-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.6rem;
  margin-bottom:.5rem;
}

.game-title{
  font-size:.9rem;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.game-sub{
  font-size:.75rem;
  color:var(--text-soft);
  margin-bottom:.5rem;
}

.game-meta-row{
  display:flex;
  flex-wrap:wrap;
  gap:.4rem;
  font-size:.7rem;
  color:var(--text-soft);
  margin-bottom:.4rem;
}

.tag-mini{
  padding:.12rem .5rem;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.8);
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:.65rem;
}

.tag-mini.blue{
  border-color:rgba(56,189,248,.9);
  color:#e0f2fe;
  background:rgba(15,23,42,.9);
}

.game-panel{
  border-radius:.95rem;
  overflow:hidden;
  background:radial-gradient(circle at 10% 0,#0b1120 0,#020617 60%);
  position:relative;
  border:1px solid rgba(15,23,42,.9);
}

#capyGameCanvas{
  display:block;
  width:100%;
  background:radial-gradient(circle at 50% 0,#0b1120 0,#020617 48%,#000 100%);
}

.game-overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
}

.game-overlay-text{
  padding:.3rem .7rem;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.9);
  background:rgba(15,23,42,.95);
  font-size:.7rem;
  text-transform:uppercase;
  letter-spacing:.2em;
  color:var(--text-soft);
}

.hud{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
  font-size:.75rem;
  margin-top:.45rem;
}

.hud-item{
  padding:.18rem .55rem;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.8);
  background:rgba(15,23,42,.9);
  display:inline-flex;
  align-items:center;
  gap:.35rem;
}

.hud-label{
  color:var(--text-soft);
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:.65rem;
}

.hud-value{color:#e5f4ff;}

.hud-dot{
  width:7px;height:7px;border-radius:999px;
  background:radial-gradient(circle,#22c55e,#16a34a);
}

.btn-xs{
  padding:.32rem .75rem;
  font-size:.75rem;
  border-radius:999px;
  border:1px solid rgba(56,189,248,.8);
  background:rgba(15,23,42,.95);
  color:#e5f4ff;
  display:inline-flex;
  align-items:center;
  gap:.25rem;
  cursor:pointer;
  transition:background .16s ease,transform .16s ease,box-shadow .16s ease;
}

.btn-xs:hover{
  background:rgba(15,23,42,1);
  transform:translateY(-1px);
  box-shadow:0 10px 20px rgba(15,23,42,1);
}

/* 页脚 */

footer{
  margin-top:3.2rem;
  padding-top:1.5rem;
  border-top:1px solid rgba(15,23,42,1);
  font-size:.76rem;
  color:var(--text-soft);
}

.footer-grid{
  display:flex;
  flex-wrap:wrap;
  gap:1rem;
  justify-content:space-between;
  align-items:flex-start;
}

.footer-col{max-width:26rem;}

.footer-main{margin-top:.3rem;}

.footer-main strong{color:#e5f4ff;}

.footer-links{
  display:flex;
  flex-direction:column;
  gap:.2rem;
  text-align:right;
  font-size:.72rem;
}

.footer-links a{
  color:var(--text-soft);
  text-decoration:none;
}

.footer-links a:hover{
  color:#e5f4ff;
  text-decoration:underline;
}

@media(max-width:720px){
  .footer-links{text-align:left;}
}
