:root {
  --bg: #0a0612;
  --bg-card: #14101c;
  --bg-card-hover: #1c1626;
  --pink: #ff2d6a;
  --pink-light: #ff5c8a;
  --pink-soft: rgba(255, 45, 106, 0.15);
  --pink-glow: rgba(255, 45, 106, 0.4);
  --purple: #7b2cbf;
  --text: #f8f0f5;
  --text-muted: #a89bb0;
  --border: rgba(255, 255, 255, 0.07);
  --radius: 16px;
  --radius-lg: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink), #e01e5a);
  color: white;
  box-shadow: 0 6px 24px var(--pink-glow);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 32px var(--pink-glow);
}

.btn-dark, .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-dark:hover, .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--pink);
  color: var(--pink);
}

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: rgba(10, 6, 18, 0.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}

header.scrolled {
  padding: 10px 32px;
  background: rgba(10, 6, 18, 0.92);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text);
  text-decoration: none;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 12px rgba(255, 45, 106, 0.35);
  transition: transform 0.3s, box-shadow 0.3s;
}

.logo:hover img {
  transform: scale(1.08);
  box-shadow: 0 0 18px rgba(255, 45, 106, 0.55);
}

.logo-badge {
  background: linear-gradient(135deg, var(--pink), #ff6b9d);
  color: white;
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 500;
  cursor: pointer;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.25s;
}

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

/* Lazy image */
img[loading="lazy"] {
  background: linear-gradient(145deg, #1f1528, #15101c);
}

img.lazy-fade {
  opacity: 0;
  transition: opacity 0.45s ease;
}

img.lazy-fade.loaded {
  opacity: 1;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.active { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left.active { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-right.active { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-scale.active { opacity: 1; transform: scale(1); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* Footer base */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  position: relative;
  z-index: 1;
  background: #08050f;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 768px) {
  header { padding: 12px 16px; }
  .nav-link { display: none; }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
}

/* ========== 加载动画（全站） ========== */
body.loading {
  overflow: hidden;
}

#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  width: 100px;
  height: 100px;
  margin-bottom: 24px;
  animation: logoPulse 1.6s ease-in-out infinite;
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(255, 45, 106, 0.4);
}

.loader-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

@keyframes logoPulse {
  0%, 100% { opacity: 0.85; transform: scale(1); box-shadow: 0 0 24px rgba(255, 45, 106, 0.3); }
  50% { opacity: 1; transform: scale(1.06); box-shadow: 0 0 48px rgba(255, 45, 106, 0.55); }
}

.loader-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255, 45, 106, 0.2);
  border-top-color: var(--pink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loader-text {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* ========== Footer 组件（全站统一页脚） ========== */
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-col-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.footer-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.footer-cities a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.84rem;
  transition: color 0.25s;
  white-space: nowrap;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

.footer-cities a:hover {
  color: var(--pink);
  border-color: rgba(255, 45, 106, 0.45);
  background: rgba(255, 45, 106, 0.08);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.25s;
}

.footer-links a:hover {
  color: var(--pink);
}

.footer-links a.highlight {
  color: var(--pink);
}

.footer-social {
  margin-top: 12px;
  font-size: 0.88rem;
}

.footer-social a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s;
}

.footer-social a:hover {
  color: var(--pink);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 14px;
  }
  .footer-cities { gap: 8px 12px; }
  .footer-cities a { padding: 4px 10px; font-size: 0.8rem; }
}

/* ========== 元素加载动画（滚动显现，全局通用） ========== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}
/* 延迟 */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }
