:root {
  --bg: #0d1015;
  --bg-alt: #141922;
  --card: #171d26;
  --line: rgba(255, 255, 255, 0.08);
  --primary: #e0313f;
  --accent: #f5c451;
  --text: #e8ecf3;
  --muted: #9aa4b2;
  --radius: 14px;
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

section[id] {
  scroll-margin-top: var(--header-h);
}

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 16, 21, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
}

.brand-diamond {
  color: var(--primary);
  font-size: 22px;
}

.site-nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.site-nav a {
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}

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

/* Hero */
.hero {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px 48px;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(224, 49, 63, 0.15), transparent 40%),
    radial-gradient(circle at 85% 10%, rgba(245, 196, 81, 0.1), transparent 40%),
    linear-gradient(180deg, #0d1015 0%, #141922 100%);
  z-index: -1;
}

.hero-kicker,
.section-tag {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  border: 1px solid rgba(245, 196, 81, 0.35);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}

.hero-subtitle {
  margin-top: 10px;
  font-size: 18px;
  color: var(--accent);
  font-weight: 500;
}

.hero-summary {
  max-width: 720px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 16px;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 20px rgba(224, 49, 63, 0.28);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.hero-visual {
  margin: 44px auto 0;
  max-width: 860px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.trust-bar {
  margin: 40px auto 0;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.trust-item {
  color: var(--text);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-ico {
  color: var(--accent);
}

/* Section base */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  width: 100%;
  max-width: none;
}

.section-alt > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  margin-bottom: 40px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  color: var(--text);
}

.section-desc {
  margin-top: 12px;
  color: var(--muted);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.section-visual img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  width: 100%;
}

.section-body p {
  color: var(--muted);
  margin-bottom: 16px;
}

.section-body h3 {
  margin: 24px 0 12px;
  font-size: 19px;
  color: var(--text);
}

/* Version table */
.version-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 8px;
}

.version-table th,
.version-table td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
}

.version-table th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent);
}

.version-table td {
  color: var(--text);
}

/* Lead & Hint */
.lead {
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 780px;
}

.hint {
  margin-top: 28px;
  color: var(--accent);
  text-align: center;
  font-size: 14px;
}

/* Entry steps */
.entry-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.step-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  display: block;
  margin-bottom: 8px;
}

.step h3 {
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--text);
}

.step p {
  color: var(--muted);
  font-size: 14px;
}

.entry-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.entry-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s, border-color 0.2s;
}

.entry-card:hover {
  transform: translateY(-4px);
  border-color: rgba(224, 49, 63, 0.5);
}

.card-icon {
  font-size: 18px;
  color: var(--accent);
}

.entry-card strong {
  color: var(--text);
  font-size: 15px;
}

.entry-card span:last-child {
  color: var(--muted);
  font-size: 13px;
}

.entry-visual {
  max-width: 640px;
  margin: 0 auto;
}

/* Guide list */
.guide-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.guide-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.guide-step .step-num {
  font-size: 20px;
  color: var(--primary);
  line-height: 1.6;
}

.guide-step h3 {
  color: var(--text);
  font-size: 16px;
  margin-bottom: 6px;
}

.guide-step p {
  color: var(--muted);
  font-size: 14px;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.feature-ico {
  font-size: 22px;
  color: var(--accent);
}

.feature-card h3 {
  margin: 14px 0 8px;
  color: var(--text);
  font-size: 17px;
}

.feature-card p {
  color: var(--muted);
  font-size: 14px;
}

/* Safety */
.safety-list {
  color: var(--muted);
}

.safety-list > p {
  margin-bottom: 18px;
}

.safety-list ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.safety-list li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 14px;
}

.safety-list li strong {
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}

/* FAQ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  position: relative;
  padding-right: 44px;
  font-size: 15px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--accent);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-item p {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 14px;
}

/* Notice */
.notice-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.notice-list li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.notice-list time {
  color: var(--muted);
  font-size: 13px;
}

.notice-list .ver {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--accent);
  background: rgba(245, 196, 81, 0.12);
  border: 1px solid rgba(245, 196, 81, 0.3);
}

.notice-list p {
  margin-top: 8px;
  color: var(--text);
  font-size: 14px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.contact-card h3 {
  color: var(--text);
  font-size: 17px;
  margin-bottom: 10px;
}

.contact-card p {
  color: var(--muted);
  font-size: 14px;
}

/* Long tail */
.long-tail-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
}

.long-tail-list li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: var(--muted);
  font-size: 14px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.back-top {
  margin-top: 8px;
  color: var(--accent);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
  .section-grid,
  .entry-steps,
  .features-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .entry-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .entry-cards {
    grid-template-columns: 1fr;
  }

  .long-tail-list {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-direction: column;
    padding: 10px 0;
    gap: 6px;
  }

  .header-inner {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
  }
}
