:root {
  color-scheme: dark;
  --bg: #06090d;
  --panel: rgba(12, 18, 25, 0.82);
  --panel-strong: rgba(14, 24, 34, 0.94);
  --line: rgba(184, 228, 255, 0.16);
  --line-strong: rgba(113, 229, 255, 0.44);
  --text: #edf6fa;
  --muted: #9eb0bf;
  --cyan: #6be7ff;
  --cyan-strong: #28c7ef;
  --gold: #f2ca72;
  --danger: #ff8585;
  --shadow: rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(18, 28, 38, 0.92), rgba(6, 9, 13, 0.98) 42%, #05070a),
    var(--bg);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(115deg, rgba(107, 231, 255, 0.14), transparent 27%),
    linear-gradient(245deg, rgba(242, 202, 114, 0.1), transparent 28%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 74px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 64px);
}

body::after {
  position: fixed;
  inset: auto 0 0;
  z-index: -1;
  height: 46vh;
  content: "";
  background:
    linear-gradient(180deg, transparent, rgba(10, 13, 16, 0.48) 18%),
    radial-gradient(ellipse at 50% 100%, rgba(231, 239, 242, 0.28), transparent 56%);
}

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

button,
input,
textarea {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 22px 0 56px;
}

.hero {
  min-height: calc(100vh - 22px);
  display: flex;
  align-items: stretch;
}

.hero-panel,
.links-section,
.board-section {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(150deg, rgba(13, 22, 31, 0.9), rgba(5, 8, 12, 0.92));
  box-shadow: 0 26px 100px var(--shadow);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  padding: 24px;
}

.hero-panel::before {
  position: absolute;
  inset: 76px -18% auto;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(107, 231, 255, 0.45), transparent);
}

.topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #dff7ff;
  font-size: 14px;
  font-weight: 700;
}

.brand-lockup img {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  object-fit: cover;
}

.status-strip,
.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-strip span,
.signal-row span,
.sync-badge {
  border: 1px solid rgba(107, 231, 255, 0.22);
  border-radius: 999px;
  padding: 8px 11px;
  color: #b8eef9;
  background: rgba(2, 7, 11, 0.5);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 36px;
  align-items: center;
  min-height: 560px;
  padding: 58px 12px 20px;
}

.kicker {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 0.96;
  letter-spacing: 0;
}

.lead {
  max-width: 660px;
  margin: 28px 0 26px;
  color: #c8d6df;
  font-size: 18px;
  line-height: 1.8;
}

.emblem-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
  border: 1px solid rgba(107, 231, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    rgba(3, 7, 11, 0.34);
}

.emblem-stage img {
  position: relative;
  z-index: 2;
  width: min(88%, 430px);
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(184, 228, 255, 0.2);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 24px 76px rgba(0, 0, 0, 0.46);
  filter: saturate(1.05) contrast(1.04);
}

.orbit-ring {
  position: absolute;
  width: 88%;
  max-width: 480px;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(107, 231, 255, 0.28);
  border-radius: 8px;
  transform: rotate(-5deg) scale(0.96);
}

.orbit-ring::after {
  position: absolute;
  top: 50%;
  left: -8px;
  width: 14px;
  height: 14px;
  content: "";
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: #101821;
}

.emblem-caption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 14px;
  color: var(--muted);
  font-size: 12px;
}

.emblem-caption strong {
  color: #ecf7fb;
  font-size: 12px;
  letter-spacing: 0;
}

.links-section,
.board-section {
  margin-top: 18px;
  padding: 26px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.08;
}

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

.launch-card {
  position: relative;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(184, 228, 255, 0.14);
  border-radius: 8px;
  padding: 18px;
  background: linear-gradient(160deg, rgba(18, 28, 39, 0.94), rgba(6, 10, 15, 0.9));
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.launch-card:hover,
.launch-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: linear-gradient(160deg, rgba(22, 39, 52, 0.98), rgba(7, 12, 18, 0.94));
  outline: none;
}

.card-code {
  width: fit-content;
  border: 1px solid rgba(242, 202, 114, 0.4);
  border-radius: 6px;
  padding: 6px 8px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.launch-card strong {
  font-size: 20px;
  line-height: 1.2;
}

.launch-card small {
  color: var(--muted);
  line-height: 1.6;
}

.board-heading {
  align-items: center;
}

.sync-badge[data-state="online"] {
  border-color: rgba(107, 231, 255, 0.46);
  color: #bff6ff;
}

.sync-badge[data-state="error"] {
  border-color: rgba(255, 133, 133, 0.55);
  color: #ffd0d0;
}

.board-layout {
  display: grid;
  grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
  gap: 16px;
}

.message-form,
.messages-panel {
  border: 1px solid rgba(184, 228, 255, 0.14);
  border-radius: 8px;
  background: rgba(5, 9, 13, 0.62);
}

.message-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: #c9d9e3;
  font-size: 13px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(184, 228, 255, 0.16);
  border-radius: 6px;
  padding: 12px;
  color: var(--text);
  background: rgba(2, 6, 10, 0.72);
  outline: none;
}

textarea {
  min-height: 138px;
  resize: vertical;
  line-height: 1.7;
}

input:focus,
textarea:focus {
  border-color: var(--cyan-strong);
  box-shadow: 0 0 0 3px rgba(40, 199, 239, 0.12);
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.form-footer span,
.form-note {
  color: var(--muted);
  font-size: 12px;
}

button {
  border: 1px solid rgba(107, 231, 255, 0.34);
  border-radius: 6px;
  padding: 11px 14px;
  color: #061017;
  background: linear-gradient(180deg, #8cf0ff, #36c7ed);
  font-weight: 900;
  cursor: pointer;
}

button:hover,
button:focus-visible {
  border-color: rgba(255, 255, 255, 0.72);
  outline: none;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.form-note {
  min-height: 18px;
  margin: 0;
}

.form-note.error {
  color: var(--danger);
}

.messages-panel {
  overflow: hidden;
}

.messages-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(184, 228, 255, 0.12);
  padding: 14px 16px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.2px;
}

.messages-head button {
  padding: 8px 10px;
  color: #dff8ff;
  background: rgba(255, 255, 255, 0.05);
}

.messages {
  display: grid;
  gap: 10px;
  max-height: 620px;
  overflow: auto;
  padding: 14px;
}

.message {
  border: 1px solid rgba(184, 228, 255, 0.12);
  border-radius: 8px;
  padding: 15px;
  background: rgba(14, 22, 30, 0.72);
}

.message-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.message-meta strong {
  color: #f1f8fb;
}

.message-meta time {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.message p {
  margin: 0 0 14px;
  color: #d8e7ee;
  line-height: 1.75;
}

.like-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #d8f7ff;
  background: rgba(255, 255, 255, 0.04);
}

.like-button[data-liked="true"] {
  border-color: rgba(242, 202, 114, 0.58);
  color: #081016;
  background: linear-gradient(180deg, #f8dc93, #e5bd5b);
}

.empty-state {
  border: 1px dashed rgba(184, 228, 255, 0.18);
  border-radius: 8px;
  padding: 28px;
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .hero-grid,
  .board-layout {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: auto;
  }

  .hero-panel {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 22px, 1180px);
    padding-top: 11px;
  }

  .hero-panel,
  .links-section,
  .board-section {
    padding: 16px;
  }

  .topbar,
  .section-heading,
  .form-footer,
  .message-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-grid {
    gap: 20px;
    padding: 38px 0 0;
  }

  .lead {
    font-size: 16px;
  }

  .emblem-stage {
    min-height: 330px;
  }

  .link-grid {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
  }
}
