:root {
  color-scheme: dark;
  --bg: #0d1025;
  --panel: #55587d;
  --panel-dark: #171a32;
  --panel-deeper: #0b0d1f;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.68);
  --primary: #f6f1b5;
  --primary-ink: #111327;
  --blue: #5e86ff;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --header-height: 50px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Source Sans 3", "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 54% 35%, rgba(79, 64, 123, 0.9), transparent 34%),
    linear-gradient(90deg, #0d1128 0%, #17152d 44%, #3b2847 100%);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  height: var(--header-height);
  padding: 0 clamp(18px, 3.4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(15, 17, 36, 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 1.06rem;
  font-weight: 900;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  background: var(--primary);
  color: var(--primary-ink);
  font-size: 0.64rem;
  font-weight: 900;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 34px);
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.84rem;
  font-weight: 900;
}

.site-nav a {
  transition: color 0.16s ease;
}

.site-nav a:hover,
.site-nav .is-active {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-control {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.language-control span {
  width: 1px;
  height: 1px;
  overflow: hidden;
  position: absolute;
  clip: rect(0 0 0 0);
}

.language-control select {
  min-height: 28px;
  padding: 0 24px 0 10px;
  border: 0;
  color: var(--text);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 900;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.88rem;
  font-weight: 900;
}

.header-btn--primary {
  min-width: 98px;
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-ink);
}

.home-page {
  min-height: calc(100vh - var(--header-height));
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 34vw);
  gap: clamp(26px, 4vw, 58px);
  align-items: stretch;
  height: calc(100vh - var(--header-height));
  min-height: 640px;
  padding: clamp(22px, 3vw, 38px) clamp(22px, 3.6vw, 54px) 22px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 31px 31px;
  opacity: 0.45;
}

.hero::after {
  content: "";
  position: absolute;
  left: 18%;
  top: 0;
  width: 54%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.05), transparent 62%);
}

.hero-copy,
.announcement-panel {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  padding-top: clamp(8px, 5vh, 44px);
  padding-bottom: 18px;
}

.hero-kicker {
  margin: 0 0 8px 14px;
  color: var(--blue);
  font-size: clamp(1rem, 1.4vw, 1.28rem);
  font-weight: 900;
}

h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: none;
  color: #fff;
  font-family: "Times New Roman", "Microsoft YaHei", serif;
  font-size: clamp(3.1rem, 5.4vw, 6.2rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.18;
}

.hero-title-line {
  display: block;
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  margin-top: 16px;
}

.start-stamp {
  display: inline-grid;
  place-items: center;
  width: 166px;
  height: 78px;
  background: var(--primary);
  color: var(--primary-ink);
  font-family: "Times New Roman", serif;
  font-size: 3rem;
  font-weight: 900;
  transform: rotate(1deg);
}

.hero-note {
  margin: 18px 0 0;
  color: #fff;
  font-size: clamp(1.05rem, 1.6vw, 1.45rem);
  font-weight: 800;
}

.announcement-panel {
  align-self: stretch;
  min-height: 0;
  transition: max-width 0.22s ease, transform 0.22s ease;
}

.announcement-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  border: 8px solid #171933;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.announcement-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 4px solid #111327;
}

.announcement-head span,
.developer-tools__head span,
.section-kicker {
  display: block;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.announcement-head strong,
.developer-tools__head strong {
  display: block;
  margin-top: 2px;
  font-size: 1.28rem;
  font-weight: 900;
}

.panel-icon-btn,
.announcement-delete {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(17, 19, 39, 0.8);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
}

.panel-icon-btn {
  min-height: 30px;
  padding: 0 12px;
}

.announcement-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.72) rgba(255, 255, 255, 0.12);
}

.announcement-scroll::-webkit-scrollbar {
  width: 10px;
}

.announcement-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.12);
}

.announcement-scroll::-webkit-scrollbar-thumb {
  border: 2px solid rgba(85, 88, 125, 0.95);
  background: rgba(255, 255, 255, 0.72);
}

.announcement-list {
  display: grid;
  gap: 14px;
  padding: 14px 18px 0;
}

.announcement-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 14px 14px 16px;
  border: 4px solid #101226;
  background: rgba(255, 255, 255, 0.04);
}

.announcement-card time {
  justify-self: end;
  color: rgba(0, 0, 0, 0.72);
  font-size: 1.16rem;
  font-weight: 900;
}

.announcement-card h3 {
  margin: 0;
  color: #050712;
  font-size: 1.2rem;
  font-weight: 900;
}

.announcement-card p {
  margin: 0;
  color: #050712;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.42;
  white-space: pre-wrap;
}

.announcement-card img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border: 3px solid #101226;
}

.announcement-delete {
  justify-self: end;
  min-height: 28px;
  padding: 0 10px;
}

.announcement-toggle {
  position: absolute;
  top: 36px;
  left: -18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 64px;
  border: 4px solid #111327;
  background: var(--primary);
}

.announcement-toggle span {
  width: 12px;
  height: 12px;
  border-left: 4px solid #111327;
  border-bottom: 4px solid #111327;
  transform: rotate(45deg);
}

.announcement-panel.is-collapsed {
  max-width: 70px;
}

.announcement-panel.is-collapsed .announcement-shell {
  min-width: 58px;
  border-width: 5px;
}

.announcement-panel.is-collapsed .announcement-head,
.announcement-panel.is-collapsed .announcement-scroll {
  display: none;
}

.announcement-panel.is-collapsed .announcement-toggle {
  left: 10px;
}

.announcement-panel.is-collapsed .announcement-toggle span {
  transform: rotate(225deg);
}

.developer-tools {
  display: grid;
  gap: 10px;
  margin: 14px 18px 18px;
  padding: 14px;
  border: 3px solid #101226;
  background: rgba(17, 19, 39, 0.72);
}

.developer-tools label {
  display: grid;
  gap: 4px;
  font-size: 0.86rem;
  font-weight: 900;
}

.developer-tools input,
.developer-tools textarea {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 9px 10px;
  background: #0d1025;
  color: #fff;
  resize: vertical;
}

.image-picker input {
  padding: 8px;
}

.announcement-image-preview {
  min-height: 90px;
  background-position: center;
  background-size: cover;
  border: 2px solid rgba(255, 255, 255, 0.18);
}

.developer-submit {
  min-height: 38px;
  border: 0;
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 900;
}

.developer-status,
.auth-status {
  min-height: 20px;
  margin: 0;
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 800;
}

.info-band,
.pricing-band {
  width: min(1180px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 82px 0;
}

.info-band h2,
.pricing-band h2 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(2.2rem, 4.8vw, 5rem);
  line-height: 1;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.feature-grid article {
  display: grid;
  gap: 10px;
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.feature-grid span {
  color: var(--primary);
  font-weight: 900;
}

.feature-grid strong {
  font-size: 1.42rem;
  font-weight: 900;
}

.feature-grid p,
.pricing-band p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.pricing-band {
  display: grid;
  gap: 22px;
  justify-items: start;
}

.auth-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.46);
}

.auth-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 70;
  width: min(392px, 100vw);
  min-height: 100vh;
  padding: 58px 22px 28px;
  overflow: auto;
  background: #191c33;
  box-shadow: -22px 0 60px rgba(0, 0, 0, 0.42);
}

.auth-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

.auth-mode-label {
  margin: 0 0 4px;
  color: var(--primary);
  font-weight: 900;
}

.auth-drawer h2 {
  margin: 0;
  font-family: "Times New Roman", "Microsoft YaHei", serif;
  font-size: 1.6rem;
  line-height: 1.42;
}

.auth-subtitle {
  margin: 14px 0 10px;
  max-width: 320px;
  color: var(--primary);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.5;
}

.auth-switch {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 800;
}

.auth-switch button {
  border: 0;
  padding: 0;
  color: #fff;
  background: transparent;
  font-weight: 900;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label:not(.auth-checkbox-row) {
  display: grid;
  gap: 4px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 900;
}

.auth-form input[type="email"],
.auth-form input[type="text"] {
  width: 100%;
  height: 42px;
  border: 0;
  outline: 0;
  padding: 0 12px;
  background: #0b0d1f;
  color: #fff;
}

.auth-code-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.auth-code-actions button {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  background: #0b0d1f;
  color: #fff;
  font-weight: 900;
}

.auth-checkbox-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 14px;
  align-items: center;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.45;
}

.auth-checkbox-row input {
  appearance: none;
  width: 48px;
  height: 21px;
  margin: 0;
  border: 3px solid var(--primary);
  background: #111327;
}

.auth-checkbox-row input:checked::after {
  content: "✓";
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 900;
}

.auth-submit {
  min-height: 46px;
  border: 0;
  background: var(--primary);
  color: var(--primary-ink);
  font-size: 1rem;
  font-weight: 900;
}

.auth-divider {
  margin: 14px 0 12px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 900;
}

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: max-content;
  min-height: 32px;
  margin: 0 auto;
  padding: 0 12px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: #fff;
  color: #2b2f42;
  font-weight: 800;
}

.google-btn span {
  color: #4285f4;
  font-weight: 900;
}

.auth-note {
  margin: 26px 0 0;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.45;
}

.auth-trust-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0 0;
  font-size: 0.86rem;
  font-weight: 900;
}

.auth-trust-links a,
.site-footer a {
  color: var(--primary);
  text-decoration: none;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #111327;
  font-size: 0.92rem;
}

.site-footer strong {
  color: var(--text);
}

.site-footer nav {
  display: inline-flex;
  gap: 14px;
}

.legal-page {
  width: min(900px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.legal-page h1 {
  margin: 0 0 18px;
  font-family: "Times New Roman", "Microsoft YaHei", serif;
  font-size: clamp(2.2rem, 7vw, 4.6rem);
  line-height: 0.98;
}

.legal-page section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.legal-page h2 {
  margin: 0 0 10px;
  font-size: 1.28rem;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  line-height: 1.7;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1020px) {
  .site-header {
    grid-template-columns: 1fr auto;
    height: auto;
    min-height: var(--header-height);
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    height: auto;
    min-height: calc(100vh - var(--header-height));
    overflow: visible;
  }

  .announcement-panel {
    align-self: stretch;
    height: min(74vh, 640px);
  }
}

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .header-actions {
    flex-wrap: wrap;
  }

  .header-btn {
    flex: 1 1 auto;
  }

  h1 {
    font-size: clamp(2.15rem, 10.2vw, 4rem);
  }

  .start-stamp {
    width: 132px;
    height: 62px;
    font-size: 2.35rem;
  }

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

@media (max-width: 430px) {
  .hero {
    padding-left: 14px;
    padding-right: 14px;
  }

  .announcement-toggle {
    left: auto;
    right: 12px;
    top: -20px;
    width: 56px;
    height: 36px;
  }

  .announcement-panel.is-collapsed {
    max-width: none;
  }
}
