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

:root {
  --green: #00e676;
  --green-dark: #00c853;
  --green-glow: rgba(0, 230, 118, 0.3);
  --purple: #d500f9;
  --purple-dark: #aa00ff;
  --purple-glow: rgba(213, 0, 249, 0.3);
  --accent: #00e676;
  --accent2: #d500f9;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --text-primary: #f0f2f6;
  --text-secondary: #aab2c8;
  --card-bg: rgba(25, 30, 50, 0.55);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow-green: 0 0 20px rgba(0, 230, 118, 0.15);
  --shadow-glow-purple: 0 0 20px rgba(213, 0, 249, 0.15);
  --font-size-base: 1rem;
  --font-size-card-title: 1.15rem;
  --font-size-card-desc: 0.89rem;
  --font-size-modal: 0.93rem;
}

html, body {
  height: 100%;
  font-family: -apple-system, 'SF Pro Display', 'PingFang SC', 'Helvetica Neue', system-ui, sans-serif;
  color: var(--text-primary);
  background: #0a0e1a;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ===== 动态壁纸 ===== */
.wallpaper {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 15% 25%, rgba(0, 230, 118, 0.08) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 75%, rgba(213, 0, 249, 0.08) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 50%, #0f1a2e 0%, transparent 60%),
    linear-gradient(145deg, #0b1120, #141c30);
  background-size: cover;
}

/* ===== 底部双球背景 ===== */
.orb-container {
  position: fixed;
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
  width: 600px;
  height: 600px;
  pointer-events: none;
}

.orb {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  will-change: transform;
}

.orb-green {
  background: radial-gradient(circle, rgba(0, 230, 118, 0.6), transparent 70%);
  box-shadow: 0 0 100px rgba(0, 230, 118, 0.2);
}

.orb-purple {
  background: radial-gradient(circle, rgba(213, 0, 249, 0.6), transparent 70%);
  box-shadow: 0 0 100px rgba(213, 0, 249, 0.2);
}

/* ===== 粒子画布 ===== */
#particleCanvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
}

/* ===== 品牌色 ===== */
.brand-q {
  color: var(--green);
  text-shadow: 0 0 12px var(--green-glow);
}

.brand-z {
  color: var(--purple);
  text-shadow: 0 0 12px var(--purple-glow);
}

.brand-studio {
  color: var(--text-primary);
  font-weight: 300;
  letter-spacing: 2px;
}

/* ===== Hero 区域 ===== */
.hero-section {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
}

.hero-content {
  animation: heroFadeIn 1.2s ease-out;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-logo {
  font-size: 5rem;
  font-weight: 800;
  letter-spacing: 8px;
  margin-bottom: 20px;
  line-height: 1;
}

.hero-q {
  color: var(--green);
  text-shadow: 0 0 30px var(--green-glow), 0 0 60px rgba(0, 230, 118, 0.1);
  animation: pulseGreen 3s ease-in-out infinite;
}

.hero-z {
  color: var(--purple);
  text-shadow: 0 0 30px var(--purple-glow), 0 0 60px rgba(213, 0, 249, 0.1);
  animation: pulsePurple 3s ease-in-out infinite 0.5s;
}

@keyframes pulseGreen {
  0%, 100% { text-shadow: 0 0 30px var(--green-glow), 0 0 60px rgba(0, 230, 118, 0.1); }
  50% { text-shadow: 0 0 40px var(--green-glow), 0 0 80px rgba(0, 230, 118, 0.2); }
}

@keyframes pulsePurple {
  0%, 100% { text-shadow: 0 0 30px var(--purple-glow), 0 0 60px rgba(213, 0, 249, 0.1); }
  50% { text-shadow: 0 0 40px var(--purple-glow), 0 0 80px rgba(213, 0, 249, 0.2); }
}

.hero-title {
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 12px;
  letter-spacing: 4px;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 30px;
  letter-spacing: 2px;
}

.cta-button {
  background: linear-gradient(135deg, var(--green), var(--purple));
  border: none;
  color: #fff;
  padding: 14px 40px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 1px;
  box-shadow: 0 4px 20px rgba(0, 230, 118, 0.2), 0 4px 20px rgba(213, 0, 249, 0.2);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 230, 118, 0.3), 0 6px 30px rgba(213, 0, 249, 0.3);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s ease-in-out infinite;
}

.hero-scroll-indicator span {
  display: block;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  position: relative;
}

.hero-scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 10px;
  background: var(--green);
  border-radius: 2px;
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes scrollDot {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.3; transform: translateX(-50%) translateY(12px); }
}

/* ===== 悬浮导航栏（iOS 风格） ===== */
.navbar {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(740px, 94vw);
  background: rgba(15, 20, 35, 0.65);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 8px 20px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
  transform: translateX(-50%) translateY(-4px);
  background: rgba(15, 20, 35, 0.82);
}

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

.nav-brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 6px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.88rem;
  padding: 7px 18px;
  border-radius: 30px;
  transition: all 0.18s ease;
  font-weight: 470;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(0, 230, 118, 0.08);
  color: #fff;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--purple));
  border-radius: 1px;
}

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

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #ccc;
  border-radius: 2px;
  transition: 0.2s;
}

/* ===== 主内容 ===== */
main {
  position: relative;
  z-index: 2;
  padding: 60px 20px 60px;
  max-width: 1100px;
  margin: 0 auto;
  min-height: 60vh;
}

/* ===== 卡片网格 ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px;
  padding-top: 10px;
}

.card {
  background: var(--card-bg);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--green-glow), var(--purple-glow));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 230, 118, 0.15);
  box-shadow: var(--shadow), 0 0 30px rgba(0, 230, 118, 0.08), 0 0 30px rgba(213, 0, 249, 0.08);
}

.card:hover::before {
  opacity: 0.06;
}

.card-media {
  width: 100%;
  height: 195px;
  object-fit: cover;
  display: block;
  background: #1a2040;
}

.card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-img-placeholder {
  width: 100%;
  height: 195px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a2040, #2a2f50);
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.08);
}

.card-body {
  padding: 18px 20px 22px;
  position: relative;
  z-index: 1;
}

.card-body h3 {
  font-size: var(--font-size-card-title);
  font-weight: 590;
  margin-bottom: 8px;
  color: #f0f2f6;
}

.card-body p {
  font-size: var(--font-size-card-desc);
  color: var(--text-secondary);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.card-tag {
  font-size: 0.72rem;
  padding: 3px 12px;
  border-radius: 30px;
  background: rgba(0, 230, 118, 0.08);
  color: var(--green);
  border: 1px solid rgba(0, 230, 118, 0.1);
}

.card-tag:nth-child(even) {
  background: rgba(213, 0, 249, 0.08);
  color: var(--purple);
  border-color: rgba(213, 0, 249, 0.1);
}

/* ===== 详情模态窗口（占大部分屏幕） ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.show {
  display: flex;
}

.modal {
  width: min(820px, 94vw);
  max-height: 88vh;
  background: rgba(20, 25, 45, 0.82);
  backdrop-filter: blur(42px) saturate(190%);
  -webkit-backdrop-filter: blur(42px) saturate(190%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.58), 0 0 48px rgba(0, 230, 118, 0.04), 0 0 48px rgba(213, 0, 249, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalIn 0.28s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92) translateY(24px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.modal-head h2 {
  font-size: 1.15rem;
  font-weight: 570;
  background: linear-gradient(90deg, var(--green), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-close {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(220, 230, 255, 0.06);
  color: #bbb;
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.12s;
}

.modal-close:hover {
  background: rgba(224, 18, 18, 0.6);
  color: #fff;
}

.modal-body {
  padding: 24px 26px;
  overflow-y: auto;
  flex: 1;
  font-size: var(--font-size-modal);
  color: #dde;
  line-height: 1.75;
}

.modal-body img,
.modal-body video {
  max-width: 100%;
  max-height: 55vh;
  border-radius: 14px;
  margin: 14px 0;
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: block;
}

.modal-body video {
  background: #000;
}

/* ===== 加载动画 ===== */
.loading-state {
  text-align: center;
  padding: 80px 0;
  color: var(--text-secondary);
}

.loader-ring {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(0, 230, 118, 0.1);
  border-top-color: var(--green);
  border-right-color: var(--purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

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

/* ===== 空状态 ===== */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-secondary);
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.35;
}

/* ===== 底部 ===== */
footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px 140px;
  color: var(--text-secondary);
  font-size: 0.78rem;
  opacity: 0.6;
}

.footer-brand {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 2px;
}

/* ===== 响应式 ===== */
@media (max-width: 780px) {
  .hero-logo {
    font-size: 3.5rem;
  }

  .hero-title {
    font-size: 1.2rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(15, 20, 35, 0.88);
    backdrop-filter: blur(28px);
    border-radius: 14px;
    padding: 10px;
    flex-direction: column;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

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

  .modal {
    width: 96vw;
    max-height: 91vh;
  }
}

@media (max-width: 440px) {
  .hero-logo {
    font-size: 2.8rem;
  }

  .hero-title {
    font-size: 1rem;
  }

  .hero-subtitle {
    font-size: 0.84rem;
  }

  .cta-button {
    padding: 12px 30px;
    font-size: 0.88rem;
  }

  .orb-container {
    width: 400px;
    height: 400px;
    bottom: -100px;
  }

  .orb {
    width: 160px;
    height: 160px;
  }
}
