* {
  box-sizing: border-box;
}

:root {
  --text: #fff0e6;
  --muted: #ffd9c8;
  --line: rgba(255, 194, 164, 0.4);
  --glass: rgba(70, 24, 45, 0.62);
  --glass-2: rgba(96, 34, 58, 0.74);
  --btn: rgba(129, 52, 77, 0.78);
  --btn-hover: rgba(162, 65, 89, 0.9);
  --ok: #c7ff9a;
  --warn: #ffe296;
  --err: #ffb0a8;
  --shadow: 0 18px 40px rgba(18, 0, 27, 0.5);
}

html,
body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  min-height: 100%;
}

body {
  color: var(--text);
  overflow-x: hidden;
  background-image:
    linear-gradient(rgba(88, 24, 46, 0.56), rgba(140, 49, 72, 0.58)),
    radial-gradient(circle at 18% 18%, rgba(255, 170, 108, 0.33) 0%, transparent 48%),
    radial-gradient(circle at 78% 30%, rgba(255, 106, 151, 0.29) 0%, transparent 44%),
    linear-gradient(160deg, #3a0f27 0%, #7b2949 52%, #b04a63 100%);
  background-attachment: fixed;
  background-size: cover;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 52% 72%, rgba(255, 215, 147, 0.24), transparent 50%),
    linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.26));
  pointer-events: none;
  z-index: -1;
}

.landing {
  min-height: 100vh;
  padding: 28px 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hud {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hud-box {
  min-width: 240px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(116, 39, 67, 0.66), rgba(84, 31, 54, 0.76));
  box-shadow: var(--shadow);
}

.hud-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #ffd79f;
}

.hud-value {
  display: block;
  margin-top: 4px;
  font-size: 26px;
  line-height: 1;
}

.hud-sub {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.hero-center {
  width: min(1180px, 100%);
  margin: 18px auto 10px;
  text-align: center;
}

.hero-logo {
  width: min(560px, 72vw);
  max-height: 250px;
  object-fit: contain;
  margin: 0 auto 8px;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
}

.eyebrow {
  margin: 0;
  color: #ffd9a8;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 700;
}

.hero-center h1 {
  margin: 9px 0 8px;
  font-size: clamp(34px, 7vw, 74px);
  line-height: 1;
  font-family: "STXinwei", "STKaiti", "Kaiti SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  -webkit-text-stroke: 1px rgba(98, 31, 45, 0.58);
  text-shadow:
    0 3px 0 rgba(104, 33, 49, 0.44),
    0 10px 24px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(255, 199, 138, 0.28);
}

.sub {
  margin: 0 auto;
  color: var(--muted);
  max-width: 820px;
  line-height: 1.7;
}

.ip-copy {
  margin: 16px auto 0;
  width: min(640px, 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(164, 62, 86, 0.78), rgba(122, 47, 66, 0.86));
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ip-copy:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 219, 178, 0.78);
  background: linear-gradient(145deg, rgba(183, 69, 94, 0.84), rgba(136, 53, 74, 0.9));
}

.ip-host {
  font-size: 17px;
  font-weight: 700;
}

.ip-tip {
  font-size: 13px;
  color: #ffe6b5;
}

.action-grid {
  margin: 26px auto 0;
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.action-card {
  min-height: 178px;
  text-decoration: none;
  color: inherit;
  padding: 16px 12px 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(151, 55, 81, 0.76), rgba(103, 39, 58, 0.84));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.action-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 227, 182, 0.82);
  background: linear-gradient(160deg, rgba(177, 65, 94, 0.84), rgba(123, 47, 70, 0.9));
}

.action-icon {
  font-size: 54px;
  line-height: 1;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.28));
}

.action-card strong {
  font-size: 20px;
}

.action-card small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.footer-note {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-top: 22px;
}

.footer-note p {
  margin: 4px 0;
}

.map-dock {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: min(450px, calc(100vw - 28px));
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(108, 38, 60, 0.86), rgba(71, 27, 44, 0.9));
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.48);
  z-index: 30;
  padding: 14px;
}

.map-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.map-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.map-eyebrow {
  margin: 0;
  color: #ffd39c;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.map-head h2 {
  margin: 4px 0 0;
  font-size: 20px;
}

.map-check-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--btn);
  color: #fff0fd;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.map-check-btn:hover {
  background: var(--btn-hover);
}

.map-zone-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(93, 35, 62, 0.86);
  color: #fff0fd;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.map-zone-btn:hover {
  background: rgba(125, 48, 79, 0.93);
}

.map-zone-menu {
  margin-top: 8px;
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 212, 182, 0.46);
  background: rgba(69, 26, 44, 0.9);
}

.map-zone-item {
  border: 1px solid rgba(255, 214, 188, 0.34);
  border-radius: 8px;
  background: rgba(152, 58, 88, 0.35);
  color: #ffeeda;
  text-align: left;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 13px;
}

.map-zone-item:hover {
  background: rgba(190, 75, 108, 0.42);
}

.map-zone-item.active {
  border-color: rgba(255, 227, 191, 0.82);
  background: rgba(219, 97, 131, 0.5);
}

.map-current-wrap {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

#map-current-zone {
  color: #fff1dc;
  font-size: 13px;
}

.dynmap-help {
  margin: 8px 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.dynmap-status-wrap {
  margin-bottom: 9px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}

.status-ok {
  color: var(--ok);
}

.status-warn {
  color: var(--warn);
}

.status-err {
  color: var(--err);
}

.dynmap-frame-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 206, 245, 0.36);
  border-radius: 12px;
  overflow: hidden;
  background: #100817;
}

#dynmap-frame {
  width: 100%;
  height: 100%;
  border: none;
}

.dynmap-notes {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.dynmap-notes ul {
  margin: 8px 0 0 16px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid rgba(255, 227, 255, 0.9);
  outline-offset: 2px;
}

@media (max-width: 1024px) {
  .action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .landing {
    padding: 14px 12px 16px;
  }

  .hud {
    flex-direction: column;
  }

  .hud-box {
    width: 100%;
    min-width: 0;
  }

  .hero-center h1 {
    font-size: clamp(30px, 10vw, 52px);
  }

  .action-grid {
    gap: 10px;
  }

  .action-card {
    min-height: 145px;
    padding: 12px 10px;
  }

  .action-icon {
    font-size: 40px;
  }

  .action-card strong {
    font-size: 17px;
  }

  .map-dock {
    position: static;
    width: 100%;
    margin: 14px auto 0;
  }
}
