@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/syne-700.woff2") format("woff2");
}

@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/syne-800.woff2") format("woff2");
}

:root {
  --bg-0: #050b12;
  --bg-1: #0a1520;
  --ink: #eaf1f7;
  --muted: #8b9faf;
  --line: rgba(120, 150, 170, 0.22);
  --amber: #e2a53a;
  --cyan: #3cc4c8;
  --panel: rgba(8, 18, 28, 0.72);
  --radius: 16px;
  --font-display: "Syne", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Consolas", monospace;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-0);
  line-height: 1.6;
}

a { color: inherit; }

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 50% at 50% -12%, rgba(226, 165, 58, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 20%, rgba(60, 196, 200, 0.1), transparent 50%),
    radial-gradient(ellipse 45% 35% at 0% 80%, rgba(60, 196, 200, 0.06), transparent 50%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 45%, #03070c 100%);
}

.ambient::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(130, 160, 180, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 160, 180, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 75% 55% at 50% 25%, #000 5%, transparent 72%);
}

.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(60, 196, 200, 0.03) 48%,
    transparent 52%,
    transparent 100%
  );
  background-size: 100% 220%;
  animation: scan 9s linear infinite;
}

.shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 64rem;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 1.75rem);
}

/* —— Landing —— */
.page-landing {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
}

.landing-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
}

.page-landing .ambient {
  background: linear-gradient(180deg, rgba(4, 10, 16, 0.45) 0%, rgba(4, 10, 16, 0.62) 45%, rgba(3, 7, 12, 0.82) 100%);
}

.page-landing .ambient::before {
  opacity: 0.18;
}

.landing {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 100%;
  padding: clamp(1.25rem, 4vh, 3rem) clamp(0.85rem, 4vw, 2rem);
  box-sizing: border-box;
}

.brand-mega {
  margin: 0;
  width: 100%;
  max-width: 100%;
  font-family: var(--font-display);
  font-weight: 800;
  /* 计入两侧 1.5x 字母，手机端缩小，避免裁切 */
  font-size: clamp(1.05rem, 6.2vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--ink);
  animation: rise 0.9s ease both;
}

.brand-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.04em;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-inline: 0.15em;
  overflow: visible;
}

.brand-everything {
  font-size: 1em;
  letter-spacing: 0.02em;
  min-width: 0;
  background: linear-gradient(115deg, #c5d0da 10%, #9aabba 55%, #7f94a6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-letter {
  font-size: 1.5em;
  line-height: 0.82;
  font-weight: 800;
  letter-spacing: 0;
  flex: 0 0 auto;
}

.brand-letter-a {
  background: linear-gradient(160deg, #ffe08a 0%, #ffb020 40%, #ff8a00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-letter-i {
  background: linear-gradient(160deg, #b8ffff 0%, #2ef0f5 45%, #00c2d6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-sub {
  display: block;
  margin-top: 0.28em;
  font-size: clamp(0.72rem, 3.6vw, 1.55rem);
  letter-spacing: 0.06em;
  background: linear-gradient(90deg, #dce6ee 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-lead {
  margin: clamp(1rem, 3vh, 1.75rem) 0 0;
  max-width: 34rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: clamp(0.84rem, 2.4vw, 1.05rem);
  color: rgba(220, 230, 238, 0.82);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
  animation: rise 1s 0.08s ease both;
}

.lead-zh,
.lead-en {
  display: block;
}

.lead-en {
  font-size: 0.92em;
  letter-spacing: 0.02em;
  color: rgba(180, 200, 214, 0.88);
}

.gate-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 16rem));
  gap: clamp(0.85rem, 2.5vw, 1.35rem);
  margin-top: clamp(1.6rem, 5vh, 3.25rem);
  width: min(100%, 34rem);
  animation: rise 1.05s 0.14s ease both;
}

.gate {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.35rem;
  min-height: 5.5rem;
  padding: 1.15rem 1.35rem;
  text-decoration: none;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.gate:hover {
  transform: translateY(-3px);
  border-color: rgba(60, 196, 200, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.gate-apps {
  border-color: rgba(226, 165, 58, 0.35);
}

.gate-apps:hover {
  border-color: rgba(226, 165, 58, 0.65);
  box-shadow: 0 18px 40px rgba(226, 165, 58, 0.12);
}

.gate-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 3.5vw, 1.55rem);
  letter-spacing: 0.04em;
}

.gate-hint {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.subnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0.15rem 0.85rem;
  animation: rise 0.55s ease both;
}

.subnav-home {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  background: linear-gradient(90deg, #f4f8fb, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  backdrop-filter: blur(14px);
  animation: rise 0.65s ease both;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: #061018;
  background: linear-gradient(135deg, var(--cyan), #2a9aa8);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.7rem, 1.7vw, 0.86rem);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #f4f8fb, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.nav-link {
  font-size: 0.84rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.is-active { color: var(--ink); }

/* Hero */
.hero {
  min-height: min(78vh, 38rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 9vh, 5rem) 0.2rem 2.25rem;
  animation: rise 0.8s 0.05s ease both;
}

.hero-kicker {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.35rem, 8vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  max-width: 11ch;
  background: linear-gradient(115deg, #f7fafc 10%, var(--amber) 48%, var(--cyan) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 1.25rem 0 0;
  max-width: 32rem;
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 1.3rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, opacity 0.2s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  color: #0c1218;
  background: linear-gradient(135deg, var(--amber), #c98a28);
  box-shadow: 0 0 26px rgba(226, 165, 58, 0.22);
}

.btn-ghost {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
}

.btn-mainland {
  color: var(--ink);
  background: rgba(60, 196, 200, 0.12);
  border: 1px solid rgba(60, 196, 200, 0.45);
}

.btn-mainland:hover {
  background: rgba(60, 196, 200, 0.2);
}

.btn:disabled,
.btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  transform: none;
}

.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.78rem; }

.btn-danger {
  color: #ffd5d8;
  background: rgba(240, 113, 120, 0.16);
  border: 1px solid rgba(240, 113, 120, 0.35);
}

/* Sections */
.section {
  padding: 1.25rem 0 2.75rem;
  animation: rise 0.85s 0.12s ease both;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.35rem;
  padding: 0 0.15rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.8rem);
  font-weight: 700;
}

.section-head p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 34rem;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}

.stack { display: flex; flex-direction: column; gap: 1rem; }

.item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem 1.15rem;
  align-items: start;
  padding: 1.25rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(12px);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
  animation: rise 0.55s ease both;
}

.item:hover {
  border-color: rgba(60, 196, 200, 0.35);
  transform: translateY(-1px);
}

.item-glyph {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 0.9rem;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--amber);
  border: 1px solid rgba(226, 165, 58, 0.28);
  background: linear-gradient(145deg, rgba(226, 165, 58, 0.14), rgba(60, 196, 200, 0.08));
}

.item-body h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.item-body p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.45rem 0 0.55rem;
}

.meta span,
.chip {
  font-size: 0.72rem;
  color: var(--muted);
  padding: 0.16rem 0.48rem;
  border-radius: 6px;
  background: rgba(130, 160, 180, 0.1);
}

.item-side {
  align-self: center;
  font-size: 0.8rem;
  color: var(--cyan);
  white-space: nowrap;
}

.empty {
  text-align: center;
  padding: 2.5rem 1.2rem;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.site-footer {
  margin-top: auto;
  padding: 2rem 0.2rem 0.4rem;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(139, 159, 175, 0.5);
}

/* Detail */
.detail-hero {
  padding: 2rem 0.15rem 1.25rem;
  animation: rise 0.7s ease both;
}

.detail-hero h1 {
  margin: 0.55rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.5vw, 2.5rem);
  line-height: 1.15;
}

.detail-lead {
  margin: 0.85rem 0 0;
  color: var(--muted);
  max-width: 40rem;
}

.detail-panel {
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  margin-bottom: 1rem;
  animation: rise 0.75s 0.05s ease both;
}

.detail-panel h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.feature-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.feature-list li { margin: 0.35rem 0; }

.prose {
  color: var(--muted);
  font-size: 0.95rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.prose p { margin: 0 0 1rem; }

.source-box {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-left: 2px solid var(--cyan);
  background: rgba(60, 196, 200, 0.06);
  font-size: 0.88rem;
}

.source-box a { color: var(--cyan); }

.comment-form {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.comment {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(120, 150, 170, 0.12);
}

.comment:last-child { border-bottom: none; }

.comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.comment-meta strong { color: var(--ink); }

.comment-body {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 520px) {
  .gate-row {
    grid-template-columns: 1fr;
  }
  .brand-mega {
    font-size: clamp(0.95rem, 5.6vw, 1.55rem);
  }
  .brand-letter {
    font-size: 1.4em;
  }
  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-row .btn {
    width: 100%;
  }
}

/* Admin */
.admin-shell { max-width: 46rem; }

.tabs {
  display: flex;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
}

.tab {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.tab.is-on {
  color: var(--ink);
  border-color: rgba(60, 196, 200, 0.45);
  background: rgba(60, 196, 200, 0.1);
}

.panel {
  margin-top: 1rem;
  padding: 1.25rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.panel h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.85rem;
}

.field label {
  font-size: 0.78rem;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: rgba(3, 8, 14, 0.55);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.62rem 0.75rem;
}

.field textarea { min-height: 5.5rem; resize: vertical; }
.field textarea.tall { min-height: 9rem; }

.msg { margin: 0.7rem 0 0; font-size: 0.85rem; }
.msg.ok { color: var(--cyan); }
.msg.err { color: #f07178; }

.admin-item {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(3, 8, 14, 0.35);
  margin-bottom: 0.65rem;
}

.admin-item strong { font-family: var(--font-display); }
.admin-item .ops { display: flex; gap: 0.4rem; }

.hidden { display: none !important; }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scan {
  0% { background-position: 0 -40%; }
  100% { background-position: 0 140%; }
}

@media (max-width: 720px) {
  .item {
    grid-template-columns: auto 1fr;
  }
  .item-side {
    grid-column: 2;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ambient::after,
  .nav, .hero, .section, .item, .detail-hero, .detail-panel,
  .brand-mega, .landing-lead, .gate-row, .subnav { animation: none; }
  .btn:hover, .item:hover, .gate:hover { transform: none; }
}
