:root {
  --primary-color: #FFD700; /* 精灵金 */
  --primary-hover: #e6c200;
  --secondary-color: #00FF66; /* 魔法翡翠绿 */
  --bg-color: #050a08; /* 深渊黑/暗绿 */
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --card-bg: rgba(10, 20, 15, 0.75);
  --border-color: #1a3322;
  --glow-gold: 0 0 20px rgba(255, 215, 0, 0.5);
  --glow-green: 0 0 20px rgba(0, 255, 102, 0.3);
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

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

/* Header & Nav */
header {
  background-color: rgba(5, 10, 8, 0.9);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 255, 102, 0.1);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
  letter-spacing: 1px;
}
.main-nav {
  display: flex;
  gap: 30px;
  list-style: none;
}
.main-nav a {
  color: var(--text-main);
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
}
.main-nav a:hover {
  color: var(--secondary-color);
  text-shadow: 0 0 10px var(--secondary-color);
}
.header-actions {
  display: flex;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-block;
  background: rgba(0, 0, 0, 0.5);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: inset 0 0 10px rgba(255, 215, 0, 0.1), 0 0 10px rgba(255, 215, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.btn:hover {
  background: var(--primary-color);
  color: #000;
  box-shadow: var(--glow-gold);
  text-shadow: none;
}
.btn:active {
  transform: scale(0.98);
}
.btn-large {
  padding: 16px 40px;
  font-size: 18px;
  border-radius: 8px;
}

/* Sections */
section {
  padding: 80px 0;
  position: relative;
}
.section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 15px;
  color: var(--primary-color);
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
  letter-spacing: 2px;
}
.section-desc {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 50px;
  font-size: 18px;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 140px 0;
  background: radial-gradient(circle at center, rgba(0, 255, 102, 0.05) 0%, transparent 60%);
}
.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 0 20px rgba(0, 255, 102, 0.5);
}
.hero p {
  font-size: 20px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
/* Magic Ring */
.hero-ring-container {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 250px;
  height: 250px;
  pointer-events: none;
  z-index: 0;
  perspective: 1000px;
}
.hero-ring {
  width: 100%;
  height: 100%;
  animation: floatRing 6s ease-in-out infinite, rotate3D 15s linear infinite;
  transform-style: preserve-3d;
}
@keyframes floatRing { 0%, 100% { margin-top: 0; } 50% { margin-top: -20px; } }
@keyframes rotate3D { from { transform: rotateY(0deg) rotateX(20deg); } to { transform: rotateY(360deg) rotateX(20deg); } }

/* Grid Layout */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/* Cards (Magic Contracts) */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--glow-green);
  border-color: rgba(0, 255, 102, 0.5);
}
.card:hover::before {
  opacity: 1;
}
.card h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--primary-color);
}
.card p {
  color: var(--text-muted);
}
.card .icon {
  font-size: 40px;
  margin-bottom: 20px;
  text-shadow: 0 0 15px rgba(0, 255, 102, 0.6);
}

/* Media/AI Section */
.media-ai {
  background-color: rgba(5, 10, 8, 0.5);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.media-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Pricing */
.pricing-card {
  display: flex;
  flex-direction: column;
  position: relative;
}
.pricing-card .price {
  font-size: 36px;
  font-weight: bold;
  color: var(--secondary-color);
  margin: 20px 0;
  text-shadow: 0 0 10px rgba(0, 255, 102, 0.3);
}
.pricing-card .price span {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: normal;
  text-shadow: none;
}
.pricing-card ul {
  list-style: none;
  margin-bottom: 30px;
  text-align: left;
  flex-grow: 1;
}
.pricing-card ul li {
  margin-bottom: 12px;
  padding-left: 28px;
  position: relative;
  color: var(--text-main);
}
.pricing-card ul li::before {
  content: "✦";
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-size: 16px;
}
.pricing-card .btn {
  margin-top: auto;
}
/* Highlighted Pricing Card */
.pricing-card.highlight {
  border-color: var(--primary-color);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
  animation: flameBorder 3s infinite alternate;
}
@keyframes flameBorder {
  0% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.2), inset 0 0 10px rgba(255, 215, 0, 0.1); border-color: rgba(255, 215, 0, 0.5); }
  100% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.6), inset 0 0 20px rgba(255, 215, 0, 0.2); border-color: var(--primary-color); }
}
.pricing-card.highlight:hover {
  transform: translateY(-10px) scale(1.05);
}

/* Testimonials (Marquee) */
.testimonials {
  background-color: rgba(5, 10, 8, 0.5);
  overflow: hidden;
}
.marquee-wrapper {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  padding: 20px 0;
}
.marquee-content {
  display: inline-flex;
  gap: 30px;
  animation: scrollMarquee 20s linear infinite;
}
.marquee-content:hover {
  animation-play-state: paused;
}
@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.testimonial-card {
  text-align: left;
  min-width: 350px;
  white-space: normal;
}
.testimonial-card .stars {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 20px;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}
.testimonial-card .user {
  margin-top: 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
  color: var(--text-main);
}
.testimonial-card .user::before {
  content: "";
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: #1a3322;
  border: 1px solid var(--secondary-color);
  border-radius: 50%;
  margin-right: 15px;
}

/* Monitor Banner */
.monitor-banner {
  background: #000;
  border-top: 1px solid var(--secondary-color);
  border-bottom: 1px solid var(--secondary-color);
  padding: 10px 0;
  font-family: monospace;
  color: var(--secondary-color);
  font-size: 14px;
  overflow: hidden;
  position: relative;
}
.monitor-text {
  display: inline-block;
  white-space: nowrap;
  animation: monitorScroll 15s linear infinite;
  text-shadow: 0 0 5px var(--secondary-color);
}
@keyframes monitorScroll {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
details {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s;
}
summary {
  padding: 20px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-main);
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "▼";
  font-size: 16px;
  color: var(--primary-color);
  transition: transform 0.3s;
}
details[open] summary::after {
  transform: rotate(180deg);
}
details p {
  padding: 0 20px 20px;
  color: var(--text-muted);
}
details:hover {
  border-color: rgba(0, 255, 102, 0.4);
  box-shadow: 0 0 10px rgba(0, 255, 102, 0.1);
}

/* Footer */
footer {
  background-color: #020504;
  color: #f8fafc;
  padding: 60px 0 30px;
  border-top: 2px solid var(--border-color);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}
.footer-title {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--primary-color);
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--secondary-color);
  text-shadow: 0 0 5px var(--secondary-color);
}
.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #1a3322;
  color: #64748b;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-ring-container {
    display: none; /* Hide 3D ring on smaller screens to keep it clean */
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 80px 0;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero p {
    font-size: 16px;
  }
  .grid-3, .grid-2, .footer-grid {
    grid-template-columns: 1fr;
  }
  .btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
  }
  .btn-large {
    width: 100%;
    display: block;
  }
  section {
    padding: 50px 0;
  }
  .section-title {
    font-size: 28px;
  }
  .card {
    padding: 20px;
  }
  .header-inner {
    flex-direction: column;
    gap: 15px;
  }
  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  .header-actions {
    width: 100%;
  }
  .header-actions .btn {
    width: 100%;
  }
}

/* Accessibility & Mobile Fixes */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: #000;
    padding: 8px 16px;
    z-index: 9999;
    font-weight: bold;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}
section[id] {
    scroll-margin-top: 80px;
}
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
