/* ============================================================
   PojiPoji Zone · Frutiger Aero 设计系统
   天空蓝渐变 / 玻璃拟态 / 高光气泡 / 拟物光泽按钮
   主题色通过 body[data-theme] 与 :root 变量联动（账户页可选主题色）
   ============================================================ */

:root {
  --bg1: #9fd9f8;
  --bg2: #4b9de0;
  --bg3: #1b5fa8;
  --accent: #00a8e8;
  --accent2: #7ed8ff;
  /* 控件配色：与主体配色分离（按钮/输入框/链接等走这里，背景渐变走上面的主题变量） */
  --ctrl: #00a8e8;
  --ctrl2: #7ed8ff;
  --ctrl-ring: rgba(0, 168, 232, .4);
  --glass: rgba(255, 255, 255, .40);
  --glass2: rgba(255, 255, 255, .16);
  --stroke: rgba(255, 255, 255, .7);
  --text: #0d3a66;
  --text2: #2e6aa8;
  --shadow: 0 12px 34px rgba(13, 58, 102, .30);
  --shadow-sm: 0 4px 14px rgba(13, 58, 102, .20);
  --r: 16px;
}

/* 主题预设：暮橙 / 青草 / 樱花 / 夜澜 */
body[data-theme="sunset"] { --bg1: #ffd9a8; --bg2: #f28d52; --bg3: #b34a1e; --accent: #ff7a2a; --accent2: #ffc38a; --text: #5c2a0a; --text2: #8a4a1e; --shadow: 0 12px 34px rgba(90, 42, 10, .30); }
body[data-theme="grass"]  { --bg1: #b8f0a8; --bg2: #57b843; --bg3: #1e7a24; --accent: #3fae2a; --accent2: #9fe88a; --text: #0d3d10; --text2: #2e6a26; --shadow: 0 12px 34px rgba(13, 61, 16, .30); }
body[data-theme="sakura"] { --bg1: #ffd0e8; --bg2: #f78ab8; --bg3: #c2458a; --accent: #ff5ca8; --accent2: #ffb6d8; --text: #5c1240; --text2: #96306a; --shadow: 0 12px 34px rgba(92, 18, 64, .30); }
body[data-theme="night"]  { --bg1: #8aa8e8; --bg2: #3c56a8; --bg3: #16245c; --accent: #5c78e8; --accent2: #a8baf8; --text: #0d1a3c; --text2: #2c3f78; --shadow: 0 12px 34px rgba(10, 18, 48, .40); }

/* 控件配色预设（独立于主体主题，body[data-ctrl] 驱动） */
body[data-ctrl="sunset"] { --ctrl: #ff7a2a; --ctrl2: #ffc38a; --ctrl-ring: rgba(255, 122, 42, .4); }
body[data-ctrl="grass"]  { --ctrl: #3fae2a; --ctrl2: #9fe88a; --ctrl-ring: rgba(63, 174, 42, .4); }
body[data-ctrl="sakura"] { --ctrl: #ff5ca8; --ctrl2: #ffb6d8; --ctrl-ring: rgba(255, 92, 168, .4); }
body[data-ctrl="night"]  { --ctrl: #5c78e8; --ctrl2: #a8baf8; --ctrl-ring: rgba(92, 120, 232, .4); }

/* ---------- 线性动画 ---------- */
/* 顶部流光扫描线 */
body::before {
  content: ""; position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300; pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, var(--ctrl2) 20%, #ffffff 38%, var(--ctrl) 55%, transparent 78%);
  background-size: 220% 100%;
  animation: lineFlow 4.5s linear infinite;
}
@keyframes lineFlow {
  0% { background-position: 130% 0; }
  100% { background-position: -130% 0; }
}
/* 页面标题下划线流光 */
.page-head h1::after {
  content: ""; display: block; height: 3px; margin-top: 4px; border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--ctrl2), #ffffff, var(--ctrl), transparent);
  background-size: 220% 100%;
  animation: lineFlow 5.5s linear infinite;
}
/* 分隔线流光 */
hr.aero {
  border: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), var(--ctrl2), rgba(255,255,255,.9), transparent);
  background-size: 220% 100%;
  animation: lineFlow 6.5s linear infinite;
  height: 2px; border-radius: 999px;
}
/* 导航当前项的动态下划线 */
.nav a.on { position: relative; }
.nav a.on::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 3px; height: 2.5px; border-radius: 999px;
  background: linear-gradient(90deg, var(--ctrl2), #ffffff, var(--ctrl));
  background-size: 200% 100%;
  animation: lineFlow 3.5s linear infinite;
}
/* 按钮悬停扫光 */
.aero-btn { position: relative; overflow: hidden; }
.aero-btn::after {
  content: ""; position: absolute; top: -30%; left: -130%; width: 60%; height: 160%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.65), transparent);
  transform: skewX(-20deg);
  transition: left .45s ease;
  pointer-events: none;
}
.aero-btn:hover::after { left: 140%; }
@media (prefers-reduced-motion: reduce) {
  body::before, .page-head h1::after, hr.aero, .nav a.on::after, .aero-btn::after { animation: none !important; }
}

/* ---------- 基础 ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(255, 255, 255, .55), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(255, 255, 255, .35), transparent 55%),
    linear-gradient(160deg, var(--bg1) 0%, var(--bg2) 55%, var(--bg3) 100%);
  background-attachment: fixed;
}
a { color: var(--ctrl); text-decoration: none; }
a:hover { filter: brightness(1.08); }
img { max-width: 100%; }
::selection { background: var(--ctrl2); color: var(--text); }

/* 漂浮气泡背景 */
.bubbles { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bubble {
  position: absolute; bottom: -120px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.95), rgba(255,255,255,.28) 45%, rgba(255,255,255,.06) 70%);
  box-shadow: inset -6px -10px 18px rgba(60,140,220,.25), 0 0 14px rgba(255,255,255,.35);
  animation: rise linear infinite;
}
@keyframes rise {
  0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  8%   { opacity: .9; }
  100% { transform: translateY(-115vh) translateX(30px) scale(1.15); opacity: 0; }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- 通用组件 ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 18px 16px 60px; position: relative; z-index: 1; }

.aero-panel {
  background: linear-gradient(165deg, var(--glass), var(--glass2));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--stroke);
  border-radius: var(--r);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.8);
}

.aero-card {
  background: linear-gradient(165deg, var(--glass), var(--glass2));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--stroke);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.75);
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.aero-card:hover { transform: translateY(-4px); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.85); }
/* 光泽扫过 */
.aero-card::after {
  content: ""; position: absolute; top: -60%; left: -80%;
  width: 55%; height: 220%;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.5) 50%, transparent 60%);
  transform: rotate(18deg);
  transition: left .55s ease;
  pointer-events: none;
}
.aero-card:hover::after { left: 130%; }

/* 拟物光泽按钮 */
.aero-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 20px; border-radius: 999px; border: 1px solid rgba(255,255,255,.85);
  background: linear-gradient(180deg, #ffffff 0%, var(--ctrl2) 45%, var(--ctrl) 100%);
  color: #fff; font-weight: 600; font-size: 14px; cursor: pointer;
  text-shadow: 0 1px 2px rgba(13,58,102,.35);
  box-shadow: 0 3px 10px rgba(13,58,102,.3), inset 0 1px 0 rgba(255,255,255,.95), inset 0 -3px 6px rgba(0,60,120,.25);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
  font-family: inherit;
}
.aero-btn:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(13,58,102,.36), inset 0 1px 0 rgba(255,255,255,.95), inset 0 -3px 6px rgba(0,60,120,.25); }
.aero-btn:active { transform: translateY(1px) scale(.98); box-shadow: 0 2px 6px rgba(13,58,102,.3), inset 0 2px 8px rgba(0,60,120,.35); }
.aero-btn.gold { background: linear-gradient(180deg, #fff3c4 0%, #ffd34d 45%, #f0a500 100%); text-shadow: 0 1px 2px rgba(140,90,0,.4); box-shadow: 0 3px 10px rgba(140,90,0,.35), inset 0 1px 0 #fff, inset 0 -3px 6px rgba(160,100,0,.3); }
.aero-btn.danger { background: linear-gradient(180deg, #ffd9d0 0%, #ff8a7a 45%, #e04a3a 100%); box-shadow: 0 3px 10px rgba(120,20,10,.35), inset 0 1px 0 rgba(255,255,255,.9), inset 0 -3px 6px rgba(120,20,10,.3); }
.aero-btn.ghost { background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.4)); color: var(--text); text-shadow: none; box-shadow: 0 2px 8px rgba(13,58,102,.18), inset 0 1px 0 #fff; }
.aero-btn.sm { padding: 5px 14px; font-size: 13px; }
.aero-btn:disabled { filter: grayscale(.5) brightness(.9); cursor: not-allowed; transform: none; }

/* 玻璃输入框 */
.aero-input, .aero-select, .aero-textarea {
  width: 100%; padding: 10px 14px; border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.55);
  color: var(--text); font-size: 14px; font-family: inherit;
  box-shadow: inset 0 2px 6px rgba(13,58,102,.12);
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.aero-input:focus, .aero-textarea:focus, .aero-select:focus {
  border-color: var(--ctrl);
  box-shadow: inset 0 2px 6px rgba(13,58,102,.12), 0 0 0 3px var(--ctrl-ring);
}
.aero-textarea { resize: vertical; min-height: 84px; }
.aero-label { display: block; font-size: 13px; font-weight: 600; color: var(--text2); margin: 14px 0 6px; }
.aero-select { appearance: auto; }

/* 品质色 */
.q-blue  { color: #2e86d8; }
.q-pink  { color: #e75a9e; }
.q-red   { color: #d8342c; }
.q-gold  { color: #d99700; }
.qb-blue { background: linear-gradient(180deg, #bfe6ff, #4da3e8); }
.qb-pink { background: linear-gradient(180deg, #ffd3e8, #f07ab8); }
.qb-red  { background: linear-gradient(180deg, #ffc4b8, #e86050); }
.qb-gold { background: linear-gradient(180deg, #ffe9a8, #f0b030); }

/* 徽章 */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(180deg, #fff7d8, #ffd34d);
  color: #7a5200; font-weight: 700; font-size: 13px;
  padding: 3px 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 2px 8px rgba(120,80,0,.3), inset 0 1px 0 #fff;
}
.badge .coin { width: 14px; height: 14px; border-radius: 50%; display: inline-block;
  background: radial-gradient(circle at 35% 30%, #fff8c0, #f0a500 70%); box-shadow: inset 0 -2px 3px rgba(150,100,0,.5); }

/* P币图标（独立使用，如市场挂单价） */
.coin { width: 14px; height: 14px; border-radius: 50%; display: inline-block;
  background: radial-gradient(circle at 35% 30%, #fff8c0, #f0a500 70%); box-shadow: inset 0 -2px 3px rgba(150,100,0,.5); }

/* 状态点 */
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 4px; vertical-align: middle; }
.dot.online  { background: #4ade80; box-shadow: 0 0 6px #4ade80; }
.dot.offline { background: #9db8cc; }
.dot.gaming  { background: #f5a623; box-shadow: 0 0 6px #f5a623; }

/* 顶部导航 */
.topbar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  position: sticky; top: 10px; z-index: 50;
  margin: 10px auto 0; width: calc(100% - 20px); max-width: 1180px;
  padding: 8px 18px; border-radius: 999px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; color: var(--text); text-shadow: 0 1px 0 rgba(255,255,255,.8); }
.logo:hover { filter: none; }
.logo-orb {
  width: 38px; height: 38px; border-radius: 50%; position: relative; flex: none;
  background: radial-gradient(circle at 32% 28%, #ffffff, var(--accent2) 42%, var(--accent) 100%);
  box-shadow: 0 4px 12px rgba(13,58,102,.35), inset 0 -5px 10px rgba(0,60,120,.3);
  animation: bob 4.5s ease-in-out infinite;
}
.logo-orb::after {
  content: ""; position: absolute; left: 22%; top: 12%; width: 26%; height: 16%;
  border-radius: 50%; background: rgba(255,255,255,.95); transform: rotate(-24deg);
}
.nav { display: flex; gap: 2px; flex-wrap: wrap; }
.nav a {
  padding: 7px 15px; border-radius: 999px; color: var(--text); font-weight: 600; font-size: 14px;
  transition: background .15s ease;
}
.nav a:hover { background: rgba(255,255,255,.4); filter: none; }
.nav a.on { background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.4)); box-shadow: inset 0 1px 0 #fff, 0 2px 6px rgba(13,58,102,.2); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
/* 导航收缩按钮：收缩后顶栏只剩 logo+标题，点 logo 或按钮展开 */
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border: none; border-radius: 50%; flex: none;
  background: rgba(255,255,255,.45); color: var(--text); font-size: 13px; cursor: pointer;
  box-shadow: inset 0 1px 0 #fff, 0 2px 5px rgba(13,58,102,.18);
  transition: background .15s ease;
}
.nav-toggle:hover { background: rgba(255,255,255,.7); }
.topbar.collapsed .nav, .topbar.collapsed .top-right { display: none; }
.topbar.collapsed .nav-toggle { margin-left: auto; }

/* 头像 */
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; overflow: hidden; flex: none;
  border: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 3px 10px rgba(13,58,102,.3), inset 0 -2px 5px rgba(0,60,120,.25);
  background: linear-gradient(165deg, #bfe6ff, #4da3e8);
  vertical-align: middle;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-auto { color: #fff; font-weight: 700; text-shadow: 0 1px 2px rgba(13,58,102,.4); }
.avatar-auto.a1 { background: linear-gradient(165deg, #ffd9c4, #f07850); }
.avatar-auto.a2 { background: linear-gradient(165deg, #d0f7c4, #58b840); }
.avatar-auto.a3 { background: linear-gradient(165deg, #ffd0e8, #f05aa8); }
.avatar-auto.a4 { background: linear-gradient(165deg, #d8d0ff, #7a5af0); }
.avatar-auto.a5 { background: linear-gradient(165deg, #fff3c4, #f0a830); }

/* 通知铃铛 */
.bell { position: relative; cursor: pointer; }
.bell .ico { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.45)); box-shadow: 0 2px 8px rgba(13,58,102,.22), inset 0 1px 0 #fff; }
.bell .n {
  position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px;
  background: linear-gradient(180deg, #ff8a7a, #e04030); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 999px; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid #fff; box-shadow: 0 2px 6px rgba(120,20,10,.4);
}

/* 下拉面板 */
.dropdown { position: relative; }
.dropdown-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  min-width: 230px; padding: 10px; border-radius: var(--r);
  background: linear-gradient(165deg, rgba(255,255,255,.94), rgba(220,240,255,.92));
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--stroke); box-shadow: var(--shadow);
  max-height: 380px; overflow: auto;
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu .item { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; color: var(--text); }
.dropdown-menu .item:hover { background: rgba(126,216,255,.25); }
.dropdown-menu .item .t { font-size: 13px; }
.dropdown-menu .item .d { font-size: 11px; color: var(--text2); }
.dropdown-menu hr { border: none; border-top: 1px solid rgba(13,58,102,.15); margin: 8px 0; }

/* ---------- 页面标题 ---------- */
.page-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 8px 0 18px; }
.page-head h1 { margin: 0; font-size: 26px; text-shadow: 0 1px 0 rgba(255,255,255,.8); letter-spacing: .5px; }
.page-head .sub { color: var(--text2); font-size: 14px; }

/* ---------- 首页（PS5 启动器风） ---------- */
.hero {
  position: relative; border-radius: 24px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 320px; padding: 26px;
  color: #fff; text-shadow: 0 2px 6px rgba(13,58,102,.5);
}
.hero .h-bg { position: absolute; inset: 0; z-index: -1; }
.hero h2 { margin: 0 0 8px; font-size: 32px; }
.hero p { margin: 0 0 16px; font-size: 15px; max-width: 560px; }
.card-row { display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 16px; scroll-snap-type: x mandatory; }
.card-row > * { scroll-snap-align: start; }
.row-title { display: flex; align-items: center; gap: 8px; margin: 22px 0 10px; font-size: 19px; font-weight: 700; text-shadow: 0 1px 0 rgba(255,255,255,.75); }
.row-title .orb { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--accent) 80%); box-shadow: 0 2px 6px rgba(13,58,102,.4); }
.game-tile, .case-tile, .music-tile { width: 210px; flex: none; }
.game-tile .thumb, .case-tile .thumb, .music-tile .thumb {
  height: 118px; border-radius: 14px 14px 0 0; display: flex; align-items: center; justify-content: center;
  font-size: 44px; text-shadow: 0 3px 8px rgba(13,58,102,.4); color: #fff; position: relative; overflow: hidden;
}
.game-tile .thumb img, .case-tile .thumb img { width: 100%; height: 100%; object-fit: cover; }
.game-tile .body, .case-tile .body, .music-tile .body { padding: 12px 14px 14px; }
.game-tile .name, .case-tile .name, .music-tile .name { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.game-tile .meta, .case-tile .meta, .music-tile .meta { font-size: 12px; color: var(--text2); }

/* ---------- 登录/注册 ---------- */
.auth-box { max-width: 420px; margin: 8vh auto 0; padding: 30px 34px 34px; text-align: center; }
.auth-box .logo-orb { width: 64px; height: 64px; margin: 0 auto 12px; }
.auth-box h1 { margin: 0 0 4px; font-size: 24px; }
.auth-box .sub { color: var(--text2); margin: 0 0 18px; font-size: 14px; }
.auth-box form { text-align: left; }
.auth-tabs { display: flex; background: rgba(255,255,255,.35); border-radius: 999px; padding: 4px; margin-bottom: 20px; border: 1px solid var(--stroke); }
.auth-tabs a { flex: 1; text-align: center; padding: 8px 0; border-radius: 999px; color: var(--text); font-weight: 600; }
.auth-tabs a.on { background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.55)); box-shadow: 0 2px 8px rgba(13,58,102,.25), inset 0 1px 0 #fff; }
.alert { padding: 11px 16px; border-radius: 12px; margin-bottom: 14px; font-size: 14px; border: 1px solid; }
.alert.err { background: rgba(255,220,210,.75); border-color: rgba(220,90,70,.5); color: #a03020; }
.alert.ok  { background: rgba(215,245,205,.75); border-color: rgba(90,170,60,.5); color: #2a6a10; }

/* ---------- 开箱 ---------- */
.case-boxes { display: flex; gap: 18px; flex-wrap: wrap; }
.case-box { width: 240px; text-align: center; padding: 18px; }
.case-box .thumb { height: 150px; border-radius: 12px; overflow: hidden; margin-bottom: 10px; background: rgba(255,255,255,.3); }
.case-box .thumb img { width: 100%; height: 100%; object-fit: cover; }
.case-box .name { font-weight: 700; font-size: 16px; }
.case-box .price { margin: 8px 0 12px; }

/* 开箱滚动动画 */
.roll-stage { text-align: center; padding: 30px 0; position: relative; }
.roll-strip {
  display: flex; gap: 14px; overflow: hidden; margin: 0 auto; max-width: 900px;
  padding: 14px 0; border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,.15));
  border: 1px solid var(--stroke); box-shadow: inset 0 4px 18px rgba(13,58,102,.25);
  position: relative;
}
.roll-strip .inner { display: flex; gap: 14px; }
.roll-cell {
  width: 130px; height: 130px; flex: none; border-radius: 12px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; font-size: 40px; color: #fff; font-weight: 700;
  text-shadow: 0 2px 4px rgba(13,58,102,.4); position: relative; overflow: hidden;
}
.roll-cell img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.roll-cell .lbl { position: absolute; bottom: 4px; left: 0; right: 0; font-size: 11px; }
.roll-arrow { position: absolute; top: 0; bottom: 0; left: 50%; margin-left: -1.5px; width: 3px; z-index: 2;
  background: linear-gradient(180deg, #fff, #ffe680 50%, #fff); box-shadow: 0 0 10px rgba(255,230,128,.9); border-radius: 2px; }
.result-banner { display: none; text-align: center; margin: 18px auto 0; max-width: 420px; padding: 18px 24px; }
.result-banner .big { font-size: 40px; }
.result-banner .n { font-size: 19px; font-weight: 700; }

/* ---------- 游戏大厅 ---------- */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.game-card { padding: 0; cursor: pointer; }
.game-card .thumb { height: 128px; border-radius: var(--r) var(--r) 0 0; display: flex; align-items: center; justify-content: center; font-size: 52px; color: #fff; text-shadow: 0 3px 10px rgba(13,58,102,.45); }
.game-card .body { padding: 13px 16px 15px; }
.game-card .name { font-weight: 700; font-size: 16px; }
.game-card .desc { font-size: 12.5px; color: var(--text2); min-height: 38px; }
.game-card .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-size: 12.5px; color: var(--text2); }

/* 游戏桌（联机等待/棋盘） */
.game-layout { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }
.game-side { padding: 16px; }
.game-side h3 { margin: 0 0 10px; font-size: 16px; }
.player-list { list-style: none; margin: 0 0 14px; padding: 0; }
.player-list li { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 10px; background: rgba(255,255,255,.4); margin-bottom: 6px; font-size: 14px; }
.player-list li .you { margin-left: auto; font-size: 11px; color: var(--ctrl); font-weight: 700; }
.game-log { max-height: 200px; overflow: auto; font-size: 12.5px; color: var(--text2); }
.game-log div { padding: 3px 0; border-bottom: 1px dashed rgba(13,58,102,.15); }

/* ---------- 联机等待匹配 ---------- */
.match-box { text-align: center; padding: 24px 10px 10px; }
.match-ring {
    width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center; font-size: 38px;
    background: radial-gradient(circle at 35% 30%, #ffffff, var(--accent2) 45%, var(--accent) 100%);
    box-shadow: 0 6px 18px rgba(13, 58, 102, .35), inset 0 -5px 10px rgba(0, 60, 120, .3);
    animation: matchPulse 1.6s ease-in-out infinite;
}
@keyframes matchPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 6px 18px rgba(13, 58, 102, .35), inset 0 -5px 10px rgba(0, 60, 120, .3); }
    50% { transform: scale(1.08); box-shadow: 0 8px 26px rgba(13, 58, 102, .5), inset 0 -5px 10px rgba(0, 60, 120, .3); }
}
.match-title { font-size: 17px; font-weight: 700; }
.match-rooms { color: var(--text2); font-size: 13px; margin: 4px 0 16px; }
.match-rooms .code-big { font-size: 23px; letter-spacing: 4px; color: var(--ctrl); }
.match-slots { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 16px; }
.match-slot {
    width: 150px; padding: 13px 8px; border-radius: 14px;
    background: rgba(255, 255, 255, .45); border: 1px dashed var(--stroke);
    display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 14px;
}
.match-slot.filled { border-style: solid; box-shadow: 0 3px 10px rgba(13, 58, 102, .18); }
.match-slot.empty { color: var(--text2); justify-content: center; min-height: 100px; animation: slotBlink 1.6s ease-in-out infinite; }
@keyframes slotBlink { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.match-acts { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.size-pick { display: inline-flex; gap: 6px; background: rgba(255, 255, 255, .35); border: 1px solid var(--stroke); border-radius: 999px; padding: 3px; }
.size-pick button { border-radius: 999px !important; }
.size-pick button.on { background: linear-gradient(180deg, var(--ctrl2), var(--ctrl)); color: #fff; box-shadow: 0 2px 8px rgba(13, 58, 102, .3); }
@media (prefers-reduced-motion: reduce) {
    .match-ring, .match-slot.empty { animation: none !important; }
}

/* 棋盘 */
.board-wrap { text-align: center; padding: 18px; }
.board { display: inline-grid; gap: 3px; background: rgba(0,40,90,.35); padding: 8px; border-radius: 12px; box-shadow: inset 0 3px 10px rgba(0,30,70,.5); }
.cell {
  width: 30px; height: 30px; border-radius: 6px; border: none; cursor: pointer;
  background: linear-gradient(180deg, #ffe9c4, #e8b878);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -2px 4px rgba(120,70,20,.3);
  position: relative; font-size: 15px; line-height: 30px; color: #333; padding: 0;
}
.cell:hover { filter: brightness(1.08); }
.cell.black { background: radial-gradient(circle at 35% 30%, #7a8aa0, #1c2634); box-shadow: inset 0 -2px 4px rgba(0,0,0,.5); }
.cell.white { background: radial-gradient(circle at 35% 30%, #ffffff, #c8d8e8); }
.cell.win { outline: 3px solid var(--gold); outline-offset: -3px; }
/* 五子棋：对方最后一次落子的格子金色呼吸圈标记 */
.cell.last::after {
    content: ''; position: absolute; inset: 1px; border-radius: 5px;
    border: 3px solid #ffd34d; pointer-events: none;
    animation: lastGlow 1.2s ease-in-out infinite;
}
@keyframes lastGlow {
    0%, 100% { opacity: 1; box-shadow: 0 0 7px 2px rgba(255, 211, 77, .9); }
    50% { opacity: .5; box-shadow: 0 0 2px 0 rgba(255, 211, 77, .35); }
}
@media (prefers-reduced-motion: reduce) { .cell.last::after { animation: none; } }

/* ---------- 围棋（19 路） ---------- */
.go-board {
    position: relative; width: min(560px, 94vw); aspect-ratio: 1 / 1; margin: 0 auto;
    background: linear-gradient(160deg, #f2dcae, #d9a860);
    border: 8px solid #b87a30; border-radius: 16px; overflow: hidden;
    box-shadow: inset 0 2px 10px rgba(120, 70, 20, .35), 0 6px 18px rgba(13, 58, 102, .3);
}
.go-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.go-lines line { stroke: #5d3f1e; stroke-width: 1.1; }
.go-lines circle { fill: #5d3f1e; }
.go-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(19, 1fr); grid-template-rows: repeat(19, 1fr); }
.go-cell { position: relative; background: transparent; border: none; cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; }
.go-cell:hover { background: rgba(255, 255, 255, .22); }
.go-stone {
    position: relative; width: 88%; height: 88%; border-radius: 50%; display: block; pointer-events: none;
    box-shadow: 0 3px 7px rgba(0, 0, 0, .5), inset 0 -3px 6px rgba(0, 0, 0, .25);
}
.go-stone.black { background: radial-gradient(circle at 32% 28%, #93a6bc, #131d2a 72%); }
.go-stone.white { background: radial-gradient(circle at 32% 28%, #ffffff, #c6d7e6 78%); box-shadow: 0 3px 7px rgba(13, 58, 102, .4), inset 0 -3px 6px rgba(90, 130, 170, .3); }
/* 对方最后一次落子：金色呼吸圈（与五子棋同款） */
.go-stone.last::after {
    content: ''; position: absolute; inset: -4%; border-radius: 50%;
    border: 3px solid #ffd34d; pointer-events: none;
    animation: lastGlow 1.2s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .go-stone.last::after { animation: none; } }
.go-captured { margin-bottom: 12px; font-size: 13.5px; }

/* UNO 桌 */
.uno-opponents { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 10px; }
.uno-opp { padding: 10px 16px; border-radius: 12px; text-align: center; font-size: 13px; background: rgba(255,255,255,.35); border: 1px solid var(--stroke); min-width: 96px; }
.uno-opp .cnt { font-weight: 700; font-size: 15px; }
.uno-discard { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 12px 0; flex-wrap: wrap; }
.uno-card {
  width: 74px; height: 108px; border-radius: 10px; position: relative; flex: none;
  background: linear-gradient(180deg, #ffffff, #eef4f8);
  border: 1px solid rgba(13,58,102,.25);
  box-shadow: 0 3px 8px rgba(13,58,102,.3), inset 0 1px 0 #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 700; color: #222;
  transition: transform .15s ease, margin-top .15s ease;
}
.uno-card.r { color: #d8342c; } .uno-card.g { color: #2f9e2f; }
.uno-card.b { color: #2e6fd8; } .uno-card.y { color: #d9a000; }
.uno-card.wild { background: linear-gradient(135deg, #ff8a7a 0 24%, #ffd34d 24% 50%, #6fc86f 50% 74%, #6fa8ff 74%); color: #fff; }
.uno-card .big { position: absolute; font-size: 34px; }
.uno-hand { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; padding: 12px; min-height: 130px;
  background: rgba(255,255,255,.3); border-radius: 14px; border: 1px solid var(--stroke); }
.uno-hand .uno-card { cursor: pointer; }
.uno-hand .uno-card:hover { transform: translateY(-12px); }
.uno-hand .uno-card.unplayable { filter: grayscale(.55) brightness(.9); cursor: not-allowed; }
.uno-color-pick { display: none; gap: 10px; justify-content: center; margin: 10px 0; }
.uno-color-pick button { width: 40px; height: 40px; border-radius: 50%; border: 3px solid #fff; cursor: pointer; box-shadow: 0 3px 8px rgba(13,58,102,.4); }
.uno-draw-pile { width: 74px; height: 108px; border-radius: 10px; flex: none;
  background: linear-gradient(180deg, #e8f4ff, #a8c8e8); border: 1px solid rgba(13,58,102,.3);
  box-shadow: 0 3px 8px rgba(13,58,102,.3); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--text2); cursor: pointer; }

/* ---------- 斗地主桌 ---------- */
.ddz-opps { display: flex; justify-content: center; gap: 14px; margin-bottom: 4px; flex-wrap: wrap; }
.ddz-mid { text-align: center; margin: 8px 0; }
.ddz-last { display: flex; gap: 6px; flex-wrap: wrap; min-height: 66px; align-items: center; margin: 6px 0; }
.ddz-card {
  width: 50px; height: 72px; border-radius: 8px; position: relative; flex: none;
  background: linear-gradient(180deg, #ffffff, #eef4f8);
  border: 1px solid rgba(13,58,102,.25);
  box-shadow: 0 2px 6px rgba(13,58,102,.25), inset 0 1px 0 #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: #222;
  transition: transform .12s ease;
}
.ddz-card.r { color: #d8342c; }
.ddz-card.jk { background: linear-gradient(135deg, #fff4e8, #ffd9c0); color: #c8281a; font-size: 12px; }
.ddz-card.sm { width: 38px; height: 54px; font-size: 12px; border-radius: 6px; }
.ddz-card.sel { transform: translateY(-14px); box-shadow: 0 0 0 3px var(--ctrl), 0 6px 14px rgba(13,58,102,.35); }
.ddz-back { width: 50px; height: 72px; border-radius: 8px; flex: none;
  background: linear-gradient(180deg, #c8ddf0, #8aa8d0); border: 1px solid rgba(13,58,102,.3);
  box-shadow: 0 2px 6px rgba(13,58,102,.25); display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px; }
.ddz-hand { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; align-content: flex-start;
  padding: 12px; min-height: 92px; background: rgba(255,255,255,.3);
  border-radius: 14px; border: 1px solid var(--stroke); }
.ddz-hand .ddz-card { cursor: pointer; }
.ddz-hand .ddz-card:hover { transform: translateY(-10px); }
.ddz-hand .ddz-card.sel:hover { transform: translateY(-16px); }
.ddz-acts { display: flex; gap: 10px; justify-content: center; margin-top: 12px; flex-wrap: wrap; align-items: center; }

/* ---------- 老虎机 ---------- */
.slot-reels { display: flex; gap: 14px; justify-content: center; margin: 10px 0 6px; }
.slot-reel {
  width: 96px; height: 96px; border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #e6eef6);
  border: 1px solid rgba(13,58,102,.3);
  box-shadow: 0 4px 10px rgba(13,58,102,.35), inset 0 2px 0 #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 52px; line-height: 1;
}
.slot-reel.spin { animation: slotShake .12s linear infinite alternate; }
@keyframes slotShake { from { transform: translateY(-2px); } to { transform: translateY(2px); } }
.slot-reel.win { border-color: #e8b800; box-shadow: 0 0 14px rgba(232,184,0,.85); animation: slotWin .45s ease-in-out 3; }
@keyframes slotWin { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.paytable { width: 100%; border-collapse: collapse; font-size: 14px; }
.paytable th, .paytable td { padding: 8px 10px; border-bottom: 1px solid var(--stroke); text-align: center; }
.paytable th { background: rgba(255,255,255,.45); color: var(--text2); font-size: 13px; }
.paytable tr:last-child td { border-bottom: none; }

/* ---------- 音乐一起听 ---------- */
.music-layout { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
.music-room { padding: 20px; }
.music-room h1 { margin: 0 0 4px; font-size: 22px; }
.music-room .code-big { font-size: 15px; color: var(--text2); margin-bottom: 14px; }
.music-room .code-big b { font-size: 26px; letter-spacing: 4px; color: var(--ctrl); }
.playlist { list-style: none; margin: 14px 0 0; padding: 0; }
.playlist li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(255,255,255,.38); margin-bottom: 7px; font-size: 14px; border: 1px solid var(--stroke); cursor: pointer; }
.playlist li.on { background: rgba(255,255,255,.75); box-shadow: 0 2px 8px rgba(13,58,102,.25); }
.playlist li .no { width: 22px; height: 22px; border-radius: 50%; background: var(--ctrl); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.playlist li .del { margin-left: auto; cursor: pointer; color: var(--danger); }
/* 声波动画画布 */
#viz { width: 100%; height: 96px; border-radius: 12px; display: block; background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,.08)); }
.eq-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.eq-row label { display: flex; flex-direction: column; align-items: center; font-size: 11px; color: var(--text2); gap: 2px; }
.eq-row input[type=range] { width: 64px; }
/* 播放器主题 */
body[data-pt="night"] .player-box .aero-panel { background: linear-gradient(165deg, rgba(10,20,50,.8), rgba(20,40,90,.6)); color: #dfe8ff; }
body[data-pt="grass"] .player-box .aero-panel { background: linear-gradient(165deg, rgba(40,90,20,.6), rgba(90,160,50,.4)); color: #eaffdd; }

/* 大厅在线房间列表（点击直接加入） */
.m-room-row {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 10px 14px; margin-bottom: 8px; text-align: left;
    border-radius: 12px; border: 1px solid var(--stroke);
    background: linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,255,255,.3));
    cursor: pointer; color: var(--text); font: inherit;
}
.m-room-row:hover { background: rgba(255,255,255,.85); box-shadow: 0 2px 8px rgba(13,58,102,.25); }
.m-room-row .t { font-weight: 700; font-size: 14px; flex: none; max-width: 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-room-row .s { flex: 1; font-size: 12px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-room-row .code { font-size: 15px; letter-spacing: 2px; color: var(--ctrl); font-weight: 700; }

/* 房间成员板块（手机端位于最底部，名单可收缩） */
.members-panel { margin-top: 16px; }
.m-members-head { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.m-collapse-ico { margin-left: auto; font-size: 14px; }
#m-members li .dot { flex: none; }

/* ---------- 社区 ---------- */
.community-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.comm-card { padding: 18px; }
.comm-card .top { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.comm-card .id { font-weight: 700; font-size: 16px; }
.comm-card .sig { font-size: 12.5px; color: var(--text2); min-height: 19px; margin-bottom: 8px; }
.comm-card .latest { display: flex; align-items: center; gap: 8px; font-size: 12.5px; background: rgba(255,255,255,.35); border-radius: 10px; padding: 6px 10px; margin-bottom: 10px; }
.comm-card .latest img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; }
.comm-card .bili { margin-bottom: 10px; }
.comm-card .bili iframe { width: 100%; aspect-ratio: 16/9; border: none; border-radius: 10px; box-shadow: 0 3px 10px rgba(13,58,102,.3); }
.comm-card .media { margin-bottom: 10px; }
.comm-card .media img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 10px; border: 1px solid rgba(255,255,255,.85); box-shadow: 0 3px 10px rgba(13,58,102,.3); display: block; }
.comm-card .acts { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- 用户家园 ---------- */
.user-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 22px 26px; }
.user-head .info h1 { margin: 0 0 4px; font-size: 24px; }
.tweet { padding: 16px 20px; margin-bottom: 14px; }
.tweet .top { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.tweet .who { font-weight: 700; }
.tweet .when { color: var(--text2); font-size: 12px; }
.tweet .content { margin-bottom: 10px; word-break: break-word; }
.tweet .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.tweet .cmts { margin-top: 10px; border-top: 1px dashed rgba(13,58,102,.2); padding-top: 8px; }
.tweet .cmts .c { font-size: 13px; padding: 4px 0; }
.tweet .cmts .c b { margin-right: 6px; }

/* ---------- 聊天 ---------- */
.chat-layout { display: grid; grid-template-columns: 1fr 240px; gap: 16px; align-items: start; }
.chat-box { display: flex; flex-direction: column; height: 66vh; min-height: 420px; }
.chat-msgs { flex: 1; overflow: auto; padding: 14px 18px; }
.chat-msg { display: flex; gap: 9px; margin-bottom: 12px; align-items: flex-start; }
.chat-msg .bub { background: rgba(255,255,255,.62); border-radius: 4px 14px 14px 14px; padding: 7px 12px; box-shadow: 0 2px 6px rgba(13,58,102,.15); word-break: break-word; }
.chat-msg.me { flex-direction: row-reverse; }
.chat-msg.me .bub { border-radius: 14px 4px 14px 14px; background: rgba(178,226,255,.72); }
.chat-msg .who { font-size: 12px; color: var(--text2); font-weight: 700; }
.chat-msg .bub .mention { color: var(--ctrl); font-weight: 700; cursor: pointer; }
.chat-input-row { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--stroke); align-items: flex-end; }
.chat-input-row textarea { flex: 1; min-height: 42px; max-height: 120px; }
.emoji-btn { width: 42px; height: 42px; flex: none; }
.emoji-panel { display: none; grid-template-columns: repeat(8, 1fr); gap: 4px; padding: 10px; margin: 0 12px 12px;
  max-height: 170px; overflow: auto; background: rgba(255,255,255,.55); border-radius: 12px; }
.emoji-panel.open { display: grid; }
.emoji-panel span { font-size: 20px; cursor: pointer; text-align: center; padding: 3px; border-radius: 8px; }
.emoji-panel span:hover { background: rgba(126,216,255,.4); }
.at-list { position: absolute; bottom: calc(100% + 4px); left: 0; max-height: 180px; overflow: auto; min-width: 160px;
  background: rgba(255,255,255,.96); border-radius: 12px; box-shadow: var(--shadow); border: 1px solid var(--stroke); z-index: 30; }
.at-list div { padding: 7px 14px; cursor: pointer; font-size: 14px; }
.at-list div:hover { background: rgba(126,216,255,.35); }

/* ---------- 聊天地带：红包 ---------- */
.redpack-panel { display: none; padding: 12px 14px; margin: 0 12px 12px; background: rgba(255,255,255,.62);
  border-radius: 12px; border: 1px solid var(--stroke); }
.redpack-panel.open { display: block; }
.rp-send-title { font-weight: 700; margin-bottom: 8px; }
.rp-send-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; flex-wrap: wrap; }
.rp-send-row label { font-size: 12px; color: var(--text2); display: flex; align-items: center; gap: 6px; }
.rp-send-row label .aero-input { width: 110px; }
#rp-note { flex: 1; min-width: 160px; }
/* 红包气泡（抢红包按钮/名单/我的战果） */
.chat-msg .bub.rp { min-width: 220px; max-width: 330px; background: linear-gradient(180deg, #fff4f0, #ffe3da);
  border: 1px solid #f0b9a8; }
.rp-who { font-weight: 700; color: #b33a1f; font-size: 13px; }
.rp-head { display: flex; align-items: center; gap: 6px; margin: 3px 0 6px; }
.rp-ico { font-size: 22px; }
.rp-note { color: #b05a3f; font-size: 13px; }
.rp-meta { font-size: 12px; color: var(--text2); margin-bottom: 6px; }
.rp-act { margin-bottom: 6px; }
.rp-got { color: #c0392b; font-weight: 700; font-size: 13px; }
.rp-grabs { border-top: 1px dashed rgba(179,58,31,.35); padding-top: 6px; margin-top: 2px; max-height: 110px; overflow: auto; }
.rp-grab-line { display: flex; gap: 8px; font-size: 12px; color: var(--text2); align-items: baseline; }
.rp-grab-line span:first-child { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-grab-line b { color: #c0392b; }

/* ---------- 聊天地带：聊天机器人 ---------- */
.chat-msg.bot .bub { background: linear-gradient(135deg, rgba(214,255,244,.8), rgba(178,242,255,.72)); border: 1px solid rgba(110,220,210,.4); }
.chat-msg.bot .who { color: #0f8a86; }
.bot-typing { display: inline-flex; gap: 5px; padding: 12px 16px; align-items: center; }
.bot-typing .t-dot { width: 7px; height: 7px; border-radius: 50%; background: #2bb8c8; animation: botBlink 1.1s infinite; }
.bot-typing .t-dot:nth-child(2) { animation-delay: .18s; }
.bot-typing .t-dot:nth-child(3) { animation-delay: .36s; }
@keyframes botBlink { 0%, 100% { opacity: .25; transform: translateY(1px); } 50% { opacity: 1; transform: translateY(-3px); } }

/* ---------- 账户 ---------- */
.acct-layout { display: grid; grid-template-columns: 280px 1fr; gap: 16px; align-items: start; }
.acct-nav { padding: 10px; position: sticky; top: 84px; }
.acct-nav a { display: block; padding: 10px 16px; border-radius: 10px; color: var(--text); font-weight: 600; font-size: 14px; }
.acct-nav a:hover { background: rgba(255,255,255,.4); filter: none; }
.acct-nav a.on { background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.5)); box-shadow: 0 2px 8px rgba(13,58,102,.22), inset 0 1px 0 #fff; }
.acct-main { padding: 22px 26px; }
.theme-dots { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.theme-dot { width: 44px; height: 44px; border-radius: 50%; cursor: pointer; border: 3px solid #fff; box-shadow: 0 3px 10px rgba(13,58,102,.3); }
.theme-dot.on { outline: 3px solid var(--gold); outline-offset: 2px; }
.preview-card { display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.4); border-radius: 14px; padding: 14px; border: 1px solid var(--stroke); margin-top: 14px; }

/* ---------- 后台 ---------- */
.admin-layout { display: grid; grid-template-columns: 230px 1fr; gap: 16px; align-items: start; }
.admin-nav { padding: 10px; position: sticky; top: 84px; }
.admin-nav a { display: block; padding: 10px 16px; border-radius: 10px; color: var(--text); font-weight: 600; font-size: 14px; }
.admin-nav a:hover { background: rgba(255,255,255,.4); filter: none; }
.admin-nav a.on { background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.5)); box-shadow: 0 2px 8px rgba(13,58,102,.22), inset 0 1px 0 #fff; }
.admin-main { padding: 22px 26px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { padding: 14px 18px; text-align: center; }
.stat .v { font-size: 26px; font-weight: 700; }
.stat .k { font-size: 12.5px; color: var(--text2); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; padding: 8px 10px; color: var(--text2); font-size: 12.5px; border-bottom: 2px solid rgba(13,58,102,.2); }
.tbl td { padding: 8px 10px; border-bottom: 1px dashed rgba(13,58,102,.15); }
.tbl .thumb { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; vertical-align: middle; }
/* 聊天机器人设置：玻璃小卡（头像泡 + 名称 + 状态） */
.bot-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-top: 14px; }
.bot-face { width: 56px; height: 56px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px;
  background: radial-gradient(circle at 32% 28%, #ffffff, #bdf0ff 45%, #5fd0ef 100%);
  border: 2px solid rgba(255,255,255,.9); box-shadow: 0 4px 14px rgba(13,58,102,.25), inset 0 -6px 10px rgba(0,110,160,.25); }
.bot-name { font-weight: 700; font-size: 16px; }

/* ---------- 提示 toast ---------- */
#toast { position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 200;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast-item { background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(225,242,255,.96));
  border: 1px solid var(--stroke); border-radius: 999px; padding: 10px 22px; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow); animation: toastIn .25s ease; max-width: 88vw; }
.toast-item.err { background: linear-gradient(180deg, #ffe8e0, #ffd0c4); }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- 模态框 ---------- */
.modal-mask { position: fixed; inset: 0; z-index: 150; background: rgba(10,35,65,.45); display: flex; align-items: center; justify-content: center; padding: 16px; backdrop-filter: blur(3px); }
.modal-box { width: 100%; max-width: 440px; padding: 24px 26px; max-height: 86vh; overflow: auto; }
.modal-box h3 { margin: 0 0 14px; font-size: 18px; }
.modal-acts { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

/* ---------- 其他 ---------- */
.empty { text-align: center; color: var(--text2); padding: 44px 0; }
.empty .ico { font-size: 52px; display: block; margin-bottom: 10px; }
.loading { text-align: center; color: var(--text2); padding: 30px; font-size: 14px; }
.section-title { font-size: 19px; font-weight: 700; margin: 22px 0 10px; text-shadow: 0 1px 0 rgba(255,255,255,.75); }
hr.aero { border: none; border-top: 1px solid rgba(255,255,255,.6); margin: 16px 0; box-shadow: 0 1px 0 rgba(13,58,102,.1); }
.muted { color: var(--text2); font-size: 13px; }
.gap6 { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* ---------- 市场（Frutiger Aero 玻璃风） ---------- */
.stock-panel { display: flex; gap: 10px 22px; flex-wrap: wrap; align-items: center; padding: 18px 24px; margin-bottom: 16px; }
.stock-idx { min-width: 200px; }
.stock-idx .k { font-size: 12.5px; font-weight: 700; color: var(--text2); }
.stock-idx .v { font-size: 34px; font-weight: 800; background: linear-gradient(180deg, #2ea0e0, #1460a8); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1.15; }
.stock-idx .d { font-size: 12px; color: var(--text2); }
.stock-cell { display: flex; flex-direction: column; gap: 2px; padding: 8px 16px; border-radius: 12px; background: rgba(255,255,255,.45); border: 1px solid var(--stroke); min-width: 110px; }
.stock-cell b { font-size: 18px; }
.stock-cell span { font-size: 11.5px; color: var(--text2); }
.stock-cell.wide { min-width: 260px; }
.stock-cell.wide b { font-size: 13px; font-weight: 600; }

.market-tabs { display: inline-flex; gap: 4px; padding: 6px; margin-bottom: 18px; }
.market-tabs a { padding: 8px 22px; border-radius: 999px; color: var(--text); font-weight: 700; font-size: 14px; }
.market-tabs a.on { background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(230,246,255,.75)); box-shadow: 0 2px 8px rgba(13,58,102,.25), inset 0 1px 0 #fff; }
.market-grid { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
.market-col { padding: 18px 20px; }
.market-side { display: flex; flex-direction: column; gap: 14px; }
#market-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.listing-card { padding: 14px; }
.lc-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; min-height: 52px; }
.lc-top span { font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lc-seller { font-size: 12.5px; color: var(--text2); margin-bottom: 4px; }
.lc-price { font-size: 18px; font-weight: 800; color: #d97a00; display: flex; align-items: center; gap: 6px; }
.offer-row { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px dashed rgba(13,58,102,.15); flex-wrap: wrap; }

/* 市场搜索框 + 分页（每页 9 件） */
.market-search { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; align-items: center; }
.market-search input { flex: 1; min-width: 160px; }
.pager-info { text-align: center; margin: 14px 0 8px; font-size: 12px; }
.pager { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pager .aero-btn { min-width: 40px; padding: 6px 13px; }
.pager .aero-btn.pg-on { background: linear-gradient(180deg, #ffffff 0%, #bfe6ff 45%, var(--ctrl) 100%); box-shadow: 0 3px 10px rgba(13,58,102,.4), inset 0 1px 0 rgba(255,255,255,.95), inset 0 -3px 6px rgba(0,60,120,.25); }
.pg-dots { align-self: center; color: var(--text2); padding: 0 2px; }

.alch-tier { padding: 16px 20px; margin-bottom: 14px; max-width: 860px; }
.alch-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.alch-head b { font-size: 15px; }
.alch-items { display: flex; gap: 8px; flex-wrap: wrap; }
.alch-item { width: 84px; padding: 8px 6px; border-radius: 12px; text-align: center; cursor: pointer; background: rgba(255,255,255,.5); border: 2px solid transparent; box-shadow: 0 2px 6px rgba(13,58,102,.15); transition: transform .15s; }
.alch-item img { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; display: block; margin: 0 auto 4px; }
.alch-item span { font-size: 10.5px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alch-item.on { border-color: var(--ctrl); background: rgba(150,220,255,.55); box-shadow: 0 0 10px rgba(58,160,232,.45); transform: translateY(-2px); }
.alch-item:hover { transform: translateY(-2px); }

/* ---------- 看视频 ---------- */
.video-lobby-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; max-width: 980px; }
.video-room-grid { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }
.video-player-box { padding: 20px 24px; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #0b2a4a; border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 40px rgba(0,0,0,.5), 0 4px 14px rgba(13,58,102,.3); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .music-layout, .game-layout, .chat-layout, .acct-layout, .admin-layout, .market-grid, .video-room-grid { grid-template-columns: 1fr; }
  .acct-nav, .admin-nav { position: static; }
  .topbar { border-radius: 22px; }
}
@media (max-width: 600px) {
  body { font-size: 14px; }
  .hero { min-height: 240px; padding: 18px; }
  .hero h2 { font-size: 24px; }
  .game-tile, .case-tile, .music-tile { width: 160px; }
  .cell { width: 26px; height: 26px; }
  /* 开箱页手机端：箱子像主页那样横向滑动选择，减少屏占 */
  .case-boxes { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; padding: 4px 2px 14px; }
  .case-boxes .case-box { flex: none; width: 200px; scroll-snap-align: start; }
  /* 市场手机端：搜索框通栏、饰品两列排布、分页按钮加大触控面积 */
  .market-search { flex-wrap: nowrap; }
  .market-search input { min-width: 0; }
  #market-list { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .listing-card { padding: 12px; }
  .lc-top { min-height: 44px; }
  .lc-top img { width: 44px !important; height: 44px !important; }
  .lc-price { font-size: 16px; }
  .stock-idx, .stock-cell.wide { width: 100%; min-width: 0; }
  .stock-cell { flex: 1 1 42%; min-width: 0; }
  .stock-panel { padding: 14px 16px; }
  .market-tabs a { padding: 8px 14px; }
  .pager .aero-btn { min-width: 42px; min-height: 40px; padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .bubble, .logo-orb, .aero-card::after { animation: none !important; }
  .aero-card { transition: none; }
}

/* ============================================================
   泡泡地图（腾讯 LBS）· 全屏地图 + 玻璃悬浮面板
   ============================================================ */
body.map-body footer { display: none; }

/* 地图画布 z-index 必须 ≥ 0：此前用 -1 想沉到气泡背景之下，
   结果被 body 固定背景图层压住——地图可见却收不到任何鼠标/触摸事件（拖拽、点地图标点全部失效） */
.map-page { position: fixed; inset: 0; z-index: 0; }
#map-canvas { width: 100%; height: 100%; }

/* 装饰气泡仍飘在地图上空（自身 pointer-events:none 不拦截交互），悬浮面板再上一层 */
body.map-body .bubbles { z-index: 1; }
.map-ui { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
.map-ui > * { pointer-events: auto; }

.map-panel {
  position: absolute; left: 14px;
  /* top 由 JS 按顶栏实际高度动态设定（--map-panel-top），顶栏换行/收缩后不再压住面板 */
  top: var(--map-panel-top, 76px);
  max-height: calc(100vh - var(--map-panel-top, 76px) - 20px);
  width: 300px;
  display: flex; flex-direction: column; padding: 14px 16px;
  transition: width .2s ease, max-height .25s ease;
}
.map-panel-head { display: flex; align-items: center; gap: 8px; font-size: 15px; }
/* 面板收缩按钮：最小化后只剩头部（手机端收缩为底部小药丸，释放地图视野） */
.map-min-btn {
  flex: none; width: 26px; height: 26px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.45); color: var(--text); font-size: 12px; cursor: pointer;
  box-shadow: inset 0 1px 0 #fff, 0 2px 5px rgba(13,58,102,.18);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.map-min-btn:hover { background: rgba(255,255,255,.7); }
.map-panel.min { width: auto; right: auto; }
.map-panel.min .map-panel-body { display: none; }
.map-chip {
  margin-left: auto; font-size: 12px; color: var(--text2);
  background: rgba(255,255,255,.66); border: 1px solid var(--stroke);
  border-radius: 999px; padding: 1px 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px;
}
.map-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.map-btns .aero-btn.on { box-shadow: 0 0 0 2px var(--accent), 0 3px 10px rgba(13,58,102,.3); }
.map-mode-hint {
  margin-top: 8px; font-size: 12px; color: var(--text2);
  background: rgba(255,255,255,.55); border: 1px dashed var(--stroke);
  border-radius: 10px; padding: 6px 10px;
}
.map-sec-title { margin: 12px 0 6px; font-size: 13.5px; }
.map-nearby {
  flex: 1; overflow: auto; min-height: 48px;
  display: flex; flex-direction: column; gap: 6px; padding-right: 2px;
}
.map-user {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 12px;
  background: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.65); cursor: pointer;
  transition: background .15s ease;
}
.map-user:hover { background: rgba(255,255,255,.78); }
.map-legend {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px;
  font-size: 12px; color: var(--text2); align-items: center;
}
.map-legend .dot {
  display: inline-block; width: 11px; height: 11px; border-radius: 50%;
  vertical-align: -1px; margin-right: 3px;
}
.map-legend .dot.me { background: var(--accent); box-shadow: 0 0 6px var(--accent2); border: 1.5px solid #fff; }
.map-legend .dot.user { background: #fff; border: 1.5px solid #4b9de0; }

@media (max-width: 600px) {
  .map-panel { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; max-height: 42vh; }
  .map-nearby { min-height: 60px; }
  /* 手机端最小化：收缩成底部小药丸，只留标题与展开按钮 */
  .map-panel.min { max-height: none; padding: 8px 14px; border-radius: 999px; }
  .map-panel.min .map-chip { display: none; }
}

/* ============================================================
   全站图片放大灯箱（纪念品点击放大等共用）
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 260; background: rgba(8, 26, 48, .72);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  align-items: center; justify-content: center; padding: 26px;
  animation: lightboxIn .2s ease;
}
@keyframes lightboxIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-body { position: relative; max-width: min(860px, 94vw); text-align: center; }
.lightbox-close {
  position: absolute; top: -14px; right: -14px; width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(180deg, #fff, #cfe8ff); color: var(--text); font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; z-index: 2;
  border: 1px solid rgba(255,255,255,.9); box-shadow: 0 4px 14px rgba(0,0,0,.4);
}
.lightbox-title { margin-top: 12px; color: #fff; font-weight: 600; text-shadow: 0 2px 8px rgba(0,0,0,.6); }

/* 社区卡片：纪念品点击放大 */
.comm-card .latest.zoomable { cursor: zoom-in; }
.comm-card .latest.zoomable:hover { background: rgba(255,255,255,.55); box-shadow: 0 0 0 2px var(--ctrl-ring); }
.comm-card .latest .item-music-ico { display: inline-flex; width: 34px; height: 34px; border-radius: 8px;
  align-items: center; justify-content: center; background: linear-gradient(165deg, #d6fff4, #b2f2ff); flex: none; }

/* ---------- 聊天区侧栏：私聊 / 群聊 ---------- */
.pm-ai-entry { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.side-sub { font-size: 11.5px; color: var(--text2); margin: 2px 0 8px; }
.side-user { display: flex; align-items: center; gap: 6px; padding: 4px 0; font-size: 13.5px; }
.group-row {
  display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 10px;
  background: rgba(255,255,255,.45); border: 1px solid var(--stroke);
  margin-bottom: 6px; cursor: pointer; font-size: 13.5px; transition: background .15s ease;
}
.group-row:hover { background: rgba(255,255,255,.8); }
.group-box { max-width: 520px; }
.gp-members { font-size: 12px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px dashed rgba(13,58,102,.2); }
.gp-msgs { height: 300px; overflow: auto; padding: 8px 4px; background: rgba(255,255,255,.35); border-radius: 12px; border: 1px solid var(--stroke); }

/* ---------- 论坛（4chan 风） ---------- */
.forum-tabs { display: inline-flex; gap: 4px; padding: 6px; margin-bottom: 16px; }
.forum-tabs a { padding: 8px 22px; border-radius: 999px; color: var(--text); font-weight: 700; font-size: 14px; }
.forum-tabs a.on { background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(230,246,255,.75)); box-shadow: 0 2px 8px rgba(13,58,102,.25), inset 0 1px 0 #fff; }
.forum-layout { display: grid; grid-template-columns: 250px 1fr; gap: 16px; align-items: start; }
.forum-side { padding: 14px 16px; position: sticky; top: 84px; }
.forum-side h3 { margin: 4px 0 10px; font-size: 15px; }
.forum-main { min-width: 0; }
.forum-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.forum-head h2 { margin: 0; font-size: 22px; }
.f-board-row { display: flex; align-items: center; gap: 6px; padding: 9px 10px; border-radius: 10px;
  background: rgba(255,255,255,.42); border: 1px solid var(--stroke); margin-bottom: 7px; transition: background .15s ease; }
.f-board-row:hover { background: rgba(255,255,255,.78); }
.f-board-row.on { background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(230,246,255,.7)); box-shadow: 0 2px 8px rgba(13,58,102,.22); }
.f-board-main { flex: 1; cursor: pointer; min-width: 0; }
.f-board-main b { font-size: 14px; }
.f-board-meta { font-size: 11.5px; color: var(--text2); }
.f-board-del { cursor: pointer; font-size: 14px; opacity: .7; }
.f-board-del:hover { opacity: 1; }
/* 目录格子 */
.f-catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.f-cat { cursor: pointer; padding: 0; }
.f-cat-thumb { height: 120px; display: flex; align-items: center; justify-content: center; font-size: 38px;
  background: linear-gradient(165deg, rgba(255,255,255,.5), rgba(255,255,255,.15)); }
.f-cat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.f-cat-body { padding: 10px 12px 12px; }
.f-cat-title { font-weight: 700; font-size: 13.5px; line-height: 1.35; max-height: 38px; overflow: hidden; }
.f-cat-snippet { font-size: 12px; color: var(--text2); margin-top: 3px; max-height: 34px; overflow: hidden; }
.f-cat-meta { font-size: 11px; color: var(--text2); margin-top: 6px; }
/* 串楼帖子 */
.f-post { padding: 12px 16px; margin-bottom: 10px; }
.f-post.f-op { background: linear-gradient(165deg, rgba(255,255,255,.62), rgba(255,255,255,.28)); }
.f-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.f-no { color: #12855c; font-weight: 700; font-family: Consolas, Menlo, monospace; font-size: 13px;
  background: rgba(150,235,190,.35); border: 1px solid rgba(18,133,92,.35); border-radius: 6px; padding: 0 7px; }
.f-who { font-size: 14px; }
.f-time { font-size: 12px; color: var(--text2); }
.f-del { margin-left: auto; cursor: pointer; font-size: 12px; color: var(--danger, #d8342c); opacity: .75; }
.f-del:hover { opacity: 1; }
.f-body { display: flex; gap: 14px; flex-wrap: wrap; }
.f-content { flex: 1; min-width: 200px; word-break: break-word; font-size: 14px; }
.f-op-title { font-weight: 700; font-size: 15.5px; margin-bottom: 6px; }
.f-media { flex: none; }
.f-fname { font-size: 11.5px; color: var(--text2); margin-top: 3px; }
/* >>引用 链接 */
.f-quote { color: #12855c; font-weight: 700; text-decoration: underline; }
.f-quote:hover { filter: none; opacity: .75; }
.f-flash { animation: fFlash 1.5s ease 2; }
@keyframes fFlash { 0%, 100% { box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.75); } 50% { box-shadow: 0 0 0 3px var(--ctrl-ring), 0 4px 16px rgba(13,58,102,.3); } }
/* 回复框 */
.f-reply-box { padding: 14px 16px; margin-top: 14px; }
.f-reply-title { font-weight: 700; margin-bottom: 8px; }
.f-reply-acts { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
/* 网盘 */
.f-disk { display: flex; flex-direction: column; gap: 8px; }
.f-disk-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.f-disk-ico { font-size: 26px; flex: none; }
.f-disk-info { flex: 1; min-width: 140px; }
.f-disk-name { font-weight: 600; font-size: 13.5px; word-break: break-all; }
.f-disk-meta { font-size: 12px; color: var(--text2); }
.f-disk-acts { display: flex; gap: 6px; flex: none; }
@media (max-width: 900px) {
  .forum-layout { grid-template-columns: 1fr; }
  .forum-side { position: static; }
}
@media (max-width: 600px) {
  .forum-tabs a { padding: 8px 14px; }
  .f-body { flex-direction: column; }
  .f-disk-row { flex-wrap: wrap; }
}
