* { box-sizing: border-box; }

:root {
  color-scheme: dark;
  --ink: rgba(255, 255, 255, 0.9);
  --muted: rgba(255, 255, 255, 0.48);
  --line: rgba(255, 255, 255, 0.15);
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #000;
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}

body[data-admin-page] {
  overflow: auto;
}

.galaxy-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.galaxy-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.page-logo {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 3;
}

.page-logo img {
  display: block;
  width: 180px;
  height: auto;
}

.page-back {
  position: fixed;
  top: 26px;
  right: 28px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  height: 30px;
  color: rgba(255,255,255,.72);
  font-size: 14px;
  letter-spacing: .12em;
  line-height: 30px;
  text-decoration: none;
  transition: color .25s ease, opacity .25s ease;
}

.page-back:hover {
  color: #fff;
}

.page-content {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 120px 28px 80px;
  text-align: center;
  pointer-events: none;
}

.page-card {
  width: min(680px, 92vw);
  padding: 54px 30px 58px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.012));
  box-shadow: 0 0 80px rgba(255,255,255,.035), inset 0 0 60px rgba(255,255,255,.018);
  backdrop-filter: blur(10px);
}

.page-kicker {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.page-title {
  margin: 0;
  font-size: clamp(32px, 6vw, 68px);
  font-weight: 300;
  letter-spacing: .1em;
}

.page-description {
  margin: 22px auto 0;
  max-width: 440px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: .08em;
}

.blog-detail {
  width: min(900px, 92vw);
  max-height: calc(100svh - 180px);
  overflow: auto;
  text-align: left;
}

.blog-detail-meta {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
}

.blog-detail-content {
  margin-top: 34px;
  color: rgba(255,255,255,.84);
  font-size: 15px;
  line-height: 1.9;
}

.blog-detail-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 22px auto;
  border-radius: 10px;
}

.blog-detail-content pre {
  overflow: auto;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 16px;
  background: rgba(0,0,0,.34);
}

.blog-detail-content a {
  color: #a6c8ff;
}

.blog-detail-content blockquote {
  margin-left: 0;
  padding-left: 16px;
  border-left: 2px solid rgba(166,200,255,.56);
  color: rgba(255,255,255,.68);
}

.blog-detail[hidden] {
  display: none;
}

@media (max-width: 768px) {
  .page-logo { left: 12px; top: 16px; }
  .page-logo img { width: 140px; }
  .page-back { top: 22px; right: 16px; height: 22px; font-size: 12px; line-height: 22px; }
  .page-card { padding: 42px 22px 46px; }
}

/* Blog index: each published post is a 16:9 cover followed by its title. */
body.blog-page {
  overflow: auto;
}

.blog-page-content {
  display: block;
  min-height: 100svh;
  padding: 144px max(28px, calc((100vw - 1180px) / 2)) 100px;
  text-align: left;
}

.blog-index {
  width: 100%;
}

.blog-index-heading {
  margin-bottom: 44px;
}

.blog-index-heading .page-description {
  margin-left: 0;
}

.blog-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px 28px;
}

.blog-post-card {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  pointer-events: auto;
}

.blog-post-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(135deg, rgba(166,200,255,.14), rgba(255,255,255,.025));
}

.blog-post-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms cubic-bezier(.16,1,.3,1), filter 360ms ease;
}

.blog-post-card:hover .blog-post-cover img {
  transform: scale(1.035);
  filter: brightness(1.08);
}

.blog-post-cover.is-empty::after {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.16), transparent 34%), radial-gradient(circle at 72% 68%, rgba(166,200,255,.18), transparent 42%);
}

.blog-post-copy {
  padding: 17px 2px 0;
}

.blog-post-copy h2 {
  margin: 0;
  color: rgba(255,255,255,.94);
  font-size: clamp(19px, 2vw, 28px);
  font-weight: 600;
  letter-spacing: .035em;
  line-height: 1.35;
}

.blog-post-copy p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.blog-empty {
  margin: 36px 0 0;
  color: var(--muted);
  letter-spacing: .08em;
}

.blog-detail-cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 28px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.14);
}

.blog-detail-cover[hidden] {
  display: none;
}

@media (max-width: 768px) {
  .blog-page-content {
    padding: 104px 18px 70px;
  }

  .blog-post-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .blog-index-heading {
    margin-bottom: 32px;
  }
}

/* Markdown links in article details use a clear button treatment. */
.blog-detail-content a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin: 4px 8px 10px 0;
  border: 1px solid rgba(191,216,255,.46);
  border-radius: 4px;
  padding: 0 14px;
  color: rgba(239,246,255,.98);
  background: rgba(166,200,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .035em;
  line-height: 1;
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.blog-detail-content a::after {
  margin-left: 9px;
  content: "↗";
  color: rgba(205,225,255,.9);
  font-size: 14px;
}

.blog-detail-content a:hover {
  border-color: rgba(238,246,255,.84);
  color: #fff;
  background: rgba(166,200,255,.18);
  box-shadow: 0 8px 22px rgba(58,104,170,.20), inset 0 1px 0 rgba(255,255,255,.13);
  transform: translateY(-1px);
}

.blog-detail-content a:focus-visible {
  outline: 2px solid rgba(205,225,255,.92);
  outline-offset: 3px;
}

/* Blog pages use one natural document scroll; article content must never be trapped in a fixed-height panel. */
html:has(body.blog-page) {
  overflow-y: auto;
  scroll-behavior: smooth;
}

body.blog-page {
  min-height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
}

.blog-page-content {
  min-height: 100svh;
  pointer-events: auto;
}

.blog-detail {
  width: min(900px, 92vw);
  max-height: none;
  margin: 0 auto;
  overflow: visible;
  pointer-events: auto;
}

.blog-detail-content {
  padding-bottom: 80px;
}

/* Public join application form: a framed, editorial application stage. */
body.join-page {
  overflow: auto;
}

.join-page-content {
  display: block;
  min-height: 100svh;
  padding: 120px clamp(18px, 4vw, 64px) 72px;
  text-align: left;
}

.join-stage {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  width: min(1180px, 100%);
  min-height: min(720px, calc(100svh - 162px));
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(219,234,255,.25);
  background: linear-gradient(125deg, rgba(255,255,255,.075) 0%, rgba(255,255,255,.022) 39%, rgba(5,9,20,.14) 100%);
  box-shadow: 0 24px 90px rgba(0,0,0,.36), inset 0 0 0 1px rgba(255,255,255,.025), inset 0 0 90px rgba(177,211,255,.028);
  backdrop-filter: blur(12px);
  pointer-events: auto;
}

.join-stage::before,
.join-stage::after {
  position: absolute;
  z-index: -1;
  width: 46%;
  height: 65%;
  content: "";
  pointer-events: none;
  filter: blur(2px);
}

.join-stage::before {
  top: -36%;
  left: -12%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(218,234,255,.12), transparent 68%);
}

.join-stage::after {
  right: -25%;
  bottom: -48%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(174,208,255,.10), transparent 70%);
}

.join-stage-index {
  position: absolute;
  top: 21px;
  right: 28px;
  display: flex;
  gap: 18px;
  color: rgba(255,255,255,.34);
  font: 500 9px/1 "SFMono-Regular", Consolas, monospace;
  letter-spacing: .19em;
}

.join-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(410px, 1.04fr);
  gap: clamp(44px, 7.2vw, 108px);
  align-items: center;
  min-height: 650px;
  padding: 78px clamp(32px, 6.2vw, 88px) 66px;
}

.join-intro {
  max-width: 470px;
}

.join-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: rgba(226,236,255,.74);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.join-eyebrow span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e5f0ff;
  box-shadow: 0 0 12px rgba(220,237,255,.86);
}

.join-intro h1 {
  margin: 24px 0 0;
  color: rgba(255,255,255,.98);
  font-size: clamp(42px, 5.5vw, 78px);
  font-weight: 350;
  line-height: 1.16;
  letter-spacing: .045em;
}

.join-lead {
  max-width: 445px;
  margin: 28px 0 0;
  color: rgba(231,238,250,.68);
  font-size: 15px;
  line-height: 2;
  letter-spacing: .075em;
}

.join-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.join-tags span {
  border: 1px solid rgba(255,255,255,.17);
  padding: 7px 9px 6px;
  color: rgba(237,244,255,.66);
  background: rgba(255,255,255,.028);
  font: 500 9px/1 "SFMono-Regular", Consolas, monospace;
  letter-spacing: .13em;
}

.join-intro-note {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  max-width: 370px;
  margin-top: 46px;
}

.join-note-line {
  display: block;
  flex: 0 0 34px;
  height: 1px;
  margin-top: 9px;
  background: linear-gradient(90deg, rgba(255,255,255,.78), transparent);
}

.join-intro-note p {
  margin: 0;
  color: rgba(255,255,255,.49);
  font-size: 12px;
  line-height: 1.9;
  letter-spacing: .06em;
}

.join-application-panel {
  position: relative;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid rgba(232,241,255,.23);
  background: linear-gradient(145deg, rgba(9,14,27,.65), rgba(7,10,17,.38));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.065), 0 18px 48px rgba(0,0,0,.18);
}

.join-application-panel::before {
  position: absolute;
  top: -1px;
  right: 28px;
  left: 28px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(232,244,255,.78), transparent);
}

.join-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,.11);
}

.join-panel-kicker {
  margin: 0 0 12px;
  color: rgba(207,225,255,.60);
  font: 500 9px/1 "SFMono-Regular", Consolas, monospace;
  letter-spacing: .17em;
}

.join-panel-head h2 {
  margin: 0;
  color: rgba(255,255,255,.94);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
  letter-spacing: .08em;
}

.join-panel-head p:not(.join-panel-kicker) {
  margin: 12px 0 0;
  color: rgba(255,255,255,.45);
  font-size: 12px;
  letter-spacing: .06em;
}

.join-panel-count {
  color: rgba(230,239,255,.76);
  font: 300 28px/.77 "SFMono-Regular", Consolas, monospace;
  letter-spacing: -.08em;
  text-align: right;
}

.join-panel-count small {
  color: rgba(255,255,255,.34);
  font-size: 10px;
  letter-spacing: 0;
}

.join-form {
  display: grid;
  gap: 26px;
  margin: 31px 0 0;
}

.join-form-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.join-field {
  display: grid;
  gap: 10px;
  color: rgba(255,255,255,.74);
  font-size: 12px;
  letter-spacing: .07em;
}

.join-field > span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.join-field em {
  color: rgba(184,210,249,.57);
  font: 500 9px/1 "SFMono-Regular", Consolas, monospace;
  font-style: normal;
  letter-spacing: .04em;
}

.join-form input,
.join-form textarea {
  box-sizing: border-box;
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.20);
  border-radius: 0;
  outline: none;
  padding: 5px 0 10px;
  color: rgba(255,255,255,.94);
  background: transparent;
  font: 400 14px/1.65 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: .035em;
  resize: vertical;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.join-form textarea {
  min-height: 142px;
  padding-right: 5px;
}

.join-form input::placeholder,
.join-form textarea::placeholder {
  color: rgba(255,255,255,.28);
}

.join-form input:focus,
.join-form textarea:focus {
  border-color: rgba(223,237,255,.92);
  box-shadow: 0 8px 11px -12px rgba(184,215,255,.95);
}

.join-field-message small {
  color: rgba(255,255,255,.32);
  font-size: 10px;
  letter-spacing: .045em;
}

.join-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 2px;
}

.join-status {
  min-height: 20px;
  margin: 0;
  color: rgba(255,190,190,.9);
  font-size: 11px;
  line-height: 1.65;
  letter-spacing: .045em;
}

.join-status.is-success {
  color: rgba(197,243,214,.94);
}

.join-submit {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-width: 164px;
  min-height: 46px;
  border: 1px solid rgba(235,243,255,.64);
  border-radius: 0;
  padding: 0 14px 0 18px;
  color: #09101c;
  background: rgba(240,247,255,.96);
  font: 500 12px/1 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: .10em;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.join-submit i {
  font-size: 17px;
  font-style: normal;
  transition: transform 180ms ease;
}

.join-submit:hover:not(:disabled) {
  background: #fff;
  box-shadow: 0 0 24px rgba(221,237,255,.30);
  transform: translateY(-2px);
}

.join-submit:hover:not(:disabled) i {
  transform: translate(3px, -3px);
}

.join-submit:active:not(:disabled) {
  transform: translateY(0);
}

.join-submit:disabled {
  cursor: wait;
  opacity: .62;
}

.join-stage-footer {
  position: absolute;
  right: clamp(32px, 6.2vw, 88px);
  bottom: 22px;
  left: clamp(32px, 6.2vw, 88px);
  display: flex;
  gap: 11px;
  align-items: center;
  padding-top: 17px;
  border-top: 1px solid rgba(255,255,255,.095);
  color: rgba(255,255,255,.32);
  font: 500 9px/1 "SFMono-Regular", Consolas, monospace;
  letter-spacing: .14em;
}

.join-footer-code {
  margin-left: auto;
  letter-spacing: .1em;
}

.join-corner {
  position: absolute;
  z-index: 2;
  width: 21px;
  height: 21px;
  opacity: .88;
  pointer-events: none;
}

.join-corner::before,
.join-corner::after {
  position: absolute;
  content: "";
  background: rgba(228,241,255,.88);
  box-shadow: 0 0 11px rgba(218,236,255,.36);
}

.join-corner::before { width: 21px; height: 1px; }
.join-corner::after { width: 1px; height: 21px; }
.join-corner-tl { top: -1px; left: -1px; }
.join-corner-tr { top: -1px; right: -1px; transform: rotate(90deg); }
.join-corner-br { right: -1px; bottom: -1px; transform: rotate(180deg); }
.join-corner-bl { bottom: -1px; left: -1px; transform: rotate(-90deg); }

.join-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 880px) {
  .join-stage-grid {
    grid-template-columns: 1fr;
    gap: 46px;
    padding-top: 70px;
    padding-bottom: 82px;
  }

  .join-intro {
    max-width: 610px;
  }

  .join-application-panel {
    max-width: 620px;
  }
}

@media (max-width: 640px) {
  .join-page-content {
    padding: 100px 14px 36px;
  }

  .join-stage {
    min-height: 0;
  }

  .join-stage-index {
    top: 16px;
    right: 17px;
    gap: 10px;
    font-size: 8px;
  }

  .join-stage-grid {
    gap: 35px;
    min-height: 0;
    padding: 57px 21px 75px;
  }

  .join-intro h1 {
    font-size: clamp(38px, 11.5vw, 54px);
  }

  .join-lead {
    margin-top: 22px;
    font-size: 13px;
    line-height: 1.9;
  }

  .join-intro-note {
    margin-top: 32px;
  }

  .join-application-panel {
    padding: 27px 20px;
  }

  .join-panel-head {
    padding-bottom: 23px;
  }

  .join-panel-head h2 {
    font-size: 25px;
  }

  .join-form {
    gap: 23px;
    margin-top: 27px;
  }

  .join-form-pair {
    grid-template-columns: 1fr;
    gap: 23px;
  }

  .join-form textarea {
    min-height: 126px;
  }

  .join-submit-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .join-submit {
    width: 100%;
  }

  .join-stage-footer {
    right: 21px;
    bottom: 17px;
    left: 21px;
    gap: 8px;
    font-size: 8px;
  }

  .join-footer-code {
    display: none;
  }
}
