/* ========================================
   每日街舞Cypher地下对决赛 - 主样式表
   视觉风格：街头涂鸦(Graffiti) + 粗野主义(Brutalism)
   ======================================== */

/* CSS变量定义 */
:root {
  --color-primary: #FFEB3B;
  --color-accent: #FF0000;
  --color-black: #000000;
  --color-bg: #121212;
  --color-card: #1E1E1E;
  --color-text: #E0E0E0;
  --color-text-muted: #9E9E9E;
  --font-heading: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --border-brutal: 4px solid var(--color-primary);
  --shadow-brutal: 6px 6px 0px var(--color-primary);
  --shadow-red: 4px 4px 0px var(--color-accent);
}

/* 全局重置 */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.8;
  overflow-x: hidden;
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="12" r="8" fill="%23FFEB3B" opacity="0.8"/></svg>') 12 12, auto;
}

/* 涂鸦纹理背景 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 100px, rgba(255,235,59,0.02) 100px, rgba(255,235,59,0.02) 101px),
    repeating-linear-gradient(0deg, transparent, transparent 100px, rgba(255,0,0,0.01) 100px, rgba(255,0,0,0.01) 101px);
  pointer-events: none;
  z-index: -1;
}

/* 排版 */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1px;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--color-primary);
  text-shadow: 4px 4px 0px var(--color-accent), -2px -2px 0px var(--color-black);
  transform: rotate(-1deg);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--color-primary);
  text-shadow: 3px 3px 0px rgba(255,0,0,0.6);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-accent);
  transform: skewX(-12deg);
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: var(--color-text);
}

p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.9;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
}

a:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
  text-shadow: 0 0 8px rgba(255,0,0,0.5);
}

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

/* 导航栏 */
.nav-brutal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--color-black);
  border-bottom: var(--border-brutal);
  z-index: 9999;
  padding: 0.8rem 2rem;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-primary);
  text-shadow: 2px 2px 0px var(--color-accent);
  transform: skewX(-5deg);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.5rem;
}

.nav-links a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--color-text);
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  background: rgba(255,235,59,0.1);
  transform: rotate(-1deg);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 30px;
  height: 3px;
  background: var(--color-primary);
  transition: 0.3s;
}

/* Hero区域 */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 60px;
  background: linear-gradient(135deg, #121212 0%, #1a0a0a 50%, #121212 100%);
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(18,18,18,0.9)),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,235,59,0.03) 2px, rgba(255,235,59,0.03) 4px);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 900px;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
  animation: graffiti-appear 1s ease-out;
}

.hero-tagline {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--color-text);
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-cta {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* 按钮样式 */
.btn-brutal {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
  border: 4px solid var(--color-primary);
  background: var(--color-primary);
  color: var(--color-black);
  box-shadow: var(--shadow-brutal);
  transition: all 0.15s ease;
  cursor: pointer;
  transform: rotate(-1deg);
}

.btn-brutal:hover {
  transform: rotate(0deg) translate(-3px, -3px);
  box-shadow: 9px 9px 0px var(--color-accent);
  border-color: var(--color-primary);
  color: var(--color-black);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 4px solid var(--color-accent);
  box-shadow: var(--shadow-red);
}

.btn-outline:hover {
  background: var(--color-accent);
  color: #fff;
}

/* 内容区域 */
.section {
  padding: 5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 1rem auto 0;
}

/* 卡片系统 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.card-brutal {
  background: var(--color-card);
  border: 3px solid var(--color-primary);
  box-shadow: var(--shadow-brutal);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.card-brutal::before {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 40px;
  height: 40px;
  background: var(--color-accent);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.card-brutal:hover {
  transform: translate(-4px, -4px) rotate(-0.5deg);
  box-shadow: 10px 10px 0px var(--color-accent);
}

.card-brutal img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 3px solid var(--color-primary);
}

.card-body {
  padding: 1.5rem;
}

.card-body h3 {
  color: var(--color-primary);
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.card-body p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.card-tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 1rem;
  transform: skewX(-5deg);
}

/* Battle分屏播放器 */
.battle-player {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  border: 4px solid var(--color-primary);
  background: var(--color-black);
  margin: 2rem 0;
}

.battle-side {
  position: relative;
  min-height: 300px;
  background: var(--color-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.battle-side img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border: 2px solid var(--color-primary);
}

.battle-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  padding: 1rem;
  writing-mode: vertical-rl;
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-primary);
  text-shadow: 2px 2px 0px var(--color-black);
}

.vote-bar {
  width: 100%;
  height: 20px;
  background: var(--color-card);
  border: 2px solid var(--color-primary);
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
}

.vote-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transition: width 0.5s ease;
}

/* DJ打碟机 */
.dj-deck {
  background: var(--color-card);
  border: 4px solid var(--color-primary);
  box-shadow: var(--shadow-brutal);
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}

.dj-turntable {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 6px solid var(--color-primary);
  margin: 1rem auto;
  background: radial-gradient(circle, var(--color-card) 30%, #333 70%);
  animation: spin-vinyl 4s linear infinite paused;
  position: relative;
}

.dj-turntable.playing {
  animation-play-state: running;
}

.dj-turntable::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-primary);
}

.beat-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.beat-btn {
  padding: 0.8rem 1.5rem;
  background: var(--color-black);
  border: 3px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.beat-btn:hover,
.beat-btn.active {
  background: var(--color-primary);
  color: var(--color-black);
  transform: scale(1.05);
}

/* 地图区域 */
.territory-map {
  background: var(--color-card);
  border: 4px solid var(--color-primary);
  box-shadow: var(--shadow-brutal);
  padding: 2rem;
  min-height: 400px;
  position: relative;
}

.territory-map img {
  width: 100%;
  height: auto;
  opacity: 0.8;
}

.map-marker {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid var(--color-primary);
  animation: pulse-marker 2s infinite;
}

/* 舞者卡片 */
.dancer-card {
  background: var(--color-card);
  border: 3px solid var(--color-primary);
  padding: 0;
  overflow: hidden;
  transition: all 0.3s;
  position: relative;
}

.dancer-card:hover {
  transform: scale(1.03) rotate(-1deg);
  box-shadow: 8px 8px 0px var(--color-accent);
}

.dancer-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.3s;
}

.dancer-card:hover img {
  transform: scale(1.1);
}

.dancer-info {
  padding: 1.2rem;
}

.dancer-info h4 {
  color: var(--color-primary);
  font-size: 1.1rem;
}

.dancer-info .crew-tag {
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 700;
}

/* 页脚 */
.footer-brutal {
  background: var(--color-black);
  border-top: var(--border-brutal);
  padding: 4rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-col h4 {
  color: var(--color-primary);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 0px var(--color-accent);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul li a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  border-bottom: none;
}

.footer-col ul li a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 3rem;
  margin-top: 3rem;
  border-top: 2px solid #333;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* 面包屑 */
.breadcrumb {
  padding: 1rem 2rem;
  margin-top: 70px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.breadcrumb a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.breadcrumb span {
  color: var(--color-primary);
  font-size: 0.9rem;
}

/* 页面头部 */
.page-hero {
  background: linear-gradient(135deg, var(--color-card) 0%, var(--color-bg) 100%);
  border-bottom: var(--border-brutal);
  padding: 4rem 2rem;
  margin-top: 60px;
  text-align: center;
}

.page-hero h1 {
  margin-bottom: 1rem;
}

.page-hero p {
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* 搜索页 */
.search-box {
  max-width: 700px;
  margin: 2rem auto;
  display: flex;
  border: 4px solid var(--color-primary);
  box-shadow: var(--shadow-brutal);
}

.search-box input {
  flex: 1;
  padding: 1rem 1.5rem;
  background: var(--color-card);
  border: none;
  color: var(--color-text);
  font-size: 1.1rem;
  outline: none;
}

.search-box button {
  padding: 1rem 2rem;
  background: var(--color-primary);
  border: none;
  color: var(--color-black);
  font-weight: 900;
  font-size: 1.1rem;
  cursor: pointer;
}

/* 404页面 */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.error-page h1 {
  font-size: clamp(5rem, 15vw, 12rem);
  color: var(--color-accent);
  text-shadow: 6px 6px 0px var(--color-primary);
  animation: shake 0.5s infinite;
}

/* FAQ手风琴 */
.faq-item {
  border: 3px solid var(--color-primary);
  margin-bottom: 1rem;
  background: var(--color-card);
}

.faq-question {
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--color-accent);
}

.faq-item.active .faq-question::after {
  content: '−';
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.5rem;
  max-height: 500px;
}

/* 时间线 */
.timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: var(--color-primary);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -3.5rem;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--color-accent);
  border: 3px solid var(--color-primary);
  border-radius: 50%;
}

/* 动画 */
@keyframes graffiti-appear {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(-10deg);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(-1deg);
    filter: blur(0);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0) rotate(-1deg); }
  25% { transform: translateX(-3px) rotate(-2deg); }
  75% { transform: translateX(3px) rotate(0deg); }
}

@keyframes spin-vinyl {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse-marker {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

@keyframes spray-in {
  0% {
    opacity: 0;
    filter: blur(20px);
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

/* 滚动动画 */
.spray-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.spray-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .battle-player {
    grid-template-columns: 1fr;
  }
  .battle-vs {
    writing-mode: horizontal-tb;
    padding: 0.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-black);
    border-bottom: var(--border-brutal);
    flex-direction: column;
    padding: 1rem;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
  .section {
    padding: 3rem 1rem;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 2rem;
  }
  .hero-section {
    min-height: 80vh;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .btn-brutal {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
}

/* 打印样式 */
@media print {
  .nav-brutal, .footer-brutal {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
}
