/* ========== 奕界互娱 - Custom Styles ========== */

/* Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'AlibabaPuHuiTi 2.0', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0A0A0F;
  color: #e5e7eb;
  overflow-x: hidden;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(to right, #7B3FF2, #4A5BFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-cyan {
  background: linear-gradient(to right, #00F5FF, #7B3FF2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero Section */
.hero-bg {
  position: relative;
  background: #0A0A0F;
  overflow: hidden;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(123,63,242,0.3), rgba(74,91,255,0.2), rgba(10,10,15,1)),
    repeating-linear-gradient(0deg, transparent, transparent 49px, rgba(0,245,255,0.03) 49px, rgba(0,245,255,0.03) 50px),
    repeating-linear-gradient(90deg, transparent, transparent 49px, rgba(0,245,255,0.03) 49px, rgba(0,245,255,0.03) 50px);
  z-index: 0;
}

/* Floating decorative elements */
.hero-decor {
  position: absolute;
  border: 1px solid rgba(123,63,242,0.15);
  border-radius: 4px;
  animation: pulse-glow var(--duration, 4s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  z-index: 0;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: blob-pulse 6s ease-in-out infinite;
  z-index: 0;
}
@keyframes blob-pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.1); }
}

/* Cards */
.card {
  background: #1A1A2E;
  border-radius: 0.75rem;
  border: 1px solid rgba(123,63,242,0.1);
  transition: all 0.3s ease;
}
.card:hover {
  box-shadow: 0 10px 40px rgba(123,63,242,0.2);
  transform: translateY(-2px);
}
.card-image-wrapper {
  overflow: hidden;
  border-radius: 0.75rem 0.75rem 0 0;
}
.card-image-wrapper img {
  transition: transform 0.3s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card:hover .card-image-wrapper img {
  transform: scale(1.1);
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: linear-gradient(to right, #7B3FF2, #4A5BFF);
  color: white;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  opacity: 0.9;
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(123,63,242,0.4);
}
.btn-outline {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 2px solid #7B3FF2;
  color: #7B3FF2;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
}
.btn-outline:hover {
  background: rgba(123,63,242,0.1);
  transform: scale(1.05);
}

/* Badge */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-rpg { background: rgba(123,63,242,0.8); color: white; }
.badge-action { background: rgba(239,68,68,0.8); color: white; }
.badge-strategy { background: rgba(234,179,8,0.8); color: white; }
.badge-casual { background: rgba(34,197,94,0.8); color: white; }
.badge-live { background: rgba(34,197,94,0.8); color: white; }
.badge-dev { background: rgba(59,130,246,0.8); color: white; }
.badge-preorder { background: rgba(234,179,8,0.8); color: white; }

/* Section */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-subtitle {
  text-align: center;
  color: #9ca3af;
  margin-bottom: 3rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
  height: 5rem;
}
.site-header.scrolled {
  background: rgba(10,10,15,0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-link {
  color: #d1d5db;
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s;
  font-size: 0.9rem;
}
.nav-link:hover, .nav-link.active {
  color: #00F5FF;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, #7B3FF2, #00F5FF);
  border-radius: 1px;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(10,10,15,0.98);
  backdrop-filter: blur(10px);
  padding: 1rem;
  border-top: 1px solid rgba(123,63,242,0.2);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: #d1d5db;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.2s;
}
.mobile-menu a:hover, .mobile-menu a.active {
  color: #00F5FF;
  background: rgba(123,63,242,0.1);
}

/* Footer */
.site-footer {
  background: #0A0A0F;
  border-top: 1px solid #1f2937;
  padding: 3rem 0 0;
}

/* Filter Tabs */
.filter-tab {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  border: 1px solid #374151;
  color: #9ca3af;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
}
.filter-tab:hover { border-color: #7B3FF2; color: white; }
.filter-tab.active {
  background: linear-gradient(to right, #7B3FF2, #4A5BFF);
  color: white;
  border-color: transparent;
}

/* Timeline */
.timeline-item {
  position: relative;
  padding-left: 3rem;
  padding-bottom: 2.5rem;
  border-left: 2px solid rgba(123,63,242,0.3);
}
.timeline-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(to right, #7B3FF2, #4A5BFF);
  box-shadow: 0 0 10px rgba(123,63,242,0.5);
}

/* Job Card Accordion */
.job-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.job-card.open .job-details {
  max-height: 600px;
}
.job-card .chevron {
  transition: transform 0.3s;
}
.job-card.open .chevron {
  transform: rotate(180deg);
}

/* Page Hero (inner pages) */
.page-hero {
  padding: 8rem 0 4rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(123,63,242,0.15) 0%, #0A0A0F 100%);
}
.page-hero h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; }
.page-hero p { color: #9ca3af; max-width: 600px; margin: 0 auto; }

/* Stat Card */
.stat-card {
  background: #1A1A2E;
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(123,63,242,0.1);
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
}

/* Container */
.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* Image placeholder fallback */
img { display: block; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0A0A0F; }
::-webkit-scrollbar-thumb { background: #374151; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #4B5563; }

/* Selection */
::selection { background: rgba(123,63,242,0.3); color: white; }
