/* =========================================================
   易倍入口 — /assets/site.css
   深色科技蓝 · 荧光绿 · 信号橙 · 玻璃数据层
   ========================================================= */

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

:root {
  --deep-tech-blue: #0B1222;
  --glass-layer: #111A2E;
  --panel-deep: #16233A;
  --neon-green: #39FF88;
  --signal-orange: #FF7A29;
  --text-ice: #EAF2FF;
  --text-mist: #8FA2C0;
  --edge-gradient: #12264D;
  --live-red: #FF5D5D;
  --btn-hover: #2BBF6E;

  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --font-sans: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "Cascadia Code", Consolas, monospace;

  --container: 1240px;
  --radius: 12px;
  --header-z: 100;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-ice);
  background:
    radial-gradient(ellipse at 15% 0%, rgba(57, 255, 136, 0.05), transparent 40%),
    radial-gradient(ellipse at 85% 100%, rgba(255, 122, 41, 0.05), transparent 45%),
    var(--deep-tech-blue);
  min-height: 100vh;
  overflow-x: hidden;
}

::selection {
  background: rgba(57, 255, 136, 0.25);
  color: var(--text-ice);
}

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

a {
  color: var(--neon-green);
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--neon-green);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Skip link ---------- */
.site-skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 10px 20px;
  background: var(--neon-green);
  color: #06121F;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(57, 255, 136, 0.4);
  transform: translateY(-160%);
  transition: transform 0.25s ease;
}

.site-skip:focus {
  transform: translateY(0);
  color: #06121F;
}

/* ---------- Announcement bar ---------- */
.site-announce {
  background: var(--glass-layer);
  border-bottom: 1px solid rgba(57, 255, 136, 0.18);
}

.site-announce__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 9px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
}

.site-announce__status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 10px rgba(57, 255, 136, 0.8);
  flex: 0 0 8px;
  animation: announce-pulse 2s ease-in-out infinite;
}

.site-announce__text {
  flex: 1;
  color: var(--text-mist);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-announce__text strong {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--signal-orange);
}

.site-announce__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--neon-green);
  white-space: nowrap;
}

@keyframes announce-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--header-z);
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header[data-scrolled="true"] {
  background: rgba(11, 18, 34, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.32);
}

.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Reading progress */
.site-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 1200;
  background: linear-gradient(90deg, var(--neon-green), var(--signal-orange));
  box-shadow: 0 0 10px rgba(57, 255, 136, 0.45);
  transition: width 0.08s ease-out;
}

/* Masthead */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 0 20px;
  max-height: 240px;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease, opacity 0.25s ease;
}

.site-header[data-scrolled="true"] .masthead {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}

.masthead__side {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.masthead__side--left {
  align-items: flex-start;
}

.masthead__side--right {
  align-items: flex-end;
}

.masthead__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mist);
}

.masthead__eyebrow--accent {
  color: var(--neon-green);
  font-weight: 700;
}

.masthead__eyebrow-sub {
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(143, 162, 192, 0.55);
  white-space: nowrap;
}

.masthead__brand {
  flex: 0 0 auto;
  text-align: center;
  text-decoration: none;
  color: inherit;
  padding: 0 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.masthead__title {
  display: block;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  line-height: 1.18;
  letter-spacing: 0.06em;
  color: var(--text-ice);
  white-space: nowrap;
}

.masthead__tagline {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  color: var(--neon-green);
  margin-top: 6px;
  text-align: center;
}

/* Nav bar */
.site-nav__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(143, 162, 192, 0.22);
  border-bottom: 1px solid rgba(143, 162, 192, 0.22);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header[data-scrolled="true"] .site-nav__bar {
  border-color: rgba(57, 255, 136, 0.28);
}

.site-nav {
  display: flex;
  align-items: center;
}

.site-nav__list {
  display: flex;
  list-style: none;
  align-items: center;
}

.site-nav__item {
  position: relative;
}

.site-nav__link {
  display: block;
  padding: 13px 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--text-mist);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav__link:hover {
  color: var(--neon-green);
}

.site-nav__link[aria-current="page"] {
  color: var(--text-ice);
}

.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--neon-green), var(--signal-orange));
}

.site-nav__status {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  color: var(--live-red);
}

.site-nav__status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live-red);
  box-shadow: 0 0 8px rgba(255, 93, 93, 0.7);
  animation: announce-pulse 1.6s ease-in-out infinite;
}

.site-nav__toggle {
  display: none;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: #0A101E;
  border-top: 1px solid rgba(57, 255, 136, 0.3);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--neon-green) 25%, var(--signal-orange) 60%, transparent 100%);
  opacity: 0.6;
}

.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.8fr 1.3fr;
  gap: 40px;
}

.site-footer__brand-col,
.site-footer__col {
  min-width: 0;
}

.site-footer__logo {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-ice);
}

.site-footer__slogan {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--neon-green);
  margin-top: 6px;
}

.site-footer__desc {
  margin-top: 18px;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-mist);
  max-width: 34em;
}

.site-footer__heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal-orange);
  margin-bottom: 18px;
}

.site-footer__heading::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--signal-orange);
  transform: skewX(-20deg);
  flex: 0 0 6px;
}

.site-footer__list,
.site-footer__contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.site-footer__item {
  font-size: 0.9rem;
  line-height: 1.6;
}

.site-footer__link {
  display: inline-block;
  color: var(--text-mist);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.site-footer__link:hover {
  color: var(--neon-green);
  padding-left: 4px;
}

.site-footer__contact-list {
  gap: 13px;
}

.site-footer__contact-list .site-footer__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-mist);
  overflow-wrap: anywhere;
}

.site-footer__item-key {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--neon-green);
  flex: 0 0 auto;
  min-width: 42px;
  text-transform: uppercase;
}

.site-footer__bottom {
  border-top: 1px solid rgba(143, 162, 192, 0.16);
}

.site-footer__bottom-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-mist);
}

.site-footer__icp {
  color: var(--text-mist);
}

.site-footer__batch {
  color: rgba(57, 255, 136, 0.8);
}

/* ---------- Back to top ---------- */
.top-return {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(57, 255, 136, 0.45);
  background: rgba(17, 26, 46, 0.9);
  color: var(--neon-green);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.top-return[data-visible="true"] {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.top-return:hover {
  background: var(--neon-green);
  color: var(--deep-tech-blue);
  border-color: var(--neon-green);
}

.top-return__icon {
  display: block;
  line-height: 1;
  transform: translateY(-1px);
}

/* ---------- Shared components ---------- */
.content-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 76px 0;
}

.section--tight {
  padding: 48px 0;
}

.page-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 2.8rem);
  line-height: 1.2;
  color: var(--text-ice);
  letter-spacing: 0.03em;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.6rem);
  line-height: 1.3;
  color: var(--text-ice);
}

.section-sub {
  font-size: 1rem;
  color: var(--text-mist);
  margin-top: 8px;
}

.section-number {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 1;
  color: rgba(57, 255, 136, 0.18);
  -webkit-text-stroke: 1px rgba(57, 255, 136, 0.35);
  letter-spacing: -0.06em;
  user-select: none;
}

.glass-card {
  background: rgba(17, 26, 46, 0.55);
  border: 1px solid rgba(143, 162, 192, 0.16);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.glass-card:hover {
  border-color: rgba(57, 255, 136, 0.4);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.display-number {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--neon-green);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn--primary {
  background: var(--neon-green);
  color: #06121F;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--btn-hover);
  box-shadow: 0 6px 24px rgba(57, 255, 136, 0.25);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(143, 162, 192, 0.5);
  color: var(--text-ice);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--neon-green);
  color: var(--neon-green);
  background: rgba(57, 255, 136, 0.06);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 14px 0;
  font-size: 0.85rem;
  color: var(--text-mist);
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: "/";
  font-family: var(--font-mono);
  color: rgba(143, 162, 192, 0.35);
}

.breadcrumb a {
  color: var(--text-mist);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--neon-green);
}

.breadcrumb [aria-current="page"] {
  color: var(--text-ice);
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(22, 35, 58, 0.7), rgba(17, 26, 46, 0.9));
  border: 1px solid rgba(143, 162, 192, 0.14);
  aspect-ratio: 16 / 9;
}

.media-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.media-frame:hover img {
  transform: scale(1.03);
}

.media-frame--21x9 {
  aspect-ratio: 21 / 9;
}

.media-frame--4x3 {
  aspect-ratio: 4 / 3;
}

.media-frame--1x1 {
  aspect-ratio: 1 / 1;
}

.divider {
  height: 1px;
  border: none;
  background: linear-gradient(90deg, rgba(57, 255, 136, 0.4), rgba(57, 255, 136, 0.05));
  margin: 32px 0;
}

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal][data-revealed="true"] {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

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

@media (max-width: 960px) {
  .site-nav__status {
    display: none;
  }

  .site-nav__toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(17, 26, 46, 0.6);
    border: 1px solid rgba(143, 162, 192, 0.35);
    border-radius: 8px;
    color: var(--text-ice);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
  }

  .site-nav__toggle:hover {
    border-color: var(--neon-green);
    color: var(--neon-green);
  }

  .site-nav__toggle-bars {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .site-nav__toggle-line {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .site-nav__toggle[aria-expanded="true"] .site-nav__toggle-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .site-nav__toggle[aria-expanded="true"] .site-nav__toggle-line:nth-child(2) {
    opacity: 0;
  }

  .site-nav__toggle[aria-expanded="true"] .site-nav__toggle-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-nav__toggle-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.16em;
  }

  .site-nav__bar {
    flex-wrap: wrap;
    border-top: none;
    border-bottom: 1px solid rgba(143, 162, 192, 0.18);
  }

  .site-nav {
    width: 100%;
    display: none;
    padding: 6px 0 10px;
  }

  .site-nav[data-open="true"] {
    display: block;
    background: rgba(17, 26, 46, 0.96);
    border-radius: 0 0 12px 12px;
    padding: 6px 12px 12px;
  }

  .site-nav__list {
    flex-direction: column;
    width: 100%;
  }

  .site-nav__item {
    width: 100%;
    border-bottom: 1px solid rgba(143, 162, 192, 0.1);
  }

  .site-nav__item:last-child {
    border-bottom: none;
  }

  .site-nav__link {
    padding: 13px 8px;
  }

  .site-nav__link[aria-current="page"]::after {
    left: 8px;
    right: 8px;
    bottom: 0;
  }

  .masthead__side {
    display: none;
  }

  .masthead {
    justify-content: center;
    padding: 22px 0 16px;
  }

  .masthead__brand {
    border: none;
  }

  .masthead__title {
    font-size: clamp(1.5rem, 5.5vw, 2rem);
  }
}

@media (max-width: 640px) {
  .site-announce__meta {
    display: none;
  }

  .site-announce__inner {
    padding: 8px 16px;
  }

  .site-header__inner {
    padding: 0 16px;
  }

  .site-footer__inner {
    padding: 40px 16px 32px;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .site-footer__bottom-inner {
    padding: 14px 16px;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

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

  .top-return {
    right: 16px;
    bottom: 16px;
  }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
