/* ============================================================
   每日大赛 · Neon Arena Design System
   共享样式表 - 5个页面统一调用
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=JetBrains+Mono:wght@400;500;700;800&family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  /* Surfaces */
  --bg-deep: #050813;
  --bg-base: #0A0E1A;
  --bg-card: #0F1424;
  --bg-elev: #161C2E;
  --bg-glass: rgba(15, 20, 36, 0.72);

  /* Ink */
  --ink-100: #F4F6FB;
  --ink-80: #D6DBE8;
  --ink-60: #B4BCD0;
  --ink-40: #6B7693;
  --ink-20: #3A4258;

  /* Accents */
  --pink: #FF2D6F;
  --pink-soft: #FF6FA0;
  --cyan: #00E5FF;
  --cyan-soft: #5CF2FF;
  --yellow: #FFE600;
  --lime: #B4FF3A;
  --violet: #8B5CF6;

  /* Borders */
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Fonts */
  --font-display: 'Archivo Black', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --font-body: 'Manrope', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  /* Layout */
  --max-w: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 4px;
  --radius-lg: 8px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  background: var(--bg-deep);
  color: var(--ink-100);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Background ambient gradient + grid */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 600px at 12% -8%, rgba(255, 45, 111, 0.18), transparent 60%),
    radial-gradient(800px 600px at 92% 8%, rgba(0, 229, 255, 0.14), transparent 60%),
    radial-gradient(1100px 700px at 50% 110%, rgba(139, 92, 246, 0.16), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(180deg, transparent, black 25%, black 75%, transparent);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.92;
}

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-60);
}

.gradient-text {
  background: linear-gradient(120deg, var(--pink) 0%, var(--cyan) 60%, var(--lime) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.gradient-text-warm {
  background: linear-gradient(120deg, var(--yellow) 0%, var(--pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}

section {
  position: relative;
  padding: clamp(56px, 9vw, 120px) 0;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink-100);
}

.brand-mark {
  width: 36px;
  height: 36px;
  position: relative;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--pink), var(--cyan));
  clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%);
}

.brand-mark::after {
  content: '';
  position: absolute;
  inset: 4px;
  background: var(--bg-deep);
  clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%);
}

.brand-mark span {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  color: var(--ink-100);
  font-size: 16px;
}

.nav-menu {
  display: flex;
  gap: 4px;
}

.nav-menu a {
  position: relative;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-60);
  border-radius: var(--radius);
  transition: all 0.25s var(--ease);
}

.nav-menu a:hover {
  color: var(--ink-100);
  background: rgba(255, 255, 255, 0.04);
}

.nav-menu a.active {
  color: var(--ink-100);
  background: rgba(255, 45, 111, 0.12);
}

.nav-menu a.active::before {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.nav-toggle span {
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--ink-100);
  display: block;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink-100);
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* Mobile menu drawer */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 72px 0 0 0;
  background: var(--bg-base);
  z-index: 99;
  padding: 24px var(--gutter);
  border-top: 1px solid var(--line);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 16px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-80);
  border-bottom: 1px solid var(--line);
}

.mobile-menu a.active { color: var(--pink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(120deg, var(--pink), #ff5b8d);
  color: white;
  box-shadow: 0 8px 24px -8px rgba(255, 45, 111, 0.5);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -8px rgba(255, 45, 111, 0.7);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.6s var(--ease);
}

.btn-primary:hover::after { left: 100%; }

.btn-ghost {
  background: transparent;
  color: var(--ink-100);
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--ink-60);
}

.btn-cyan {
  background: linear-gradient(120deg, var(--cyan), #00b3cc);
  color: var(--bg-deep);
  font-weight: 800;
}

.btn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -8px rgba(0, 229, 255, 0.5);
}

.btn-sm { padding: 10px 16px; font-size: 13px; }
.btn-lg { padding: 18px 32px; font-size: 15px; }

.btn-arrow::after {
  content: '→';
  font-size: 1.1em;
  transition: transform 0.25s var(--ease);
}

.btn-arrow:hover::after { transform: translateX(4px); }

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s var(--ease);
  overflow: hidden;
}

.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}

.card-clip {
  /* 切角卡片 - 体现竞技感 */
  clip-path: polygon(
    0 0,
    calc(100% - 18px) 0,
    100% 18px,
    100% 100%,
    18px 100%,
    0 calc(100% - 18px)
  );
}

.card-clip:hover {
  clip-path: polygon(
    0 0,
    calc(100% - 24px) 0,
    100% 24px,
    100% 100%,
    24px 100%,
    0 calc(100% - 24px)
  );
}

.card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-80);
}

.card-tag.pink { background: rgba(255, 45, 111, 0.12); color: var(--pink-soft); border-color: rgba(255, 45, 111, 0.3); }
.card-tag.cyan { background: rgba(0, 229, 255, 0.1); color: var(--cyan-soft); border-color: rgba(0, 229, 255, 0.25); }
.card-tag.yellow { background: rgba(255, 230, 0, 0.12); color: var(--yellow); border-color: rgba(255, 230, 0, 0.3); }
.card-tag.lime { background: rgba(180, 255, 58, 0.1); color: var(--lime); border-color: rgba(180, 255, 58, 0.25); }
.card-tag.violet { background: rgba(139, 92, 246, 0.12); color: #C4B5FD; border-color: rgba(139, 92, 246, 0.3); }

/* Live pulse dot */
.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--pink);
  text-transform: uppercase;
}

.live-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 12px var(--pink);
  animation: pulse 1.6s ease-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* ---------- Section Header ---------- */
.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.sec-head h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
}

.sec-head .eyebrow {
  display: block;
  margin-bottom: 12px;
}

.sec-head p {
  color: var(--ink-60);
  max-width: 560px;
}

/* ---------- Footer ---------- */
.foot {
  position: relative;
  margin-top: 80px;
  padding: 64px 0 32px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(255, 45, 111, 0.04));
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.foot-brand {
  max-width: 320px;
}

.foot-brand p {
  margin-top: 16px;
  color: var(--ink-60);
  font-size: 14px;
  line-height: 1.7;
}

.foot-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-bottom: 18px;
}

.foot-col ul { display: flex; flex-direction: column; gap: 12px; }
.foot-col a {
  color: var(--ink-80);
  font-size: 14px;
  transition: color 0.2s;
}
.foot-col a:hover { color: var(--pink); }

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.foot-bottom .copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-40);
}

.foot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-40);
}

.foot-meta a:hover { color: var(--ink-80); }

.age-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.05em;
  background: var(--pink);
  color: white;
  border-radius: var(--radius);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.4s; }
.reveal-delay-6 { transition-delay: 0.48s; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  margin: 40px 0;
}

.glow-pink { box-shadow: 0 0 80px -20px rgba(255, 45, 111, 0.4); }
.glow-cyan { box-shadow: 0 0 80px -20px rgba(0, 229, 255, 0.4); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-menu { display: none; }
  .nav-toggle { display: flex; }
  .nav-actions .btn:not(.btn-primary) { display: none; }

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

@media (max-width: 640px) {
  body { font-size: 15px; }
  section { padding: 64px 0; }

  .nav-inner { height: 64px; }
  .mobile-menu { inset: 64px 0 0 0; }

  .foot-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .foot-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn { padding: 12px 20px; font-size: 13px; }
  .btn-lg { padding: 14px 24px; }
}

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

/* ---------- Selection ---------- */
::selection {
  background: var(--pink);
  color: white;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--pink), var(--cyan));
  border-radius: 10px;
}
