:root {
  color-scheme: dark;
  --gold: #e9b64b;
  --gold-light: #f4d27c;
  --panel: rgba(7, 10, 10, 0.88);
  --line: rgba(229, 177, 61, 0.38);
  --muted: #d5d5d5;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  overflow-x: hidden;
  color: #fff;
  background: #070b0c;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

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

.site-header {
  position: relative;
  z-index: 10;
  height: 58px;
  border-top: 1px solid #77651e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 8, 8, 0.97);
}

.header-inner {
  display: flex;
  align-items: center;
  width: min(1120px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
}

.brand {
  color: var(--gold-light);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero {
  position: relative;
  min-height: calc(100vh - 58px);
  overflow: hidden;
  background: #0b1112 url("../images/bg1.jpg") center top / cover no-repeat;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(1, 5, 6, 0.76) 0%, rgba(1, 5, 6, 0.24) 50%, rgba(1, 5, 6, 0.03) 100%),
    linear-gradient(180deg, rgba(3, 8, 9, 0.04) 40%, rgba(4, 8, 9, 0.95) 86%, #070b0c 100%);
}

.hero-inner {
  position: relative;
  width: min(1120px, calc(100% - 40px));
  min-height: calc(100vh - 58px);
  margin: 0 auto;
}

.hero-copy {
  position: absolute;
  z-index: 3;
  top: 14%;
  left: 0;
  width: 520px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold-light);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

h1 {
  margin: 0;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.06em;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

h1 span,
h1 strong {
  display: block;
}

h1 span {
  color: #fff;
  font-size: clamp(52px, 5.2vw, 78px);
  font-weight: 300;
}

h1 strong {
  margin-top: 4px;
  color: var(--gold);
  font-family: KaiTi, STKaiti, "Microsoft YaHei", sans-serif;
  font-size: clamp(46px, 4.7vw, 70px);
  font-weight: 700;
}

.slogan {
  margin: 20px 0 30px;
  color: #e7e7e7;
  font-size: 16px;
  line-height: 1.8;
  text-shadow: 0 2px 8px #000;
}

.actions {
  display: flex;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 124px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  font-size: 16px;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  border-color: var(--gold);
}

.button.primary {
  color: #1c1405;
  border-color: #efb63b;
  background: linear-gradient(#f5c254, #d99a25);
}

.button.secondary {
  background: rgba(10, 13, 13, 0.72);
}

.hero-art {
  position: absolute;
  z-index: 2;
  top: 20%;
  right: -55px;
  width: min(570px, 51vw);
  height: auto;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.25));
}

.server-status {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 20%;
  width: 420px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--panel);
}

.status-row {
  display: grid;
  grid-template-columns: 112px 1fr;
  min-height: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.status-row:last-child {
  border-bottom: 0;
}

.status-row > * {
  display: flex;
  align-items: center;
  padding: 0 16px;
}

.status-row span {
  color: #d2d2d2;
  font-size: 14px;
}

.status-label {
  color: #fff;
  font-size: 14px;
}

.status-label.red {
  background: #b53720;
}

.status-label.green {
  background: #397e24;
}

.notice {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 3.2%;
  left: 0;
  display: flex;
  align-items: center;
  min-height: 60px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  background: rgba(9, 10, 9, 0.86);
}

.notice strong {
  flex: 0 0 auto;
  margin-right: 20px;
  padding: 10px 13px;
  color: #201703;
  border-radius: 2px;
  background: var(--gold);
  font-size: 13px;
}

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

@media (max-width: 900px) {
  .hero-inner {
    min-height: 760px;
  }

  .hero-copy {
    top: 9%;
    width: 100%;
  }

  .hero-art {
    top: 39%;
    right: -100px;
    width: 610px;
    max-width: 90vw;
    opacity: 0.78;
  }

  .server-status {
    right: auto;
    bottom: 15%;
    left: 0;
    width: min(420px, 100%);
  }
}

@media (max-width: 560px) {
  .header-inner,
  .hero-inner {
    width: min(100% - 28px, 1120px);
  }

  .hero-copy {
    top: 7%;
  }

  .eyebrow {
    font-size: 12px;
  }

  h1 span {
    font-size: 45px;
  }

  h1 strong {
    font-size: 42px;
  }

  .slogan {
    margin: 16px 0 22px;
    font-size: 14px;
  }

  .actions {
    gap: 8px;
  }

  .button {
    min-width: 0;
    padding: 0 18px;
    font-size: 14px;
  }

  .hero-art {
    top: 41%;
    right: -150px;
    width: 560px;
    max-width: none;
  }

  .server-status {
    bottom: 14%;
  }

  .status-row {
    grid-template-columns: 106px 1fr;
  }

  .status-row > * {
    padding: 0 12px;
  }

  .notice {
    align-items: flex-start;
    padding: 10px;
  }

  .notice strong {
    margin-right: 10px;
    padding: 8px 9px;
  }

  .notice p {
    line-height: 1.55;
  }
}
