:root {
  /* 紫色 + 二次元霓虹风格调色 */
  --bg: #0b0a12;
  --card: #161327;
  --text: #f0eaff;
  --muted: #bfb6d9;
  --primary: #8b5cf6; /* 紫色 */
  --primary-foreground: #ffffff;
  --secondary: #ec4899; /* 粉色 */
  --secondary-foreground: #0b0a12;
  --border: #2a2545;
  --accent: #ffd7ff; /* 浅紫粉强调 */
  --danger: #ff5a5f;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
body { font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, Arial, sans-serif; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--text); text-decoration: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.02)); }
.section-title { font-size: 28px; margin: 0 0 24px; letter-spacing: 0.4px; position: relative; }
.section-title::after { content: ""; display: block; width: 64px; height: 3px; background: linear-gradient(90deg, var(--primary), var(--secondary)); border-radius: 999px; margin-top: 8px; }

.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 12px 20px; font-weight: 600; border: 1px solid var(--border); transition: all 0.2s ease; }
.btn { position: relative; overflow: hidden; }
.btn-primary::before, .btn-secondary::before { content: ""; position: absolute; top: -50%; left: -30%; width: 20%; height: 200%; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.35), rgba(255,255,255,0)); transform: rotate(20deg); animation: shine 3.2s linear infinite; }
.btn-primary { background: linear-gradient(90deg, #8b5cf6, #a78bfa); color: var(--primary-foreground); box-shadow: 0 10px 24px rgba(139,92,246,0.35); }
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 12px 28px rgba(139,92,246,0.45); }
.btn-secondary { background: linear-gradient(90deg, #ec4899, #f472b6); color: var(--secondary-foreground); box-shadow: 0 10px 24px rgba(236,72,153,0.35); }
.btn-secondary:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 12px 28px rgba(236,72,153,0.45); }
.link { color: var(--muted); font-weight: 600; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(160%) blur(10px); background: rgba(20,16,40,0.6); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 800; letter-spacing: 0.6px; text-shadow: 0 0 8px rgba(139,92,246,0.55), 0 0 2px rgba(236,72,153,0.35); }
.nav { display: flex; gap: 18px; }
.nav a { padding: 8px 10px; border-radius: 8px; }
.nav a:hover { background: var(--card); box-shadow: 0 0 0 1px var(--border), 0 0 10px rgba(139,92,246,0.25); }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 8px 10px; }

/* Hero */
.hero { position: relative; min-height: 64vh; display: grid; place-items: center; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(40px); opacity: 0.35; pointer-events: none; }
.hero::before { width: 420px; height: 420px; left: -8%; top: -10%; background: radial-gradient(circle, rgba(139,92,246,0.7), transparent 60%); animation: floatGlow 16s ease-in-out infinite; }
.hero::after { width: 360px; height: 360px; right: -6%; bottom: -8%; background: radial-gradient(circle, rgba(236,72,153,0.65), transparent 60%); animation: floatGlow 18s ease-in-out infinite reverse; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(105%); }
.hero-overlay { position: absolute; inset: 0; background:
  radial-gradient(ellipse at 65% 25%, rgba(139,92,246,0.38), transparent 60%),
  radial-gradient(ellipse at 20% 75%, rgba(236,72,153,0.38), transparent 60%),
  linear-gradient(180deg, rgba(11,10,18,0.28), rgba(11,10,18,0.85)),
  url("../assets/images/pattern-stars.svg");
  background-blend-mode: screen, screen, normal, normal;
}
.hero-content { position: relative; z-index: 1; text-align: center; }
.hero-content { z-index: 3; }
.hero-content h1 { font-size: 40px; margin: 0 0 12px; }
.hero-content p { color: var(--muted); margin: 0 0 16px; }

/* Grids */
.grid { display: grid; gap: 18px; }
.features-grid { grid-template-columns: repeat(3, 1fr); }
.categories-grid { grid-template-columns: repeat(5, 1fr); }
.product-grid { grid-template-columns: repeat(4, 1fr); }
.experience-grid { grid-template-columns: repeat(3, 1fr); }

/* Cards */
.card { background: linear-gradient(180deg, rgba(22,19,39,0.95), rgba(22,19,39,1)); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--border), 0 10px 30px rgba(139,92,246,0.18); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.card { position: relative; }
.card:hover { transform: translateY(-2px) scale(1.01); box-shadow: 0 0 0 1px var(--border), 0 18px 36px rgba(236,72,153,0.22); }
.card-body { padding: 14px; }
.card-title { font-weight: 700; margin: 0 0 6px; }
.card-text { color: var(--muted); margin: 0; }
.card img { width: 100%; height: 180px; object-fit: cover; }
.card img { transition: transform 0.35s ease, filter 0.35s ease; }
.card:hover img { transform: scale(1.04); filter: saturate(110%); }

/* Product */
.price { font-weight: 700; }
.badge { display: inline-block; padding: 4px 8px; border: 1px solid var(--border); border-radius: 999px; font-size: 12px; color: #f472b6; margin-left: 6px; background: rgba(236,72,153,0.12); }

/* News */
.news-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.news-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); }
.news-date { font-size: 12px; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent); }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.footer-right { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.footer-right a { background: var(--card); border: 1px solid var(--border); padding: 8px 12px; border-radius: 999px; }
.footer-right a { display: inline-flex; align-items: center; gap: 8px; }
.footer-right a img.icon { width: 16px; height: 16px; opacity: 0.9; }

/* About & Contact */
.about p, .contact p { color: var(--muted); }

/* Placeholder Tags */
.placeholder-tag { display: inline-block; font-size: 12px; padding: 4px 8px; border-radius: 999px; background: linear-gradient(90deg, #8b5cf6, #ec4899); color: #fff; border: 1px solid rgba(255,255,255,0.18); box-shadow: 0 6px 12px rgba(139,92,246,0.25); }
.placeholder-image { position: absolute; top: 10px; left: 10px; z-index: 2; }
.placeholder-text { margin-left: 8px; vertical-align: middle; }
.hero-media .placeholder-image { position: absolute; top: 12px; left: 12px; z-index: 2; }
.hero-overlay { z-index: 1; }

/* Reveal Animations */
.reveal { opacity: 0; transform: translateY(12px) scale(0.98); }
.reveal.visible { opacity: 1; transform: none; transition: opacity 600ms ease, transform 600ms ease; }

/* Selection & Scrollbar */
::selection { background: rgba(139,92,246,0.35); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0f0d19; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #8b5cf6, #ec4899); border-radius: 999px; }

/* Nav Active */
.nav a.active { color: var(--accent); position: relative; }
.nav a.active::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -2px; height: 2px; background: linear-gradient(90deg, var(--primary), var(--secondary)); border-radius: 999px; }

/* Keyframes */
@keyframes floatGlow {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(0,10px,0) scale(1.05); }
}
@keyframes shine {
  0% { transform: translateX(-120%) rotate(20deg); }
  100% { transform: translateX(220%) rotate(20deg); }
}

/* Responsive */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .experience-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav { display: none; position: absolute; top: 64px; right: 20px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px; flex-direction: column; min-width: 160px; }
  .nav.open { display: flex; }
  .nav-toggle { display: inline-block; }
  .hero-content h1 { font-size: 30px; }
  .features-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .experience-grid { grid-template-columns: 1fr; }
  .news-list { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-right { justify-content: flex-start; }
}
