:root {
  --bg: #07101d;
  --bg-strong: #020711;
  --panel: rgba(10, 22, 38, 0.74);
  --panel-solid: #101b2b;
  --line: rgba(149, 190, 222, 0.22);
  --line-strong: rgba(117, 202, 255, 0.45);
  --text: #eef7ff;
  --muted: #9eb0c5;
  --dim: #70849b;
  --cyan: #3ed5ff;
  --blue: #5a89ff;
  --amber: #ffbe63;
  --green: #6ee7b7;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.46);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 20%, rgba(62, 213, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 88% 12%, rgba(255, 190, 99, 0.12), transparent 26rem),
    linear-gradient(180deg, var(--bg-strong), var(--bg) 42%, #080d16 100%);
  font-family:
    "Inter", "SF Pro Display", "Microsoft YaHei", "PingFang SC", "Segoe UI",
    Arial, sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 82%);
}

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

a {
  text-decoration: none;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  padding: 18px clamp(18px, 4vw, 56px);
  color: rgba(238, 247, 255, 0.92);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
  border-bottom: 1px solid var(--line);
  background: rgba(4, 10, 18, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  min-width: 0;
  font-weight: 700;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: #07101d;
  background: linear-gradient(135deg, var(--cyan), var(--amber));
  box-shadow: 0 0 32px rgba(62, 213, 255, 0.24);
}

.site-nav {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 16, 29, 0.42);
}

.site-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.header-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  background: rgba(62, 213, 255, 0.1);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  padding: 112px clamp(20px, 5vw, 72px) 56px;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
  filter: saturate(1.08) contrast(1.05);
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 7, 17, 0.94) 0%, rgba(4, 12, 24, 0.84) 35%, rgba(4, 12, 24, 0.24) 70%),
    linear-gradient(180deg, rgba(2, 7, 17, 0.22), rgba(2, 7, 17, 0.88));
}

#signal-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.42;
}

.hero-content {
  width: min(720px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 9em;
  margin-bottom: 22px;
  font-size: clamp(56px, 9vw, 118px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 34px;
  color: rgba(238, 247, 255, 0.82);
  font-size: clamp(18px, 2vw, 23px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 46px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
}

.primary-button {
  color: #06101c;
  background: linear-gradient(135deg, var(--cyan), var(--amber));
  box-shadow: 0 18px 46px rgba(62, 213, 255, 0.24);
}

.secondary-button {
  gap: 8px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.thought-button {
  cursor: pointer;
}

.primary-button:hover,
.secondary-button:hover,
.header-action:hover {
  transform: translateY(-1px);
}

.thought-box {
  position: relative;
  width: min(620px, 100%);
  margin: -20px 0 28px;
  padding: 18px 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 16, 29, 0.56);
  backdrop-filter: blur(16px);
}

.thought-box::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  content: "";
  background: linear-gradient(var(--cyan), var(--amber));
}

.thought-box p {
  margin: 0;
  color: rgba(238, 247, 255, 0.78);
  font-size: 15px;
}

.thought-box.is-changing p {
  animation: thoughtFlash 260ms ease;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(580px, 100%);
  margin: 0;
}

.hero-metrics div {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 16, 29, 0.58);
  backdrop-filter: blur(16px);
}

.hero-metrics dt {
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
}

.hero-metrics dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 96px clamp(20px, 5vw, 72px);
}

.intro-section,
.notes-section {
  background: rgba(255, 255, 255, 0.025);
}

.intro-grid,
.section-heading,
.signal-grid,
.timeline,
.about-panel,
.site-footer {
  width: min(var(--max), 100%);
  margin-inline: auto;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: end;
}

.intro-grid h2,
.section-heading h2,
.about-panel h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.08;
  letter-spacing: 0;
}

.intro-grid p,
.about-panel p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.signal-card {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    var(--panel);
  box-shadow: var(--shadow);
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.signal-card:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(255, 190, 99, 0.1), rgba(255, 255, 255, 0.025)),
    var(--panel);
}

.signal-card:nth-child(3) {
  background:
    linear-gradient(180deg, rgba(110, 231, 183, 0.1), rgba(255, 255, 255, 0.025)),
    var(--panel);
}

.signal-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.signal-card.is-open {
  border-color: var(--line-strong);
  background:
    linear-gradient(180deg, rgba(62, 213, 255, 0.12), rgba(255, 190, 99, 0.045)),
    var(--panel);
}

.card-toggle {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
  width: 100%;
  margin: 0 0 52px;
  padding: 0;
  text-align: left;
  cursor: pointer;
  border: 0;
  background: transparent;
}

.card-index {
  display: inline-flex;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.card-title {
  grid-column: 1 / -1;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}

.card-plus {
  display: grid;
  grid-row: 1 / 3;
  grid-column: 2;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--amber);
  transition: transform 180ms ease;
}

.signal-card.is-open .card-plus {
  transform: rotate(45deg);
}

.signal-card h3,
.note-item h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.25;
}

.signal-card p,
.note-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.card-detail {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 220ms ease,
    opacity 180ms ease,
    margin-top 180ms ease;
}

.card-detail > p {
  overflow: hidden;
}

.signal-card.is-open .card-detail {
  grid-template-rows: 1fr;
  margin-top: 18px;
  opacity: 1;
}

.timeline {
  border-top: 1px solid var(--line);
}

.note-item {
  border-bottom: 1px solid var(--line);
}

.note-head {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  width: 100%;
  padding: 28px 0;
  text-align: left;
  cursor: pointer;
  border: 0;
  background: transparent;
}

.note-head span {
  position: relative;
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}

.note-head span::after {
  margin-left: 12px;
  color: var(--cyan);
  font-size: 16px;
  content: "展开";
}

.note-item.is-open .note-head span::after {
  content: "收起";
}

.note-item time {
  color: var(--amber);
  font-weight: 900;
}

.note-body {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 220ms ease,
    opacity 180ms ease;
}

.note-body > p {
  max-width: 780px;
  margin: 0 0 28px 184px;
  overflow: hidden;
}

.note-item.is-open .note-body {
  grid-template-rows: 1fr;
  opacity: 1;
}

.about-section {
  padding-bottom: 112px;
}

.about-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 0.65fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(62, 213, 255, 0.12), transparent 42%),
    linear-gradient(315deg, rgba(255, 190, 99, 0.13), transparent 46%),
    var(--panel-solid);
  box-shadow: var(--shadow);
}

.text-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  width: fit-content;
  color: var(--cyan);
  font-weight: 900;
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px clamp(20px, 5vw, 72px) 34px;
  color: var(--dim);
  border-top: 1px solid var(--line);
}

.copyright {
  font-size: 13px;
}

.icp-link {
  color: rgba(112, 132, 155, 0.68);
  font-size: 11px;
  line-height: 1.4;
}

.icp-link:hover,
.icp-link:focus-visible {
  color: rgba(158, 176, 197, 0.9);
}

@keyframes thoughtFlash {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

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

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

  .site-nav {
    display: none;
  }

  .intro-grid,
  .about-panel {
    grid-template-columns: 1fr;
  }

  .signal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand span:last-child {
    max-width: 8em;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-action {
    min-height: 38px;
    padding-inline: 12px;
  }

  .hero {
    min-height: 92vh;
    padding: 96px 18px 40px;
  }

  .hero-media img {
    object-position: 70% center;
  }

  .hero-media::after {
    background:
      linear-gradient(90deg, rgba(2, 7, 17, 0.92), rgba(4, 12, 24, 0.62)),
      linear-gradient(180deg, rgba(2, 7, 17, 0.08), rgba(2, 7, 17, 0.9));
  }

  h1 {
    font-size: 54px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .hero-metrics,
  .signal-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics div {
    padding: 14px;
  }

  .section {
    padding: 72px 18px;
  }

  .section-heading {
    display: block;
  }

  .note-item {
    display: block;
  }

  .note-head {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 24px 0;
  }

  .note-body > p {
    margin-left: 0;
  }

  .about-panel {
    padding: 24px;
  }

  .site-footer {
    padding-inline: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  #signal-canvas {
    display: none;
  }
}
