:root {
  --primary: #ff7bd5;
  --secondary: #6dd3ff;
  --accent: #ffd166;
  --ink: #0b0f24;
  --surface: #0e1530;
  --card: #111a38;
  --muted: #9fb3e0;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.45);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --transition: 0.28s ease;
  --font-base: 'Inter', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Poppins', 'Noto Sans SC', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-base);
  color: #e7ecff;
  background: radial-gradient(120% 120% at 18% 18%, rgba(255, 123, 213, 0.18), transparent 45%),
              radial-gradient(95% 95% at 82% 10%, rgba(109, 211, 255, 0.16), transparent 42%),
              radial-gradient(80% 80% at 50% 70%, rgba(255, 209, 102, 0.08), transparent 45%),
              #060913;
  min-height: 100vh;
  line-height: 1.7;
  overflow-x: hidden;
}

main {
  margin-top: 82px;
}

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

img {
  max-width: 100%;
  display: block;
}

section {
  position: relative;
}

.shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

/* 导航 */
.nav-bar {
  position: fixed;
  inset: 0 0 auto;
  background: rgba(6, 9, 19, 0.7);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  z-index: 1000;
}

.nav-inner {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.nav-logo a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-logo img {
  height: 48px;
  width: 48px;
  border-radius: 12px;
  box-shadow: 0 12px 25px rgba(127, 90, 240, 0.3);
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-menu a {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  color: #dbe4ff;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  border: 1px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-search-btn,
.nav-toggle {
  background: transparent;
  border: 1px solid var(--line);
  color: #cbd5f5;
  border-radius: 12px;
  padding: 0.65rem;
  cursor: pointer;
  transition: var(--transition);
}

.nav-search-btn:hover,
.nav-toggle:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.nav-btn,
.btn {
  position: relative;
  padding: 0.8rem 1.25rem;
  border-radius: 12px;
  border: 1px solid transparent;
  color: #05060f;
  font-weight: 700;
  background: linear-gradient(120deg, #7f5af0, #2dd4bf);
  box-shadow: 0 12px 40px rgba(127, 90, 240, 0.35);
  cursor: pointer;
  transition: var(--transition);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: #dfe7ff;
  border-color: var(--line);
  box-shadow: none;
}

.btn:hover,
.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 45px rgba(127, 90, 240, 0.4);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 14px 32px rgba(45, 212, 191, 0.12);
}

.nav-toggle {
  display: none;
}

/* 英雄区 */
.hero-section {
  padding: 6rem 0 4rem;
}

.hero-content-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: center;
  position: relative;
  min-width: 0;
}

.hero-bg {
  position: absolute;
  inset: 10% 5% auto;
  height: 60%;
  filter: blur(120px);
  background: radial-gradient(circle at 30% 50%, rgba(127, 90, 240, 0.15), transparent 40%),
              radial-gradient(circle at 70% 40%, rgba(45, 212, 191, 0.18), transparent 40%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(127, 90, 240, 0.12);
  border: 1px solid rgba(127, 90, 240, 0.35);
  border-radius: 999px;
  color: #d3c7ff;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.1;
  margin: 1rem 0 0.75rem;
  letter-spacing: 0.01em;
}

.gradient-text {
  background: linear-gradient(120deg, #7f5af0, #2dd4bf);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  color: var(--muted);
  max-width: 36rem;
  margin-bottom: 1.25rem;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0 0.5rem;
}

.pill {
  padding: 0.9rem 1.05rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: #d7e1ff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.hero-visual {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hero-carousel {
  position: relative;
  height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0c1224;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease, transform 8s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-carousel-controls {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  pointer-events: none;
}

.hero-carousel-prev,
.hero-carousel-next {
  pointer-events: all;
  border: 1px solid var(--line);
  background: rgba(6, 9, 19, 0.55);
  color: #e8edff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.hero-carousel-prev:hover,
.hero-carousel-next:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-1px);
}

.hero-carousel-indicators {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.hero-carousel-indicators span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--transition);
}

.hero-carousel-indicators span.active {
  background: linear-gradient(120deg, #7f5af0, #2dd4bf);
  transform: scale(1.1);
}

/* 通用区块 */
.section-shell {
  padding: 4.5rem 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 2.1rem;
  letter-spacing: 0.01em;
}

.section-header p {
  color: var(--muted);
  max-width: 520px;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
}

.feature-card h3 {
  margin: 0.35rem 0 0.35rem;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-weight: 700;
  color: #c5d2ff;
  border: 1px solid var(--line);
}

.stat-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.stat {
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
}

.stat strong {
  display: block;
  font-size: 1.45rem;
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.mosaic img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.timeline .card {
  position: relative;
  overflow: hidden;
}

.timeline .card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(127, 90, 240, 0.12));
  pointer-events: none;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.faq-q {
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 700;
}

.faq-q i {
  transition: var(--transition);
}

.faq-card.active .faq-q i {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.1rem;
  color: var(--muted);
  transition: max-height var(--transition), padding var(--transition);
}

.faq-card.active .faq-a {
  padding: 0.75rem 1.1rem 1.25rem;
  max-height: 240px;
}

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

.review-card {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  min-width: 0;
}

.review-avatar {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
}

.review-avatar img {
  width: 64px;
  height: 64px;
  border-radius: 4px;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.review-card > div {
  min-width: 0;
}

.review-stars {
  color: #fbbf24;
}

.friendship-links {
  background: #0b1120;
  border-top: 1px solid var(--line);
  padding: 2.2rem 0;
}

.links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.links-list a {
  padding: 0.7rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: #dbe4ff;
  transition: var(--transition);
}

.links-list a:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

/* 页脚 */
.footer-section {
  background: #060913;
  border-top: 1px solid var(--line);
  padding: 3rem 0 1.5rem;
}

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

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: var(--muted);
  max-width: 340px;
}

.footer-links h4 {
  margin-bottom: 0.7rem;
}

.footer-links ul {
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.footer-links a {
  color: var(--muted);
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  color: var(--muted);
  margin-top: 1.8rem;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}

/* 表单与输入 */
form {
  display: grid;
  gap: 1rem;
}

label span {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 0.95rem;
  color: #f8fbff;
  transition: var(--transition);
  font-size: 0.95rem;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: rgba(127, 90, 240, 0.6);
  box-shadow: 0 0 0 3px rgba(127, 90, 240, 0.2);
  outline: none;
}

.form-inline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
}

/* 返回顶部 */
.back2top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, #7f5af0, #2dd4bf);
  color: #05060f;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.back2top.show {
  display: flex;
}

/* 搜索模态框 */
.search-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 20, 0.6);
  backdrop-filter: blur(10px);
  z-index: 1200;
}

.search-modal.active {
  display: flex;
}

.search-modal-box {
  width: min(520px, 92%);
  background: #0f172a;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.search-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.search-modal-form {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.search-modal-form input {
  flex: 1;
}

.search-modal-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: var(--muted);
}

.search-modal-close {
  background: transparent;
  border: none;
  color: #dfe5ff;
  font-size: 1.3rem;
  cursor: pointer;
}

/* 抽屉菜单 */
.menu-drawer {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.75);
  display: none;
  z-index: 1100;
}

.menu-drawer.active {
  display: block;
}

.drawer-panel {
  position: absolute;
  right: 0;
  top: 0;
  width: min(320px, 80vw);
  height: 100%;
  background: #0f172a;
  border-left: 1px solid var(--line);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow);
}

.drawer-close {
  background: transparent;
  border: none;
  color: #dfe5ff;
  font-size: 1.5rem;
  align-self: flex-end;
  cursor: pointer;
}

.menu-drawer ul {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.menu-drawer a {
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid transparent;
}

.menu-drawer a.active,
.menu-drawer a:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

/* 页面专用 */
.page-hero {
  background: radial-gradient(circle at 20% 20%, rgba(127, 90, 240, 0.18), transparent 40%),
              radial-gradient(circle at 80% 10%, rgba(45, 212, 191, 0.14), transparent 35%),
              #0b1120;
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
}

.page-grid {
  display: grid;
  gap: 1rem;
}

.list-dot {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
}

.list-dot li {
  list-style: disc;
  margin-left: 1.2rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  border-radius: 10px;
  background: rgba(127, 90, 240, 0.16);
  color: #e8ddff;
  font-weight: 700;
}

.table-lite {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
}

.table-lite td,
.table-lite th {
  padding: 0.85rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.table-lite th {
  color: #fff;
  text-align: left;
}

/* 响应式 */
@media (max-width: 1024px) {
  .nav-menu {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nav-inner {
    padding: 0 1rem;
  }
  .hero-content-wrap {
    grid-template-columns: 1fr;
  }
  .hero-carousel {
    height: 300px;
  }
  .hero-content {
    padding: 1.5rem;
  }
  .hero-btns {
    flex-direction: column;
  }
  .back2top {
    right: 1rem;
    bottom: 1rem;
  }
  .mosaic {
    grid-template-columns: 1fr;
  }
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(#7f5af0, #2dd4bf);
  border-radius: 12px;
}
::-webkit-scrollbar-track {
  background: #05060f;
}

::selection {
  background: rgba(127, 90, 240, 0.35);
  color: #fff;
}