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

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

:root {
  --bg: #000000;
  --panel: #121212;
  --panel-2: #171b22;
  --midnight: #0d1526;
  --line: #1b2130;
  --ink: #eef1f7;
  --dim: #98a2b6;
  --blue: #6f93ff;
  --gold: #e6c37a;
  --violet: #9d7bff;
  --r: 4px;
  color-scheme: dark;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1220px 640px at 82% -14%, #0b1730 0%, rgba(11, 23, 48, 0) 62%),
    radial-gradient(860px 520px at 4% 108%, #0a1120 0%, rgba(10, 17, 32, 0) 60%),
    var(--bg);
  color: var(--ink);
  font-family: 'Nunito Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 {
  margin: 0 0 .55em;
  font-family: 'Varela Round', 'Nunito Sans', 'PingFang SC', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: .01em;
}

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

/* 顶部细条 */
.strip {
  background: linear-gradient(90deg, #0c1424 0%, #121212 55%, #17110a 100%);
  border-bottom: 1px solid var(--line);
}

.ticker {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 20px;
}

.mark {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--r);
  background: #10141a;
  border: 1px solid #202a3a;
  color: var(--blue);
  font-family: 'Varela Round', system-ui, sans-serif;
  font-size: 15px;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.mark img { width: 100%; height: 100%; object-fit: cover; }
.mark:hover { border-color: var(--blue); box-shadow: 0 0 14px rgba(111, 147, 255, .4); }

.slogan {
  font-size: 14px;
  letter-spacing: .26em;
  color: var(--blue);
  text-shadow: 0 0 10px rgba(111, 147, 255, .55);
}

/*  sticky 胶囊导航  */
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(0, 0, 0, .84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.pills > p {
  display: flex;
  gap: 8px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.pills > p::-webkit-scrollbar { display: none; }

.pills a {
  flex: 0 0 auto;
  padding: 11px 16px;
  border-radius: 999px;
  background: #131313;
  border: 1px solid #1e2532;
  color: #c4ccdb;
  font-size: 16px;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.pills a:hover {
  color: #ffffff;
  border-color: #31456f;
  background: #16202f;
  transform: translateY(-1px);
}

.pills a.on {
  background: linear-gradient(135deg, #17243f, #0e1830);
  border-color: #2d4168;
  color: #dde7ff;
  text-shadow: 0 0 10px rgba(111, 147, 255, .55);
}

/* 主体 */
main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 20px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  gap: 38px;
  align-items: center;
  min-height: 70vh;
  padding: 40px 0 58px;
}

.hero::after {
  content: "";
  position: absolute;
  left: -20px;
  right: -20px;
  bottom: 0;
  height: 2px;
  transform: skewY(-1.4deg);
  background: linear-gradient(90deg, transparent 4%, var(--blue) 42%, var(--violet) 62%, transparent 96%);
  opacity: .8;
}

.hero-art {
  margin: 0;
  min-height: 260px;
  aspect-ratio: 4 / 3;
  border-radius: var(--r);
  overflow: hidden;
  background:
    linear-gradient(152deg, rgba(111, 147, 255, .16), rgba(0, 0, 0, 0) 58%),
    var(--midnight);
}

.hero-art.empty::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(152deg, #0f1a2e, #121212 70%);
}

.hero-img { width: 100%; height: 100%; object-fit: cover; }

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

.hero h1 {
  margin: 0 0 .5em;
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  line-height: 1.24;
  text-shadow: 0 0 22px rgba(111, 147, 255, .22);
}

.cta {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 16px;
  color: #dfe8ff;
  background: linear-gradient(120deg, #1a2b4e, #22376b);
  box-shadow: inset 0 0 0 1px #2c3f66;
  text-shadow: 0 0 10px rgba(111, 147, 255, .5);
  transition: transform .2s ease, box-shadow .2s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px #4a689f, 0 0 20px rgba(111, 147, 255, .35);
}

/* 正文 + 侧栏 */
.body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 256px;
  gap: 46px;
  margin-top: 34px;
  align-items: start;
}

.content { min-width: 0; }

.content > article {
  scroll-margin-top: 92px;
  padding: 40px 0 12px;
  border-top: 1px solid var(--line);
}

.content > article:first-child { border-top: 0; padding-top: 6px; }

.content h2 {
  font-size: clamp(1.28rem, 2.5vw, 1.72rem);
  margin-bottom: .6em;
  text-shadow: 0 0 14px rgba(111, 147, 255, .2);
}

.content h3 { font-size: 1.14rem; margin-bottom: .5em; color: #dbe2ee; }
.content p { margin: 0 0 1em; color: #d3dae6; }
.content ul, .content ol { margin: 0 0 1em; padding-left: 1.2em; }
.content li { margin: .35em 0; }
.content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.content a:hover { color: #a9c0ff; }

.content blockquote {
  margin: 1.3em 0;
  padding: 12px 18px;
  border-left: 2px solid var(--blue);
  background: #0b0e14;
  border-radius: 0 var(--r) var(--r) 0;
  color: #c2cbdb;
}

.content figure { margin: 1.4em 0; }
.content img { border-radius: var(--r); width: 100%; height: auto; }
.content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 15px;
  margin: 0 0 1.2em;
}
.content th, .content td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }

/* 侧栏 */
.rail {
  position: sticky;
  top: 92px;
  align-self: start;
}

.rail-t {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: .2em;
  color: var(--gold);
  text-shadow: 0 0 10px rgba(230, 195, 122, .35);
}

.rail-t .dash {
  width: 16px;
  height: 2px;
  flex: 0 0 auto;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.rail ul { list-style: none; margin: 0 0 24px; padding: 0; }

.rail li a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  margin-bottom: 6px;
  border-radius: 999px;
  background: var(--panel);
  color: #c6cedd;
  font-size: 15px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.rail li a:hover {
  background: var(--panel-2);
  color: #ffffff;
  transform: translateX(2px);
}

/* 页脚 */
.foot {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  background: #070707;
}

.cols {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 12px;
}

.foot dl { margin: 0; flex: 1 1 170px; }
.foot dt {
  font-size: 13px;
  letter-spacing: .2em;
  color: #798494;
  margin-bottom: 4px;
}
.foot dd { margin: 0; font-size: 15px; color: #c2cad8; }
.foot dd.muted { color: #6f7a8b; font-size: 14px; word-break: break-all; }
.foot dd a {
  display: inline-block;
  min-height: 40px;
  padding: 8px 0;
  transition: color .2s ease;
}
.foot dd a:hover { color: var(--blue); }

.base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 20px 26px;
  border-top: 1px solid #141414;
  font-size: 14px;
  color: #7a8494;
}

.base a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 6px;
  color: #b9c2d1;
}
.base a:hover { color: var(--blue); }

/* 滚动显现 */
.rv { opacity: 0; transform: translateY(14px); }
.rv.in {
  opacity: 1;
  transform: none;
  transition: opacity .65s ease, transform .65s ease;
}

@media (max-width: 940px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
    min-height: 0;
    padding: 28px 0 46px;
  }
  .hero-art { order: 2; min-height: 200px; aspect-ratio: 16 / 10; }
  .hero-copy { order: 1; }
  .body { grid-template-columns: 1fr; gap: 30px; }
  .rail {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 22px;
  }
  .content > article { scroll-margin-top: 86px; }
}

@media (max-width: 560px) {
  .cols { gap: 12px 20px; }
  .foot dl { flex: 1 1 44%; }
  .hero h1 { font-size: clamp(1.7rem, 7.4vw, 2.2rem); }
  .rail { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; }
  .pills a, .cta, .rail li a, .mark { transition: none; }
  .pills a:hover, .cta:hover, .rail li a:hover { transform: none; }
}

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