@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,600;0,9..40,700;1,9..40,400&family=Outfit:wght@500;600;700&display=swap");

/* AI 创作平台 · 官网 */
:root {
  --bg: #07080c;
  --bg-elev: #0e1017;
  --text: #e8eaef;
  --muted: #8b92a8;
  --accent: #3ee0b8;
  --accent-dim: #2a9d7a;
  --border: #1e2230;
  --danger: #f07178;
  --font-sans: "DM Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Outfit", "PingFang SC", sans-serif;
  --radius: 12px;
  --maxw: 1100px;
  --landing-max: min(1180px, 94vw);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(62, 224, 184, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(90, 120, 255, 0.06), transparent);
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: rgba(10, 11, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.65rem;
  color: #ffffff;
  letter-spacing: -0.03em;
}
.brand .brand-mark {
  color: #e53935;
}

.nav-toggle {
  display: none;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #04120e;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(62, 224, 184, 0.25);
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.btn-lg {
  padding: 0.85rem 1.65rem;
  font-size: 1.02rem;
  border-radius: 999px;
}

/* 次级 CTA：常见于 Linear / Vercel 系深色落地页 */
.btn-landing-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.btn-landing-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(62, 224, 184, 0.35);
  color: #fff;
  text-decoration: none;
}

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.page-home main {
  max-width: var(--landing-max);
}

/* —— 首页 Hero：编辑感排版 + 光晕层次（偏高端 SaaS / 品牌站） —— */
.landing-hero--editorial {
  position: relative;
  padding: clamp(2.75rem, 7vw, 4.5rem) 0 clamp(2.75rem, 6vw, 4rem);
  text-align: left;
  overflow: hidden;
}

.landing-hero__glow {
  pointer-events: none;
  position: absolute;
  inset: -20% -10% auto;
  height: min(70vh, 520px);
  background:
    radial-gradient(ellipse 55% 45% at 50% 35%, rgba(62, 224, 184, 0.14), transparent 65%),
    radial-gradient(ellipse 40% 30% at 70% 20%, rgba(120, 140, 255, 0.06), transparent 55%);
  opacity: 0.95;
}

.landing-hero--editorial .landing-hero__top {
  position: relative;
  z-index: 1;
  max-width: 34rem;
  margin: 0 auto;
  padding: 0 clamp(0.75rem, 3vw, 1.25rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.landing-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 clamp(1.35rem, 3vw, 1.75rem);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(180, 188, 208, 0.75);
}

.landing-hero__eyebrow--simple {
  text-transform: none;
  letter-spacing: 0.14em;
  font-size: clamp(0.75rem, 1.4vw, 0.8125rem);
  font-weight: 600;
  color: rgba(200, 208, 225, 0.88);
}

.landing-hero--editorial .landing-hero__eyebrow--simple {
  margin-left: 0;
  margin-right: 0;
}

.landing-hero__eyebrow-brand {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  color: rgba(250, 251, 254, 0.92);
}

.landing-hero__eyebrow-sep {
  opacity: 0.35;
  font-weight: 400;
  letter-spacing: 0;
}

.landing-hero__title {
  font-family: var(--font-display);
  margin: 0 0 clamp(1.35rem, 3vw, 1.85rem);
  color: #fafbfe;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(0.25rem, 0.9vw, 0.5rem);
  width: 100%;
}

.landing-hero--editorial .landing-hero__title {
  margin-top: clamp(0.35rem, 1vw, 0.65rem);
}

.landing-hero__title-brand {
  display: block;
  font-size: clamp(3.5rem, 13vw, 5.75rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.landing-hero__title-line2 {
  display: block;
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.03em;
  color: rgba(250, 251, 254, 0.96);
  margin-top: 0.1rem;
}

.landing-hero__title-mark {
  background: linear-gradient(118deg, #6effd4 0%, #3ee0b8 45%, #9ab8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.landing-hero__prose {
  margin: 0 auto clamp(2rem, 4vw, 2.5rem);
  max-width: 26.5rem;
  text-align: center;
}

.landing-hero__prose--align-start {
  text-align: left;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding: 0.85rem 0 0.85rem 1.1rem;
  border-left: 2px solid rgba(62, 224, 184, 0.4);
  box-sizing: border-box;
  background: linear-gradient(
    90deg,
    rgba(62, 224, 184, 0.06) 0%,
    transparent 55%
  );
  border-radius: 0 10px 10px 0;
}

.landing-hero__prose p {
  margin: 0;
  font-size: clamp(0.875rem, 1.5vw, 0.98rem);
  line-height: 1.72;
  color: rgba(148, 158, 179, 0.82);
  font-weight: 400;
}

.landing-hero__prose--align-start p {
  font-size: clamp(0.9rem, 1.55vw, 1.02rem);
  line-height: 1.75;
  max-width: 36em;
}

.landing-hero__prose--align-start p:first-child {
  color: rgba(200, 208, 222, 0.9);
  font-weight: 500;
}

.landing-hero__prose p + p {
  margin-top: 0.65rem;
}

.landing-hero__prose--align-start p + p {
  margin-top: 0.55rem;
  color: rgba(148, 158, 179, 0.78);
  font-weight: 400;
}

.landing-hero--editorial .landing-hero__cta {
  justify-content: flex-start;
}

.landing-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.landing-hero__btn-main {
  min-width: 10.5rem;
  padding-inline: 1.35rem;
  box-shadow:
    0 0 0 1px rgba(62, 224, 184, 0.35),
    0 16px 48px rgba(62, 224, 184, 0.18);
}

.landing-hero__btn-secondary {
  padding-inline: 1.35rem;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.landing-hero__trust {
  margin: clamp(1.5rem, 3vw, 2rem) auto 0;
  max-width: 34rem;
  padding: 0 0.25rem;
  font-size: clamp(0.875rem, 1.45vw, 0.95rem);
  line-height: 1.65;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(110, 210, 185, 0.92);
}

.landing-hero--editorial .landing-hero__trust {
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  text-align: left;
  max-width: 100%;
}

.landing-hero__meta-wrap {
  margin-top: clamp(1.15rem, 2.5vw, 1.5rem);
  padding-top: clamp(1.15rem, 2.2vw, 1.45rem);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
}

.landing-hero--editorial .landing-hero__meta-wrap {
  align-self: stretch;
}

.landing-hero__meta {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.65;
  letter-spacing: 0.02em;
  color: #7d879c;
}

.landing-hero--editorial .landing-hero__meta {
  text-align: left;
}

.landing-hero__meta a {
  color: #9ca8bf;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.landing-hero__meta a:hover {
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .landing-hero__glow {
    opacity: 0.55;
  }
}

/* 大画幅「产品窗口」 */
.landing-hero__showcase {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  perspective: 1200px;
}

.landing-showcase {
  margin: 0 auto;
  max-width: 920px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(20, 22, 32, 0.98) 0%, rgba(8, 9, 12, 0.99) 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 32px 80px rgba(0, 0, 0, 0.55),
    0 0 100px rgba(62, 224, 184, 0.05);
  overflow: hidden;
  transform: rotateX(4deg) scale(0.98);
  transform-origin: 50% 0;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.landing-showcase:hover {
  transform: rotateX(2deg) scale(1);
  box-shadow:
    0 0 0 1px rgba(62, 224, 184, 0.15),
    0 40px 100px rgba(0, 0, 0, 0.5),
    0 0 120px rgba(62, 224, 184, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .landing-showcase {
    transform: none;
  }

  .landing-showcase:hover {
    transform: none;
  }
}

@media (max-width: 639px) {
  .landing-showcase {
    transform: none;
    border-radius: 14px;
  }

  .landing-showcase:hover {
    transform: none;
  }
}

.landing-showcase__chrome {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.45);
}

.landing-showcase__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
}

.landing-showcase__dot--y {
  background: #febc2e;
}

.landing-showcase__dot--g {
  background: #28c840;
}

.landing-showcase__url {
  margin-left: auto;
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  color: #5a6278;
  letter-spacing: 0.02em;
}

.landing-showcase__body {
  display: grid;
  grid-template-columns: 52px 1fr;
  min-height: 220px;
}

@media (min-width: 640px) {
  .landing-showcase__body {
    min-height: 280px;
  }
}

.landing-showcase__rail {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  border-right: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.landing-showcase__rail span {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
}

.landing-showcase__rail span:nth-child(2) {
  width: 70%;
}

.landing-showcase__stage {
  padding: 1rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.landing-showcase__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.landing-showcase__pill {
  padding: 0.28rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #04120e;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  border-radius: 6px;
}

.landing-showcase__pill--dim {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.landing-showcase__canvas {
  flex: 1;
  position: relative;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(62, 224, 184, 0.08), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  overflow: hidden;
}

.landing-showcase__wave {
  position: absolute;
  inset: 0 0 auto 0;
  height: 42%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(62, 224, 184, 0.12) 30%,
    rgba(142, 180, 255, 0.1) 70%,
    transparent
  );
  opacity: 0.85;
  mask-image: linear-gradient(180deg, black, transparent);
}

.landing-showcase__tracks {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.landing-showcase__track {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.landing-showcase__track i {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  min-width: 0;
}

.landing-showcase__track--accent i {
  background: linear-gradient(90deg, rgba(62, 224, 184, 0.35), rgba(62, 224, 184, 0.08));
}

.landing-showcase__track i:nth-child(2) {
  flex: 0.6;
}

.landing-showcase__track i:nth-child(3) {
  flex: 0.4;
}

.landing-showcase__track i:nth-child(4) {
  flex: 0.55;
}

/* Bento 区块 */
.landing-section {
  padding-top: clamp(3rem, 8vw, 5rem);
}

.landing-section__label {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.85;
}

.landing-section__h {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.65rem;
}

.landing-section__sub {
  margin: 0 0 2rem;
  max-width: 34rem;
  color: var(--muted);
  line-height: 1.7;
}

.landing-section__foot {
  margin-top: 2rem;
  text-align: center;
}

.landing-bento {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .landing-bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .landing-bento__card--hero {
    grid-row: span 2;
  }

  .landing-bento__card--wide {
    grid-column: 1 / -1;
  }
}

.landing-bento__card {
  padding: 1.5rem 1.35rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.landing-bento__card:hover {
  border-color: rgba(62, 224, 184, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.landing-bento__card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--text);
}

.landing-bento__card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
}

.landing-bento__card--hero {
  background: linear-gradient(165deg, rgba(62, 224, 184, 0.08) 0%, var(--bg-elev) 45%);
  display: flex;
  flex-direction: column;
}

.landing-bento__fake-ui {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.4rem;
  flex: 1;
  align-items: flex-end;
}

.landing-bento__fake-ui span {
  flex: 1;
  height: 48px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.landing-bento__fake-ui span:nth-child(2) {
  flex: 1.4;
  background: linear-gradient(180deg, rgba(62, 224, 184, 0.15), rgba(62, 224, 184, 0.03));
}

/* 横向步骤卡 */
.landing-steps {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .landing-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .landing-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.landing-step {
  padding: 1.35rem 1.15rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.landing-step__n {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  color: rgba(62, 224, 184, 0.35);
  line-height: 1;
  margin-bottom: 0.65rem;
}

.landing-step__t {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
}

.landing-step__p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

.landing-step__code {
  font-size: 0.78em;
  word-break: break-all;
}

.section {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}
.section h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  color: var(--accent);
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.api-box {
  background: #0d1118;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  overflow-x: auto;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #b8c0d4;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps li {
  position: relative;
  padding: 1rem 0 1rem 3rem;
  border-bottom: 1px solid var(--border);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1rem;
  width: 2rem;
  height: 2rem;
  background: var(--accent);
  color: #04120e;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.case-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elev);
}
.case-card .ph {
  aspect-ratio: 16/10;
  background: linear-gradient(145deg, #1a1f2e, #252a3d);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.case-card .body {
  padding: 1rem 1.25rem;
}
.case-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}
.case-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}
.site-footer p {
  margin: 0;
}
.site-footer p + p {
  margin-top: 0.65rem;
}
.site-footer__icp a {
  color: var(--muted);
}
.site-footer__icp a:hover {
  color: var(--text);
}

/* Inner pages */
.page-inner .hero {
  padding-top: 2.5rem;
  text-align: left;
}
.page-inner .hero h1 {
  text-align: left;
}

/* Admin */
.page-admin-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
}
.admin-login-box {
  width: 100%;
  max-width: 360px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.admin-login-box h1 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}
.admin-login-box label {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.admin-login-box input[type="password"] {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}
.admin-login-box button {
  width: 100%;
  margin-top: 1.25rem;
  padding: 0.65rem;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: #04120e;
  font-weight: 600;
  cursor: pointer;
}
.admin-login-box .error {
  color: var(--danger);
  font-size: 0.9rem;
}

.page-admin .admin-top {
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.admin-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
}
.admin-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.admin-card h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
}
.admin-form label {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.admin-form input {
  width: 100%;
  max-width: 400px;
  margin-top: 0.25rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}
.admin-form button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: #04120e;
  font-weight: 600;
  cursor: pointer;
}
.notice {
  background: rgba(62, 224, 184, 0.12);
  border: 1px solid var(--accent-dim);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.table-wrap {
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.admin-table .sub-row td {
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.85rem;
}
.admin-table button {
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}
.admin-table .btn-danger {
  border-color: var(--danger);
  color: var(--danger);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1rem;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
  }
  .nav-links.is-open {
    display: flex;
  }
  .site-header {
    position: relative;
    flex-wrap: wrap;
  }
}

/* —— 首页启动页（科技感） —— */
html.splash-done #splash-screen {
  display: none !important;
}

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.splash-screen.splash--exit {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.splash-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: #000000;
}

.splash-grid {
  position: absolute;
  inset: -50%;
  background-image:
    linear-gradient(rgba(78, 240, 200, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 240, 200, 0.11) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(400px) rotateX(58deg);
  animation: splashGridDrift 22s linear infinite;
  opacity: 1;
  mask-image: radial-gradient(ellipse 72% 56% at 50% 48%, black 18%, transparent 85%);
}

@keyframes splashGridDrift {
  0% {
    transform: perspective(400px) rotateX(58deg) translateY(0);
  }
  100% {
    transform: perspective(400px) rotateX(58deg) translateY(56px);
  }
}

.splash-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.22;
  animation: splashOrbFloat 10s ease-in-out infinite;
}

.splash-orb--a {
  width: min(58vw, 480px);
  height: min(58vw, 480px);
  background: radial-gradient(circle, rgba(229, 57, 53, 0.22), transparent 68%);
  top: 12%;
  left: 14%;
  animation-delay: 0s;
}

.splash-orb--b {
  width: min(52vw, 440px);
  height: min(52vw, 440px);
  background: radial-gradient(circle, rgba(62, 224, 184, 0.14), transparent 72%);
  bottom: 8%;
  right: 12%;
  animation-delay: -4s;
}

@keyframes splashOrbFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(24px, -18px) scale(1.08);
  }
}

.splash-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(96vw, 720px);
  height: min(96vw, 720px);
  transform: translate(-50%, -50%);
  border: 1px solid rgba(100, 255, 210, 0.22);
  border-radius: 50%;
  animation: splashRingPulse 5s ease-in-out infinite;
  box-shadow:
    0 0 0 1px rgba(229, 57, 53, 0.14),
    0 0 42px rgba(62, 224, 184, 0.12),
    inset 0 0 100px rgba(62, 224, 184, 0.09);
}

@keyframes splashRingPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.94);
    opacity: 0.62;
  }
  50% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.splash-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.45) 3px,
    rgba(0, 0, 0, 0.45) 4px
  );
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: multiply;
  animation: splashScan 14s linear infinite;
}

@keyframes splashScan {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 400px;
  }
}

.splash-noise {
  position: absolute;
  inset: 0;
  opacity: 0.012;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: overlay;
}

.splash-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  max-width: min(96vw, 1200px);
}

.splash-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(4.25rem, 20vw, 11rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #ffffff;
  animation: splashTitleGlitch 10s linear 1;
}

.splash-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(72px) scale(0.82);
  filter: blur(14px);
  animation: splashCharIn 1.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(0.2s + var(--d) * 0.14s);
}

.splash-char--red {
  color: #ff3b35;
  text-shadow:
    0 0 32px rgba(255, 59, 53, 0.75),
    0 0 64px rgba(229, 57, 53, 0.35),
    0 0 120px rgba(229, 57, 53, 0.12);
}

@keyframes splashCharIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes splashTitleGlitch {
  0%,
  96%,
  100% {
    text-shadow: none;
    transform: translate(0, 0);
  }
  96.4% {
    text-shadow:
      4px 0 #e53935,
      -4px 0 #2ee0c5;
    transform: translate(-3px, 0);
  }
  96.7% {
    text-shadow:
      -3px 0 #e53935,
      3px 0 #2ee0c5;
    transform: translate(3px, 0);
  }
  97.1% {
    text-shadow: none;
    transform: translate(0, 0);
  }
}

.splash-tagline {
  margin: clamp(2rem, 5vw, 3.25rem) 0 0;
  overflow: hidden;
}

.splash-tagline-inner {
  display: inline-block;
  font-size: clamp(1.05rem, 3.6vw, 1.65rem);
  font-weight: 500;
  letter-spacing: 0.72em;
  color: #ffffff;
  padding-left: 0.72em;
  opacity: 0;
  transform: translateY(28px);
  animation: splashTagIn 1.35s cubic-bezier(0.22, 1, 0.36, 1) 1.4s forwards;
}

@keyframes splashTagIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.splash-hud {
  margin-top: clamp(3rem, 8vw, 4.5rem);
  max-width: min(92vw, 440px);
  margin-left: auto;
  margin-right: auto;
}

.splash-hud-label {
  display: block;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: clamp(0.72rem, 2vw, 0.88rem);
  letter-spacing: 0.55em;
  color: rgba(62, 224, 184, 0.42);
  margin-bottom: 0.75rem;
}

.splash-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.splash-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #e53935, #4af0c8, #3ee0b8);
  box-shadow: 0 0 20px rgba(62, 224, 184, 0.45);
  animation: splashProgress 10s cubic-bezier(0.25, 0.1, 0.15, 1) forwards;
}

@keyframes splashProgress {
  to {
    width: 100%;
  }
}

.splash-skip {
  position: absolute;
  bottom: clamp(1.25rem, 4vw, 2.25rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.5);
  font-size: clamp(0.8rem, 2.2vw, 0.95rem);
  letter-spacing: 0.28em;
  padding: 0.55rem 1.6rem;
  border-radius: 999px;
  cursor: pointer;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
}

.splash-skip:hover {
  color: #fff;
  border-color: rgba(62, 224, 184, 0.5);
  background: rgba(62, 224, 184, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .splash-grid,
  .splash-orb,
  .splash-ring,
  .splash-scanlines,
  .splash-char {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }

  .splash-title {
    animation: none;
  }

  .splash-tagline-inner {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .splash-progress-fill {
    animation: splashProgress 2.2s ease forwards;
    animation-delay: 0s;
  }
}

/* 用户注册 / 登录 / 法律文档 */
.muted {
  color: var(--muted);
}

.small {
  font-size: 0.88rem;
}

.auth-page .site-header {
  position: relative;
}

.auth-main {
  max-width: 480px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.auth-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
}

.auth-card h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
}

.auth-lead {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 1.25rem;
  line-height: 1.55;
}

.auth-error {
  color: var(--danger);
  font-size: 0.92rem;
  margin: 0 0 1rem;
}

.auth-form .form-row {
  margin-top: 1rem;
}

.auth-form label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
}

.form-fieldset {
  margin: 1.25rem 0 0;
  padding: 1rem 1rem 0.25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.form-fieldset legend {
  padding: 0 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.radio-row,
.checkbox-row {
  display: block;
  margin: 0.65rem 0;
  font-size: 0.92rem;
  color: var(--text);
  cursor: pointer;
}

.radio-row input,
.checkbox-row input {
  margin-right: 0.5rem;
  vertical-align: middle;
}

.auth-submit {
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.7rem 1rem;
  font-size: 1rem;
}

.auth-foot {
  margin: 1.25rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-main {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.legal-doc h1 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  margin: 0 0 1rem;
}

.legal-doc h2 {
  font-size: 1.1rem;
  margin: 2rem 0 0.65rem;
  color: var(--accent);
}

.legal-doc p {
  color: var(--muted);
  margin: 0 0 0.85rem;
  line-height: 1.7;
}

.legal-updated {
  font-size: 0.88rem;
  color: var(--muted);
}

.legal-back {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.download-main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.download-main .download-count {
  font-size: 0.9rem;
  margin: 0.75rem 0 0;
}

.download-main .download-count strong {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.account-main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.account-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 0.5rem;
}

.account-meta,
.account-hint {
  color: var(--muted);
  margin: 0.35rem 0 0;
}

.account-type-pill {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  background: rgba(62, 224, 184, 0.12);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

.account-notice {
  margin: 1rem 0;
}

.account-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem;
  margin-top: 1.5rem;
}

.account-card h2 {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
}

.account-api-box {
  margin-top: 0.75rem;
  word-break: break-all;
}

.license-code {
  font-size: 0.95rem;
  word-break: break-all;
}

.account-kv {
  list-style: none;
  margin: 0;
  padding: 0;
}
.account-kv li {
  display: grid;
  grid-template-columns: minmax(6rem, 9rem) 1fr;
  gap: 0.75rem 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.account-kv li:last-child {
  border-bottom: none;
}
.account-k {
  color: var(--muted);
}
.account-v {
  color: var(--text);
}
.account-v code {
  font-size: 0.9rem;
}
.account-row-warn {
  background: rgba(240, 113, 120, 0.08);
}
.account-row-soon {
  background: rgba(255, 193, 7, 0.06);
}

.account-activation-options {
  display: grid;
  gap: 1.25rem;
  margin-top: 1rem;
}
.account-activation-option {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.2);
}
.account-activation-option__t {
  font-size: 1rem;
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
}
.account-activation-form {
  margin-top: 0.75rem;
}
.account-admin-qr-slot {
  margin-top: 0.75rem;
}
.account-admin-qr-reveal {
  margin-top: 0.25rem;
}
.account-admin-qr-reveal[hidden] {
  display: none !important;
}
.account-admin-qr-img {
  display: block;
  max-width: min(280px, 100%);
  height: auto;
  margin-top: 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* 教程长文 */
.doc-main {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.page-inner .hero .lead {
  max-width: 42rem;
  line-height: 1.75;
  color: var(--muted);
}
.doc-toc {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0 2rem;
  font-size: 0.92rem;
}
.doc-toc ul {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}
.doc-section {
  margin-bottom: 2.5rem;
}
.doc-section h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
  padding-top: 0.5rem;
}
.doc-section h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.5rem;
  color: var(--text);
}
.doc-callout {
  border-left: 3px solid var(--accent);
  padding: 0.65rem 0 0.65rem 1rem;
  margin: 1rem 0;
  background: rgba(62, 224, 184, 0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.92rem;
  color: var(--muted);
}
.doc-steps {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}
.doc-steps li {
  margin-bottom: 0.5rem;
}
.admin-users-card {
  margin-top: 1.5rem;
}

.admin-expiry-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  max-width: 16rem;
}
.admin-expiry-form input[type="date"] {
  flex: 1;
  min-width: 8rem;
  font-size: 0.8rem;
  padding: 0.25rem 0.35rem;
}
.admin-expiry-form button {
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
}
