:root {
  --bg: #05060a;
  --panel: #0c0e16;
  --panel-alt: #0f111b;
  --text: #e9ecf5;
  --muted: #b6bed3;
  --accent: #7dd3fc;
  --accent-2: #a78bfa;
  --border: #1a1d2a;
  --gradient: linear-gradient(135deg, #1f2937, #0f172a);
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(124, 58, 237, 0.2), transparent 25%),
    radial-gradient(circle at 80% 0%, rgba(59, 130, 246, 0.25), transparent 35%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

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

.hero {
  padding: 32px clamp(16px, 5vw, 72px) 64px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(15, 17, 27, 0.7);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 16px;
  z-index: 10;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--text);
}

.btn {
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.btn.primary {
  background: linear-gradient(120deg, #38bdf8, #a855f7);
  color: #0b1024;
  border-color: transparent;
  box-shadow: 0 10px 40px rgba(56, 189, 248, 0.35);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.04);
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.6);
}

.hero-grid {
  margin-top: 56px;
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.hero-copy h1 {
  margin: 12px 0 16px;
  font-size: clamp(32px, 5vw, 54px);
}

.lead {
  color: var(--muted);
  max-width: 640px;
}

.eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--accent);
}

.cta-row {
  display: flex;
  gap: 12px;
  margin: 24px 0 12px;
  flex-wrap: wrap;
}

.meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.hero-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.card-title {
  color: var(--muted);
  margin-bottom: 8px;
}

.card-game h3 {
  margin: 8px 0;
}

.card-game p {
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(80px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.stats strong {
  display: block;
  font-size: 20px;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.pill {
  padding: 6px 10px;
  background: rgba(125, 211, 252, 0.12);
  color: var(--accent);
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.3);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.section {
  padding: 72px clamp(16px, 5vw, 72px);
}

.section.alt {
  background: var(--panel-alt);
  border-block: 1px solid var(--border);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.section-head h2 {
  margin: 8px 0;
}

.cards-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.game-card,
.job-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  background: var(--panel);
}

.game-card p,
.job-card p {
  color: var(--muted);
}

.game-card ul {
  color: var(--muted);
  padding-left: 18px;
}

.section-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  align-items: center;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.stat {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.stat span {
  color: var(--muted);
}

.list {
  display: grid;
  gap: 12px;
}

.list-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: var(--panel);
}

.list-item p {
  color: var(--muted);
}

.contact-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.contact-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: var(--panel);
}

.contact-card p {
  color: var(--muted);
}

.footer {
  padding: 36px clamp(16px, 5vw, 72px);
  background: #05060a;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
}

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

.footnote {
  margin-top: 18px;
  color: var(--muted);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
}

.legal {
  background: #10121c;
  color: #cdd3e6;
  padding: 28px clamp(16px, 5vw, 72px) 32px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

.legal-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.6;
}

.legal a,
.legal-link {
  color: #f0b429;
}

.legal-links a {
  color: #cdd3e6;
}

.legal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
  color: #b6bed3;
}

.legal-badges .badge {
  padding: 6px 10px;
  border: 1px solid #2a2f45;
  border-radius: 999px;
  background: #0f111b;
  font-size: 12px;
}

/* 联系页面样式 */
.page-container {
  padding: 0 clamp(16px, 5vw, 72px) 64px;
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumb {
  padding: 20px 0;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--accent);
}

.breadcrumb a:hover {
  color: var(--text);
}

.page-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  margin-top: 20px;
}

.sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  padding: 8px;
}

.sidebar-nav a {
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--muted);
  transition: all 0.2s ease;
  position: relative;
}

.sidebar-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.sidebar-nav a.active {
  color: var(--accent);
  background: rgba(125, 211, 252, 0.12);
  font-weight: 600;
}

.sidebar-nav a.active::before {
  content: "▶";
  position: absolute;
  left: 8px;
  color: var(--accent);
  font-size: 10px;
}

.page-content {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  min-height: 600px;
}

.page-title {
  font-size: 32px;
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.contact-content,
.about-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-section h2,
.about-section h2 {
  font-size: 24px;
  margin: 0 0 16px;
  color: var(--text);
}

.contact-section > p,
.about-section > p {
  color: var(--muted);
  margin-bottom: 24px;
}

.about-section {
  margin-bottom: 32px;
}

.intro-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 24px;
}

.feature-block {
  margin-bottom: 32px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.feature-block h3 {
  font-size: 20px;
  margin: 0 0 16px;
  color: var(--accent);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  padding: 10px 0;
  padding-left: 24px;
  position: relative;
  color: var(--muted);
  line-height: 1.6;
}

.feature-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
}

.contact-details {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.contact-details p {
  margin: 12px 0;
  color: var(--muted);
  line-height: 1.8;
}

.contact-details strong {
  color: var(--text);
  margin-right: 8px;
}

.contact-details a {
  color: var(--accent);
  text-decoration: none;
}

.contact-details a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* 家长监护页面样式 */
.parental-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.parental-section {
  margin-bottom: 32px;
}

.parental-section h2 {
  font-size: 24px;
  margin: 0 0 16px;
  color: var(--text);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.parental-section > p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.tip-block {
  margin: 20px 0;
  padding: 20px;
  border-left: 4px solid var(--accent);
  background: rgba(125, 211, 252, 0.05);
  border-radius: 8px;
}

.tip-block h3 {
  font-size: 18px;
  margin: 0 0 12px;
  color: var(--accent);
}

.tip-block p {
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}

.process-list,
.condition-list {
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.8;
}

.process-list li,
.condition-list li {
  margin: 12px 0;
}

.download-link {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 20px;
  background: var(--accent);
  color: #0b1024;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.download-link:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
}

.service-info {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.service-info p {
  margin: 12px 0;
  color: var(--muted);
  line-height: 1.8;
}

.service-info strong {
  color: var(--text);
  margin-right: 8px;
}

.service-info a {
  color: var(--accent);
  text-decoration: none;
}

.service-info a:hover {
  color: var(--text);
  text-decoration: underline;
}

.faq-item {
  margin: 24px 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.faq-item h3 {
  font-size: 18px;
  margin: 0 0 12px;
  color: var(--text);
}

.faq-item p {
  color: var(--muted);
  line-height: 1.8;
  margin: 8px 0;
}

.faq-item ul {
  margin: 12px 0;
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.8;
}

.faq-item li {
  margin: 8px 0;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.contact-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
}

.contact-item h3 {
  font-size: 16px;
  margin: 0 0 12px;
  color: var(--accent);
}

.contact-item p {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}

.contact-item a {
  color: var(--accent);
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--text);
  text-decoration: underline;
}

.cooperation-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.cooperation-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  background: var(--panel-alt);
}

.cooperation-item h3 {
  font-size: 18px;
  margin: 0 0 12px;
}

.cooperation-item p {
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .nav {
    flex-wrap: wrap;
  }

  .nav-links {
    width: 100%;
    justify-content: space-around;
  }

  .page-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    padding: 8px;
  }

  .sidebar-nav a {
    white-space: nowrap;
  }

  .sidebar-nav a.active::before {
    display: none;
  }

  .page-content {
    padding: 20px;
  }

  .contact-info,
  .cooperation-list {
    grid-template-columns: 1fr;
  }
}

/* 浮动窗口样式 */
.float-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(120deg, #38bdf8, #a855f7);
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #0b1024;
  font-size: 24px;
  font-weight: bold;
}

.float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(56, 189, 248, 0.6);
}

.float-btn.main-btn {
  width: 64px;
  height: 64px;
  font-size: 28px;
}

.float-menu {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
  animation: slideUp 0.3s ease;
}

.float-menu.active {
  display: flex;
}

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

.float-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 28px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.float-menu-item:hover {
  background: var(--panel-alt);
  border-color: var(--accent);
  transform: translateX(-4px);
  color: var(--accent);
}

.float-menu-item .icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

@media (max-width: 720px) {
  .float-widget {
    bottom: 16px;
    right: 16px;
  }

  .float-btn {
    width: 52px;
    height: 52px;
    font-size: 20px;
  }

  .float-btn.main-btn {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }

  .float-menu-item {
    padding: 10px 16px;
    font-size: 13px;
  }
}

