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

:root {
  --ink: #101A2B;
  --ink2: #0B1320;
  --ink3: #16233A;
  --line: #22314C;
  --cy: #00C2D1;
  --or: #FF6B35;
  --txt: #DCE8F0;
  --mut: #93A9BC;
  --rail: 128px;
  --tick: 38px;
  --mono: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

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

body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
address,
form,
figure { margin: 0; padding: 0; }

ul,
ol { list-style: none; }

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

a { color: inherit; text-decoration: none; }

body {
  font-family: 'Exo', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--ink);
  color: var(--txt);
  font-size: 17px;
  line-height: 1.7;
  padding-left: var(--rail);
  padding-top: var(--tick);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--or);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--cy);
  outline-offset: 2px;
}

/* ---------- 顶部细条 ---------- */
.ticker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--tick);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  background: var(--or);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .14em;
  overflow: hidden;
}

.ticker-tag {
  width: 8px;
  height: 8px;
  background: var(--ink);
  transform: skewX(-20deg);
}

.ticker-name { white-space: nowrap; }

.ticker-cut {
  flex: 1;
  height: 8px;
  max-width: 220px;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  opacity: .85;
}

/* ---------- 左侧竖排导航 ---------- */
.rail {
  position: fixed;
  top: var(--tick);
  left: 0;
  bottom: 0;
  width: var(--rail);
  z-index: 30;
  display: flex;
  flex-direction: column;
  padding: 18px 0 24px;
  background: var(--ink2);
  border-right: 2px solid var(--line);
  overflow-y: auto;
}

.brand {
  width: 46px;
  height: 46px;
  margin: 0 auto 6px;
  display: grid;
  place-items: center;
  background: var(--cy);
  color: var(--ink);
  border-radius: 4px;
  transition: background 160ms ease;
}

.brand:hover { background: var(--or); }

.brand-mark {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.brand-letter {
  font-family: 'Exo', sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.rail-title {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--mut);
  padding: 0 16px;
  margin: 18px 0 6px;
}

.rail-title > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tick {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--or);
  transform: skewX(-20deg);
}

.rail-nav ul { display: flex; flex-direction: column; }

.rail-nav li a {
  display: block;
  padding: 12px 16px;
  min-height: 46px;
  font-size: 16px;
  line-height: 1.35;
  color: #C4D6E4;
  border-left: 3px solid transparent;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.rail-nav li a:hover {
  background: var(--ink3);
  color: var(--cy);
  border-left-color: var(--or);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 45vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 76px 32px 72px;
  background: var(--ink3);
  clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .32;
}

.hero-ghost {
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-family: 'Exo', sans-serif;
  font-weight: 700;
  font-size: clamp(56px, 11vw, 168px);
  line-height: .8;
  letter-spacing: -.02em;
  color: transparent;
  -webkit-text-stroke: 2px #2C3E5C;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.hero-copy {
  position: relative;
  max-width: 620px;
  margin-left: auto;
  text-align: right;
}

.hero-copy h1 {
  font-size: clamp(26px, 4.6vw, 52px);
  line-height: 1.16;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.01em;
}

.hero-desc {
  margin-top: 14px;
  margin-left: auto;
  max-width: 42ch;
  font-size: 17px;
  line-height: 1.65;
  color: #B9CBDB;
}

/* ---------- 正文 ---------- */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 46px 32px 0;
}

.prose article {
  position: relative;
  background: var(--ink3);
  border-radius: 10px;
  border-left: 4px solid var(--cy);
  padding: 26px 30px 30px;
  margin-bottom: 18px;
  scroll-margin-top: 112px;
  animation: rise 420ms ease both;
}

.prose article:nth-child(1) { animation-delay: 0ms; }
.prose article:nth-child(2) { animation-delay: 50ms; }
.prose article:nth-child(3) { animation-delay: 100ms; }
.prose article:nth-child(4) { animation-delay: 150ms; }
.prose article:nth-child(5) { animation-delay: 200ms; }
.prose article:nth-child(6) { animation-delay: 250ms; }
.prose article:nth-child(7) { animation-delay: 300ms; }
.prose article:nth-child(n+8) { animation-delay: 340ms; }

.prose article:nth-of-type(even) { border-left-color: var(--or); }

.prose h2,
.prose h3,
.prose h4 {
  color: #EFF8FB;
  line-height: 1.35;
  margin: 0 0 14px;
}

.prose h2 {
  font-size: 23px;
  font-weight: 700;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.prose h2::before {
  content: '';
  flex: none;
  width: 13px;
  height: 13px;
  background: var(--or);
  transform: skewX(-20deg);
}

.prose h3 {
  font-size: 19px;
  color: var(--cy);
  margin-top: 24px;
}

.prose p { margin: 0 0 14px; color: #C8D8E5; }

.prose p:last-child { margin-bottom: 0; }

.prose strong { color: #fff; }

.prose a {
  color: var(--cy);
  border-bottom: 1px solid rgba(0, 194, 209, .45);
  transition: color 160ms ease, border-color 160ms ease;
}

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

.prose ul,
.prose ol {
  margin: 0 0 14px;
  padding-left: 4px;
}

.prose ul li,
.prose ol li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  color: #C8D8E5;
}

.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 9px;
  height: 9px;
  background: var(--cy);
  transform: skewX(-20deg);
}

.prose ol { counter-reset: pro; }

.prose ol li::before {
  counter-increment: pro;
  content: counter(pro);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--or);
}

.prose blockquote {
  margin: 0 0 14px;
  padding: 14px 18px;
  background: var(--ink2);
  border-left: 4px solid var(--or);
  border-radius: 4px;
  color: #B9CBDB;
}

.prose img { border-radius: 10px; margin: 6px 0 16px; }

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

.prose figcaption {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--mut);
  margin-top: 8px;
}

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

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 9px 12px;
  text-align: left;
}

.prose th { background: var(--ink2); color: var(--cy); }

/* ---------- 页脚 ---------- */
.foot {
  margin-top: 56px;
  padding: 44px 32px 22px;
  background: var(--ink2);
  border-top: 2px solid var(--line);
}

.foot-cols {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.2fr;
  gap: 30px;
}

.foot h2 {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--cy);
  margin-bottom: 12px;
}

.foot h2 > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 16px;
  color: #A8BCCD;
  line-height: 1.6;
}

.addr-brand { color: #E4EFF5; font-weight: 600; }

.addr-host { font-family: var(--mono); font-size: 14px; color: var(--mut); }

.foot-list li a {
  display: block;
  padding: 9px 0;
  min-height: 42px;
  font-size: 16px;
  color: #BFD1DF;
  transition: color 160ms ease, padding-left 160ms ease;
}

.foot-list li a:hover {
  color: var(--or);
  padding-left: 6px;
}

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

.sub-input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 16px;
  color: var(--txt);
  background: var(--ink);
  border: 2px solid var(--line);
  border-radius: 4px;
}

.sub-input::placeholder { color: #6E8298; }

.sub-input:focus {
  border-color: var(--cy);
  outline: none;
}

.sub-btn {
  min-height: 46px;
  padding: 0 20px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  background: var(--or);
  border: 2px solid var(--or);
  border-radius: 4px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.sub-btn:hover {
  background: var(--cy);
  border-color: var(--cy);
}

.copyright {
  max-width: 1000px;
  margin: 34px auto 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 14px;
  color: #6E8298;
}

/* ---------- 回到顶部 ---------- */
.btt {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  background: var(--cy);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  border-radius: 4px;
  transition: background 160ms ease;
}

.btt:hover { background: var(--or); }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 窄屏 ---------- */
@media (max-width: 880px) {
  :root { --rail: 0px; }

  body { padding-left: 0; padding-top: 0; }

  .ticker {
    position: static;
    height: auto;
    padding: 9px 16px;
    font-size: 13px;
  }

  .ticker-cut { max-width: 90px; }

  .rail {
    position: sticky;
    top: 0;
    bottom: auto;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-right: 0;
    border-bottom: 2px solid var(--line);
    overflow-x: auto;
    overflow-y: hidden;
  }

  .brand {
    flex: none;
    width: 42px;
    height: 42px;
    margin: 0 6px 0 0;
  }

  .rail-title { display: none; }

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

  .rail-nav ul {
    flex-direction: row;
    gap: 4px;
  }

  .rail-nav li a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0 12px;
    font-size: 16px;
    white-space: nowrap;
    border-left: 0;
    border-bottom: 3px solid transparent;
    border-radius: 4px;
  }

  .rail-nav li a:hover {
    border-left: 0;
    border-bottom-color: var(--or);
  }

  .hero {
    min-height: 340px;
    padding: 46px 20px 52px;
  }

  .hero-copy { max-width: 100%; }

  .hero-desc { font-size: 16px; max-width: 100%; }

  main { padding: 26px 16px 0; }

  .prose article {
    padding: 20px 18px 24px;
    scroll-margin-top: 76px;
  }

  .prose h2 { font-size: 21px; }

  .foot { padding: 34px 16px 18px; }

  .foot-cols {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .btt { right: 12px; bottom: 12px; }
}

@media (max-width: 380px) {
  .hero-ghost { font-size: 44px; }
  .ticker-cut { display: none; }
}

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

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

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