/* ============================================================
   佛山里水业余无线电中继台 BR7JBJ — 全站样式 v3.0
   设计语言：Signal Teal · 玻璃拟态 · 雷达/电波科技风 · 全站动效
   主色 #238599 → #28b8a9 | 强调 #37e6a8 | 背景 radio_net/image/bg_canton.png
   兼容：保留 v2 全部类名（.livebar/.topbar/.hero/.card/.panel/.tbl/.pager…）
   ============================================================ */
:root {
  --brand-1: #238599;
  --brand-2: #28b8a9;
  --brand-3: #37e6a8;
  --brand-deep: #0e5f6b;
  --ink: #16323c;
  --muted: #5c7480;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.88);
  --glass-soft: rgba(255, 255, 255, 0.45);
  --line: rgba(35, 133, 153, 0.16);
  --line-strong: rgba(35, 133, 153, 0.28);
  --grad: linear-gradient(120deg, var(--brand-1), var(--brand-2));
  --grad-3: linear-gradient(120deg, #1c7c8f, #28b8a9 55%, #37e6a8);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 8px 30px rgba(18, 66, 78, 0.10);
  --shadow-lg: 0 16px 48px rgba(18, 66, 78, 0.16);
  --glow: 0 0 0 1px rgba(55, 230, 168, .25), 0 10px 34px rgba(20, 130, 140, .22);
  --font-num: "Bahnschrift", "DIN Alternate", "Segoe UI", Consolas, sans-serif;
  --page-bg: #eef6f6;
  --veil-1: rgba(238, 246, 246, 0.55);
  --veil-2: rgba(238, 246, 246, 0.25);
  --veil-3: rgba(238, 246, 246, 0.55);
  --tbl-cell: rgba(255, 255, 255, 0.55);
  --bar-track: rgba(35, 133, 153, .08);
  --speed: 1;
}

/* ---------- 深色“夜间值守”主题 ---------- */
body[data-theme="dark"] {
  --ink: #dff2f0;
  --muted: #9fb9c2;
  --glass: rgba(12, 30, 38, 0.62);
  --glass-strong: rgba(12, 30, 38, 0.80);
  --glass-soft: rgba(12, 30, 38, 0.42);
  --line: rgba(120, 220, 210, 0.16);
  --line-strong: rgba(120, 220, 210, 0.30);
  --brand-deep: #8ff0d8;
  --shadow: 0 10px 34px rgba(0, 0, 0, .38);
  --shadow-lg: 0 20px 56px rgba(0, 0, 0, .5);
  --page-bg: #071419;
  --veil-1: rgba(6, 18, 23, 0.72);
  --veil-2: rgba(6, 18, 23, 0.42);
  --veil-3: rgba(6, 18, 23, 0.80);
  --tbl-cell: rgba(255, 255, 255, 0.05);
  --bar-track: rgba(120, 220, 210, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Source Han Sans SC", system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background: var(--page-bg) url("../radio_net/image/bg_canton.png") center top / cover no-repeat fixed;
  min-height: 100vh;
  transition: background-color .4s ease, color .3s ease;
}
/* 背景柔化层：保证任何屏幕宽度下文字可读 */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background: linear-gradient(180deg, var(--veil-1) 0%, var(--veil-2) 30%, var(--veil-3) 100%);
  pointer-events: none;
}
/* 动态层：雷达网格 + 电波粒子 canvas */
#fx-canvas {
  position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%;
  pointer-events: none; opacity: .55;
}
body[data-theme="dark"] #fx-canvas { opacity: .8; }
.fx-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px, 46px 46px;
  mask-image: radial-gradient(circle at 50% 12%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 12%, #000 0%, transparent 72%);
  animation: gridDrift 26s linear infinite;
}
@keyframes gridDrift { to { background-position: 46px 46px, 46px 46px; } }

a { color: var(--brand-1); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--brand-2); }
body[data-theme="dark"] a { color: #6fd8c6; }
::selection { background: rgba(40, 184, 169, .28); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(35, 133, 153, .06); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--brand-1), var(--brand-2)); border-radius: 6px; }

/* ---------- 滚动进度条 ---------- */
#scrollbar-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--grad-3); z-index: 300; box-shadow: 0 0 12px rgba(55, 230, 168, .7);
  transition: width .12s linear;
}

/* ============================================================
   实时状态条 + 顶部导航
   ============================================================ */
.livebar {
  position: relative;
  background: linear-gradient(90deg, rgba(14, 95, 107, .94), rgba(23, 130, 120, .90) 55%, rgba(14, 95, 107, .94));
  background-size: 200% 100%;
  animation: sheenBar 9s linear infinite;
  color: rgba(255, 255, 255, .92);
  font-size: 12.5px;
  backdrop-filter: blur(8px);
}
@keyframes sheenBar { to { background-position: -200% 0; } }
.livebar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-3), transparent);
  opacity: .85;
}
.livebar .wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-top: 5px; padding-bottom: 5px; }
.livebar .lb-item { display: inline-flex; align-items: center; gap: 6px; letter-spacing: .3px; }
.livebar .lb-sep { opacity: .35; }
.livebar .lb-num { font-family: var(--font-num); font-size: 13.5px; font-weight: 600; letter-spacing: .5px; }
.onair { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.onair .dot, .pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #37e6a8; box-shadow: 0 0 0 0 rgba(55, 230, 168, .7);
  animation: pulse 1.8s infinite;
}
.onair.idle .dot { background: #ffd166; animation: none; box-shadow: none; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(55, 230, 168, .65); }
  70%  { box-shadow: 0 0 0 9px rgba(55, 230, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(55, 230, 168, 0); }
}
.lb-right { margin-left: auto; }
/* 实时频谱条 */
.spectrum { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.spectrum i { width: 3px; background: #a8f7e2; border-radius: 2px; animation: eq 1.1s ease-in-out infinite; }
.spectrum i:nth-child(1){ height: 40%; animation-delay: -.9s }
.spectrum i:nth-child(2){ height: 75%; animation-delay: -.6s }
.spectrum i:nth-child(3){ height: 55%; animation-delay: -.3s }
.spectrum i:nth-child(4){ height: 90%; animation-delay: -.75s }
.spectrum i:nth-child(5){ height: 35%; animation-delay: -.45s }
@keyframes eq { 0%,100% { transform: scaleY(.35) } 50% { transform: scaleY(1) } }

.topbar {
  position: sticky; top: 0; z-index: 99;
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 2px 18px rgba(18, 66, 78, .07);
  transition: box-shadow .25s ease, background .25s ease;
}
body[data-theme="dark"] .topbar { background: rgba(10, 26, 32, .62); border-bottom-color: rgba(120, 220, 210, .14); }
.topbar.stuck { box-shadow: 0 8px 30px rgba(18, 66, 78, .16); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 18px; }
.topbar-inner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 18px; }

.brand {
  font-weight: 700; font-size: 17px; color: var(--ink);
  display: flex; align-items: center; gap: 10px; letter-spacing: .5px;
}
.brand:hover { color: var(--ink); }
.brand .brand-ico {
  width: 36px; height: 36px; border-radius: 10px; flex: none; position: relative;
  background: var(--grad); color: #fff; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(35, 133, 153, .35);
  animation: iconBreath 3.4s ease-in-out infinite;
}
.brand .brand-ico::after {
  content: ""; position: absolute; inset: -5px; border-radius: 14px;
  border: 1px solid rgba(55, 230, 168, .45); animation: ripple2 3s ease-out infinite;
}
@keyframes iconBreath { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-2px) } }
@keyframes ripple2 { 0% { transform: scale(.85); opacity: .8 } 100% { transform: scale(1.35); opacity: 0 } }
.brand .brand-sub { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 2px; line-height: 1.1; }

nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; align-items: center; }
nav a {
  padding: 7px 13px; border-radius: 999px; font-size: 14px; color: var(--ink);
  transition: all .18s ease; white-space: nowrap; position: relative; overflow: hidden;
}
nav a i { margin-right: 2px; }
nav a::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .35), transparent 70%);
  transform: translateX(-120%); transition: transform .55s ease;
}
nav a:hover::before { transform: translateX(120%); }
nav a:hover { background: rgba(35, 133, 153, .09); color: var(--brand-1); }
nav a.active {
  background: var(--grad); color: #fff; font-weight: 600;
  box-shadow: 0 4px 14px rgba(35, 133, 153, .30);
}
.theme-toggle {
  border: 1px solid var(--line); background: var(--glass); color: var(--brand-1);
  width: 34px; height: 34px; border-radius: 999px; cursor: pointer; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center; transition: all .2s ease;
}
.theme-toggle:hover { border-color: var(--brand-2); transform: rotate(-12deg) scale(1.06); }
.btn-admin {
  padding: 7px 15px !important; border-radius: 999px !important;
  background: linear-gradient(120deg, rgba(14, 95, 107, .9), rgba(23, 130, 120, .9)) !important;
  color: #fff !important; font-size: 13.5px !important;
}
.btn-admin:hover { filter: brightness(1.12); }

.navtoggle {
  display: none; margin-left: auto; border: 1px solid var(--line); background: var(--glass);
  border-radius: 9px; padding: 7px 11px; font-size: 17px; color: var(--brand-1); cursor: pointer;
}

/* ============================================================
   主区域
   ============================================================ */
main { padding: 26px 0 46px; min-height: 62vh; }
h1 { font-size: 25px; margin: 0 0 18px; font-weight: 700; letter-spacing: .5px; }

/* ---------- 首屏 Hero：雷达 + 电波 ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(130deg, #0c4f5c 0%, #10707a 55%, #14998c 100%);
  border-radius: 18px; padding: 40px 34px; margin-bottom: 22px;
  box-shadow: var(--shadow-lg); color: #fff;
  transform-style: preserve-3d;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .16); pointer-events: none;
  top: 50%; right: -40px; transform: translateY(-50%);
  animation: ripple 5s ease-out infinite;
}
.hero::after { animation-delay: 2.5s; }
@keyframes ripple {
  0%   { width: 120px; height: 120px; opacity: .9; }
  100% { width: 560px; height: 560px; opacity: 0; }
}
/* 雷达扫描扇区 */
.hero .radar {
  position: absolute; right: -60px; top: 50%; width: 340px; height: 340px; margin-top: -170px;
  border-radius: 50%; pointer-events: none; opacity: .5;
  background:
    conic-gradient(from 0deg, rgba(55, 230, 168, .55), rgba(55, 230, 168, 0) 28%, rgba(55, 230, 168, 0) 100%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .12) 0 1px, transparent 1px 42px);
  animation: sweep 4.6s linear infinite;
  mask-image: radial-gradient(circle, #000 0%, #000 62%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle, #000 0%, #000 62%, transparent 72%);
}
@keyframes sweep { to { transform: rotate(360deg); } }
/* 电波传播环 */
.hero .wave {
  position: absolute; left: -30px; bottom: -60px; width: 320px; height: 320px; border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, .22); pointer-events: none; animation: waveOut 6s ease-out infinite;
}
.hero .wave:nth-child(2) { animation-delay: 2s; }
.hero .wave:nth-child(3) { animation-delay: 4s; }
@keyframes waveOut { 0% { transform: scale(.4); opacity: .0 } 25% { opacity: .8 } 100% { transform: scale(1.5); opacity: 0 } }
.hero .tower {
  position: absolute; right: 34px; top: 50%; transform: translateY(-50%);
  font-size: 120px; color: rgba(255, 255, 255, .10); pointer-events: none;
}
.hero h1 {
  margin: 0 0 10px; font-size: 27px; font-weight: 800; color: #fff;
  letter-spacing: 1px; position: relative;
}
.hero h1 .glow-text { text-shadow: 0 0 18px rgba(55, 230, 168, .55); }
.hero .callsign {
  display: inline-block; vertical-align: 6px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35);
  padding: 3px 14px; border-radius: 999px; font-size: 15px; letter-spacing: 3px;
  font-family: var(--font-num); font-weight: 700; color: #aef4e6;
  backdrop-filter: blur(4px); animation: csGlow 3.2s ease-in-out infinite;
}
@keyframes csGlow { 0%,100% { box-shadow: 0 0 0 0 rgba(174, 244, 230, .0) } 50% { box-shadow: 0 0 18px 2px rgba(174, 244, 230, .35) } }
.hero p { margin: 0; color: rgba(255, 255, 255, .85); position: relative; }
.hero .chips { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; position: relative; }
.hero .chip {
  font-size: 12.5px; padding: 4px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25);
  color: #d9fff6; letter-spacing: .5px; font-family: var(--font-num);
  transition: transform .2s ease, background .2s ease;
}
.hero .chip:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .2); }
/* 频率跑马灯 */
.ticker {
  position: relative; overflow: hidden; margin: 0 0 22px;
  border-radius: 12px; background: rgba(255, 255, 255, .55);
  border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(10px);
}
body[data-theme="dark"] .ticker { background: rgba(12, 30, 38, .55); }
.ticker .track { display: flex; gap: 34px; white-space: nowrap; padding: 8px 0; width: max-content; animation: marquee 26s linear infinite; }
.ticker:hover .track { animation-play-state: paused; }
.ticker .tk { font-family: var(--font-num); font-size: 13px; letter-spacing: 1px; color: var(--brand-deep); display: inline-flex; align-items: center; gap: 7px; }
.ticker .tk i { color: var(--brand-2); }
@keyframes marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* ---------- 数据卡 ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 22px; }
.card {
  position: relative; overflow: hidden;
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: var(--radius); padding: 20px 18px; text-align: center;
  box-shadow: var(--shadow); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
body[data-theme="dark"] .card { border-color: rgba(120, 220, 210, .18); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(40, 184, 169, .45); }
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-3); background-size: 200% 100%; animation: sheenBar 5s linear infinite;
}
.card::after {
  content: ""; position: absolute; inset: -40% -20%; pointer-events: none;
  background: radial-gradient(circle at 50% 120%, rgba(55, 230, 168, .18), transparent 60%);
  opacity: 0; transition: opacity .3s ease;
}
.card:hover::after { opacity: 1; }
.card .num {
  font-size: 34px; font-weight: 800; color: var(--brand-deep);
  font-family: var(--font-num); letter-spacing: 1px; line-height: 1.15;
}
.card .lab { color: var(--muted); font-size: 13.5px; margin-top: 4px; }

/* ---------- 面板 ---------- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
@media (max-width: 820px) { .grid2 { grid-template-columns: 1fr; } }
.panel {
  position: relative;
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: var(--radius); padding: 20px 22px; margin-bottom: 15px;
  box-shadow: var(--shadow); transition: box-shadow .25s ease, border-color .25s ease;
}
body[data-theme="dark"] .panel { border-color: rgba(120, 220, 210, .16); }
.panel:hover { box-shadow: var(--shadow-lg); border-color: rgba(40, 184, 169, .35); }
.panel h2 {
  margin: 0 0 14px; font-size: 17.5px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; gap: 9px; letter-spacing: .5px;
}
.panel h2::before {
  content: ""; width: 5px; height: 18px; border-radius: 3px;
  background: var(--grad-3); box-shadow: 0 2px 6px rgba(35, 133, 153, .4);
  animation: barBeat 2.6s ease-in-out infinite;
}
@keyframes barBeat { 0%,100% { transform: scaleY(.7) } 50% { transform: scaleY(1) } }
.panel h3 { margin: 16px 0 8px; font-size: 14.5px; color: var(--brand-1); font-weight: 700; }

/* ---------- 列表 ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list li {
  padding: 9px 4px; border-bottom: 1px dashed var(--line);
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  border-radius: 6px; transition: background .15s ease, transform .15s ease;
}
.list li:hover { background: rgba(35, 133, 153, .05); transform: translateX(3px); }
.list li:last-child { border-bottom: 0; }
.list li > a { font-weight: 500; }
.list li > a:hover { color: var(--brand-2); }
.meta { color: var(--muted); font-size: 13px; }
.empty { color: var(--muted); font-size: 14px; padding: 14px 0; text-align: center; }
.more { font-size: 13.5px; margin-top: 8px; }
.more a, a.more { font-weight: 600; }
a.more::after { content: " »"; transition: transform .2s ease; display: inline-block; }
a.more:hover::after { transform: translateX(4px); }

/* ---------- 时间线 ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  position: relative; padding: 0 0 16px 22px;
  border-left: 2px solid rgba(35, 133, 153, .22); margin-left: 8px;
}
.timeline li:last-child { padding-bottom: 2px; }
.timeline li .dot {
  position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--grad); box-shadow: 0 0 0 3px rgba(40, 184, 169, .18);
  animation: dotPulse 2.8s ease-in-out infinite;
}
@keyframes dotPulse { 0%,100% { box-shadow: 0 0 0 3px rgba(40, 184, 169, .18) } 50% { box-shadow: 0 0 0 6px rgba(40, 184, 169, .06) } }
.timeline strong { color: var(--brand-deep); font-size: 14.5px; }
.timeline p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- 表格 ---------- */
.tbl-wrap { overflow-x: auto; border-radius: var(--radius-sm); }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 8px; }
.tbl th, .tbl td { padding: 11px 13px; font-size: 14px; text-align: center; }
.tbl thead th, .tbl tr:first-child th {
  background: linear-gradient(120deg, rgba(35, 133, 153, .92), rgba(40, 184, 169, .88));
  color: #fff; font-weight: 600; letter-spacing: 1px; border: none;
}
.tbl thead th:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.tbl thead th:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.tbl td { border-bottom: 1px solid rgba(35, 133, 153, .10); background: var(--tbl-cell); }
.tbl tbody tr { transition: background .13s ease, transform .13s ease; }
.tbl tbody tr:hover td { background: rgba(40, 184, 169, .10); }
.tbl .num, .tbl td.num { font-family: var(--font-num); font-weight: 600; }

/* 简易条形图（stats.php 用） */
.bar-row { display: flex; align-items: center; gap: 10px; margin: 7px 0; }
.bar-row .bar-lab { flex: 0 0 110px; font-size: 13px; color: var(--muted); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .bar-track { flex: 1; height: 16px; border-radius: 8px; background: var(--bar-track); overflow: hidden; }
.bar-row .bar-fill {
  height: 100%; border-radius: 8px; background: var(--grad-3); background-size: 200% 100%;
  box-shadow: 0 2px 8px rgba(35, 133, 153, .35);
  transition: width 1.1s cubic-bezier(.2, .8, .2, 1);
  animation: sheenBar 6s linear infinite;
}
.bar-row .bar-val { flex: 0 0 46px; font-family: var(--font-num); font-weight: 700; color: var(--brand-deep); }

/* ---------- 表单 ---------- */
form.inline { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; align-items: flex-end; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13.5px; color: var(--ink); font-weight: 700; margin-bottom: 5px; letter-spacing: .5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 14px; border: 1.5px solid rgba(35, 133, 153, .18);
  border-radius: 10px; font-size: 14px; background: rgba(255, 255, 255, .78);
  color: var(--ink); font-family: inherit; transition: all .18s ease;
}
body[data-theme="dark"] .field input, body[data-theme="dark"] .field select, body[data-theme="dark"] .field textarea {
  background: rgba(8, 24, 30, .6); color: var(--ink); border-color: rgba(120, 220, 210, .2);
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(35, 133, 153, .35); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-2); background: #fff;
  box-shadow: 0 0 0 4px rgba(40, 184, 169, .14);
}
body[data-theme="dark"] .field input:focus, body[data-theme="dark"] .field select:focus, body[data-theme="dark"] .field textarea:focus { background: rgba(8, 24, 30, .85); }
.field textarea { min-height: 150px; line-height: 1.7; }
form.inline .field { margin-bottom: 0; }

/* ---------- 按钮 ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--grad-3); background-size: 180% 100%; color: #fff !important; border: none; cursor: pointer;
  box-shadow: 0 5px 16px rgba(35, 133, 153, .30);
  transition: all .18s ease; letter-spacing: .5px;
}
.btn::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-18deg); transition: left .5s ease;
}
.btn:hover::after { left: 130%; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(35, 133, 153, .40); filter: brightness(1.05); }
.btn:active { transform: translateY(0) scale(.985); }
.btn-danger { background: linear-gradient(120deg, #c94b4b, #e06d5a); box-shadow: 0 5px 16px rgba(201, 75, 75, .30); }
.btn-ghost {
  background: rgba(255, 255, 255, .6); color: var(--brand-1) !important;
  border: 1.5px solid var(--line); box-shadow: none;
}
body[data-theme="dark"] .btn-ghost { background: rgba(12, 30, 38, .5); }
.btn-ghost:hover { border-color: var(--brand-2); background: #fff; }
body[data-theme="dark"] .btn-ghost:hover { background: rgba(12, 30, 38, .8); }
.btn-sm { padding: 5px 13px; font-size: 13px; }

/* ---------- 提示条 ---------- */
.flash {
  padding: 12px 18px; border-radius: 10px; margin-bottom: 15px; font-size: 14px;
  display: flex; align-items: center; gap: 9px;
  border: 1px solid transparent; animation: slideDown .35s ease;
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.flash-info { background: rgba(232, 244, 252, .85); color: #1769aa; border-color: rgba(23, 105, 170, .18); }
.flash-success { background: rgba(236, 249, 240, .85); color: #1f8a52; border-color: rgba(31, 138, 82, .18); }
.flash-error { background: rgba(251, 225, 225, .85); color: #b3362a; border-color: rgba(179, 54, 42, .18); }

/* ---------- 徽章 ---------- */
.badge {
  display: inline-block; background: var(--grad); color: #fff !important;
  border-radius: 999px; padding: 1px 9px; font-size: 11.5px; margin-left: 6px;
  letter-spacing: 1px; box-shadow: 0 2px 8px rgba(35, 133, 153, .35); vertical-align: 2px;
}
.badge-soft { background: rgba(35, 133, 153, .10); color: var(--brand-1) !important; box-shadow: none; }
body[data-theme="dark"] .badge-soft { background: rgba(120, 220, 210, .14); color: #8ff0d8 !important; }

/* ---------- 分类条 / 分页 ---------- */
.catbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.cat {
  padding: 5px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--glass-soft); font-size: 13px; color: var(--ink); transition: all .15s ease;
}
.cat:hover { border-color: var(--brand-2); color: var(--brand-1); transform: translateY(-2px); }
.cat.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 3px 10px rgba(35, 133, 153, .3); }

.pager { display: flex; gap: 6px; margin: 16px 0; flex-wrap: wrap; justify-content: center; }
.pager a, .pager span {
  padding: 5px 12px; border-radius: 8px; background: var(--glass-soft); font-size: 13px;
  color: var(--ink); border: 1px solid rgba(255, 255, 255, .7); font-family: var(--font-num);
  transition: all .15s ease;
}
.pager a:hover { border-color: var(--brand-2); color: var(--brand-1); transform: translateY(-2px); }
.pager a.active, .pager .active {
  background: var(--grad); color: #fff !important; border-color: transparent;
  box-shadow: 0 3px 10px rgba(35, 133, 153, .3);
}

/* ---------- 正文 ---------- */
.content { font-size: 15px; line-height: 1.9; }
.content p { margin: 10px 0; }

/* ---------- 登录框 ---------- */
.login-box {
  max-width: 430px; margin: 7vh auto 40px; padding: 42px 38px;
  background: var(--glass-strong); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 20px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
  animation: slideDown .45s ease;
}
.login-box::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad-3);
}
.login-box::after {
  content: ""; position: absolute; width: 320px; height: 320px; right: -120px; top: -120px; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(55, 230, 168, .35), transparent 30%);
  animation: sweep 7s linear infinite; pointer-events: none; opacity: .5;
}
.login-box h1 { font-size: 21px; margin: 0 0 6px; font-weight: 800; text-align: center; }
.radio-logo { text-align: center; margin-bottom: 26px; position: relative; }
.radio-logo .icon {
  font-size: 24px; color: #fff; display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 20px; background: var(--grad-3); margin-bottom: 14px;
  box-shadow: 0 10px 26px rgba(35, 133, 153, .38); animation: iconBreath 3.6s ease-in-out infinite;
}
.login-box .btn { width: 100%; justify-content: center; margin-top: 6px; }

/* ---------- 页脚 ---------- */
footer {
  position: relative;
  padding: 26px 0 22px; margin-top: 30px;
  background: linear-gradient(180deg, rgba(12, 79, 92, .93), rgba(9, 60, 70, .96));
  color: rgba(255, 255, 255, .78); backdrop-filter: blur(10px);
}
footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-3), transparent);
  animation: sheenBar 7s linear infinite; background-size: 200% 100%;
}
footer .wrap { text-align: center; font-size: 13px; line-height: 2; }
footer a { color: #8fe6d4; }
footer a:hover { color: #c9fff1; }
.footer-admin { margin-left: 10px; }
.footer-brand { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: 2px; }
.footer-brand i { color: #37e6a8; margin-right: 6px; }

/* ---------- 回到顶部 ---------- */
#toTop {
  position: fixed; right: 18px; bottom: 22px; width: 42px; height: 42px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .5); background: var(--grad-3); color: #fff; cursor: pointer;
  box-shadow: 0 8px 22px rgba(20, 130, 140, .35); opacity: 0; transform: translateY(14px);
  transition: opacity .25s ease, transform .25s ease; z-index: 200; font-size: 15px;
}
#toTop.show { opacity: 1; transform: none; }
#toTop:hover { filter: brightness(1.1); transform: translateY(-3px); }

/* ---------- 动效工具 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.on { opacity: 1; transform: none; }
.tilt { transition: transform .18s ease; will-change: transform; }
.stagger > * { opacity: 0; transform: translateY(12px); animation: riseIn .5s ease forwards; }
@keyframes riseIn { to { opacity: 1; transform: none; } }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .navtoggle { display: block; }
  nav {
    display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(255, 255, 255, .95); border-radius: 12px; padding: 8px; margin-top: 8px;
    box-shadow: var(--shadow);
  }
  body[data-theme="dark"] nav { background: rgba(10, 26, 32, .92); }
  body.nav-open nav { display: flex; }
  nav a { border-radius: 8px; }
  .hero { padding: 28px 20px; }
  .hero h1 { font-size: 21px; }
  .hero .tower { font-size: 84px; right: 8px; }
  .hero .radar { width: 220px; height: 220px; margin-top: -110px; right: -70px; }
  .livebar .lb-right { margin-left: 0; }
  .livebar .wrap { gap: 10px; }
}

/* ---------- 历值主控徽章网格（stats.php 里程碑）：每行7个，27位=4行 ---------- */
.ctrl-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  flex: 1; min-width: 0; margin-top: 6px;
}
.ctrl-grid .badge { margin: 0; text-align: center; padding: 4px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 860px) { .ctrl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ctrl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- 排名表格（stats.php 爱好者排名） ---------- */
.rank-tbl td { padding: 11px 14px; font-size: 14.5px; }
.rank-tbl td.cs { text-align: center; font-weight: 700; letter-spacing: 1px; font-family: var(--font-num); color: var(--brand-deep); }
.rank-tbl td.rank-top { background: linear-gradient(90deg, rgba(245, 185, 66, .20), rgba(245, 185, 66, .07)); }
.rank-tbl .col-div { border-left: 1px dashed var(--line); }
.rank-tbl th.col-div { border-left: 1px dashed rgba(255, 255, 255, .4); }

/* ---------- 无障碍：尊重系统减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  #fx-canvas, .fx-grid { display: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 打印 ---------- */
@media print {
  .topbar, .livebar, footer, .navtoggle, #toTop, #fx-canvas, .fx-grid, #scrollbar-progress { display: none !important; }
  body { background: #fff; }
  .panel, .card { box-shadow: none; border: 1px solid #ccc; background: #fff; }
}