/**
 * UE Toolkit - Cursor-Inspired Design
 * Modern, Clean, Professional
 */

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

:root {
  /* Colors - Unreal Engine Theme */
  --bg-primary: #0a0e14;
  --bg-secondary: #0f1419;
  --bg-tertiary: #151b23;
  
  /* Text */
  --text-primary: #e8eaed;
  --text-secondary: #a8b2c1;
  --text-muted: #6b7280;
  
  /* Accent - Unreal Engine Blue/Cyan */
  --accent-primary: #00b4d8;
  --accent-secondary: #0096c7;
  --accent-hover: #48cae4;
  --accent-gradient: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
  
  /* Special Colors */
  --bilibili-pink: #fb7299;
  --wechat-green: #07c160;
  --alipay-blue: #1677ff;
  --ue-blue: #00b4d8;
  --ue-dark-blue: #023e8a;
  
  /* Borders */
  --border-subtle: rgba(0, 180, 216, 0.1);
  --border-medium: rgba(0, 180, 216, 0.15);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(0, 180, 216, 0.3);
  --shadow-glow-blue: 0 0 40px rgba(0, 119, 182, 0.25);
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  animation: float-gentle 3s ease-in-out infinite;
}

@keyframes float-gentle {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-3px); }
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.bilibili-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--bilibili-pink);
  font-weight: 600;
}

.bilibili-link:hover {
  color: #ff85b3;
  transform: translateY(-2px);
}

.bilibili-icon {
  transition: var(--transition);
}

.bilibili-link:hover .bilibili-icon {
  transform: scale(1.1);
}

/* API Key Link */
.apikey-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #10b981;
  font-weight: 600;
}

.apikey-link:hover {
  color: #34d399;
  transform: translateY(-2px);
}

.apikey-icon {
  transition: var(--transition);
}

.apikey-link:hover .apikey-icon {
  transform: scale(1.1);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 8rem 2rem 6rem;
  overflow: hidden;
  background: 
    linear-gradient(180deg, rgba(0, 180, 216, 0.08) 0%, transparent 30%, rgba(0, 119, 182, 0.06) 100%),
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 180, 216, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(0, 119, 182, 0.12) 0%, transparent 50%),
    var(--bg-primary);
}

/* Grid Background */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(0, 180, 216, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 180, 216, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center center;
  mask-image: radial-gradient(ellipse 70% 60% at center, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at center, black 0%, transparent 80%);
  pointer-events: none;
  opacity: 0.6;
}

.hero-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 10;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(26, 26, 36, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 180, 216, 0.3);
  border-radius: 50px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  animation: fade-in-down 0.8s ease-out;
  box-shadow: 
    0 0 20px rgba(0, 180, 216, 0.2),
    inset 0 1px 0 rgba(0, 180, 216, 0.1);
}

@keyframes fade-in-down {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.badge-separator {
  color: rgba(0, 180, 216, 0.4);
}

.hero-title {
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  animation: fade-in-up 0.8s ease-out 0.2s both;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  color: var(--text-primary);
  text-shadow: 0 0 60px rgba(0, 180, 216, 0.2);
}

.gradient-text {
  display: inline-block;
  background: linear-gradient(135deg, #00b4d8 0%, #48cae4 50%, #0096c7 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-flow 4s ease infinite;
}

@keyframes gradient-flow {
  0%, 100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  animation: fade-in-up 0.8s ease-out 0.4s both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
  animation: fade-in-up 0.8s ease-out 0.6s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 2.5rem;
  background: linear-gradient(135deg, #00b4d8 0%, #0096c7 100%);
  color: var(--text-primary);
  border: none;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0, 180, 216, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  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;
}

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

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 180, 216, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 2.5rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 180, 216, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-icon,
.btn-icon-right {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.btn-primary:hover .btn-icon {
  transform: translateY(2px);
}

.btn-secondary:hover .btn-icon-right {
  transform: translateX(3px);
}

/* Download Dropdown */
.download-dropdown {
  position: relative;
  display: inline-block;
}

.download-dropdown .btn-primary {
  position: relative;
}

.dropdown-arrow {
  transition: transform 0.3s ease;
  margin-left: 0.25rem;
}

.download-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.download-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 280px;
  background: rgba(26, 26, 36, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  overflow: hidden;
}

.download-dropdown.active .download-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.download-menu-loading {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.download-menu-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
}

.download-menu-item:last-child {
  border-bottom: none;
}

.download-menu-item:hover {
  background: rgba(0, 180, 216, 0.1);
}

.download-menu-icon {
  font-size: 2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 180, 216, 0.1);
  border-radius: 10px;
  flex-shrink: 0;
}

.download-menu-info {
  flex: 1;
}

.download-menu-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.download-menu-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.download-menu-version,
.download-menu-size,
.download-menu-code {
  display: flex;
  align-items: center;
}

.download-menu-code {
  color: var(--accent-primary);
  font-weight: 600;
}
  gap: 0.25rem;
}

.download-menu-empty {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  animation: fade-in-up 0.8s ease-out 0.8s both;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #00b4d8 0%, #48cae4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* Animated Background */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 0;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.4;
  animation: float 25s ease-in-out infinite;
  mix-blend-mode: screen;
}

.orb-1 {
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.8) 0%, rgba(0, 150, 199, 0.4) 30%, transparent 60%);
  top: -400px;
  left: -400px;
  animation-delay: 0s;
}

.orb-2 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0, 119, 182, 0.7) 0%, rgba(2, 62, 138, 0.35) 30%, transparent 60%);
  bottom: -350px;
  right: -350px;
  animation-delay: 8s;
}

.orb-3 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(72, 202, 228, 0.6) 0%, rgba(0, 180, 216, 0.3) 30%, transparent 60%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 16s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(40px, -40px) scale(1.1);
  }
  50% {
    transform: translate(-30px, 30px) scale(0.9);
  }
  75% {
    transform: translate(30px, 40px) scale(1.05);
  }
}

/* Features Section */
.features {
  padding: 8rem 2rem 6rem;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 10%, var(--bg-secondary) 90%, var(--bg-primary) 100%);
  position: relative;
  overflow: hidden;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(180deg, var(--bg-primary) 0%, transparent 100%);
  pointer-events: none;
}

.features::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(0deg, var(--bg-primary) 0%, transparent 100%);
  pointer-events: none;
}

.features-container {
  max-width: 1400px;
  margin: 0 auto;
}

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

.section-header::before {
  content: '';
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Full-Width Feature Showcase */
.features-showcase {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 1400px;
  margin: 0 auto;
}

.feature-item {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 4rem;
  align-items: center;
  opacity: 0;
  transform: translateY(40px);
  animation: fade-in-up 0.8s ease-out forwards;
  padding: 6rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }

/* Reverse layout for even items - using grid areas */
.feature-item.reverse {
  grid-template-columns: 1fr 400px;
  grid-template-areas: "visual text";
}

.feature-item.reverse .feature-text {
  grid-area: text;
}

.feature-item.reverse .feature-visual {
  grid-area: visual;
}

/* Feature Text */
.feature-text {
  padding: 2rem 0;
}

.feature-number {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent-primary);
  background: rgba(0, 180, 216, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.feature-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.feature-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.feature-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.feature-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(0, 180, 216, 0.1);
  border: 1px solid rgba(0, 180, 216, 0.2);
  border-radius: 20px;
  font-size: 0.875rem;
  color: var(--accent-primary);
  font-weight: 500;
  transition: all 0.3s ease;
}

.feature-tag:hover {
  background: rgba(0, 180, 216, 0.2);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

/* Feature Visual */
.feature-visual {
  position: relative;
}

.visual-window {
  background: var(--bg-primary);
  border: 1px solid var(--border-medium);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.window-header {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
}

.window-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot:nth-child(1) {
  background: #ff5f56;
}

.dot:nth-child(2) {
  background: #ffbd2e;
}

.dot:nth-child(3) {
  background: #27c93f;
}

.window-image {
  position: relative;
  background: linear-gradient(135deg, rgba(20, 20, 30, 0.8) 0%, rgba(15, 15, 25, 0.9) 100%);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.window-image img {
  max-width: 100%;
  max-height: 600px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* Responsive */
@media (max-width: 1200px) {
  .features-showcase {
    gap: 0;
  }

  .feature-item,
  .feature-item.reverse {
    grid-template-columns: 1fr;
    grid-template-areas: none;
    gap: 3rem;
    padding: 4rem 0;
  }

  .feature-item.reverse .feature-text,
  .feature-item.reverse .feature-visual {
    grid-area: auto;
  }

  .feature-text {
    text-align: center;
  }

  .feature-tags-list {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .feature-item {
    gap: 2rem;
    padding: 3rem 0;
  }

  .feature-title {
    font-size: 2rem;
  }

  .feature-description {
    font-size: 1rem;
  }

  .window-image {
    min-height: 400px;
    padding: 2rem;
  }

  .window-image img {
    max-height: 500px;
  }
}

@media (max-width: 480px) {
  .feature-item {
    padding: 2rem 0;
  }

  .feature-title {
    font-size: 1.75rem;
  }

  .feature-description {
    font-size: 0.95rem;
  }

  .window-image {
    min-height: 300px;
    padding: 1.5rem;
  }

  .window-image img {
    max-height: 400px;
  }
}

/* Feature Tabs */
.feature-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.feature-tab {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  color: var(--text-primary);
  font-family: inherit;
}

.feature-tab:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.feature-tab.active {
  background: rgba(0, 180, 216, 0.15);
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(0, 180, 216, 0.2);
}

.tab-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  border-radius: 10px;
  flex-shrink: 0;
  color: var(--text-primary);
}

.feature-tab.active .tab-icon {
  box-shadow: 0 0 20px rgba(0, 180, 216, 0.6);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 180, 216, 0.6); }
  50% { box-shadow: 0 0 30px rgba(0, 119, 182, 0.8); }
}

.tab-content {
  flex: 1;
  min-width: 0;
  display: block;
}

.tab-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  display: block;
}

.tab-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
  display: block;
}

/* Feature Showcase */
.feature-showcase {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(20, 20, 30, 0.95) 100%);
  border: 1px solid var(--border-subtle);
  max-width: 1200px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.showcase-container {
  position: relative;
  width: 100%;
  min-height: 500px;
}

.showcase-image {
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.showcase-image img {
  width: 90%;
  height: auto;
  max-height: 450px;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  pointer-events: none;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

.showcase-image img.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

/* Feature Info Overlay */
.feature-info-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
  z-index: 5;
}

.feature-info {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
  pointer-events: none;
  position: absolute;
  bottom: 3rem;
  left: 3rem;
  right: 3rem;
}

.feature-info.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.info-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--accent-gradient);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0, 180, 216, 0.5);
}

.info-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.info-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 600px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

/* Progress Indicators */
.showcase-indicators {
  position: absolute;
  bottom: 1.5rem;
  right: 3rem;
  display: flex;
  gap: 0.75rem;
  z-index: 10;
}

.indicator {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.5);
}

.indicator.active {
  background: var(--accent-primary);
}

.indicator.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: var(--accent-secondary);
  animation: progress 5s linear forwards;
}

@keyframes progress {
  to {
    width: 100%;
  }
}

/* Changelog Section */
.changelog {
  padding: 8rem 2rem;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.changelog-container {
  max-width: 1000px;
  margin: 0 auto;
}

.changelog-card {
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.03) 0%, rgba(0, 119, 182, 0.02) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 0;
  margin-bottom: 4rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.changelog-content {
  max-height: 500px;
  overflow-y: auto;
  padding: 2.5rem;
}

.changelog-content::-webkit-scrollbar {
  width: 8px;
}

.changelog-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

.changelog-content::-webkit-scrollbar-thumb {
  background: rgba(0, 180, 216, 0.3);
  border-radius: 4px;
}

.changelog-content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 180, 216, 0.5);
}

.changelog-content pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
  font-size: 0.95rem;
  line-height: 2;
  color: var(--text-secondary);
  margin: 0;
}

.changelog-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.changelog-content ul li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.2s ease;
}

.changelog-content ul li:last-child {
  border-bottom: none;
}

.changelog-content ul li:hover {
  background: rgba(0, 180, 216, 0.05);
  padding-left: 2.5rem;
}

.changelog-content ul li::before {
  content: '✦';
  position: absolute;
  left: 0.5rem;
  color: var(--accent-primary);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.changelog-content ul li:hover::before {
  transform: scale(1.2);
  color: var(--accent-secondary);
}

.history-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Version List Styles (same as download page) */
.version-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Version Group */
.version-group {
  border-bottom: 1px solid var(--border-subtle);
}

.version-group:last-child {
  border-bottom: none;
}

.version-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1rem;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease;
}

.version-group-header:hover {
  background: rgba(255, 255, 255, 0.02);
}

.group-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.group-expand-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.version-group.expanded .group-expand-icon {
  transform: rotate(90deg);
  color: var(--accent-primary);
}

.group-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.group-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.group-count {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.version-group-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}

.version-group.expanded .version-group-content {
  max-height: 10000px;
  opacity: 1;
}

.group-show-more-container {
  padding: 1rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
  background: transparent;
}

.group-show-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  background: transparent;
  color: var(--text-secondary);
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.group-show-more-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.show-more-container {
  padding: 2rem 0;
  text-align: center;
  background: transparent;
}

.show-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: transparent;
  color: var(--text-secondary);
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.show-more-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.version-item {
  background: transparent;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.2s ease;
}

.version-item:last-child {
  border-bottom: none;
}

.version-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.version-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1rem;
  cursor: pointer;
  user-select: none;
}

.version-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.version-number {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 80px;
}

.version-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(0, 180, 216, 0.15);
  border: 1px solid rgba(0, 180, 216, 0.3);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
}

.version-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.version-date {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.version-expand {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.version-item.expanded .version-expand {
  transform: rotate(180deg);
}

.version-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}

.version-item.expanded .version-content {
  max-height: 1000px;
  opacity: 1;
}

.version-content-inner {
  padding: 0 1rem 1.5rem 1rem;
}

.download-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.download-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.download-link:last-child {
  border-bottom: none;
}

.download-link:hover {
  background: rgba(255, 255, 255, 0.03);
}

.link-left {
  display: flex;
  align-items: center;
  gap: 0;
}

.link-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.link-name {
  font-weight: 400;
  font-size: 1rem;
  color: var(--text-primary);
}

.link-arrow {
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.download-link:hover .link-arrow {
  transform: translateX(0);
  color: var(--text-primary);
}

.changelog {
  padding: 1.5rem 1rem;
  border-top: 1px solid var(--border-subtle);
}

.changelog-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.changelog-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.changelog-list li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.changelog-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-size: 1.2rem;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.history-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.history-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-medium);
}

.history-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
}

.history-header:hover {
  background: rgba(0, 180, 216, 0.05);
}

.history-expand-icon {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.history-item.expanded .history-expand-icon {
  transform: rotate(90deg);
  color: var(--accent-primary);
}

.history-version {
  font-size: 1.1rem;
  font-weight: 600;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex: 1;
}

.history-date {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-left: auto;
}

.history-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
  color: var(--text-secondary);
  line-height: 1.8;
  padding: 0 1.5rem;
}

.history-item.expanded .history-content {
  max-height: 1000px;
  opacity: 1;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.changelog-line {
  padding: 0.375rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.changelog-line::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: bold;
}

/* Footer */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid rgba(0, 180, 216, 0.1);
  padding: 3rem 2rem 2rem;
  position: relative;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(0, 180, 216, 0.08);
}

.footer-brand {
  flex: 1;
  max-width: 400px;
}

.footer-logo {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text-primary);
}

.footer-logo .logo-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.footer-description {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 4rem;
  flex: 1;
  justify-content: flex-end;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 120px;
}

.footer-heading {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition);
  display: inline-block;
  opacity: 0.8;
}

.footer-link:hover {
  color: var(--accent-primary);
  opacity: 1;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-icon {
  width: 16px;
  height: 16px;
  transition: var(--transition);
}

.bilibili-footer-link {
  color: var(--bilibili-pink) !important;
  opacity: 0.9;
}

.bilibili-footer-link:hover {
  opacity: 1;
}

.social-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  opacity: 0.7;
}

.footer-bottom {
  text-align: center;
  padding-top: 0;
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.8125rem;
  opacity: 0.6;
}

/* Loading & Error Overlays */
.loading-overlay,
.error-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  display: none; /* 默认隐藏全屏loading */
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Inline Loading Indicator */
.inline-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.inline-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(0, 180, 216, 0.2);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 3rem;
  text-align: center;
  max-width: 400px;
}

.error-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.error-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.error-message {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Utility Classes */
.loading-text,
.no-data {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
  font-style: italic;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
  }
  
  .nav-link {
    font-size: 0.875rem;
  }
  
  .hero {
    padding: 6rem 1.5rem 3rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn-primary,
  .btn-secondary {
    justify-content: center;
  }
  
  .hero-stats {
    gap: 2rem;
  }
  
  .features,
  .changelog {
    padding: 4rem 1.5rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 2.5rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 2rem;
  }
  
  .footer-brand {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 1rem 1.5rem;
  }
  
  .nav-logo {
    font-size: 1rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
}


/* Privacy Page Styles */
.privacy-page {
  min-height: 100vh;
  padding-top: 80px;
  background: var(--bg-primary);
}

.privacy-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

.privacy-header {
  text-align: center;
  margin-bottom: 4rem;
  padding: 3rem 0;
}

.privacy-header h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.privacy-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

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

.privacy-content {
  margin-bottom: 4rem;
}

.privacy-section {
  margin-bottom: 3rem;
}

.privacy-section h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.privacy-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.privacy-section p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.privacy-section ul {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}

.privacy-section ul li {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.privacy-section ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: bold;
}

.info-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.highlight-box {
  background: rgba(0, 180, 216, 0.1);
  border-left: 3px solid var(--accent-primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 4px;
  color: var(--text-secondary);
}

.contact-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.contact-card p {
  margin-bottom: 0.75rem;
}

.contact-card a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: var(--transition);
}

.contact-card a:hover {
  color: var(--accent-hover);
}

code {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
  color: var(--accent-primary);
}

/* Responsive for Privacy Page */
@media (max-width: 768px) {
  .privacy-page {
    padding-top: 70px;
  }
  
  .privacy-container {
    padding: 1.5rem;
  }
  
  .privacy-header {
    padding: 2rem 0;
    margin-bottom: 2rem;
  }
  
  .privacy-header h1 {
    font-size: 2rem;
  }
  
  .privacy-section h2 {
    font-size: 1.5rem;
  }
}


/* Admin Page Styles */
.admin-page {
  min-height: 100vh;
  background: var(--bg-primary);
}

/* Login Section */
.login-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-box {
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 3rem 2rem;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-header .subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  cursor: pointer;
}

.btn-block {
  width: 100%;
}

.error-message {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

.error-message p {
  color: #ff6b6b;
  margin: 0;
  font-size: 0.9rem;
}

/* Admin Dashboard */
#admin-dashboard {
  min-height: 100vh;
}

.admin-header {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.5rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.admin-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-user {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Navigation Tabs */
.nav-tabs {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 2rem;
  display: flex;
  gap: 2rem;
  overflow-x: auto;
}

.nav-tab {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 1rem 0;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-tab:hover {
  color: var(--text-primary);
}

.nav-tab.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

/* Admin Content */
.admin-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Stats Overview */
.stats-overview {
  margin-bottom: 3rem;
}

.stats-overview h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: var(--transition);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-medium);
}

.stat-icon {
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  border-radius: 12px;
  flex-shrink: 0;
}

.stat-info h3 {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Charts Section */
.charts-section {
  margin-bottom: 3rem;
}

.charts-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.chart-container {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
}

.chart-container h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.chart-container canvas {
  max-height: 300px;
}

/* Forms */
.admin-form {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2rem;
  max-width: 800px;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.message {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.message.success {
  background: rgba(40, 167, 69, 0.1);
  border-color: rgba(40, 167, 69, 0.3);
  color: #51cf66;
}

.message.error {
  background: rgba(220, 53, 69, 0.1);
  border-color: rgba(220, 53, 69, 0.3);
  color: #ff6b6b;
}

/* Changelog Management */
.changelog-editor {
  margin-bottom: 3rem;
}

.changelog-editor h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.changelog-history h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.changelog-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
  transition: var(--transition);
}

.changelog-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-medium);
}

.changelog-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.changelog-item-version {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-primary);
}

.changelog-item-date {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.changelog-item-content {
  color: var(--text-secondary);
  line-height: 1.6;
  white-space: pre-wrap;
}

.changelog-item-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
}

/* Export Section */
.export-section {
  margin-bottom: 3rem;
}

.export-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.export-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Admin Footer */
.admin-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsive for Admin */
@media (max-width: 968px) {
  .admin-header {
    padding: 1rem 1.5rem;
  }
  
  .header-content {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .nav-tabs {
    padding: 0 1.5rem;
    gap: 1rem;
  }
  
  .admin-content {
    padding: 2rem 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .charts-grid {
    grid-template-columns: 1fr;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .form-actions .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .login-box {
    padding: 2rem 1.5rem;
  }
  
  .admin-header h1 {
    font-size: 1.25rem;
  }
  
  .stat-card {
    padding: 1.5rem;
  }
  
  .stat-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
  }
  
  .stat-value {
    font-size: 1.5rem;
  }
}

/* Feature Screenshots */
.feature-screenshot {
  margin-top: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  transition: var(--transition);
}

.feature-screenshot img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
  opacity: 0.9;
}

.feature-card:hover .feature-screenshot {
  border-color: var(--border-medium);
  box-shadow: 0 8px 24px rgba(0, 180, 216, 0.2);
}

.feature-card:hover .feature-screenshot img {
  opacity: 1;
  transform: scale(1.02);
}

/* Fallback for missing images */
.feature-screenshot img[src*="placeholder"] {
  opacity: 0.3;
}


/* Responsive for Feature Showcase */
@media (max-width: 968px) {
  .feature-tabs {
    grid-template-columns: 1fr;
  }
  
  .feature-tab {
    padding: 1.25rem;
  }
  
  .showcase-container {
    min-height: 400px;
  }
  
  .showcase-image {
    height: 400px;
  }
  
  .showcase-image img {
    max-height: 350px;
  }
  
  .feature-info-overlay {
    padding: 2rem;
  }
  
  .feature-info {
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
  }
  
  .info-title {
    font-size: 1.5rem;
  }
  
  .info-description {
    font-size: 1rem;
  }
  
  .showcase-indicators {
    right: 2rem;
    bottom: 1rem;
  }
}

@media (max-width: 640px) {
  .features {
    padding: 4rem 1.5rem;
  }
  
  .feature-tab {
    padding: 1rem;
  }
  
  .tab-icon {
    width: 36px;
    height: 36px;
  }
  
  .tab-content h3 {
    font-size: 1rem;
  }
  
  .tab-content p {
    font-size: 0.85rem;
  }
  
  .showcase-container {
    min-height: 350px;
  }
  
  .showcase-image {
    height: 350px;
  }
  
  .showcase-image img {
    width: 95%;
    max-height: 300px;
  }
  
  .feature-info-overlay {
    padding: 1.5rem;
  }
  
  .feature-info {
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
  }
  
  .info-title {
    font-size: 1.25rem;
  }
  
  .info-description {
    font-size: 0.9rem;
  }
  
  .showcase-indicators {
    right: 1.5rem;
    bottom: 0.75rem;
  }
  
  .indicator {
    width: 30px;
  }
}

/* ============================================
   DONATE SECTION STYLES
   ============================================ */

.donate-section {
  padding: 8rem 2rem;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(0, 180, 216, 0.1);
}

.donate-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: linear-gradient(180deg, rgba(0, 180, 216, 0.05) 0%, transparent 100%);
  pointer-events: none;
}

.donate-section::after {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.donate-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

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

.donate-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.donate-description {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.9;
  max-width: 700px;
  margin: 1.5rem auto 0;
  text-align: center;
}

.donate-qr-wrapper {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.qr-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  min-width: 280px;
}

.qr-label {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.qr-label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 180, 216, 0.6);
}

.qr-image-box {
  background: white;
  padding: 1.25rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  display: inline-block;
}

.qr-image {
  width: 200px;
  height: 200px;
  display: block;
  border-radius: 6px;
}

.donate-footer {
  text-align: center;
  padding: 2rem 2.5rem;
  background: rgba(0, 180, 216, 0.04);
  border-radius: 16px;
  border: 1px solid rgba(0, 180, 216, 0.15);
  position: relative;
  overflow: hidden;
}

.donate-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 180, 216, 0.5), transparent);
}

.donate-thanks {
  font-size: 1.0625rem;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.7;
  font-weight: 500;
}

/* Footer Enhancements */
.footer-brand {
  max-width: 400px;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo .logo-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.footer-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  line-height: 1.6;
}

.bilibili-footer-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--bilibili-pink) !important;
  font-weight: 600;
}

.bilibili-footer-link:hover {
  color: #ff85b3 !important;
}

.bilibili-icon-footer {
  transition: var(--transition);
}

.bilibili-footer-link:hover .bilibili-icon-footer {
  transform: scale(1.15);
}

.social-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Responsive for Donate Section */
@media (max-width: 768px) {
  .donate-section {
    padding: 4rem 1.5rem;
  }
  
  .donate-header {
    margin-bottom: 3rem;
  }
  
  .donate-icon {
    font-size: 3rem;
  }
  
  .donate-description {
    font-size: 1rem;
    line-height: 1.8;
  }
  
  .donate-qr-wrapper {
    gap: 2.5rem;
  }
  
  .qr-item {
    min-width: 240px;
  }
  
  .qr-image {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 480px) {
  .donate-section {
    padding: 3rem 1rem;
  }
  
  .donate-icon {
    font-size: 2.5rem;
  }
  
  .donate-description {
    font-size: 0.95rem;
  }
  
  .donate-qr-wrapper {
    gap: 1.5rem;
  }
  
  .qr-image {
    width: 160px;
    height: 160px;
  }
  
  .qr-image-box {
    padding: 1rem;
  }
}
