/* ===== HB666 · 战术档案 v3 ===== */

:root {
  --bg: #060a13;
  --bg-2: #0a101f;
  --bg-3: #101a33;
  --panel: linear-gradient(160deg, rgba(21, 30, 56, 0.94), rgba(9, 14, 28, 0.94));
  --panel-border: rgba(125, 150, 255, 0.18);
  --text: #eef3ff;
  --text-dim: #8fa0c8;
  --cyan: #4fd8ff;
  --violet: #8b7cff;
  --orange: #ffb13b;
  --green: #3ddc97;
  --red: #ff5d6c;
  --radius: 16px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --mono: "Consolas", "Lucida Console", "Courier New", monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

main {
  position: relative;
  z-index: 1;
}

::selection {
  background: var(--cyan);
  color: #041019;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--cyan), var(--orange));
  border-radius: 8px;
  border: 2px solid var(--bg);
}

body.cheat {
  animation: cheatHue 6s linear infinite;
}

@keyframes cheatHue {
  from { filter: hue-rotate(0deg); }
  to { filter: hue-rotate(360deg); }
}

/* 背景粒子 */
#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* 全局扫描线 */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.018) 0 1px,
    transparent 1px 3px
  );
}

/* 顶部进度条 */
.scrollbar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  z-index: 120;
  box-shadow: 0 0 14px rgba(79, 216, 255, 0.8);
}

/* 声音开关 */
.sound-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 110;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: rgba(10, 16, 31, 0.9);
  backdrop-filter: blur(12px);
  color: var(--text);
  font-size: 19px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.sound-toggle:hover {
  transform: scale(1.08);
  border-color: var(--cyan);
  box-shadow: 0 0 22px rgba(79, 216, 255, 0.3);
}

/* 开机加载画面 */
.boot {
  position: fixed;
  inset: 0;
  z-index: 200;
  background:
    radial-gradient(900px 520px at 50% 38%, rgba(20, 36, 80, 0.85) 0%, rgba(6, 10, 19, 1) 70%),
    var(--bg);
  display: grid;
  place-items: center;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.boot.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-inner {
  width: min(460px, 88vw);
  text-align: center;
}

.boot-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--orange);
  border: 1px solid rgba(255, 177, 59, 0.35);
  background: rgba(255, 177, 59, 0.07);
  padding: 6px 16px;
  border-radius: 4px;
  margin-bottom: 18px;
}

.boot-logo {
  font-size: clamp(2.8rem, 8vw, 4.2rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--text);
  text-shadow: 0 0 34px rgba(79, 216, 255, 0.65), 0 0 80px rgba(255, 177, 59, 0.35);
}

.boot-logo span {
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.boot-tip {
  margin: 22px 0 14px;
  color: var(--text-dim);
  font-size: 0.92rem;
  min-height: 1.6em;
}

.boot-track {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  border: 1px solid var(--panel-border);
}

.boot-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  box-shadow: 0 0 18px rgba(79, 216, 255, 0.8);
  transition: width 0.12s linear;
}

.boot-percent {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.2em;
}

.boot-skip {
  margin-top: 34px;
  background: none;
  border: 1px solid var(--panel-border);
  color: var(--text-dim);
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.82rem;
  transition: all 0.25s ease;
  font-family: var(--font);
}

.boot-skip:hover {
  color: var(--text);
  border-color: var(--cyan);
}

/* 顶部导航 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(6, 10, 19, 0.86);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--panel-border);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4);
}

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--text);
}

.logo-cross {
  width: 22px;
  height: 22px;
  stroke: var(--cyan);
  fill: none;
  stroke-width: 2;
  filter: drop-shadow(0 0 6px rgba(79, 216, 255, 0.7));
}

.logo-accent {
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-dot {
  color: var(--orange);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.nav-links a:not(.btn) {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.93rem;
  position: relative;
  padding: 4px 0;
  transition: color 0.25s ease;
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover {
  color: var(--text);
}

.nav-links a:not(.btn):hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 按钮 */
.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 6px;
  padding: 12px 26px;
  font-weight: 700;
  font-size: 0.93rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.28s ease;
  font-family: var(--font);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.04em;
}

.btn-neon {
  background: linear-gradient(90deg, var(--cyan), #7fb2ff);
  color: #041019;
  box-shadow: 0 10px 30px rgba(79, 216, 255, 0.3);
}

.btn-neon::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}

.btn-neon:hover::after {
  left: 130%;
}

.btn-neon:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(79, 216, 255, 0.4);
}

.btn-ghost {
  border-color: var(--panel-border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 24px rgba(79, 216, 255, 0.2);
  transform: translateY(-3px);
}

.btn-outline {
  border-color: var(--panel-border);
  color: var(--text);
  background: none;
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn-small {
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* 主视觉 */
.hero {
  position: relative;
  padding: 165px 0 60px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(950px 540px at 82% 12%, rgba(79, 216, 255, 0.14), transparent 60%),
    radial-gradient(820px 540px at 6% 84%, rgba(255, 177, 59, 0.1), transparent 60%),
    radial-gradient(760px 540px at 52% 46%, rgba(139, 124, 255, 0.08), transparent 65%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(125, 150, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 150, 255, 0.05) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(1100px 720px at 50% 40%, #000 30%, transparent 76%);
  -webkit-mask-image: radial-gradient(1100px 720px at 50% 40%, #000 30%, transparent 76%);
}

.radar {
  position: absolute;
  left: 4%;
  bottom: 7%;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 1px solid rgba(79, 216, 255, 0.2);
  z-index: -1;
  opacity: 0.75;
  background:
    linear-gradient(rgba(79, 216, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 216, 255, 0.12) 1px, transparent 1px);
  background-size: 37px 37px;
  background-position: center;
}

.radar::before {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  border: 1px solid rgba(79, 216, 255, 0.25);
}

.radar::after {
  content: "";
  position: absolute;
  inset: 48px;
  border-radius: 50%;
  border: 1px solid rgba(79, 216, 255, 0.3);
}

.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(79, 216, 255, 0.35), transparent 70deg);
  animation: radarSpin 4.5s linear infinite;
}

@keyframes radarSpin {
  to { transform: rotate(360deg); }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--cyan);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
  background: rgba(79, 216, 255, 0.06);
  border: 1px solid rgba(79, 216, 255, 0.24);
  padding: 7px 16px;
  border-radius: 4px;
  backdrop-filter: blur(8px);
  font-family: var(--mono);
}

.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: dotPulse 2s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(2.7rem, 6.8vw, 4.5rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.gradient-text {
  background: linear-gradient(90deg, var(--cyan), #7fb2ff, var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px rgba(79, 216, 255, 0.35));
}

.aka {
  font-size: 0.95rem;
  color: var(--text-dim);
  font-weight: 500;
  margin-left: 8px;
}

.hero-type {
  margin: 20px 0 10px;
  min-height: 2.2em;
  color: var(--text);
  font-size: 1rem;
}

.type-caret {
  color: var(--cyan);
  animation: blink 0.85s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-sub {
  color: var(--text-dim);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta span {
  background: rgba(10, 16, 31, 0.8);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 0.8rem;
  color: var(--text-dim);
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.hero-meta span:hover {
  color: var(--text);
  border-color: rgba(79, 216, 255, 0.5);
}

.hero-photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-frame {
  position: relative;
  width: min(340px, 78vw);
  aspect-ratio: 4 / 5;
  padding: 10px;
  background: linear-gradient(160deg, rgba(24, 34, 66, 0.94), rgba(8, 13, 26, 0.96));
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.hero-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 15px;
  background: linear-gradient(160deg, var(--cyan), var(--violet), var(--orange));
  z-index: -1;
  filter: blur(18px);
  opacity: 0.38;
  animation: glowPulse 4.5s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.26; }
  50% { opacity: 0.5; }
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.hero-frame img:hover {
  transform: scale(1.015);
}

.hero-frame img.bounce {
  animation: avatarBounce 0.5s ease;
}

@keyframes avatarBounce {
  0% { transform: scale(1); }
  40% { transform: scale(1.1) rotate(-2deg); }
  100% { transform: scale(1); }
}

.frame-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  color: rgba(238, 243, 255, 0.75);
  background: rgba(4, 7, 14, 0.72);
  border: 1px solid rgba(79, 216, 255, 0.28);
  padding: 3px 9px;
  border-radius: 3px;
  z-index: 2;
  backdrop-filter: blur(6px);
}

.corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 3px solid var(--cyan);
  z-index: 2;
  filter: drop-shadow(0 0 6px rgba(79, 216, 255, 0.6));
}

.corner.tl { top: 4px; left: 4px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.corner.tr { top: 4px; right: 4px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.corner.bl { bottom: 4px; left: 4px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.corner.br { bottom: 4px; right: 4px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }

.float-badge {
  position: absolute;
  background: rgba(10, 16, 31, 0.9);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(10px);
  border-radius: 4px;
  padding: 7px 14px;
  font-size: 0.78rem;
  color: var(--text);
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  animation: floaty 4.5s ease-in-out infinite;
}

.badge-1 { top: 30px; left: -34px; animation-delay: 0s; }
.badge-2 { top: 52%; right: -44px; animation-delay: 1.2s; }
.badge-3 { bottom: 88px; left: -26px; animation-delay: 2.1s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-hud {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  justify-content: space-around;
  background: rgba(4, 7, 14, 0.84);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(79, 216, 255, 0.25);
  border-radius: 6px;
  padding: 8px 6px;
}

.hero-hud span {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}

.hero-hud i {
  font-style: normal;
  color: var(--text-dim);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  font-family: var(--mono);
}

.hero-hud b {
  color: var(--cyan);
  font-size: 0.95rem;
  font-family: var(--mono);
  text-shadow: 0 0 10px rgba(79, 216, 255, 0.6);
}

.avatar-hint {
  font-size: 0.74rem;
  color: var(--text-dim);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-photo-wrap:hover .avatar-hint {
  opacity: 1;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 70px;
}

.stat {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 20px 12px;
  text-align: center;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(79, 216, 255, 0.14);
}

.stat-num {
  font-family: var(--mono);
  font-size: 2.1rem;
  font-weight: 900;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}

.stat p {
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-top: 4px;
}

.hero-scroll {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.scroll-hint {
  width: 26px;
  height: 44px;
  border: 2px solid var(--panel-border);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
  text-decoration: none;
  transition: border-color 0.3s ease;
}

.scroll-hint:hover {
  border-color: var(--cyan);
}

.scroll-hint span {
  width: 4px;
  height: 9px;
  border-radius: 4px;
  background: var(--cyan);
  animation: scrollDot 1.6s ease-in-out infinite;
}

@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* 滚动标语 */
.ticker {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
  background: rgba(9, 14, 28, 0.72);
  padding: 13px 0;
}

.ticker-track {
  display: flex;
  gap: 44px;
  white-space: nowrap;
  width: max-content;
  animation: tickerMove 34s linear infinite;
}

.ticker-track span {
  color: var(--text-dim);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}

@keyframes tickerMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* 通用区块 */
.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.section-alt {
  background: linear-gradient(180deg, rgba(12, 17, 34, 0.62), rgba(6, 10, 19, 0.25));
}

.section-dark {
  background:
    radial-gradient(800px 420px at 50% 120%, rgba(255, 177, 59, 0.12), transparent 65%),
    linear-gradient(180deg, rgba(12, 17, 34, 0.72), #04070e);
}

.section-head {
  text-align: center;
  margin-bottom: 58px;
}

.section-tag {
  display: inline-block;
  font-family: var(--mono);
  color: var(--orange);
  letter-spacing: 0.28em;
  font-size: 0.74rem;
  font-weight: 700;
  margin-bottom: 12px;
  background: rgba(255, 177, 59, 0.07);
  border: 1px solid rgba(255, 177, 59, 0.24);
  padding: 5px 14px;
  border-radius: 4px;
}

.section-head h2 {
  font-size: clamp(1.95rem, 4vw, 2.7rem);
  font-weight: 900;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.section-desc {
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto;
}

/* 关于 */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.about-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  backdrop-filter: blur(10px);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  opacity: 0.55;
}

.about-card:hover {
  transform: translateY(-7px);
  border-color: rgba(79, 216, 255, 0.45);
  box-shadow: 0 20px 50px rgba(79, 216, 255, 0.1);
}

.about-quote {
  font-size: 0.9rem;
  color: var(--cyan);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.about-text {
  color: var(--text);
  font-size: 0.95rem;
}

/* 个人档案 */
.profile-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 44px;
  align-items: start;
  margin-bottom: 30px;
}

.photo-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.photo-frame img {
  display: block;
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.photo-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(6, 10, 19, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 0.78rem;
  color: var(--text);
}

.profile-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.info-row {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.info-row:hover {
  border-color: rgba(79, 216, 255, 0.4);
  transform: translateY(-2px);
}

.info-label {
  color: var(--text-dim);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-family: var(--mono);
}

.info-value {
  color: var(--text);
  font-weight: 700;
}

.status-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(90deg, rgba(79, 216, 255, 0.09), rgba(255, 177, 59, 0.09));
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 20px 24px;
  flex-wrap: wrap;
}

.status-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  50% { opacity: 0.4; }
}

.status-title {
  font-weight: 800;
  font-size: 0.95rem;
}

.status-text {
  flex: 1;
  color: var(--text-dim);
  min-width: 220px;
}

/* 能力面板 */
.attrs {
  margin-top: 34px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(10px);
}

.attrs-title {
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.attrs-title small {
  color: var(--text-dim);
  font-weight: 400;
  font-size: 0.8rem;
}

.attrs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 36px;
}

.attr-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.attr-val {
  color: var(--cyan);
  font-weight: 800;
  font-family: var(--mono);
}

/* 进度条 */
.meter {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  position: relative;
}

.meter-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow: 0 0 12px rgba(79, 216, 255, 0.5);
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.meter-label {
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-top: 8px;
}

.meter-label small {
  display: block;
  color: var(--text-dim);
  opacity: 0.75;
  font-size: 0.74rem;
}

/* CS 特约横幅 */
.cs-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, rgba(32, 25, 10, 0.9), rgba(11, 15, 28, 0.94) 55%);
  border: 1px solid rgba(255, 177, 59, 0.35);
  border-radius: 14px;
  padding: 28px 30px 20px;
  margin-bottom: 30px;
  box-shadow: 0 20px 60px rgba(255, 177, 59, 0.08);
}

.cs-banner::before {
  content: "✛";
  position: absolute;
  right: -40px;
  top: -60px;
  font-size: 240px;
  color: rgba(255, 177, 59, 0.06);
  line-height: 1;
  pointer-events: none;
}

.cs-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(255, 255, 255, 0.015) 3px,
    rgba(255, 255, 255, 0.015) 4px
  );
  pointer-events: none;
}

.cs-banner-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 260px at 20% 0%, rgba(255, 177, 59, 0.12), transparent 60%);
  pointer-events: none;
}

.cs-banner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.cs-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--orange);
  text-shadow: 0 0 18px rgba(255, 177, 59, 0.35);
}

.cs-cross {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: rgba(255, 177, 59, 0.12);
  border: 1px solid rgba(255, 177, 59, 0.4);
  font-size: 1.1rem;
}

.cs-stamp {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #231a05;
  background: linear-gradient(135deg, #ffd166, var(--orange));
  padding: 6px 14px;
  border-radius: 4px;
  transform: rotate(-3deg);
  box-shadow: 0 6px 18px rgba(255, 177, 59, 0.35);
}

.cs-banner-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
}

.cs-stat {
  background: rgba(5, 8, 15, 0.6);
  border: 1px solid rgba(255, 177, 59, 0.2);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.cs-stat b {
  display: block;
  font-family: var(--mono);
  font-size: 1.35rem;
  color: var(--orange);
  text-shadow: 0 0 14px rgba(255, 177, 59, 0.5);
  line-height: 1.2;
}

.cs-stat span {
  color: var(--text-dim);
  font-size: 0.72rem;
}

.cs-squad {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.cs-squad b {
  color: var(--text);
  background: rgba(79, 216, 255, 0.1);
  border: 1px solid rgba(79, 216, 255, 0.25);
  border-radius: 4px;
  padding: 2px 12px;
  font-size: 0.82rem;
}

.cs-squad i {
  font-style: normal;
  color: var(--orange);
}

.cs-squad em {
  font-style: normal;
  font-size: 0.76rem;
  color: var(--text-dim);
  opacity: 0.75;
  width: 100%;
}

/* 击杀播报 */
.killfeed {
  position: relative;
  z-index: 1;
  min-height: 108px;
  background: rgba(4, 7, 14, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
  font-size: 0.82rem;
  font-family: var(--mono);
}

.kill-line {
  display: flex;
  align-items: center;
  gap: 8px;
  animation: killIn 0.45s ease;
  white-space: nowrap;
  overflow: hidden;
}

.kill-line.out {
  opacity: 0;
  transform: translateX(-12px);
  transition: all 0.5s ease;
}

.kill-line b {
  color: var(--cyan);
  font-weight: 800;
}

.kill-line b.victim {
  color: var(--red);
}

.kill-line i {
  font-style: normal;
  color: var(--orange);
  font-size: 0.76rem;
}

@keyframes killIn {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}

/* 游戏卡片 */
.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.game-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 26px 22px;
  backdrop-filter: blur(10px);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -40%;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 216, 255, 0.16), transparent 70%);
  transition: transform 0.4s ease;
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(79, 216, 255, 0.16);
}

.game-card:hover::before {
  transform: scale(1.7);
}

.game-card.cs-card {
  background: linear-gradient(160deg, rgba(38, 30, 12, 0.94), rgba(10, 15, 28, 0.95));
}

.game-card.cs-card::before {
  background: radial-gradient(circle, rgba(255, 177, 59, 0.2), transparent 70%);
}

.game-card.cs-card:hover {
  box-shadow: 0 20px 50px rgba(255, 177, 59, 0.18);
}

.game-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.game-emoji {
  font-size: 2rem;
}

.game-rank {
  background: linear-gradient(90deg, var(--cyan), #7fb2ff);
  color: #041019;
  font-weight: 900;
  font-size: 0.82rem;
  padding: 4px 12px;
  border-radius: 4px;
}

.game-rank small {
  font-size: 0.68rem;
  font-weight: 600;
}

.rank-gold {
  background: linear-gradient(135deg, #ffd166, var(--orange));
  color: #231a05;
  box-shadow: 0 4px 16px rgba(255, 177, 59, 0.4);
}

.game-stamp {
  position: absolute;
  top: 58px;
  right: -34px;
  background: linear-gradient(135deg, #ffd166, var(--orange));
  color: #231a05;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 5px 42px;
  transform: rotate(38deg);
  box-shadow: 0 4px 14px rgba(255, 177, 59, 0.35);
  z-index: 2;
}

.game-card h3 {
  margin-bottom: 6px;
  font-size: 1.12rem;
}

.game-desc {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 16px;
  min-height: 4.2em;
}

/* 小游戏厅 */
.arcade-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.arcade-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 34px 26px;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  backdrop-filter: blur(10px);
  text-align: left;
  color: var(--text);
  font-family: var(--font);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.arcade-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  opacity: 0.6;
}

.arcade-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.arcade-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 54px rgba(79, 216, 255, 0.18);
}

.arcade-card:hover::after {
  transform: translateX(100%);
}

.arcade-icon {
  display: inline-block;
  font-size: 2.4rem;
  margin-bottom: 14px;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}

.arcade-title {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-weight: 800;
}

.arcade-desc {
  display: block;
  color: var(--text-dim);
  font-size: 0.86rem;
  margin-bottom: 18px;
  line-height: 1.6;
}

.arcade-enter {
  color: var(--cyan);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* 打铁模拟器 */
.iron-wrap {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 26px;
  align-items: stretch;
}

.iron-canvas-box {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  overflow: hidden;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  backdrop-filter: blur(10px);
}

.iron-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.iron-round {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}

.iron-round b {
  color: var(--orange);
  font-size: 1rem;
}

.iron-mode {
  font-size: 0.74rem;
  color: var(--text-dim);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  padding: 3px 12px;
}

#ironCanvas {
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: #060a16;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.iron-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.pity {
  flex: 1;
  min-width: 240px;
}

.pity-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  color: var(--text-dim);
  margin-bottom: 7px;
}

.pity-head b {
  color: var(--orange);
  font-size: 0.76rem;
  font-family: var(--mono);
}

.pity-bar {
  display: flex;
  gap: 4px;
}

.pity-bar i {
  flex: 1;
  height: 7px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.pity-bar i.on {
  background: linear-gradient(90deg, var(--orange), #ffd166);
  box-shadow: 0 0 10px rgba(255, 177, 59, 0.6);
}

.iron-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.iron-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.iron-stat {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.iron-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(79, 216, 255, 0.12);
}

.iron-stat span {
  display: block;
  color: var(--text-dim);
  font-size: 0.72rem;
  margin-bottom: 4px;
}

.iron-stat strong {
  font-family: var(--mono);
  font-size: 1.5rem;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.iron-quote {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 18px;
  color: var(--text-dim);
  font-size: 0.9rem;
  display: grid;
  place-items: center;
  text-align: center;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.iron-quote.hit {
  border-color: rgba(61, 220, 151, 0.5);
  color: var(--green);
}

.iron-hint {
  color: var(--text-dim);
  font-size: 0.8rem;
}

kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  padding: 1px 7px;
  font-family: var(--mono);
  font-size: 0.76rem;
}

/* 人际关系 */
.friends-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.friend-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 26px 22px;
  backdrop-filter: blur(10px);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.friend-card:hover {
  transform: translateY(-8px);
  border-color: rgba(79, 216, 255, 0.5);
  box-shadow: 0 20px 46px rgba(79, 216, 255, 0.12);
}

.friend-emoji {
  font-size: 2.3rem;
  margin-bottom: 10px;
  display: inline-block;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.4));
}

.friend-tag {
  color: var(--cyan);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  font-family: var(--mono);
}

.friend-card h3 {
  font-size: 1.22rem;
  margin-bottom: 8px;
}

.friend-text {
  color: var(--text-dim);
  font-size: 0.86rem;
  margin-bottom: 16px;
  min-height: 5.4em;
}

.friend-link {
  display: inline-block;
  margin-top: 12px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  color: #041019;
  font-size: 0.82rem;
  font-weight: 800;
  border-radius: 99px;
  padding: 8px 16px;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(53, 226, 255, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.friend-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(139, 124, 255, 0.4);
}

.friends-note {
  margin-top: 28px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* 图鉴 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 230px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid var(--panel-border);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.gallery-item:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 216, 255, 0.55);
  box-shadow: 0 18px 44px rgba(79, 216, 255, 0.12);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 36px 16px 14px;
  background: linear-gradient(transparent, rgba(6, 10, 19, 0.94));
  display: flex;
  flex-direction: column;
}

.gallery-item figcaption strong {
  font-size: 0.95rem;
}

.gallery-item figcaption span {
  color: var(--text-dim);
  font-size: 0.74rem;
}

.gallery-portrait {
  grid-row: span 2;
}

.gallery-wide {
  grid-column: span 2;
}

/* 联系 */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.contact-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 28px 24px;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.contact-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 46px rgba(255, 177, 59, 0.16);
}

.contact-emoji {
  font-size: 2rem;
  margin-bottom: 8px;
}

.contact-label {
  color: var(--text-dim);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  font-family: var(--mono);
}

.contact-value {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text);
  word-break: break-all;
}

.contact-action {
  color: var(--cyan);
  font-size: 0.8rem;
  margin-top: 6px;
  transition: transform 0.25s ease;
}

.contact-card:hover .contact-action {
  transform: translateX(4px);
}

.contact-note {
  margin-top: 30px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}

.fxy-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
  background: linear-gradient(90deg, rgba(53, 226, 255, 0.12), rgba(139, 124, 255, 0.12));
  border: 1px solid rgba(53, 226, 255, 0.4);
  border-radius: 16px;
  padding: 20px 26px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.fxy-banner:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 114, 182, 0.6);
  box-shadow: 0 18px 44px rgba(53, 226, 255, 0.14);
}

.fxy-icon {
  font-size: 2rem;
}

.fxy-banner b {
  display: block;
  font-size: 1.02rem;
  margin-bottom: 2px;
}

.fxy-banner em {
  font-style: normal;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.fxy-arrow {
  margin-left: auto;
  font-size: 1.5rem;
  color: var(--cyan);
  transition: transform 0.25s ease;
}

.fxy-banner:hover .fxy-arrow {
  transform: translateX(7px);
}

/* 页脚 */
.site-footer {
  background: #04070e;
  border-top: 1px solid var(--panel-border);
  padding: 46px 0 24px;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-note {
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.86rem;
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--panel-border);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 0.78rem;
}

.footer-cheat {
  color: var(--text-dim);
  opacity: 0.75;
  font-family: var(--mono);
}

/* 弹窗 */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(3, 5, 10, 0.93);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(10px);
  padding: 20px;
  overflow-y: auto;
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  position: relative;
  width: min(840px, 96vw);
  background: linear-gradient(160deg, #111a33, #090e1d);
  border: 1px solid rgba(79, 216, 255, 0.28);
  border-radius: 14px;
  padding: 30px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75), 0 0 60px rgba(79, 216, 255, 0.06);
  max-height: 92vh;
  overflow-y: auto;
}

.modal-box.shake {
  animation: modalShake 0.55s ease;
}

@keyframes modalShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-14px) rotate(-0.4deg); }
  40% { transform: translateX(12px) rotate(0.4deg); }
  60% { transform: translateX(-9px); }
  80% { transform: translateX(7px); }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--panel-border);
  background: rgba(9, 14, 29, 0.9);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 5;
}

.modal-close:hover {
  border-color: var(--red);
  color: var(--red);
  transform: rotate(90deg);
}

.modal-head {
  text-align: center;
  margin-bottom: 20px;
}

.modal-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  color: var(--orange);
  display: block;
  margin-bottom: 8px;
}

.modal-head h3 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.modal-head p {
  color: var(--text-dim);
  font-size: 0.86rem;
}

/* 爆头训练场 */
.aim-hud {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  background: rgba(6, 10, 19, 0.8);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 14px;
}

.aim-hud span {
  color: var(--text-dim);
  font-size: 0.76rem;
  font-family: var(--mono);
  letter-spacing: 0.08em;
}

.aim-hud b {
  color: var(--cyan);
  font-size: 0.92rem;
  margin-left: 4px;
  text-shadow: 0 0 8px rgba(79, 216, 255, 0.5);
}

#aimCanvas {
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: #060a16;
  cursor: crosshair;
  border: 1px solid rgba(255, 255, 255, 0.06);
  touch-action: manipulation;
}

.aim-footer {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.aim-result {
  flex: 1;
  color: var(--text-dim);
  font-size: 0.88rem;
  min-width: 200px;
}

/* 拆弹 */
.defuse-body {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 22px;
  align-items: center;
}

.bomb-box {
  background: rgba(6, 10, 19, 0.8);
  border: 1px solid rgba(255, 93, 108, 0.3);
  border-radius: 12px;
  padding: 26px 18px;
  text-align: center;
}

.bomb-box.red-glow {
  border-color: var(--red);
  box-shadow: 0 0 34px rgba(255, 93, 108, 0.35);
  animation: redPulse 0.9s ease-in-out infinite;
}

.bomb-box.green-glow {
  border-color: var(--green);
  box-shadow: 0 0 34px rgba(61, 220, 151, 0.35);
}

@keyframes redPulse {
  50% { box-shadow: 0 0 60px rgba(255, 93, 108, 0.6); }
}

.bomb-face {
  display: block;
  font-size: 4.4rem;
  line-height: 1;
  margin-bottom: 12px;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.5));
}

.bomb-status {
  color: var(--text-dim);
  font-size: 0.84rem;
  margin-bottom: 12px;
}

.bomb-timer {
  font-family: var(--mono);
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--red);
  text-shadow: 0 0 20px rgba(255, 93, 108, 0.5);
  line-height: 1;
}

.bomb-timer i {
  font-style: normal;
  font-size: 1rem;
  margin-left: 2px;
  color: var(--text-dim);
}

.bomb-timer.low {
  animation: timerBlink 0.5s steps(1) infinite;
}

@keyframes timerBlink {
  50% { opacity: 0.3; }
}

.wires {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wire {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(6, 10, 19, 0.8);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 12px 18px;
  cursor: pointer;
  color: var(--text);
  font-size: 0.88rem;
  font-family: var(--font);
  transition: all 0.25s ease;
  overflow: hidden;
}

.wire::before {
  content: "";
  width: 44px;
  height: 8px;
  border-radius: 4px;
  background: var(--wc, #fff);
  box-shadow: 0 0 14px var(--wc, #fff);
  flex-shrink: 0;
}

.wire:hover {
  border-color: var(--wc, #fff);
  transform: translateX(6px);
}

.wire.cut {
  opacity: 0.35;
  pointer-events: none;
  text-decoration: line-through;
}

.wire.safe-cut {
  border-color: var(--green);
  opacity: 1;
}

/* 开箱 */
.case-body {
  text-align: center;
}

.case-box {
  font-size: 5rem;
  line-height: 1;
  margin: 10px 0 22px;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
}

.case-box.spin {
  animation: caseSpin 0.8s ease;
}

.case-box.open {
  font-size: 4.2rem;
}

@keyframes caseSpin {
  0% { transform: rotate(0) scale(1); }
  30% { transform: rotate(-14deg) scale(1.12); }
  60% { transform: rotate(10deg) scale(0.96); }
  100% { transform: rotate(0) scale(1); }
}

.case-result {
  margin: 22px auto 0;
  max-width: 420px;
  min-height: 96px;
  background: rgba(6, 10, 19, 0.8);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  transition: border-color 0.3s ease;
}

.case-rarity {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--text-dim);
}

.case-item {
  font-size: 1.05rem;
  font-weight: 800;
}

.case-rarity.r0 { color: #7fb2ff; }
.case-rarity.r1 { color: #b48cff; }
.case-rarity.r2 { color: #ff7eb6; }
.case-rarity.r3 { color: #ff5d6c; }
.case-rarity.r4 { color: #ffd166; text-shadow: 0 0 16px rgba(255, 209, 102, 0.6); }

.case-result.r0 { border-color: rgba(127, 178, 255, 0.5); }
.case-result.r1 { border-color: rgba(180, 140, 255, 0.5); }
.case-result.r2 { border-color: rgba(255, 126, 182, 0.5); }
.case-result.r3 { border-color: rgba(255, 93, 108, 0.6); box-shadow: 0 0 26px rgba(255, 93, 108, 0.2); }
.case-result.r4 { border-color: rgba(255, 209, 102, 0.7); box-shadow: 0 0 34px rgba(255, 209, 102, 0.25); }

.case-log {
  margin: 18px auto 0;
  max-width: 420px;
  text-align: left;
  background: rgba(6, 10, 19, 0.6);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.78rem;
  color: var(--text-dim);
  min-height: 66px;
}

.case-log p {
  margin-bottom: 4px;
}

.case-log .log-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 0;
  color: var(--text-dim);
  font-size: 0.76rem;
}

.case-log .log-item b {
  color: var(--text);
  font-weight: 600;
}

/* 灯箱 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(3, 5, 10, 0.95);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(8px);
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: min(88vw, 1000px);
  max-height: 78vh;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
}

.lb-caption {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text);
  background: rgba(6, 10, 19, 0.85);
  border: 1px solid var(--panel-border);
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.88rem;
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lb-close,
.lb-nav {
  position: absolute;
  border: 1px solid var(--panel-border);
  background: rgba(6, 10, 19, 0.85);
  color: var(--text);
  width: 46px;
  height: 46px;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.25s ease;
  z-index: 2;
}

.lb-close:hover,
.lb-nav:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: scale(1.08);
}

.lb-close {
  top: 22px;
  right: 22px;
}

.lb-prev {
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
}

.lb-next {
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
}

.lb-prev:hover {
  transform: translateY(-50%) scale(1.08);
}

.lb-next:hover {
  transform: translateY(-50%) scale(1.08);
}

/* 彩带 */
#confettiLayer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 500;
  overflow: hidden;
}

.confetti {
  position: absolute;
  top: -40px;
  animation: confettiFall linear forwards;
}

@keyframes confettiFall {
  to {
    transform: translateY(110vh) rotate(720deg);
  }
}

/* 提示条 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(10, 16, 31, 0.94);
  border: 1px solid rgba(79, 216, 255, 0.5);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(79, 216, 255, 0.15);
  color: var(--text);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
  z-index: 600;
  white-space: nowrap;
  max-width: 92vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* 空气投篮飘字 */
.air-shot {
  position: fixed;
  z-index: 450;
  pointer-events: none;
  font-weight: 900;
  color: var(--orange);
  text-shadow: 0 0 16px rgba(255, 177, 59, 0.7);
  animation: airRise 1.1s ease-out forwards;
}

@keyframes airRise {
  from {
    opacity: 1;
    transform: translateY(0) rotate(-8deg) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-110px) rotate(10deg) scale(1.25);
  }
}

/* 爆炸红闪 */
.boom-flash {
  position: fixed;
  inset: 0;
  z-index: 320;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 93, 108, 0.55), rgba(255, 93, 108, 0.12) 60%, transparent 75%);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.boom-flash.on {
  opacity: 1;
}

/* 滚动浮现 */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 响应式 */
@media (max-width: 1000px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 64px;
  }

  .hero-eyebrow {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .hero-meta {
    justify-content: center;
  }

  .radar {
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.4;
  }

  .badge-1 { left: 4px; }
  .badge-2 { right: 4px; }
  .badge-3 { left: 10px; }

  .about-grid,
  .games-grid,
  .friends-grid,
  .contact-grid,
  .arcade-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .photo-frame img {
    height: auto;
    max-height: 500px;
  }

  .iron-wrap,
  .defuse-body {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-wide {
    grid-column: span 2;
  }

  .cs-banner-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .section {
    padding: 74px 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(6, 10, 19, 0.98);
    border: 1px solid var(--panel-border);
    border-radius: 0 0 12px 12px;
    padding: 18px 24px;
    gap: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s ease;
    backdrop-filter: blur(16px);
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links li a {
    display: block;
    padding: 10px 4px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .games-grid,
  .friends-grid,
  .contact-grid,
  .arcade-grid {
    grid-template-columns: 1fr;
  }

  .profile-info {
    grid-template-columns: 1fr;
  }

  .attrs-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 210px;
  }

  .gallery-portrait {
    grid-row: auto;
  }

  .gallery-wide {
    grid-column: auto;
  }

  .footer-inner {
    flex-direction: column;
  }

  .lb-caption {
    white-space: normal;
    text-align: center;
  }

  .modal-box {
    padding: 22px 16px;
  }

  .aim-hud {
    justify-content: flex-start;
  }
}

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

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===== 宣传片 ===== */
.trailer-box {
  max-width: 860px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.trailer-box video {
  width: 100%;
  border-radius: 12px;
  display: block;
  background: #000;
  outline: none;
}

.trailer-note {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-top: 10px;
}
/* ===== 日记 ===== */
.diary-card {
  display: flex;
  gap: 28px;
  align-items: stretch;
  flex-wrap: wrap;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.diary-img {
  flex: 0 0 300px;
}

.diary-img a {
  display: block;
}

.diary-img img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--panel-border);
  display: block;
}

.diary-body {
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.diary-date {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

.diary-body h3 {
  font-size: 1.6rem;
}

.diary-body p {
  color: var(--text-dim);
}

.diary-stamp {
  align-self: flex-start;
  border: 3px double var(--green);
  color: var(--green);
  border-radius: 10px;
  padding: 6px 14px;
  font-weight: 900;
  transform: rotate(-3deg);
  text-shadow: 0 0 14px rgba(61, 220, 151, 0.35);
}

@media (max-width: 700px) {
  .diary-card {
    flex-direction: column;
  }

  .diary-img {
    flex-basis: auto;
  }
}
/* ===== 日记入口（主页） ===== */
.diary-entry {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 22px 26px;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.diary-entry:hover {
  transform: translateY(-4px);
  border-color: rgba(61, 220, 151, 0.55);
  box-shadow: 0 20px 48px rgba(61, 220, 151, 0.12);
}

.diary-entry-date {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--green);
  white-space: nowrap;
}

.diary-entry-body {
  flex: 1;
  min-width: 220px;
}

.diary-entry-body b {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 3px;
}

.diary-entry-body em {
  font-style: normal;
  color: var(--text-dim);
  font-size: 0.84rem;
}

.diary-entry-go {
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 900;
  white-space: nowrap;
}

/* ===== 独立日记页 ===== */
.diary-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 16px 8px;
}

.diary-back {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
}

.diary-back:hover {
  text-decoration: underline;
}

.diary-nav-title {
  color: var(--text-dim);
  font-size: 0.78rem;
  font-family: var(--mono);
  letter-spacing: 0.08em;
}

.diary-page {
  max-width: 760px;
  margin: 10px auto 40px;
  padding: 30px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.diary-page-tag {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 10px;
}

.diary-page h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  margin-bottom: 8px;
}

.diary-page-lead {
  color: var(--text-dim);
  font-size: 1rem;
  margin-bottom: 20px;
}

.diary-page-img {
  text-align: center;
  margin-bottom: 22px;
}

.diary-page-img a {
  display: inline-block;
}

.diary-page-img img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 14px;
  border: 1px solid var(--panel-border);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
}

.diary-page-text {
  font-size: 1.02rem;
  line-height: 1.9;
}

.diary-page-text p {
  margin-bottom: 12px;
}

.diary-page-stamp {
  display: inline-block;
  border: 3px double var(--green);
  color: var(--green);
  border-radius: 10px;
  padding: 7px 16px;
  font-weight: 900;
  transform: rotate(-3deg);
  text-shadow: 0 0 14px rgba(61, 220, 151, 0.35);
  margin-top: 6px;
}

.diary-footer {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.78rem;
  padding: 20px 16px 34px;
}

.diary-footer a {
  color: var(--cyan);
}

/* ===== 照片墙 · 段位截图 ===== */
.gallery-srank img {
  object-position: 50% 6%;
}