:root {
  --bg: #ffffff;
  --text: #22314d;
  --muted: #5f6f8b;
  --line: #e5eaf5;
  --line-strong: #d6dff0;
  --accent: rgb(86, 114, 205);
  --accent-strong: rgb(64, 89, 173);
  --notice-default-bg: #f6f8fc;
  --notice-default-border: #d6dff0;
  --notice-tip-bg: #f3f6ff;
  --notice-tip-border: #93aaf0;
  --notice-tip-text: #4059ad;
  --notice-warning-bg: #fff8eb;
  --notice-warning-border: #f1c97a;
  --notice-warning-text: #9a6700;
  --notice-danger-bg: #fff1f3;
  --notice-danger-border: #f0a8b4;
  --notice-danger-text: #b42318;
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", "Microsoft YaHei UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

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

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

.site-header,
main {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
}

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100vw;
  border-bottom: 1px solid var(--line);
  transform: translateX(-50%);
}

.brand {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-weight: 500;
}

main {
  padding: 36px 0 80px;
}

.hero {
  max-width: 760px;
  padding: 28px 0 76px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  line-height: 1.03;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3.4rem, 7vw, 5.8rem);
}

.hero-text,
.section-heading p,
.release-summary,
.preview-card span,
.guide-card p,
.hero-points li,
.release-meta dd {
  color: var(--muted);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.hero-text {
  max-width: 34rem;
  margin: 28px 0 0;
  font-size: 1.1rem;
}

.hero-actions,
.release-actions,
.discord-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-actions {
  justify-content: flex-start;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  gap: 8px;
  border-radius: 999px;
  font-weight: 700;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--accent-strong);
}

.button-secondary {
  border: 1px solid var(--line-strong);
  background: #f6f8fc;
  color: var(--text);
}

.hero-points {
  margin: 32px 0 0;
  padding-left: 20px;
}

.hero-points li + li {
  margin-top: 10px;
}

.section {
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.section + .section {
  margin-top: 68px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

#downloads .section-heading {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

#discord .section-heading {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 14px;
}

.preview-grid,
.release-grid,
.guide-grid {
  display: grid;
  gap: 36px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.feature-item {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.feature-item h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.custom-block {
  margin: 18px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--notice-default-border);
  border-radius: 12px;
  background: var(--notice-default-bg);
}

.custom-block-title,
.custom-block summary {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

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

.custom-block p + p {
  margin-top: 10px;
}

.custom-block.tip {
  background: var(--notice-tip-bg);
  border-color: var(--notice-tip-border);
}

.custom-block.tip .custom-block-title {
  color: var(--notice-tip-text);
}

.custom-block.warning {
  background: var(--notice-warning-bg);
  border-color: var(--notice-warning-border);
}

.custom-block.warning .custom-block-title {
  color: var(--notice-warning-text);
}

.custom-block.danger {
  background: var(--notice-danger-bg);
  border-color: var(--notice-danger-border);
}

.custom-block.danger .custom-block-title {
  color: var(--notice-danger-text);
}

.custom-block.details {
  padding: 0;
  overflow: hidden;
  background: #ffffff;
}

.custom-block.details summary {
  padding: 16px 18px;
  margin: 0;
  cursor: pointer;
  list-style: none;
}

.custom-block.details summary::-webkit-details-marker {
  display: none;
}

.custom-block.details summary::after {
  content: "+";
  float: right;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
}

.custom-block.details[open] summary::after {
  content: "−";
}

.custom-block-body {
  padding: 0 18px 16px;
  border-top: 1px solid var(--line);
}

.custom-block-body p {
  padding-top: 14px;
}

.preview-grid,
.release-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.release-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 420px));
  justify-content: center;
  align-items: start;
  gap: 28px;
}

.release-card {
  width: min(100%, 420px);
}

.preview-card,
.release-card,
.guide-card {
  margin: 0;
}

.release-card {
  text-align: center;
}

.preview-card img {
  width: 100%;
  aspect-ratio: 16 / 8.4;
  object-fit: cover;
}

.preview-card figcaption {
  display: grid;
  gap: 8px;
  padding-top: 16px;
}

.preview-card strong,
.release-name,
.guide-card h3 {
  font-size: 1.15rem;
}

.release-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.release-card .release-head {
  justify-content: center;
}

.release-badge {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
}

.release-summary {
  margin: 14px 0 0;
}

.release-meta {
  margin: 22px 0 0;
  display: grid;
  gap: 18px;
}

.release-meta div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.release-meta dt {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
}

.release-meta dd {
  margin: 0;
}

.release-actions,
.discord-actions {
  justify-content: center;
}

.guide-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-step {
  display: inline-block;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 800;
}

.guide-card h3 {
  margin: 10px 0 10px;
}

@media (max-width: 960px) {
  .feature-list,
  .guide-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .preview-grid,
  .release-grid {
    grid-template-columns: 1fr;
  }

  .release-card {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero {
    padding: 16px 0 56px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.35rem, 9.5vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
  }

  .hero-text,
  .section-heading p {
    font-size: 1rem;
  }

  .section + .section {
    margin-top: 52px;
  }
}
