/* ==========================================================================
   龙珠竞界 · 全站共享样式
   File: /assets/site.css
   ========================================================================== */

/* ---------- 1. Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #F5F7FA;
  background-color: #0B1E3A;
  -webkit-font-smoothing: antialiased;
}

body ::selection {
  background: #7A00FF;
  color: #ffffff;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  border: none;
  background: none;
  color: inherit;
}

button {
  cursor: pointer;
  padding: 0;
}

/* ---------- 2. Design Tokens ---------- */
:root {
  --color-deep-space: #0B1E3A;
  --color-electric-purple: #7A00FF;
  --color-neon-green: #00FF88;
  --color-gold: #FFD700;
  --color-cloud-white: #F5F7FA;
  --color-slate-blue: #94A3B8;
  --color-glass-white: rgba(255, 255, 255, 0.06);
  --color-midnight: #010407;
  --font-heading: Rajdhani, "Noto Sans SC", sans-serif;
  --font-body: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  --container-width: 1280px;
  --container-pad: 24px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.35);
}

/* ---------- 3. Typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

/* ---------- 4. Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  padding: 12px 24px;
  border-radius: 42px;
  border: 1px solid transparent;
  min-height: 44px;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #7A00FF, #00FF88);
  color: #010407;
  box-shadow: 0 0 20px rgba(122, 0, 255, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 0 34px rgba(0, 255, 136, 0.55);
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--color-glass-white);
  border-color: rgba(0, 255, 136, 0.25);
  color: #F5F7FA;
}

.btn-ghost:hover {
  border-color: #00FF88;
  background: rgba(0, 255, 136, 0.08);
}

/* ---------- 6. Media Frames ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  background: #010407;
  border-radius: var(--radius-md);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(150deg, rgba(122, 0, 255, 0.18), transparent 45%, rgba(0, 255, 136, 0.12));
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame-16-9 {
  aspect-ratio: 16 / 9;
}

.media-frame-4-3 {
  aspect-ratio: 4 / 3;
}

.media-frame-1-1 {
  aspect-ratio: 1 / 1;
}

/* ---------- 7. Page Header & Breadcrumb ---------- */
.page-header {
  padding: 56px 0 40px;
  background: linear-gradient(180deg, rgba(122, 0, 255, 0.12), transparent 60%), linear-gradient(180deg, #0B1E3A, #0B1E3A);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 13px;
  color: #94A3B8;
}

.breadcrumb-link {
  color: #94A3B8;
  transition: color 0.3s ease;
}

.breadcrumb-link:hover {
  color: #00FF88;
}

.breadcrumb-sep {
  color: rgba(148, 163, 184, 0.5);
}

.breadcrumb-current {
  color: #F5F7FA;
}

.page-title {
  font-size: clamp(36px, 6vw, 48px);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #F5F7FA;
  position: relative;
  padding-left: 20px;
}

.page-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 6px;
  border-radius: 4px;
  background: linear-gradient(180deg, #7A00FF, #00FF88);
  transform: skewX(-15deg);
}

/* ---------- 8. Sections & Headings ---------- */
.section {
  padding: 64px 0;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  color: #F5F7FA;
  position: relative;
  padding-left: 18px;
  margin-bottom: 24px;
  display: inline-block;
}

.section-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: linear-gradient(180deg, #7A00FF, #00FF88);
  border-radius: 2px;
  transform: skewX(-15deg);
}

/* ---------- 9. Cards & Highlights ---------- */
.glass-card {
  background: var(--color-glass-white);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 28px;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
  box-shadow: var(--shadow-card);
  border-color: rgba(0, 255, 136, 0.3);
  transform: translateY(-4px);
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00FF88;
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.7);
}

.status-dot.is-idle {
  background: #94A3B8;
  box-shadow: none;
}

.neon-text {
  color: #00FF88;
  font-weight: 600;
}

.gold-text {
  color: #FFD700;
  font-weight: 700;
}

/* ---------- 10. Split Layout ---------- */
.split-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.split-content,
.split-visual {
  min-width: 0;
}

/* ---------- 11. Header ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -100%;
  z-index: 3000;
  padding: 12px 20px;
  background: #7A00FF;
  color: #ffffff;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: relative;
  z-index: 100;
  background: #0B1E3A;
  border-bottom: 1px solid rgba(0, 255, 136, 0.1);
}

.header-top {
  background: linear-gradient(90deg, rgba(122, 0, 255, 0.2), rgba(0, 255, 136, 0.08));
  border-bottom: 1px solid rgba(0, 255, 136, 0.12);
}

.header-top-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 24px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.announcement-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #94A3B8;
  line-height: 1.4;
  white-space: nowrap;
}

.announcement-item::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00FF88;
  flex: none;
}

.announcement-item:first-child {
  color: #F5F7FA;
}

.announcement-item:first-child::before {
  background: #FFD700;
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.6);
}

.header-main {
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(11, 30, 58, 0.82);
}

.header-main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
  min-height: 76px;
}

.brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  position: relative;
  padding-left: 32px;
  flex: none;
}

.brand-block::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #7A00FF, #00FF88);
  border-radius: 5px;
  transform: translateY(-50%) rotate(45deg);
  box-shadow: 0 0 18px rgba(122, 0, 255, 0.55);
}

.brand-mark {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1;
  color: #F5F7FA;
}

.brand-tagline {
  font-size: 12px;
  color: #00FF88;
  letter-spacing: 0.3em;
  line-height: 1;
  font-weight: 500;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-item {
  list-style: none;
}

.nav-link {
  display: block;
  padding: 10px 14px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #94A3B8;
  border-radius: 6px;
  position: relative;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: linear-gradient(90deg, #7A00FF, #00FF88);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover {
  color: #F5F7FA;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link[aria-current="page"] {
  color: #00FF88;
}

.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-cta {
  flex: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(0, 255, 136, 0.25);
  border-radius: 8px;
  flex: none;
}

.toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: #F5F7FA;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #7A00FF, #00FF88);
  border-radius: 0 4px 4px 0;
  z-index: 900;
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.45);
}

/* ---------- 12. Footer ---------- */
.site-footer {
  position: relative;
  background: #010407;
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, #7A00FF, #00FF88) 1;
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 10% 0%, rgba(122, 0, 255, 0.12), transparent 50%), radial-gradient(ellipse at 90% 100%, rgba(0, 255, 136, 0.1), transparent 50%);
}

.footer-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-top: 56px;
  padding-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 480px;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #F5F7FA;
  position: relative;
  padding-left: 34px;
}

.footer-brand-name::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #7A00FF, #00FF88);
  transform: translateY(-50%) rotate(45deg);
  border-radius: 5px;
  box-shadow: 0 0 16px rgba(122, 0, 255, 0.4);
}

.footer-brand-desc {
  font-size: 13px;
  color: #00FF88;
  letter-spacing: 0.28em;
}

.footer-brand-note {
  font-size: 13px;
  color: #94A3B8;
  line-height: 1.7;
  margin-top: 8px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-column-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #F5F7FA;
  margin-bottom: 6px;
  display: inline-block;
  position: relative;
}

.footer-column-title::after {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  margin-top: 6px;
  background: linear-gradient(90deg, #7A00FF, #00FF88);
  border-radius: 2px;
}

.footer-link {
  font-size: 14px;
  color: #94A3B8;
  padding: 4px 0;
  position: relative;
  padding-left: 0;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-link:hover {
  color: #00FF88;
  padding-left: 12px;
}

.footer-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: #00FF88;
  transition: width 0.3s ease;
}

.footer-link:hover::before {
  width: 8px;
}

.footer-contact-item {
  font-size: 14px;
  color: #94A3B8;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-contact-item::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 8px;
  background: #7A00FF;
  box-shadow: 0 0 8px rgba(122, 0, 255, 0.5);
}

.footer-bottom {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px 0;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: rgba(148, 163, 184, 0.75);
}

/* ---------- 13. Responsive ---------- */
@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 2fr 1fr 1.4fr;
    gap: 48px;
  }

  .footer-bottom-inner {
    flex-direction: row;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .split-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 72px;
  }

  .split-layout.split-flip {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .split-layout.split-flip .split-visual {
    order: -1;
  }
}

@media (min-width: 768px) and (max-width: 1100px) {
  .brand-mark {
    font-size: 18px;
  }

  .brand-block {
    padding-left: 24px;
  }

  .nav-link {
    font-size: 13px;
    padding: 6px 8px;
  }

  .nav-link::after {
    left: 8px;
    right: 8px;
  }

  .site-nav {
    gap: 8px;
  }

  .nav-list {
    gap: 2px;
  }

  .header-cta {
    padding: 8px 14px;
    font-size: 13px;
  }
}

@media (max-width: 767px) {
  .header-main-inner {
    min-height: 64px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .nav-toggle {
    display: flex;
  }

  .brand-block {
    padding-left: 28px;
  }

  .brand-block::before {
    width: 16px;
    height: 16px;
  }

  .brand-mark {
    font-size: 20px;
  }

  .brand-tagline {
    font-size: 11px;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(1, 4, 7, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px 24px 24px;
    border-bottom: 1px solid #00FF88;
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-link {
    padding: 14px 12px;
    font-size: 16px;
    color: #F5F7FA;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-link::after {
    display: none;
  }

  .nav-link[aria-current="page"] {
    color: #00FF88;
    background: rgba(0, 255, 136, 0.07);
  }

  .header-cta {
    width: 100%;
  }

  .announcement-item {
    white-space: normal;
  }

  .footer-inner {
    padding-top: 40px;
    padding-bottom: 24px;
  }
}

/* ---------- 14. Focus & Reduced Motion ---------- */
:focus-visible {
  outline: 2px solid #00FF88;
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
