@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: #171f26;
  --ink-2: #1c2530;
  --ink-3: #222e39;
  --ice: #c8e0f4;
  --lotus: #f5e0e8;
  --text: #dde8f0;
  --soft: #a8bbc8;
  --line: rgba(200, 224, 244, 0.14);
  --sh-dark: rgba(0, 0, 0, 0.55);
  --sh-light: rgba(200, 224, 244, 0.09);
  --r: 14px;
  --disp: "Exo", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --body: "Exo", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

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

html {
  background: var(--ink);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.78;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

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

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

/* ---------- 顶部 ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(23, 31, 38, 0.93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 14px 6px 8px;
  border-radius: var(--r);
  text-decoration: none;
  color: var(--ice);
  font-family: var(--disp);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.06em;
  background: linear-gradient(145deg, #1f2a34, #1a222a);
  box-shadow: -5px -5px 15px var(--sh-light), 5px 5px 15px var(--sh-dark);
}

.mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
}

.mark-dot {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--ice), var(--lotus));
  box-shadow: inset -2px -2px 5px rgba(23, 31, 38, 0.4), inset 2px 2px 5px rgba(255, 255, 255, 0.55);
}

.navigation {
  flex: 1 1 auto;
  min-width: 0;
}

.navline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.navline a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--r);
  text-decoration: none;
  color: var(--text);
  font-size: 16px;
  background: linear-gradient(145deg, #1e2833, #1a222a);
  box-shadow: -4px -4px 12px var(--sh-light), 4px 4px 12px var(--sh-dark);
  transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.navline a:hover,
.navline a:focus-visible {
  color: var(--lotus);
}

.navline a:active {
  transform: scale(0.97);
  box-shadow: inset -2px -2px 6px var(--sh-light), inset 2px 2px 6px var(--sh-dark);
}

.contact {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--r);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  background: linear-gradient(145deg, var(--ice), #b6d2e9);
  box-shadow: -4px -4px 12px var(--sh-light), 4px 4px 12px var(--sh-dark);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.contact:active {
  transform: scale(0.97);
  box-shadow: inset -2px -2px 6px rgba(23, 31, 38, 0.25), inset 2px 2px 6px rgba(255, 255, 255, 0.5);
}

/* ---------- Hero ---------- */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(26px, 6vw, 60px) 20px;
  min-height: 70vh;
  display: flex;
  align-items: center;
  gap: clamp(20px, 5vw, 54px);
}

.hero-art {
  flex: 0 0 auto;
  width: min(260px, 34vw);
}

.hero-img {
  width: 100%;
  border-radius: 16px;
  box-shadow: -10px -10px 28px var(--sh-light), 10px 10px 28px var(--sh-dark);
  will-change: transform;
}

.geo {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background: linear-gradient(145deg, #202b36, #19222a);
  box-shadow: -10px -10px 28px var(--sh-light), 10px 10px 28px var(--sh-dark);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 22px;
}

.geo i {
  border-radius: 12px;
  background: linear-gradient(145deg, var(--ink-3), #1b242c);
  box-shadow: inset -3px -3px 8px rgba(0, 0, 0, 0.45), inset 3px 3px 8px rgba(200, 224, 244, 0.09);
}

.geo i:nth-child(2) {
  background: linear-gradient(145deg, var(--ice), #a9c8e0);
}

.geo i:nth-child(3) {
  background: linear-gradient(145deg, var(--lotus), #e0c6d2);
}

.hero-copy {
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
}

.badge {
  display: inline-block;
  margin: 0 0 16px;
  padding: 7px 16px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.26em;
  color: var(--lotus);
  background: linear-gradient(145deg, #202b36, #1a232b);
  box-shadow: inset -2px -2px 6px rgba(0, 0, 0, 0.45), inset 2px 2px 6px rgba(200, 224, 244, 0.1);
}

.hero h1 {
  margin: 0 0 16px;
  font-family: var(--disp);
  font-weight: 600;
  font-size: clamp(30px, 6vw, 54px);
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: #f2f8fd;
}

.lead {
  margin: 0 0 22px;
  margin-left: auto;
  max-width: 44ch;
  color: var(--soft);
  font-size: 17px;
}

.hero-cta {
  margin: 0;
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 26px;
  border-radius: var(--r);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  background: linear-gradient(145deg, var(--lotus), #ddc2ce);
  box-shadow: -5px -5px 15px var(--sh-light), 5px 5px 15px var(--sh-dark);
  transition: transform 0.15s ease;
}

.cta:active {
  transform: scale(0.97);
}

/* ---------- 主体骨架 ---------- */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 20px 72px;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: start;
}

.rail {
  position: sticky;
  top: 104px;
  padding: 18px 16px;
  border-radius: 16px;
  background: linear-gradient(145deg, #1e2833, #1a222a);
  box-shadow: -6px -6px 18px var(--sh-light), 6px 6px 18px var(--sh-dark);
}

.rail-title {
  margin: 0 0 14px;
  font-family: var(--disp);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ice);
}

.rail-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 13px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-size: 16px;
  background: linear-gradient(145deg, #222d38, #1b242c);
  box-shadow: -3px -3px 9px var(--sh-light), 3px 3px 9px var(--sh-dark);
  transition: transform 0.15s ease, color 0.15s ease;
}

.rail-list a:hover,
.rail-list a:focus-visible {
  color: var(--lotus);
}

.rail-list a:active {
  transform: scale(0.98);
  box-shadow: inset -2px -2px 5px var(--sh-light), inset 2px 2px 5px var(--sh-dark);
}

.doc {
  min-width: 0;
}

/* ---------- 正文 ---------- */
.prose {
  display: block;
}

.prose > article {
  scroll-margin-top: 130px;
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid;
  border-color: rgba(200, 224, 244, 0.18) rgba(0, 0, 0, 0.5) rgba(0, 0, 0, 0.5) rgba(200, 224, 244, 0.18);
  background: var(--ink-2);
  border-radius: 0;
}

.prose > article + article {
  margin-top: 26px;
}

.prose p {
  margin: 0 0 16px;
  color: #d2dfe8;
}

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

.prose h2,
.prose h3 {
  font-family: var(--disp);
  line-height: 1.32;
  color: #edf5fb;
  margin: 0 0 14px;
}

.prose h2 {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 600;
}

.prose h3 {
  font-size: 19px;
  color: var(--lotus);
  font-weight: 500;
}

.prose h2 + p,
.prose h3 + p {
  margin-top: 4px;
}

h2 > span {
  display: inline-block;
  position: relative;
  padding-left: 16px;
}

h2 > span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;
  bottom: 0.18em;
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--ice), var(--lotus));
}

.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: #d2dfe8;
}

.prose li {
  margin: 0 0 8px;
}

.prose li::marker {
  color: var(--ice);
}

.prose a {
  color: var(--ice);
  text-decoration: underline;
  text-decoration-color: rgba(200, 224, 244, 0.4);
  text-underline-offset: 3px;
}

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

.prose strong {
  color: #f3f9fd;
}

.prose blockquote {
  margin: 0 0 16px;
  padding: 14px 18px;
  border-left: 3px solid var(--lotus);
  background: var(--ink-3);
  color: var(--soft);
  border-radius: 0;
}

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

.prose img {
  border-radius: 12px;
  box-shadow: -6px -6px 18px var(--sh-light), 6px 6px 18px var(--sh-dark);
  margin: 6px 0 18px;
}

.prose code,
.prose pre {
  font-family: var(--mono);
  font-size: 15px;
}

.prose pre {
  overflow-x: auto;
  padding: 16px;
  border-radius: 12px;
  background: var(--ink-3);
  box-shadow: inset -2px -2px 6px rgba(0, 0, 0, 0.45), inset 2px 2px 6px rgba(200, 224, 244, 0.08);
}

/* ---------- 页脚 ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding: clamp(34px, 6vw, 60px) 20px clamp(28px, 5vw, 48px);
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.foot-brand {
  margin: 0 0 14px;
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(38px, 11vw, 104px);
  line-height: 1;
  letter-spacing: 0.01em;
  color: transparent;
  background: linear-gradient(145deg, var(--ice), var(--lotus));
  -webkit-background-clip: text;
  background-clip: text;
  word-break: break-word;
}

.foot small {
  display: block;
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.16em;
  color: var(--soft);
}

/* ---------- 动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.7, 0.3, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- 断点 ---------- */
@media (max-width: 860px) {
  .topbar {
    padding: 10px 14px;
  }

  .navigation {
    order: 3;
    flex: 1 1 100%;
    padding-bottom: 6px;
  }

  .contact {
    margin-left: auto;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    min-height: 62vh;
    gap: 22px;
  }

  .hero-copy {
    text-align: left;
    order: -1;
  }

  .lead {
    margin-left: 0;
  }

  .hero-art {
    width: min(180px, 46vw);
  }

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

  .rail {
    position: static;
    padding: 14px;
  }

  .rail-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .rail-list a {
    padding: 8px 12px;
    min-height: 44px;
  }

  .prose > article {
    scroll-margin-top: 170px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .brand-t {
    font-size: 16px;
  }

  .navline {
    gap: 6px;
  }

  .navline a {
    padding: 10px 11px;
    font-size: 16px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .prose > article {
    padding: 18px 16px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-img {
    transform: none !important;
  }

  .navline a,
  .rail-list a,
  .contact,
  .cta {
    transition: none;
  }
}

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