@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&display=swap');

:root {
  --bg: #000000;
  --surface: #121212;
  --panel: #080b11;
  --line: #1b212c;
  --edge: #243d61;
  --fg: #e9effb;
  --body: #c6d2e6;
  --muted: #93a0b8;
  --blue: #5b9dff;
  --deep: #0b1730;
  --r: 18px;
  --max: 1120px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI',
    'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); }
address { font-style: normal; }

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

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 顶栏 */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid #10151d;
  background: radial-gradient(130% 220% at 0% 0%, #0a1526 0%, #000 72%);
}

.brandmark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #1e2a3d;
  border-radius: 14px;
  background: #0b0f17;
  text-decoration: none;
}

.markimg { width: 26px; height: 26px; border-radius: 6px; object-fit: cover; }

.dotmark {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 12px 2px rgba(91, 157, 255, 0.7);
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  max-width: 100%;
  padding: 4px 4px 4px 14px;
  border: 1px solid #1c2534;
  border-radius: 999px;
  background: #0a0e16;
}

.search input {
  min-width: 0;
  min-height: 34px;
  width: 160px;
  border: 0;
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: 16px;
  outline: none;
}

.search input::placeholder { color: #6d7a92; }

.search button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #29405f;
  border-radius: 999px;
  background: #0e1a2b;
  color: #d6e6ff;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

.search button:hover {
  border-color: var(--blue);
  background: #14263d;
  box-shadow: 0 0 12px rgba(91, 157, 255, 0.35);
}

/* 首屏 */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 92px 20px 72px;
  overflow: hidden;
  text-align: center;
  background: radial-gradient(110% 82% at 50% -12%, #0d1c38 0%, #050a14 46%, #000 100%);
}

.ghost {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(56px, 15vw, 190px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(91, 157, 255, 0.26);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.heroin {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 760px;
}

.hero h1 {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(27px, 5vw, 54px);
  line-height: 1.22;
  letter-spacing: 0.01em;
  text-shadow: 0 0 22px rgba(91, 157, 255, 0.4);
}

.herofig {
  margin: 0;
  width: 100%;
  max-width: 620px;
  overflow: hidden;
  border: 1px solid #1e2c44;
  border-radius: var(--r);
  background: var(--surface);
}

.herofig img { width: 100%; }

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  letter-spacing: 0.3em;
}

/* 主体两列 */
.wrap {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  align-items: start;
  gap: 44px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 20px 24px;
}

.rail {
  position: sticky;
  top: 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, #080b12, #05070c);
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--body);
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
}

.menu a:hover,
.menu a:focus-visible {
  border-color: var(--edge);
  background: #0d182a;
  color: #dcebff;
  text-shadow: 0 0 10px rgba(91, 157, 255, 0.55);
}

.menu a.on {
  border-color: var(--blue);
  background: #0d1a2e;
  color: #ffffff;
}

.totop {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 10px;
  border: 1px dashed #24303f;
  border-radius: 999px;
  color: var(--muted);
  font-size: 16px;
  text-decoration: none;
}

.totop:hover { border-color: var(--blue); color: var(--fg); }

.body { min-width: 0; }

.body > h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.3;
  text-shadow: 0 0 12px rgba(91, 157, 255, 0.3);
}

.subtitle {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 16px;
}

/* 正文 */
.content { max-width: 74ch; }

.content article {
  margin: 0 0 24px;
  padding: 26px 24px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, #080b11, #000 72%);
  scroll-margin-top: 96px;
}

.content h2 {
  margin: 0 0 14px;
  font-size: clamp(21px, 2.6vw, 27px);
  line-height: 1.32;
  color: #f2f7ff;
  text-shadow: 0 0 10px rgba(91, 157, 255, 0.22);
}

.content h3 {
  margin: 26px 0 10px;
  font-size: 19px;
  line-height: 1.42;
  color: #dbe8ff;
}

.content p { margin: 0 0 16px; color: var(--body); }

.content ul,
.content ol {
  margin: 0 0 18px;
  padding-left: 1.25em;
  color: var(--body);
}

.content li { margin: 6px 0; }

.content a { color: var(--blue); text-underline-offset: 3px; }
.content strong { color: #ffffff; }

.content blockquote {
  margin: 0 0 18px;
  padding: 12px 16px;
  border-left: 2px solid var(--blue);
  border-radius: 0 12px 12px 0;
  background: #070b12;
  color: #b9c8e0;
}

.content img {
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

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

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

/* 页脚 */
.foot {
  margin-top: 56px;
  padding: 0 20px 44px;
  border-top: 1px solid #12171f;
  background: radial-gradient(120% 120% at 50% 0%, #0a1424 0%, #000 66%);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--max);
  margin: -28px auto 0;
  padding: 30px 24px;
  border: 1px solid #1d2c44;
  border-radius: var(--r);
  background: linear-gradient(135deg, #0b1728, #070b12);
}

.ctalead {
  margin: 0;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #eaf2ff;
  text-shadow: 0 0 16px rgba(91, 157, 255, 0.4);
}

.ctabtn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  background: #10203a;
  color: #e8f1ff;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 0 16px rgba(91, 157, 255, 0.22);
}

.ctabtn:hover { background: #17304f; }

.fcols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 26px;
  max-width: var(--max);
  margin: 34px auto 0;
}

.fabout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.fmk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid #1e2a3d;
  border-radius: 13px;
  background: #0b0f17;
}

.fabout address { color: #dbe6f7; font-size: 17px; }

.flinks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flinks a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 16px;
  text-decoration: none;
}

.flinks a:hover { background: #0b111a; color: var(--fg); }

.copy {
  max-width: var(--max);
  margin: 26px auto 0;
  padding-top: 16px;
  border-top: 1px solid #10151d;
  color: #6f7d94;
  font-size: 16px;
}

/* 动效 */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.2, 0.7, 0.3, 1);
  }
  .reveal.in { opacity: 1; transform: none; }
}

/* 窄屏 */
@media (max-width: 860px) {
  .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 20px 16px 16px;
  }

  .rail {
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 8px;
    border-color: #151b25;
    border-radius: 0 0 var(--r) var(--r);
    background: rgba(6, 9, 14, 0.95);
    backdrop-filter: blur(8px);
  }

  .menu {
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .menu::-webkit-scrollbar { display: none; }

  .menu a {
    border-color: #1b2531;
    white-space: nowrap;
  }

  .totop { display: none; }

  .content article { padding: 20px 16px 6px; scroll-margin-top: 80px; }

  .fcols { grid-template-columns: minmax(0, 1fr); }
  .cta { margin-top: -18px; padding: 24px 18px; }
  .search input { width: 118px; }
  .herofig img { max-height: 200px; object-fit: cover; }
}

@media (max-width: 430px) {
  .search input { width: 88px; }
  .search { padding-left: 12px; }
  .hero { padding-top: 78px; }
  .ghost { top: 17%; }
}

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