:root {
  --bg: #090909;
  --panel: #101010;
  --panel-2: #141414;
  --line: #2a2a2a;
  --line-strong: #3a3a3a;
  --text: #e8e8e8;
  --muted: #8a8a8a;
  --accent: #a8ff60;
  --max-width: 1180px;
  --radius: 18px;
  --shadow: 0 0 0 1px rgba(255,255,255,0.02), 0 18px 60px rgba(0,0,0,0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: 0.01em;
  cursor: none;
}

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

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at center, black 50%, transparent 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(168,255,96,0.03) 4px
  );
}

.cursor-orb {
  position: fixed;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(168,255,96,0.82);
  box-shadow: 0 0 24px rgba(168,255,96,0.10);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}

.container {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.panel-surface,
.script-card,
.info-card,
.floating-panel,
.top-module {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0));
  box-shadow: var(--shadow);
}

.panel-surface::after,
.script-card::after,
.info-card::after,
.floating-panel::after,
.top-module::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(168,255,96,0.04);
  pointer-events: none;
}

.eyebrow,
.brand-en,
.subtitle,
.signal-line,
.floating-code,
.floating-panel a,
.download-btn,
.panel-link,
.footer-inner,
summary,
.nav-en {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.top-module-wrap {
  position: sticky;
  top: 16px;
  z-index: 25;
  padding-top: 16px;
}

.top-module {
  width: fit-content;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 20px;
  background: rgba(16,16,16,0.92);
  backdrop-filter: blur(10px);
}

.nav-chip {
  min-width: 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: #d7d7d7;
  background: rgba(255,255,255,0.01);
  border: 1px solid var(--line-strong);
}

.nav-chip.is-active {
  background: rgba(168,255,96,0.92);
  color: #0f1208;
  border-color: rgba(168,255,96,0.45);
}

.nav-cn {
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-en {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  opacity: 0.9;
}

.home-main,
.scripts-main {
  position: relative;
  z-index: 1;
}

.home-hero,
.scripts-hero {
  padding: 44px 0 36px;
}

.home-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: stretch;
}

.home-copy,
.signal-panel,
.scripts-hero-inner,
.info-card,
.script-card {
  border-radius: 24px;
}

.home-copy {
  padding: 34px;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 9vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.scripts-page-title {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: 0.04em;
}

.subtitle {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.intro {
  margin: 24px 0 0;
  max-width: 680px;
  color: #b7b7b7;
  line-height: 1.95;
  font-size: 1.02rem;
}

.home-actions,
.download-summary {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
  align-items: center;
}

.panel-link,
.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  text-decoration: none;
  color: #d7d7d7;
  background: rgba(255,255,255,0.01);
}

.panel-link.strong,
.download-btn {
  color: #101010;
  background: var(--accent);
  border-color: rgba(168,255,96,0.4);
}

.signal-panel {
  min-height: 500px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  overflow: hidden;
}

.signal-panel::before,
.signal-panel::after,
.terrain {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.signal-panel::before {
  background:
    radial-gradient(circle at 22% 32%, rgba(168,255,96,0.16) 0 2px, transparent 3px),
    radial-gradient(circle at 64% 58%, rgba(168,255,96,0.16) 0 2px, transparent 3px),
    radial-gradient(circle at 76% 24%, rgba(168,255,96,0.16) 0 2px, transparent 3px);
  opacity: 0.8;
}

.signal-panel::after {
  background-image:
    radial-gradient(ellipse at center, transparent 52%, rgba(168,255,96,0.12) 53%, transparent 54%),
    radial-gradient(ellipse at center, transparent 58%, rgba(168,255,96,0.08) 59%, transparent 60%),
    radial-gradient(ellipse at center, transparent 66%, rgba(168,255,96,0.06) 67%, transparent 68%);
  transform: scale(1.15) translateX(10%);
  opacity: 0.7;
}

.terrain {
  z-index: 0;
  opacity: 0.42;
}

.terrain-a {
  background-image:
    radial-gradient(ellipse at 20% 30%, transparent 55%, rgba(168,255,96,0.08) 56%, transparent 57%),
    radial-gradient(ellipse at 20% 30%, transparent 62%, rgba(168,255,96,0.06) 63%, transparent 64%),
    radial-gradient(ellipse at 20% 30%, transparent 70%, rgba(168,255,96,0.05) 71%, transparent 72%);
  transform: scale(1.2);
}

.terrain-b {
  background-image:
    radial-gradient(ellipse at 78% 72%, transparent 60%, rgba(168,255,96,0.06) 61%, transparent 62%),
    radial-gradient(ellipse at 78% 72%, transparent 68%, rgba(168,255,96,0.05) 69%, transparent 70%);
  transform: scale(1.1);
}

.signal-line {
  position: relative;
  z-index: 1;
  color: rgba(168,255,96,0.88);
  letter-spacing: 0.12em;
  font-size: 0.92rem;
}

.scripts-hero-inner,
.info-card,
.script-card {
  padding: 26px;
}

.scripts-intro { max-width: 960px; }
.scripts-section { padding: 0 0 26px; }

.stacked-info {
  display: grid;
  gap: 18px;
}

.wide-info {
  width: 100%;
}

.info-card h2,
.script-topline h2 {
  margin: 0;
  font-size: 1.4rem;
}

.info-block { margin-top: 18px; }
.info-block h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}
.info-block p {
  margin: 0 0 12px;
  color: #b7b7b7;
  line-height: 1.85;
}

.masonry-grid {
  column-count: 2;
  column-gap: 18px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 18px;
}

.script-card {
  overflow: hidden;
  padding: 0;
  background-color: var(--panel-2);
}

.script-shot {
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: #0c0c0c;
}

.contain-shot {
  object-fit: contain;
  height: auto;
  max-height: none;
}

.launcher-shot {
  max-height: 360px;
  width: 100%;
  object-fit: contain;
  background: #0b0b0b;
}

.script-card-body {
  padding: 22px;
}

.script-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.script-summary {
  margin: 14px 0 0;
  color: #b7b7b7;
  line-height: 1.8;
}

summary {
  cursor: pointer;
  margin-top: 16px;
  color: var(--accent);
}

.detail-copy {
  margin-top: 12px;
  color: #b7b7b7;
}

.detail-copy p {
  margin: 0 0 12px;
  line-height: 1.9;
}

.floating-panel {
  position: fixed;
  left: 22px;
  top: 58%;
  transform: translateY(-50%);
  z-index: 20;
  display: grid;
  gap: 8px;
  width: 176px;
  padding: 14px;
  border-radius: 18px;
  background-color: rgba(16,16,16,0.92);
  backdrop-filter: blur(10px);
}

.floating-code {
  color: rgba(168,255,96,0.72);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}

.floating-panel a {
  text-decoration: none;
  color: #d7d7d7;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.84rem;
  background: rgba(255,255,255,0.01);
}

.site-footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 18px 0 28px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
}

.beian-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.beian-link:hover {
  color: var(--accent);
}

@media (hover: none), (pointer: coarse) {
  body { cursor: auto; }
  .cursor-orb { display: none; }
}

@media (max-width: 1100px) {
  .home-grid,
  .masonry-grid {
    column-count: 1;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .top-module {
    width: calc(100% - 28px);
    justify-content: center;
  }

  .nav-chip {
    min-width: 0;
    flex: 1;
  }

  .floating-panel {
    left: 14px;
    right: 14px;
    bottom: 14px;
    top: auto;
    width: auto;
    transform: none;
  }

  .site-footer {
    padding-bottom: 108px;
  }
}

@media (max-width: 640px) {
  .home-hero,
  .scripts-hero {
    padding-top: 28px;
  }

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

  .home-copy,
  .signal-panel,
  .scripts-hero-inner,
  .info-card,
  .script-card-body {
    padding: 20px;
  }

  h1 {
    font-size: 3rem;
  }

  .script-topline,
  .footer-inner,
  .top-module {
    flex-direction: column;
    align-items: stretch;
  }
}
