:root {
  --brand: #6d28d9;
  --brand-deep: #5b21b6;
  --brand-soft: #ede9fe;
  --ink: #1e1b4b;
  --muted: #5b5678;
  --line: #e4e0f5;
  --card: #ffffff;
  --shadow: 0 12px 36px rgba(109, 40, 217, 0.08);
  --radius: 24px;
  --btn-radius: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f5f3ff, #eef2ff);
  line-height: 1.75;
  min-height: 100vh;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img,
svg {
  max-width: 100%;
  vertical-align: middle;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  padding: 20px 0 8px;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-deep);
  letter-spacing: 0.02em;
}

.pill-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 auto;
  padding: 8px;
  width: fit-content;
  max-width: 100%;
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.pill-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.pill-nav a:hover {
  color: var(--brand);
  background: var(--brand-soft);
  text-decoration: none;
}

.pill-nav a.is-active {
  color: #fff;
  background: var(--brand);
}

.soft-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 32px;
  margin: 20px 0;
}

.grad-hero {
  padding: 0;
  overflow: hidden;
}

.grad-hero .hero-top {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 45%, #4c1d95 100%);
  color: #fff;
  padding: 40px 36px 36px;
}

.grad-hero .hero-top h1 {
  margin: 0 0 14px;
  font-size: clamp(1.55rem, 3.2vw, 2.1rem);
  line-height: 1.35;
  font-weight: 800;
}

.grad-hero .hero-top p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.92);
  max-width: 46rem;
}

.grad-hero .hero-body {
  padding: 28px 36px 32px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--btn-radius);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(109, 40, 217, 0.28);
}

.btn-primary:hover {
  background: var(--brand-deep);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--brand);
  border-color: #c4b5fd;
}

.btn-secondary:hover {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.grad-hero .btn-primary {
  background: #fff;
  color: var(--brand-deep);
  box-shadow: none;
}

.grad-hero .btn-primary:hover {
  background: #f5f3ff;
  color: var(--brand);
}

h2 {
  margin: 0 0 16px;
  font-size: 1.35rem;
  color: var(--brand-deep);
  line-height: 1.4;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--ink);
}

p {
  margin: 0 0 14px;
  color: var(--muted);
}

.lead {
  font-size: 1.02rem;
}

.grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.mini-card {
  background: #faf8ff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 18px;
}

.mini-card .ico {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
}

.mini-card h3 {
  margin-bottom: 6px;
}

.mini-card p {
  margin: 0;
  font-size: 0.95rem;
}

.news-list {
  display: grid;
  gap: 16px;
}

.news-item {
  padding: 16px 18px;
  border-radius: 16px;
  background: #faf8ff;
  border: 1px solid var(--line);
}

.news-item time {
  display: block;
  font-size: 0.85rem;
  color: #7c78a0;
  margin-bottom: 4px;
}

.news-item p {
  margin: 0;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #faf8ff;
  margin-bottom: 12px;
  padding: 4px 16px 4px;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--ink);
  padding: 14px 28px 14px 0;
  position: relative;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
  transform: translateY(-20%) rotate(225deg);
}

.faq-list details p {
  margin: 0 0 16px;
  padding-right: 8px;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  position: relative;
  padding: 14px 16px 14px 56px;
  margin-bottom: 12px;
  border-radius: 16px;
  background: #faf8ff;
  border: 1px solid var(--line);
  color: var(--muted);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.req-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.req-table th,
.req-table td {
  border: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  color: var(--muted);
  background: #fff;
}

.req-table th {
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 700;
}

.cta-banner {
  text-align: center;
  background: linear-gradient(135deg, #ede9fe, #e0e7ff);
  border: 1px solid var(--line);
}

.cta-banner p {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.site-footer {
  margin: 36px 0 28px;
  padding: 22px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.site-footer p {
  margin: 0 0 8px;
  color: var(--muted);
}

.site-footer p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 24px);
  }

  .pill-nav {
    width: 100%;
    border-radius: 20px;
  }

  .pill-nav a {
    flex: 1 1 auto;
    padding: 10px 12px;
    font-size: 0.92rem;
  }

  .soft-card {
    padding: 22px 18px;
  }

  .grad-hero .hero-top,
  .grad-hero .hero-body {
    padding: 26px 18px;
  }

  .grid-6 {
    grid-template-columns: 1fr;
  }

  .btn-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .btn-row .btn:first-child {
    order: -1;
  }
}
