@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&family=Share+Tech+Mono&display=swap');

:root {
  --ink: #1a1a2e;
  --ink-deep: #0c0c16;
  --ink-soft: #20203a;
  --red: #ff0000;
  --pink: #ff006e;
  --cyan: #00e5ff;
  --paper: #f7f3ff;
  --dim: #a9a4c9;
  --r: 28px;
  --pad: clamp(16px, 4vw, 44px);
  --mono: 'Share Tech Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

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

body {
  margin: 0;
  background: var(--ink-deep);
  background-image:
    radial-gradient(circle at 12% -10%, rgba(255, 0, 110, .22), transparent 55%),
    radial-gradient(circle at 92% 4%, rgba(0, 229, 255, .14), transparent 48%);
  background-repeat: no-repeat;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: .01em;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0) 0 2px, rgba(0, 0, 0, .3) 2px 4px);
  opacity: .5;
}

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

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--pink); }
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

h1, h2, h3 { font-weight: 400; line-height: 1.16; letter-spacing: .04em; margin: 0; }

h2 { font-size: clamp(22px, 3vw, 30px); color: #fff; }
h2 > span,
h3 > span {
  text-shadow: 0 0 14px rgba(255, 0, 0, .85), 0 0 36px rgba(255, 0, 110, .5);
}

::selection { background: var(--pink); color: #0c0c16; }

/* ---------- 顶部细条 ---------- */
.ticker {
  background: var(--pink);
  color: #0c0c16;
  font-size: 16px;
  letter-spacing: .28em;
  overflow: hidden;
  border-bottom: 2px solid #0c0c16;
}

.ticker-track {
  display: flex;
  gap: 44px;
  padding: 7px 0;
  white-space: nowrap;
  width: max-content;
  animation: slide 26s linear infinite;
}

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 页头 ---------- */
.mast {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  gap: 6px;
  padding: 10px var(--pad) 8px;
  background: rgba(12, 12, 22, .95);
  border-bottom: 1px solid rgba(255, 0, 110, .4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  width: fit-content;
  max-width: 100%;
  color: var(--paper);
  font-size: clamp(17px, 2.4vw, 24px);
  letter-spacing: .2em;
  text-shadow: 0 0 14px rgba(255, 0, 110, .85);
}

.brand:hover { color: #fff; }

.mk-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 8px;
  background: var(--red);
  color: #0c0c16;
  font-size: 17px;
  line-height: 1;
  font-weight: 400;
  box-shadow: 0 0 16px rgba(255, 0, 0, .8);
}

.menu ol {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0 0 2px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--pink) transparent;
}

.menu ol::-webkit-scrollbar { height: 4px; }
.menu ol::-webkit-scrollbar-thumb { background: var(--pink); }

.menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  white-space: nowrap;
  color: var(--dim);
  font-size: 16px;
  border-radius: 10px;
  transition: background .18s ease, color .18s ease;
}

.menu a:hover,
.menu a:focus-visible {
  background: var(--pink);
  color: #0c0c16;
}

/* ---------- 首屏 ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  min-height: 70vh;
  padding: clamp(26px, 6vw, 62px) var(--pad);
  background-image:
    radial-gradient(circle, rgba(255, 0, 110, .3) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 0, 0, .12), transparent 70%);
  background-size: 22px 22px, 100% 100%;
}

.hero-art {
  margin: 0;
  overflow: hidden;
  min-height: 240px;
  aspect-ratio: 4 / 3;
  border-radius: var(--r);
  background: var(--ink);
  box-shadow: 0 0 0 2px rgba(255, 0, 110, .55), 0 0 46px rgba(255, 0, 110, .28);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15) contrast(1.06);
  will-change: transform;
}

.art-grid {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--ink);
  background-image:
    linear-gradient(rgba(0, 229, 255, .2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 110, .22) 1px, transparent 1px),
    radial-gradient(circle at 50% 62%, rgba(255, 0, 110, .5), transparent 66%);
  background-size: 26px 26px, 26px 26px, 100% 100%;
}

.hero-copy { text-align: right; }

.hero-copy h1 {
  font-size: clamp(30px, 6.4vw, 66px);
  color: #fff;
  text-shadow: 3px 0 var(--red), -3px 0 var(--cyan), 0 0 34px rgba(255, 0, 110, .6);
  animation: jit 7s steps(2, end) infinite;
}

@keyframes jit {
  0%, 90%, 100% { transform: none; }
  93% { transform: skewX(-2deg) translateX(1px); }
  97% { transform: skewX(2deg) translateX(-1px); }
}

.lede {
  margin: 16px 0 22px auto;
  max-width: 34ch;
  color: var(--dim);
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  letter-spacing: .18em;
  box-shadow: 0 0 26px rgba(255, 0, 0, .6);
  transition: background .18s ease, color .18s ease;
}

.cta:hover { background: var(--pink); color: #0c0c16; }

/* ---------- 正文骨架 ---------- */
.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: clamp(20px, 3vw, 40px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 56px) var(--pad) clamp(30px, 6vw, 64px);
}

.stage { min-width: 0; }

.prose { font-size: 17px; }

.prose > * { margin: 0 0 20px; }
.prose > *:last-child { margin-bottom: 0; }

.prose > section {
  padding: clamp(18px, 3vw, 32px);
  border-radius: var(--r);
  background: var(--ink-soft);
  scroll-margin-top: 150px;
}

.prose > section:nth-of-type(even) { background: #26263f; }

.prose h2 { margin-bottom: 14px; }

.prose h2::before {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-bottom: 14px;
  background: var(--red);
  box-shadow: 0 0 14px var(--red);
}

.prose h3 {
  font-size: 20px;
  color: var(--cyan);
  margin: 22px 0 10px;
  letter-spacing: .06em;
}

.prose p,
.prose li { line-height: 1.85; }

.prose p { margin: 0 0 16px; }

.prose ul,
.prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--pink); }

.prose a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(0, 229, 255, .5);
}

.prose a:hover { color: var(--pink); border-bottom-color: var(--pink); }

.prose strong { color: #fff; font-weight: 500; }

.prose blockquote {
  margin: 0 0 18px;
  padding: 12px 18px;
  border-left: 3px solid var(--pink);
  border-radius: 0 18px 18px 0;
  background: rgba(255, 0, 110, .1);
  color: var(--dim);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
  font-size: 16px;
}

.prose th,
.prose td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(169, 164, 201, .25);
  vertical-align: top;
}

.prose th { color: var(--cyan); font-weight: 400; }

.prose :is(h2, h3, p, li, blockquote, td)[id] { scroll-margin-top: 150px; }

/* ---------- 侧栏 ---------- */
.rail {
  position: sticky;
  top: 150px;
  align-self: start;
  padding: 18px;
  border-radius: var(--r);
  background: #16162a;
  box-shadow: inset 0 0 0 1px rgba(255, 0, 110, .28);
}

.rail h2 { font-size: 18px; letter-spacing: .22em; color: var(--cyan); }

.rail-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 6px;
  color: var(--dim);
  font-size: 16px;
  border-radius: 8px;
}

.rail-list a:hover { color: var(--cyan); background: rgba(0, 229, 255, .1); }

.rail-top { margin: 12px 0 0; }

.rail-top a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--pink);
  font-size: 16px;
}

/* ---------- 页脚 ---------- */
.foot {
  margin-top: 20px;
  padding: clamp(28px, 5vw, 52px) var(--pad) 0;
  background: #0a0a13;
  border-top: 2px solid var(--pink);
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 32px);
  max-width: 1180px;
  margin: 0 auto;
}

.foot h2 {
  font-size: 16px;
  letter-spacing: .24em;
  color: var(--cyan);
  margin-bottom: 10px;
}

.foot address {
  font-style: normal;
  color: var(--paper);
  letter-spacing: .08em;
  line-height: 1.8;
}

.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.foot li a {
  display: flex;
  align-items: center;
  min-height: 40px;
  color: var(--dim);
  font-size: 16px;
}

.foot li a:hover { color: var(--pink); }

.sub { display: grid; gap: 8px; }

.sub input {
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  background: #20203a;
  color: var(--paper);
  font: inherit;
  font-size: 16px;
}

.sub input::placeholder { color: #7d789c; }

.sub button {
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--pink);
  color: #0c0c16;
  font: inherit;
  letter-spacing: .2em;
  cursor: pointer;
}

.sub button:hover { background: var(--red); color: #fff; }

.foot-base {
  max-width: 1180px;
  margin: 26px auto 0;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 0, 110, .3);
  text-align: center;
  color: var(--dim);
  font-size: 16px;
  letter-spacing: .12em;
}

.foot-base p { margin: 0; }

/* ---------- 断点 ---------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-top: 22px;
  }

  .hero-art { aspect-ratio: 16 / 10; }

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

  .rail { position: static; }

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

  .prose > section { scroll-margin-top: 132px; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }

  .hero-copy h1 { font-size: clamp(28px, 8.4vw, 40px); }

  .lede { margin-left: auto; }

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

  .ticker { font-size: 15px; letter-spacing: .2em; }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .ticker-track { animation: none; transform: none; }
}

button[aria-expanded]{min-width:44px;min-height:44px}
