/* Gladiators — 高达机甲风：白底 + 高达蓝/红/黄 + 装甲切角 + 机械线条 */
:root {
  --bg: #f4f6f9;
  --panel: #ffffff;
  --panel2: #eef1f6;
  --line: #dde3ec;
  --line-soft: #e8ecf2;
  --ink: #16202e;
  --ink-dim: #54657e;
  --ink-faint: #8a97ab;
  --blue: #0055a4;
  --blue-dim: rgba(0, 85, 164, 0.12);
  --red: #e60012;
  --yellow: #ffc400;
  --green: #00a862;
  --sans: ui-sans-serif, system-ui, "Segoe UI", "Inter", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Consolas", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background:
    linear-gradient(rgba(0, 85, 164, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 85, 164, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 44px 44px, 44px 44px, 100% 100%;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  animation: page-in 0.35s ease;
}
@keyframes page-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
::selection { background: var(--blue); color: #fff; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.up { color: var(--green); }
.down { color: var(--red); }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center; gap: 1.5rem;
  padding: 0.85rem 1.5rem;
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--blue);
}
.brand {
  display: flex; align-items: center; gap: 0.5rem;
  font-weight: 900; font-size: 1.05rem; letter-spacing: 0.02em; color: var(--blue);
}
.brand img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.nav .links { display: flex; align-items: center; gap: 0.25rem; font-size: 0.9rem; }
.nav .links a { padding: 0.4rem 0.7rem; border-radius: 4px; color: var(--ink-dim); transition: color .15s; }
.nav .links a:hover { color: var(--blue); }
.nav .links a.active { color: var(--blue); font-weight: 700; }
.wallet-btn {
  font-size: 0.85rem; padding: 0.45rem 0.95rem; border-radius: 4px;
  border: 2px solid var(--blue); background: transparent; color: var(--blue); font-weight: 700;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: background .15s;
}
.wallet-btn:hover { background: var(--blue-dim); }

/* ---------- 布局 ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }

/* ---------- Hero ---------- */
.hero { padding: 5rem 0 3rem; text-align: center; }
.hero .tag {
  display: inline-block; font-family: var(--mono); font-size: 0.72rem;
  color: var(--red); border: 2px solid var(--red); border-radius: 3px;
  padding: 0.3rem 0.8rem; margin-bottom: 1.2rem;
  letter-spacing: 0.14em; font-weight: 700;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.5rem); font-weight: 900;
  letter-spacing: -0.02em; line-height: 1.02; color: var(--ink);
}
.hero h1 .v {
  position: relative;
}
.hero h1 .v::before {
  content: ""; position: absolute; top: -0.08em; left: 0.5em;
  width: 0.4em; height: 0.4em; background: var(--red);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.hero .sub { margin-top: 1.1rem; font-size: 1.15rem; color: var(--ink-dim); max-width: 34em; margin-left: auto; margin-right: auto; }
.hero .cta { margin-top: 1.8rem; display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; font-size: 0.95rem; font-weight: 700;
  padding: 0.72rem 1.4rem; border-radius: 4px; letter-spacing: 0.02em;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background .15s, transform .05s;
}
.btn:hover { transform: translateY(-1px); }
.btn-green { background: var(--blue); color: #fff; }
.btn-green:hover { background: #0066c4; }
.btn-ghost { border: 2px solid var(--blue); color: var(--blue); background: transparent; }
.btn-ghost:hover { background: var(--blue-dim); }

/* ---------- 卡片（白色装甲） ---------- */
.grid { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 800px) { .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; } }

.card {
  border: 1px solid var(--line); border-radius: 8px; padding: 1.2rem;
  background: var(--panel);
  position: relative;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: box-shadow .15s, transform .15s;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue) 55%, var(--red) 55%, var(--red) 70%, var(--yellow) 70%);
}
.card:hover { box-shadow: 0 6px 20px rgba(0, 85, 164, 0.12); transform: translateY(-2px); }
.card h3 { font-size: 1.05rem; font-weight: 700; }
.card .role { color: var(--ink-faint); font-size: 0.85rem; margin-top: 0.1rem; }
.card .stat { font-family: var(--mono); font-size: 1.4rem; font-weight: 700; margin-top: 0.8rem; }
.card .stat-label { color: var(--ink-faint); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* 头像 */
.avatar {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--blue);
  background: var(--panel2);
}
.avatar.bench { border-color: var(--ink-faint); }
.stock-logo { width: 22px; height: 22px; border-radius: 4px; vertical-align: middle; }

/* ---------- 排行榜表格 ---------- */
.leaderboard { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.leaderboard th {
  text-align: left; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-faint); padding: 0.7rem 0.8rem; border-bottom: 2px solid var(--blue);
  background: var(--panel2);
}
.leaderboard td { padding: 0.8rem; border-bottom: 1px solid var(--line-soft); font-size: 0.9rem; }
.leaderboard tr:last-child td { border-bottom: none; }
.leaderboard tr:hover td { background: var(--blue-dim); }
.leaderboard .name { font-weight: 700; }
.leaderboard .num { font-family: var(--mono); }

/* ---------- 构建器 ---------- */
.stepper { display: flex; gap: 0.3rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.step-btn {
  font-size: 0.8rem; padding: 0.42rem 0.85rem; border-radius: 4px;
  border: 1px solid var(--line); background: transparent; color: var(--ink-faint);
  transition: all .15s; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.step-btn.on { border-color: var(--blue); color: var(--blue); background: var(--blue-dim); font-weight: 700; }
.step-panel {
  border: 1px solid var(--line); border-radius: 12px; padding: 1.5rem;
  background: var(--panel);
  border-top: 3px solid var(--blue);
}
.step-panel h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.2rem; }
.step-panel .hint { color: var(--ink-faint); font-size: 0.85rem; margin-bottom: 1.2rem; }
.opt {
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
  border: 1px solid var(--line); border-radius: 8px; padding: 0.7rem 0.9rem;
  margin-bottom: 0.5rem; cursor: pointer; transition: border-color .12s, background .12s;
}
.opt:hover { background: var(--panel2); }
.opt.sel { border-color: var(--blue); background: var(--blue-dim); }
.opt .tick { color: var(--blue); font-weight: 700; opacity: 0; }
.opt.sel .tick { opacity: 1; }
.opt input {
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  padding: 0.4rem; color: var(--ink);
}
.opt input:focus { border-color: var(--blue); outline: none; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { font-weight: 600; font-size: 1.02rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--blue); font-size: 1.2rem; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin-top: 0.7rem; color: var(--ink-dim); font-size: 0.92rem; }

/* ---------- footer ---------- */
.footer {
  border-top: 2px solid var(--blue); padding: 2.5rem 1.5rem 3rem;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.8rem;
  background: var(--panel);
}
.footer .cols { display: flex; gap: 3rem; flex-wrap: wrap; justify-content: center; font-size: 0.85rem; }
.footer .col { display: flex; flex-direction: column; gap: 0.5rem; }
.footer .col .h { color: var(--ink-faint); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.3rem; }
.footer a { color: var(--ink-dim); }
.footer a:hover { color: var(--blue); }
.footer .fine { color: var(--ink-faint); font-size: 0.75rem; margin-top: 1rem; max-width: 60em; }

/* ---------- 工具 ---------- */
.kicker { font-family: var(--mono); font-size: 0.72rem; color: var(--blue); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.badge {
  font-family: var(--mono); font-size: 0.66rem; padding: 0.16rem 0.5rem; border-radius: 3px;
  border: 1px solid var(--line); letter-spacing: 0.05em;
}
.badge.house { color: var(--blue); border-color: var(--blue); }
.badge.bench { color: var(--ink-faint); border-color: var(--line); }
.placeholder {
  border: 2px dashed var(--line); border-radius: 12px; padding: 2.5rem;
  text-align: center; color: var(--ink-faint); font-size: 0.9rem; background: var(--panel);
}
.small { font-size: 0.8rem; color: var(--ink-faint); }
.mt { margin-top: 1rem; }
.mb { margin-bottom: 1rem; }

/* ---------- 开场动画 ---------- */
.intro {
  position: fixed; inset: 0; z-index: 9999;
  background: #fff;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  transition: opacity .55s ease, visibility .55s ease;
}
.intro.done { opacity: 0; visibility: hidden; pointer-events: none; }
.intro .intro-avatar {
  width: 88px; height: 88px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--blue); margin-bottom: 1.3rem;
  opacity: 0; transform: scale(0.5);
  animation: intro-avatar .4s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes intro-avatar { to { opacity: 1; transform: scale(1); } }
.intro .logo-text {
  font-family: var(--sans); font-weight: 900; font-size: clamp(2.2rem, 6vw, 3.6rem);
  color: var(--blue); letter-spacing: 0.06em;
  display: flex;
}
.intro .letter {
  display: inline-block; opacity: 0; transform: translateY(14px);
  animation: intro-pop .34s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes intro-pop { to { opacity: 1; transform: none; } }
.intro .bar {
  width: 200px; height: 4px; background: #e8ecf2; border-radius: 2px;
  margin-top: 1.4rem; position: relative; overflow: hidden;
}
.intro .bar::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%;
  background: linear-gradient(90deg, var(--blue), var(--red), var(--yellow));
  animation: intro-sweep 1s ease-in-out infinite;
}
@keyframes intro-sweep { to { left: 100%; } }

/* ---------- 顶部横幅（机甲横排） ---------- */
.banner {
  border-bottom: 2px solid var(--blue);
  background: var(--panel);
  position: relative;
  overflow: hidden;
}
.banner::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; z-index: 1;
  background: linear-gradient(90deg, var(--blue) 0 55%, var(--red) 55% 70%, var(--yellow) 70% 100%);
}
.banner-inner {
  max-width: 1080px; margin: 0 auto; padding: 1.4rem 1.5rem 1.1rem;
  display: flex; align-items: center; justify-content: center; gap: 0.9rem; flex-wrap: wrap;
}
.banner-cell { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
.banner-avatar {
  width: 60px; height: 60px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--blue); background: var(--panel2);
  transition: transform .15s, box-shadow .15s;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.banner-avatar:hover { transform: scale(1.12); box-shadow: 0 8px 18px rgba(0, 85, 164, 0.25); }
.banner-avatar.bench { border-color: var(--ink-faint); }
.banner-cell .nm { font-size: 0.68rem; font-weight: 700; color: var(--ink-dim); }
@media (max-width: 800px) { .banner-avatar { width: 44px; height: 44px; } }

/* ---------- 白皮书 ---------- */
.wp { max-width: 720px; margin: 0 auto; padding: 3rem 0 4rem; }
.wp-head { border-bottom: 2px solid var(--blue); padding-bottom: 1.5rem; margin-bottom: 2rem; }
.wp-head h1 { font-size: 2.4rem; font-weight: 900; color: var(--ink); letter-spacing: -0.02em; }
.wp-sub { margin-top: 0.6rem; font-size: 1.05rem; color: var(--ink-dim); }
.wp-meta { margin-top: 0.6rem; font-family: var(--mono); font-size: 0.75rem; color: var(--ink-faint); }
.wp-sec { margin-bottom: 2.2rem; }
.wp-sec h2 {
  font-size: 1.3rem; font-weight: 800; color: var(--blue); margin-bottom: 0.7rem;
  padding-left: 0.8rem; border-left: 3px solid var(--red);
}
.wp-sec p { color: var(--ink-dim); font-size: 0.96rem; line-height: 1.75; margin-bottom: 0.7rem; }
.wp-sec p strong { color: var(--ink); }
.wp-list { margin: 0.5rem 0 0.9rem 1.2rem; color: var(--ink-dim); font-size: 0.95rem; line-height: 1.75; }
.wp-list li { margin-bottom: 0.35rem; }
.wp-list li strong { color: var(--ink); }

/* ---------- 阵容墙（首页大图） ---------- */
.roster-wall { margin-top: 2.5rem; }
.roster-wall .label { text-align: center; margin-bottom: 1.2rem; }
.roster-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.2rem 0.8rem;
  max-width: 760px; margin: 0 auto;
}
.roster-cell { text-align: center; }
.avatar-lg {
  width: 92px; height: 92px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--blue); background: var(--panel2);
  transition: transform .15s, box-shadow .15s;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.avatar-lg:hover { transform: scale(1.08); box-shadow: 0 8px 20px rgba(0, 85, 164, 0.25); }
.avatar-lg.bench { border-color: var(--ink-faint); }
.roster-cell .nm { font-weight: 700; font-size: 0.8rem; margin-top: 0.4rem; }
.roster-cell .rt { font-family: var(--mono); font-size: 0.72rem; }
@media (max-width: 800px) { .roster-grid { grid-template-columns: repeat(4, 1fr); } .avatar-lg { width: 68px; height: 68px; } }
