/* =========================================================
   RAIDER · 视觉 V2（海报配色：电光蓝 → 紫 → 洋红）
   —— 在 main.css / platform.css 之上做增补，不改结构
   ========================================================= */

:root {
  --accent: #5b7cff;
  --accent-2: #a855f7;
  --accent-3: #ff4dd2;
  --accent-soft: rgba(91, 124, 255, 0.16);
  --accent-2-soft: rgba(168, 85, 247, 0.16);

  --grad-primary: linear-gradient(120deg, #5b7cff 0%, #a855f7 52%, #ff4dd2 100%);
  --grad-primary-rev: linear-gradient(120deg, #ff4dd2 0%, #a855f7 48%, #5b7cff 100%);
  --grad-soft: linear-gradient(120deg, rgba(91, 124, 255, 0.2), rgba(168, 85, 247, 0.16), rgba(255, 77, 210, 0.14));
  --grad-line: linear-gradient(90deg, rgba(91, 124, 255, 0), #5b7cff 22%, #a855f7 55%, #ff4dd2 82%, rgba(255, 77, 210, 0));

  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-glow: 0 12px 44px rgba(91, 124, 255, 0.26);
  --shadow-glow-2: 0 14px 52px rgba(168, 85, 247, 0.22);

  --bg: #05060e;
  --deep: #070915;
  --surface: #0b0d1c;
  --surface-2: #10132a;
  --surface-3: #171a36;
}

body {
  background-color: var(--bg);
}

::selection {
  background: #a855f7;
  color: #fff;
}

/* ---------- 背景光晕（海报同款氛围） ---------- */
.bg-aurora {
  position: fixed;
  inset: -12%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.9;
}

.bg-aurora i {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
  animation: auroraFloat 26s ease-in-out infinite alternate;
}

.bg-aurora i:nth-child(1) {
  width: 46vw;
  height: 46vw;
  left: -12vw;
  top: -14vh;
  background: radial-gradient(circle, rgba(91, 124, 255, 0.5), transparent 68%);
}

.bg-aurora i:nth-child(2) {
  width: 40vw;
  height: 40vw;
  right: -10vw;
  top: 4vh;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.42), transparent 68%);
  animation-duration: 31s;
  animation-delay: -6s;
}

.bg-aurora i:nth-child(3) {
  width: 52vw;
  height: 52vw;
  left: 34vw;
  bottom: -24vh;
  background: radial-gradient(circle, rgba(255, 77, 210, 0.32), transparent 70%);
  animation-duration: 36s;
  animation-delay: -12s;
}

@keyframes auroraFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(3vw, -3vh, 0) scale(1.08);
  }
  100% {
    transform: translate3d(-2vw, 2vh, 0) scale(0.96);
  }
}

main,
.site-head,
.footer,
.notice-bar {
  position: relative;
  z-index: 1;
}

/* ---------- 渐变文字 / 强调 ---------- */
.club-hero h1 em,
.hero h1 em,
.sh-title-outline {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 0;
}

.club-kicker,
.sh-kicker,
.sec-kicker,
.page-head .kicker,
.section-head .kicker,
.breadcrumb a:hover {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.club-kicker::before,
.sec-kicker i,
.page-head .kicker::before {
  background: var(--grad-primary);
}

.sec-head h2 em,
.section-head h2 em,
.why-copy h2 em,
.sponsor-in h2 em {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-kicker i,
.ticker-track b {
  color: #a855f7;
}

/* ---------- 按钮：渐变 + 扫光 ---------- */
.btn,
.yy-btn,
.section-more,
.tab {
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-spring),
    background 0.3s var(--ease-expo), border-color 0.3s var(--ease-expo), color 0.3s var(--ease-expo);
}

.btn-primary,
.yy-btn {
  position: relative;
  overflow: hidden;
  background: var(--grad-primary) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 8px 26px rgba(91, 124, 255, 0.28);
}

.btn-primary::after,
.yy-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, 0.5) 48%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.75s var(--ease-expo);
  pointer-events: none;
}

.btn-primary:hover::after,
.yy-btn:hover::after {
  transform: translateX(130%);
}

.btn-primary:hover,
.yy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(168, 85, 247, 0.36), 0 4px 14px rgba(255, 77, 210, 0.24);
  filter: saturate(1.08);
}

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

.btn-ghost:hover {
  border-color: rgba(168, 85, 247, 0.6);
  background: var(--grad-soft);
  color: #fff;
  box-shadow: 0 10px 30px rgba(91, 124, 255, 0.2);
}

.yy-btn {
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}

/* ---------- 导航 ---------- */
.site-head.solid {
  background: rgba(5, 6, 14, 0.72);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.nav > a::after {
  background: var(--grad-primary);
  height: 2px;
}

.nav > a.is-active {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav > a.is-active i {
  color: #a855f7;
}

.nav-user {
  border-color: rgba(91, 124, 255, 0.35);
  background: linear-gradient(120deg, rgba(91, 124, 255, 0.14), rgba(168, 85, 247, 0.12));
}

.nav-user b {
  background: var(--grad-primary);
  color: #fff;
}

.logo-mark {
  background: var(--grad-primary) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(91, 124, 255, 0.35) !important;
}

/* ---------- 首屏 ---------- */
.club-hero-veil {
  background:
    linear-gradient(180deg, rgba(5, 6, 14, 0.82) 0%, rgba(5, 6, 14, 0.34) 36%, rgba(5, 6, 14, 0.92) 80%, #05060e 100%),
    linear-gradient(104deg, rgba(91, 124, 255, 0.34) 0%, rgba(168, 85, 247, 0.18) 42%, rgba(255, 77, 210, 0.24) 78%, rgba(5, 6, 14, 0) 100%),
    radial-gradient(760px 480px at 78% 26%, rgba(168, 85, 247, 0.32), transparent 62%),
    radial-gradient(620px 420px at 22% 68%, rgba(255, 77, 210, 0.2), transparent 64%);
}

.club-hero-media {
  filter: grayscale(0.62) contrast(1.16) brightness(0.66) saturate(1.35);
}

.club-tag {
  background: linear-gradient(180deg, #fff 40%, rgba(255, 255, 255, 0.72));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.club-stats li::before,
.hero-stats li::before {
  background: var(--grad-primary);
  width: 34px;
}

.club-stats b,
.hero-stats b {
  background: linear-gradient(180deg, #ffffff 30%, rgba(168, 85, 247, 0.9));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-ghost {
  -webkit-text-stroke: 1px rgba(91, 124, 255, 0.22);
}

.hero-reticle {
  border-color: rgba(168, 85, 247, 0.45);
}

.hero-reticle::before,
.hero-reticle::after,
.scroll-cue i {
  background: var(--grad-primary);
  box-shadow: none;
}

.scroll-cue i {
  background: linear-gradient(180deg, #a855f7, transparent);
}

/* ---------- 分区 / 卡片 ---------- */
.section-head h2,
.sec-head h2 {
  letter-spacing: -0.01em;
}

.card,
.op,
.server-card,
.event-card,
.hud-panel {
  transition: transform 0.45s var(--ease-spring), border-color 0.35s var(--ease-expo), box-shadow 0.45s var(--ease-spring);
}

.card:hover,
.hud-panel:hover {
  border-color: rgba(91, 124, 255, 0.4);
  box-shadow: 0 18px 48px rgba(5, 6, 14, 0.6), 0 0 0 1px rgba(168, 85, 247, 0.12);
}

.op:hover,
.server-card:hover,
.event-card:hover {
  box-shadow: 0 24px 60px rgba(5, 6, 14, 0.7), 0 0 40px rgba(91, 124, 255, 0.16);
}

.member-card:hover,
.regs li:hover,
.sponsor-row:hover {
  box-shadow: 0 12px 34px rgba(91, 124, 255, 0.12);
}

.tag,
.badge-accent,
.op-no,
.server-no,
.why-list li > span,
.regs li > span {
  color: #7d93ff;
  border-color: rgba(91, 124, 255, 0.4);
}

.badge-accent {
  background: rgba(91, 124, 255, 0.12);
}

.badge-live {
  color: #ff4dd2;
  border-color: rgba(255, 77, 210, 0.42);
  background: rgba(255, 77, 210, 0.1);
}

.op-state .dot,
.dot {
  background: #ff4dd2;
}

.op-state.is-full {
  background: var(--grad-primary);
  border-color: transparent;
}

.op-bar i,
.server-bar i,
.troop-bar i,
.cmd-bar i {
  background-image: repeating-linear-gradient(90deg, #5b7cff 0 5px, transparent 5px 9px);
  box-shadow: 0 0 12px rgba(91, 124, 255, 0.35);
}

.op::after {
  background: var(--grad-primary);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.6);
}

.live-cell::before,
.sponsor-stats li::before {
  background: linear-gradient(90deg, rgba(91, 124, 255, 0.72), rgba(168, 85, 247, 0.3), transparent 60%);
}

.ring {
  background: conic-gradient(from -90deg, #5b7cff calc(var(--p, 0) * 1%), #a855f7 calc(var(--p, 0) * 1%), rgba(255, 255, 255, 0.08) 0);
}

/* ---------- 跑马灯 ---------- */
.ticker-wrap {
  background: linear-gradient(90deg, rgba(91, 124, 255, 0.08), rgba(168, 85, 247, 0.06), rgba(255, 77, 210, 0.08));
  border-color: rgba(255, 255, 255, 0.08);
}

.ticker-track span:nth-child(odd) {
  color: rgba(255, 255, 255, 0.82);
}

/* ---------- 服主 / 赞助区块 ---------- */
.owner {
  border-color: rgba(91, 124, 255, 0.24);
  box-shadow: 0 30px 80px rgba(5, 6, 14, 0.65);
}

.owner-photo {
  filter: grayscale(0.7) contrast(1.12) brightness(0.62) saturate(1.1);
}

.owner-label {
  border-color: rgba(168, 85, 247, 0.6);
  color: #fff;
  background: var(--grad-primary);
}

.sponsor-veil {
  background: linear-gradient(180deg, #05060e 0%, rgba(5, 6, 14, 0.7) 24%, rgba(5, 6, 14, 0.86) 70%, #05060e 100%),
    radial-gradient(700px 420px at 84% 40%, rgba(255, 77, 210, 0.18), transparent 66%);
}

.why-veil {
  background: linear-gradient(90deg, #05060e 4%, rgba(5, 6, 14, 0.9) 44%, rgba(5, 6, 14, 0.34) 100%),
    linear-gradient(180deg, #05060e, transparent 16%, transparent 84%, #05060e);
}

/* ---------- 表格 / 表单 ---------- */
.table thead th {
  background: #0a0c1a;
}

.table tbody tr:hover td {
  background: linear-gradient(90deg, rgba(91, 124, 255, 0.06), rgba(168, 85, 247, 0.04));
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: rgba(91, 124, 255, 0.75);
  box-shadow: 0 0 0 3px rgba(91, 124, 255, 0.16);
}

.tab.is-active {
  background: var(--grad-primary);
  border-color: transparent;
  color: #fff;
}

.page-btn.is-active {
  background: var(--grad-primary);
  border-color: transparent;
}

.pagination .page-btn:hover,
.page-btn:hover {
  border-color: rgba(168, 85, 247, 0.6);
  color: #fff;
}

/* ---------- 后台 ---------- */
.admin-side {
  background: #06070f;
}

.admin-nav a.is-active {
  background: linear-gradient(90deg, rgba(91, 124, 255, 0.18), rgba(168, 85, 247, 0.08));
  color: #fff;
  box-shadow: inset 2px 0 0 #a855f7;
}

.admin-card b {
  background: linear-gradient(180deg, #fff, rgba(168, 85, 247, 0.85));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.admin-card.is-warn b {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.admin-top {
  background: rgba(5, 6, 14, 0.82);
}

/* ---------- 3D 两页的渐变点缀 ---------- */
.cmd-logo,
.sh-logo {
  background: var(--grad-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 20px rgba(91, 124, 255, 0.35);
}

.cmd-pill b,
.sh-pill b,
.readout b {
  color: #fff;
}

.cmd-pill.is-fps b,
.cmd-foot #cmdTickerText,
.sh-fps b {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sh-brand-text b,
.cmd-brand-text b {
  letter-spacing: 0.16em;
}

.showcase-body::after,
.cmd-body::after {
  background: repeating-linear-gradient(0deg, transparent 0, transparent 2px, rgba(255, 255, 255, 0.018) 2px, rgba(255, 255, 255, 0.018) 3px);
}

/* ---------- 页脚 ---------- */
.footer {
  background: #04050c;
  border-top-color: rgba(255, 255, 255, 0.08);
}

.foot-status .dot {
  background: #a855f7;
}

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #06070f;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #5b7cff, #a855f7);
  border-radius: 8px;
  border: 2px solid #06070f;
}

/* ---------- 移动端降级：光晕弱一点 ---------- */
@media (max-width: 760px) {
  .bg-aurora {
    opacity: 0.7;
  }

  .bg-aurora i {
    filter: blur(56px);
  }
}


/* ---------- 顶部导航滚动收缩 ---------- */
.site-head {
  transition: background 0.35s var(--ease-expo), border-color 0.35s var(--ease-expo),
    backdrop-filter 0.35s var(--ease-expo);
}

.site-head.is-scrolled {
  background: rgba(5, 6, 14, 0.86);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
