:root {
  --primary: #64748B;
  --secondary: #A855F7;
  --accent: #F97316;
  --bg-dark: #0F0A0A;
  --bg-light: rgba(255, 255, 255, 0.06);
  --text-main: #F9FAFB;
  --text-muted: #9CA3AF;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
}

.wolf-glow {
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.35);
}

.wolf-glow-sm {
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.25);
}

.wolf-track {
  background-image: linear-gradient(90deg, transparent 0%, rgba(100, 116, 139, 0.12) 50%, transparent 100%);
}

.glass-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
}

.solid-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.75rem;
}

.border-card {
  background: transparent;
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 0.75rem;
}

.btn-glow {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--secondary) 0%, #7C3AED 100%);
  color: #fff;
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-glow:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 28px rgba(168, 85, 247, 0.65);
}

.btn-3d {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 0.75rem;
  font-weight: 700;
  background: linear-gradient(180deg, var(--accent) 0%, #EA580C 100%);
  color: #fff;
  border-bottom: 4px solid #9A3412;
  transition: transform 0.15s ease, border-bottom-width 0.15s ease;
}

.btn-3d:hover {
  transform: translateY(2px);
  border-bottom-width: 1px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-main);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--secondary);
}

.title-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
}

.title-underline::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 3rem;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  border-radius: 2px;
}

.title-leftbar {
  position: relative;
  padding-left: 1rem;
  border-left: 4px solid var(--secondary);
}

.title-stamp {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.title-stamp::before {
  content: "狼魂";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 0.625rem;
  line-height: 1;
  color: var(--bg-dark);
  background: var(--accent);
  border-radius: 50%;
  font-weight: 800;
}

.section-bg {
  background: radial-gradient(ellipse at 50% 0%, rgba(168, 85, 247, 0.12) 0%, transparent 55%),
              linear-gradient(180deg, var(--bg-dark) 0%, #140F0F 100%);
}

.wolf-mask {
  mask-image: linear-gradient(180deg, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, black 70%, transparent 100%);
}

.nav-link {
  position: relative;
  padding: 0.5rem 0;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.25s ease;
}

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

.mobile-menu {
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.footer-wave {
  position: relative;
}

.footer-wave::before {
  content: "";
  position: absolute;
  top: -2.5rem;
  left: 0;
  width: 100%;
  height: 2.5rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath fill='%23140F0F' d='M0,40 C360,100 1080,0 1440,60 L1440,100 L0,100 Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
  background-size: 100% 100%;
}

.code-strip {
  background: repeating-linear-gradient(90deg, rgba(168, 85, 247, 0.08) 0px, rgba(168, 85, 247, 0.08) 1px, transparent 1px, transparent 20px);
}

.friend-link {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  word-break: break-all;
}

.friend-link:hover {
  color: var(--secondary);
  border-color: var(--secondary);
  transform: translateY(-2px);
}

.qr-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.qr-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(168, 85, 247, 0.15);
  color: var(--secondary);
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.hero-wolf {
  animation: wolfBreath 6s ease-in-out infinite;
}

@keyframes wolfBreath {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.03); opacity: 1; }
}

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

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 767px) {
  .title-stamp::before {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.5rem;
  }
}
