:root {
  color-scheme: dark;
  --bg: #0b0f0d;
  --ink: #15100c;
  --ink-2: #1b1811;
  --paper: #fff0cf;
  --text: #f5ead6;
  --muted: #cdbd9b;
  --gold: #e2b64e;
  --gold-soft: #f6d98d;
  --red: #8f332b;
  --green: #5ba086;
  --cyan: #73d8c5;
  --line: rgba(232, 205, 139, 0.22);
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  letter-spacing: 0;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 0 28px;
  background: rgba(9, 9, 7, 0.36);
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(8, 10, 9, 0.92);
  border-color: rgba(115, 216, 197, 0.18);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  color: var(--paper);
  font-weight: 800;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 7px;
}

.brand span {
  white-space: nowrap;
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(245, 234, 214, 0.82);
  font-size: 14px;
}

nav a {
  padding: 8px 0;
}

nav a:hover {
  color: var(--gold-soft);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 76svh;
  overflow: hidden;
  padding: 92px 28px 38px;
  isolation: isolate;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg {
  background-image: url("/kit-sanguozhi/assets/hero-bg.webp");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 9, 7, 0.88), rgba(10, 9, 7, 0.56) 46%, rgba(10, 9, 7, 0.12) 82%),
    linear-gradient(180deg, rgba(9, 8, 6, 0.16), rgba(9, 8, 6, 0.45));
}

.hero-content {
  width: min(780px, 100%);
  margin-left: max(0px, calc((100vw - var(--max)) / 2));
}

.hero-logo {
  width: 330px;
  margin: 0 0 14px -18px;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.5));
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  color: #fff4d8;
  font-size: 58px;
  line-height: 1.05;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}

h2 {
  margin-bottom: 18px;
  color: var(--paper);
  font-size: 39px;
  line-height: 1.18;
}

h3 {
  margin-bottom: 8px;
  color: #ffe1a1;
  font-size: 19px;
  line-height: 1.25;
}

p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.82;
}

.hero-copy {
  width: min(760px, 100%);
  color: #f2e4c8;
  font-size: 18px;
}

.hero-actions,
.promote-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
}

.button.primary {
  color: #221509;
  background: linear-gradient(180deg, #f1cc74, #c68d35);
  border-color: rgba(255, 227, 157, 0.66);
}

.button.secondary {
  color: var(--paper);
  background: rgba(22, 18, 13, 0.68);
}

.button:hover {
  transform: translateY(-1px);
}

.section-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.promote-band,
.world-band,
.systems-band,
.battle-band,
.officer-band,
.roadmap-band,
.survey-band {
  position: relative;
  padding: 84px 0;
}

.promote-band {
  background:
    linear-gradient(90deg, rgba(29, 16, 10, 0.96), rgba(31, 24, 15, 0.94)),
    radial-gradient(circle at 86% 20%, rgba(226, 182, 78, 0.18), transparent 30%);
}

.promote-layout,
.world-layout,
.battle-layout,
.roadmap-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.64fr);
  align-items: center;
  gap: 48px;
}

.promote-actions {
  justify-content: flex-end;
}

.world-band {
  background: #0f1412;
}

.world-layout,
.battle-layout {
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.76fr);
}

.feature-shot {
  margin: 0;
  border: 1px solid rgba(232, 205, 139, 0.2);
  border-radius: 8px;
  overflow: hidden;
  background: #15120e;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.feature-shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.map-shot img {
  object-position: center;
}

.battle-shot img {
  aspect-ratio: 16 / 9;
  object-position: center 34%;
}

.video-shot video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #050807;
  object-fit: cover;
}

.survey-band {
  background:
    radial-gradient(circle at 82% 22%, rgba(226, 182, 78, 0.2), transparent 28%),
    linear-gradient(135deg, #14100b, #0b1512 58%, #07100e);
}

.survey-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.48fr);
  align-items: center;
  gap: 48px;
}

.survey-layout p:last-child {
  margin-bottom: 0;
}

.survey-actions {
  display: grid;
  justify-items: stretch;
  gap: 12px;
  padding: 24px;
  border: 1px solid rgba(232, 205, 139, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.survey-actions span {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.feature-points {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
}

.feature-points div,
.system-grid article,
.mechanic-list article,
.officer-card,
.roadmap-list li {
  border: 1px solid rgba(232, 205, 139, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.feature-points div {
  padding: 15px 16px;
}

.feature-points dt {
  color: #ffe1a1;
  font-weight: 800;
}

.feature-points dd {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.systems-band {
  background:
    linear-gradient(180deg, rgba(20, 17, 12, 0.98), rgba(12, 14, 12, 0.98)),
    radial-gradient(circle at 12% 20%, rgba(91, 160, 134, 0.22), transparent 30%);
}

.section-heading {
  width: min(820px, 100%);
  margin-bottom: 34px;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.system-grid article {
  padding: 18px;
}

.system-grid span,
.mechanic-list span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--green);
  font-weight: 900;
}

.system-grid p,
.mechanic-list p {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.75;
}

.domestic-shot {
  margin: 0;
  border: 1px solid rgba(232, 205, 139, 0.2);
  border-radius: 8px;
  overflow: hidden;
  background: #17110d;
  max-height: 460px;
}

.domestic-shot img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  object-position: center 58%;
}

.battle-band {
  background: #0d1010;
}

.battle-layout {
  grid-template-columns: minmax(380px, 0.76fr) minmax(0, 1fr);
}

.mechanic-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.mechanic-list article {
  display: grid;
  grid-template-columns: 58px 1fr;
  column-gap: 14px;
  padding: 16px;
}

.mechanic-list span {
  grid-row: span 2;
  margin-bottom: 0;
  color: var(--red);
}

.officer-band {
  background:
    linear-gradient(180deg, rgba(21, 18, 13, 0.98), rgba(14, 15, 13, 0.98)),
    radial-gradient(circle at 12% 5%, rgba(67, 109, 150, 0.24), transparent 28%);
}

.officer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.officer-card {
  overflow: hidden;
}

.officer-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.officer-card div {
  padding: 14px;
}

.officer-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.officer-card strong {
  display: block;
  margin-top: 5px;
  color: #f5dfad;
  font-size: 17px;
}

.roadmap-band {
  background: #0d1512;
}

.roadmap-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.roadmap-list li {
  padding: 15px 16px;
  color: var(--paper);
}

.roadmap-list span {
  display: inline-block;
  min-width: 70px;
  margin-right: 12px;
  color: var(--green);
  font-weight: 900;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 124px;
  padding: 24px;
  border-top: 1px solid rgba(115, 216, 197, 0.22);
  background: #02080b;
  color: #b7d2df;
}

.site-footer p {
  margin: 0;
  color: #b7d2df;
  font-size: 14px;
  font-weight: 800;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #f0f7ff;
  transition: color 160ms ease, transform 160ms ease;
}

.social-links svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.social-links a:hover {
  color: var(--cyan);
  transform: translateY(-1px);
}

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

  nav {
    width: 100%;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 78svh;
    padding: 124px 20px 42px;
  }

  .hero-content {
    margin-left: 0;
  }

  .hero-logo {
    width: 250px;
    margin-left: -14px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 30px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .section-inner {
    width: min(100% - 32px, var(--max));
  }

  .promote-band,
  .world-band,
  .systems-band,
  .battle-band,
  .officer-band,
  .roadmap-band,
  .survey-band {
    padding: 64px 0;
  }

  .promote-layout,
  .world-layout,
  .battle-layout,
  .roadmap-layout,
  .survey-layout {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 560px) {
  .brand span {
    font-size: 14px;
  }

  .hero-actions,
  .promote-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .system-grid,
  .officer-grid {
    grid-template-columns: 1fr;
  }

  .mechanic-list article {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    gap: 16px;
  }
}
