:root {
  --background: #f6fbff;
  --surface: #ffffff;
  --surface-soft: #e7f4ff;
  --ink: #17212b;
  --muted: #5f6f7c;
  --line: #d7e7f2;
  --accent: #0077c8;
  --accent-dark: #075996;
  --accent-soft: #dff3ff;
  --gold: #ffd23f;
  --mengjie-red: #ba0020;
  --mengjie-red-dark: #7d0016;
  --shadow: 0 22px 64px rgba(22, 96, 148, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: linear-gradient(135deg, rgba(0, 119, 200, 0.1), rgba(255, 210, 63, 0.08) 34rem, transparent 48rem), var(--background);
  color: var(--ink);
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

button {
  cursor: pointer;
}

.site-nav,
.admin-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 28px));
  min-height: 68px;
  margin: 0 auto 24px;
  padding: 12px 0;
  background: rgba(246, 251, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(222, 213, 208, 0.7);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 86px;
  height: 62px;
  border-radius: 4px;
  background: transparent;
  object-fit: contain;
  object-position: center;
  padding: 0;
  box-shadow: none;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy span {
  font-size: 24px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand small,
small {
  color: var(--muted);
  font-size: 12px;
}

.site-nav nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
}

.site-nav a,
.secondary,
.primary {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 16px;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.site-nav a {
  color: var(--muted);
}

.site-nav a.active {
  background: var(--ink);
  color: #fff;
}

.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 700;
}

.secondary {
  background: #fff;
  color: var(--accent-dark);
  border-color: var(--line);
  font-weight: 650;
}

.mini {
  min-height: 34px;
  padding: 0 11px;
  font-size: 13px;
}

.danger {
  color: #9c2c3f;
  border-color: #efc8d1;
  background: #fff7f9;
}

.primary:active,
.secondary:active,
.site-nav a:active {
  transform: translateY(1px) scale(0.99);
}

.page-shell,
.admin-page {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding-bottom: 72px;
}

.status-banner {
  border: 1px solid #e6c56e;
  border-radius: 14px;
  background: #fff8df;
  color: #6f5312;
  margin-bottom: 16px;
  padding: 12px 14px;
  line-height: 1.55;
  font-size: 14px;
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 24px;
  align-items: stretch;
  min-height: min(680px, calc(100dvh - 112px));
}

.hero-copy,
.hero-panel,
.page-hero,
.workbench,
.admin-shell,
.content-band,
.policy-card,
.home-split > div,
.section-grid article,
.login-panel {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 6vw, 72px);
}

.signal {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 16px;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(40px, 7vw, 82px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.12;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.lead,
.muted,
.content-card p,
.policy-card p {
  color: var(--muted);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.lead {
  max-width: 620px;
  font-size: clamp(17px, 2vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.hero-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
  padding: clamp(24px, 4vw, 44px);
  background: radial-gradient(circle at 80% 18%, rgba(169, 45, 80, 0.28), transparent 26%), linear-gradient(160deg, #fff 0%, #f0e4e7 100%);
  overflow: hidden;
}

.brand-visual-card {
  min-height: 520px;
  padding: 0;
  background: #dff3ff;
}

.hero-picture,
.hero-picture img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.hero-picture img {
  object-fit: cover;
  object-position: center;
}

.hero-date-badge {
  position: absolute;
  top: clamp(14px, 3vw, 24px);
  left: clamp(14px, 3vw, 24px);
  z-index: 2;
  border-radius: 999px;
  background: rgba(255, 210, 63, 0.94);
  color: #16344f;
  padding: 9px 14px;
  box-shadow: 0 12px 30px rgba(7, 89, 150, 0.18);
  font-size: 14px;
  font-weight: 900;
}

.hero-event {
  position: relative;
  z-index: 1;
  margin: auto clamp(16px, 3vw, 28px) clamp(16px, 3vw, 28px);
  padding: clamp(18px, 3vw, 28px);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(231, 244, 255, 0.84));
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(7, 89, 150, 0.18);
}

.hero-event h2,
.hero-event p {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
  overflow-wrap: anywhere;
}

.hero-panel span {
  align-self: flex-start;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 8px 12px;
  font-weight: 800;
}

.hero-panel strong {
  display: block;
  margin-top: 24px;
  color: var(--accent-dark);
  font-size: 30px;
}

.page-hero,
.workbench,
.content-band,
.policy-card,
.login-panel {
  padding: clamp(22px, 4vw, 42px);
}

.compact-hero {
  margin-bottom: 18px;
}

.compact-hero h1 {
  font-size: clamp(36px, 6vw, 64px);
}

.section-grid,
.admin-metrics,
.home-split {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

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

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

.launch-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 18px;
  align-items: stretch;
  margin-top: 18px;
}

.launch-copy,
.countdown-feature,
.launch-news-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.launch-copy {
  padding: clamp(24px, 4vw, 42px);
}

.launch-copy h2 {
  max-width: 700px;
}

.launch-copy p {
  color: var(--muted);
  line-height: 1.8;
}

.event-facts {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
}

.event-facts div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.event-facts dt {
  color: var(--accent-dark);
  font-weight: 800;
}

.event-facts dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
}

.countdown-feature {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 12px;
}

.countdown-feature img {
  display: block;
  width: 100%;
  max-height: 680px;
  border-radius: 12px;
  object-fit: contain;
  background: #0877c8;
}

.countdown-feature figcaption {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}

.advocate-showcase {
  margin-top: 18px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.advocate-carousel {
  overflow: hidden;
}

.advocate-track {
  display: flex;
  gap: 14px;
  width: max-content;
  min-width: max-content;
  animation: advocate-scroll 48s linear infinite;
  -webkit-animation: advocate-scroll 48s linear infinite;
  will-change: transform;
}

.advocate-set {
  display: flex;
  gap: 14px;
  min-width: max-content;
}

.advocate-carousel:hover .advocate-track {
  animation-play-state: paused;
}

.advocate-card {
  flex: 0 0 clamp(180px, 24vw, 260px);
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  overflow: hidden;
}

.advocate-card img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

@keyframes advocate-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 7px));
  }
}

@-webkit-keyframes advocate-scroll {
  from {
    -webkit-transform: translate3d(0, 0, 0);
  }
  to {
    -webkit-transform: translate3d(calc(-50% - 7px), 0, 0);
  }
}

.launch-news-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1fr);
  gap: 22px;
  margin-bottom: 18px;
  overflow: hidden;
}

.launch-news-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.launch-news-card > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 4vw, 36px);
}

.launch-news-card p {
  color: var(--muted);
  line-height: 1.75;
}

.launch-news-card .primary {
  align-self: flex-start;
  margin-top: 8px;
}

.section-grid article,
.admin-metrics article,
.home-split > div {
  padding: 22px;
}

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

.section-head .signal {
  margin: 0;
}

.section-head a,
.site-footer a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.form-card,
.admin-form {
  display: grid;
  gap: 14px;
  max-width: 780px;
}

.signup-workbench {
  max-width: 760px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.94);
}

.signup-workbench .form-card {
  max-width: none;
  gap: 18px;
}

.signup-workbench label {
  gap: 10px;
  color: #202932;
  font-size: 17px;
}

.signup-workbench input,
.signup-workbench select {
  min-height: 54px;
  border-color: #d9e9ec;
  border-radius: 14px;
  font-weight: 700;
}

.form-card.compact {
  max-width: 420px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: #3a3034;
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}

textarea {
  min-height: 98px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 119, 200, 0.16);
}

.check {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}

.check input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
}

.check span {
  min-width: 0;
}

.check a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.field-note {
  margin-top: 2px;
}

.field-note textarea {
  min-height: 88px;
}

.wide {
  width: 100%;
}

.notice {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 12px 14px;
  border-radius: 10px;
  line-height: 1.5;
}

.success-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: clamp(22px, 4vw, 34px);
}

.success-card h2 {
  margin-bottom: 0;
}

.receipt {
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 12px 14px;
  font-weight: 800;
}

.success-card .secondary {
  justify-self: start;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.hidden {
  display: none;
}

.result-card,
.content-card,
.empty {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 20px;
}

.result-card + .result-card {
  margin-top: 14px;
}

.result-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.result-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.result-list small {
  grid-column: 1 / -1;
}

.cards {
  display: grid;
  gap: 14px;
}

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

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

.content-card span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.media-card {
  display: grid;
  gap: 10px;
}

.policy-card {
  max-width: 860px;
}

.policy-card h2:not(:first-child) {
  margin-top: 26px;
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 0 0 42px;
}

.admin-body {
  background: #f4f2f0;
}

.admin-shell,
.login-panel {
  display: grid;
  gap: 18px;
}

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

.admin-form {
  max-width: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.admin-form h2,
.admin-form textarea,
.admin-form small {
  grid-column: 1 / -1;
}

.config-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(231, 244, 255, 0.44);
  padding: 14px;
}

.config-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.config-list-head h3 {
  margin: 0;
}

.config-items {
  display: grid;
  gap: 12px;
}

.config-item {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border: 1px solid rgba(215, 231, 242, 0.92);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  padding: 12px;
}

.config-item-tools,
.wide-field {
  grid-column: 1 / -1;
}

.config-item-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.json-shadow {
  display: none;
}

.admin-table {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.admin-table-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.admin-table-head h2 {
  margin-bottom: 6px;
}

.admin-table-head .muted {
  margin-bottom: 0;
}

.backup-health .admin-metrics {
  margin-top: 8px;
}

.compact-metrics article p {
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.2;
}

.compact-metrics article small {
  display: block;
  overflow-wrap: anywhere;
}

.event-list {
  display: grid;
  gap: 12px;
}

.event-edit-form {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.64);
}

.event-edit-form h3 {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.event-edit-form h3 small {
  display: block;
  margin-top: 4px;
  font-weight: 400;
}

.mengjie-page {
  display: grid;
  gap: 22px;
  border-radius: 18px;
  padding: clamp(20px, 5vw, 44px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 42%),
    linear-gradient(160deg, var(--mengjie-red), var(--mengjie-red-dark));
  color: #fff;
  box-shadow: 0 28px 72px rgba(126, 12, 34, 0.22);
}

.mengjie-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(18px, 4vw, 36px);
  align-items: center;
}

.mengjie-page .signal,
.mengjie-page .lead {
  color: rgba(255, 255, 255, 0.9);
}

.mengjie-page h1 {
  color: #fff;
  margin-bottom: 12px;
}

.mengjie-logo-card {
  display: grid;
  place-items: center;
  width: min(260px, 72vw);
  min-height: 116px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 52px rgba(84, 0, 18, 0.2);
}

.mengjie-logo-card img {
  width: min(240px, 68vw);
  height: auto;
  display: block;
}

.mengjie-form {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: none;
}

.mengjie-form .notice {
  background: rgba(177, 18, 45, 0.08);
  border-color: rgba(177, 18, 45, 0.24);
  color: var(--mengjie-red-dark);
}

.mengjie-form .primary {
  background: var(--mengjie-red);
  border-color: var(--mengjie-red);
}

.admin-table form {
  display: grid;
  grid-template-columns: 1.3fr 1fr 160px 1fr auto;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

@media (max-width: 860px) {
  .site-nav,
  .admin-nav,
  .page-shell,
  .admin-page,
  .site-footer {
    width: min(100% - 20px, 680px);
  }

  .site-nav {
    display: grid;
  }

  .brand-mark {
    width: 72px;
    height: 52px;
  }

  .hero,
  .section-grid,
  .admin-metrics,
  .home-split,
  .launch-band,
  .launch-news-card,
  .cards.three,
  .cards.two,
  .form-row,
  .mengjie-hero {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: clamp(34px, 10vw, 46px);
    line-height: 1.08;
  }

  h2 {
    font-size: clamp(24px, 7vw, 34px);
  }

  .hero-panel {
    min-height: 300px;
  }

  .brand-visual-card {
    min-height: min(520px, 72vh);
  }

  .launch-copy,
  .countdown-feature {
    border-radius: 14px;
  }

  .countdown-feature img {
    max-height: none;
  }

  .mengjie-page {
    border-radius: 14px;
    margin-inline: -2px;
  }

  .mengjie-logo-card {
    width: 100%;
    min-height: 104px;
  }

  .event-facts div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .launch-news-card img {
    min-height: 180px;
    aspect-ratio: 16 / 9;
  }

  .advocate-track {
    animation: none;
    -webkit-animation: none;
  }

  .admin-form,
  .admin-table form,
  .config-item {
    grid-template-columns: 1fr;
  }

  .config-item-tools {
    justify-content: flex-start;
  }

  .admin-table-head {
    display: grid;
  }

  .admin-head {
    display: grid;
  }
}
