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

:root {
  --ink: #171f26;
  --ink-hi: #1e2831;
  --ink-lo: #131a20;
  --sky: #c8e0f4;
  --rose: #f5e0e8;
  --tx: #c9d8e3;
  --dim: #8b9dab;
  --sh: -5px -5px 15px rgba(255, 255, 255, 0.045), 6px 6px 18px rgba(0, 0, 0, 0.62);
  --sh-sm: -3px -3px 9px rgba(255, 255, 255, 0.05), 4px 4px 12px rgba(0, 0, 0, 0.55);
  --in: inset -4px -4px 12px rgba(255, 255, 255, 0.055), inset 5px 5px 14px rgba(0, 0, 0, 0.62);
  --r: 14px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--ink);
  background-image: radial-gradient(rgba(200, 224, 244, 0.075) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--tx);
  font: 400 16px/1.75 "Noto Sans SC", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
}

/* ---------- 顶栏 ---------- */
header.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(23, 31, 38, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 22px -16px rgba(0, 0, 0, 0.95);
}

.brandline {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 18px 8px;
}

.sigil {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 4px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--ink-hi), var(--ink-lo));
  box-shadow: var(--sh-sm);
  text-decoration: none;
  color: var(--sky);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sigil:active { transform: scale(0.97); box-shadow: var(--in); }

.sigil .mark-img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }

.mark { font-weight: 700; font-size: 1.05rem; color: var(--sky); }

.wordmark {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--sky);
}

.toolline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px 12px;
}

.contact,
.burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--ink-hi), var(--ink-lo));
  box-shadow: var(--sh-sm);
  color: var(--sky);
  font: inherit;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.contact { color: var(--rose); }

.contact:active,
.burger:active { transform: scale(0.97); box-shadow: var(--in); }

body.menu-open .burger { box-shadow: var(--in); color: var(--rose); }

/* ---------- 全屏遮罩菜单 ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 88px 22px 40px;
  background: rgba(19, 26, 32, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

body.menu-open .drawer { opacity: 1; visibility: visible; }

.drawer p {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(420px, 100%);
  margin: 0;
}

.drawer a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: var(--r);
  background: linear-gradient(145deg, var(--ink-hi), var(--ink-lo));
  box-shadow: var(--sh);
  color: var(--sky);
  font-size: 1.0625rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.drawer a:active { transform: scale(0.985); box-shadow: var(--in); color: var(--rose); }

/* ---------- 首屏 ---------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  min-height: 70vh;
  padding: 34px 20px 44px;
  text-align: center;
  scroll-margin-top: 120px;
}

.hero-copy { max-width: 640px; }

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 7vw, 3.3rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--sky);
}

.hero-lead {
  margin: 0 auto;
  max-width: 46ch;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--dim);
}

.hero-art {
  display: grid;
  place-items: center;
  width: 148px;
  height: 148px;
  margin: 0;
  padding: 8px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--ink-lo), var(--ink-hi));
  box-shadow: var(--in);
  animation: floaty 7s ease-in-out infinite;
}

.hero-art .art-img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.orb {
  display: block;
  width: 118px;
  height: 118px;
  border-radius: 14px;
  background: radial-gradient(circle at 32% 28%, var(--rose), var(--sky) 58%, #9db9d2);
  box-shadow: var(--sh);
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- 主体：左栏 + 正文 ---------- */
.stage {
  display: grid;
  gap: 26px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 6px 18px 64px;
}

.rail {
  order: 2;
  padding: 18px 16px;
  border-radius: 4px;
  background: linear-gradient(150deg, var(--ink-hi), var(--ink-lo));
  box-shadow: var(--sh);
}

.rail-t {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--rose);
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  counter-reset: r;
}

.rail-list li {
  counter-increment: r;
  animation: rise 0.5s both;
}

.rail-list li:nth-child(2) { animation-delay: 0.06s; }
.rail-list li:nth-child(3) { animation-delay: 0.12s; }
.rail-list li:nth-child(4) { animation-delay: 0.18s; }
.rail-list li:nth-child(5) { animation-delay: 0.24s; }
.rail-list li:nth-child(6) { animation-delay: 0.3s; }
.rail-list li:nth-child(7) { animation-delay: 0.36s; }

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

.rail-list a {
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-height: 40px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--tx);
  font-size: 1rem;
  line-height: 1.45;
  text-decoration: none;
  transition: box-shadow 0.15s ease, color 0.15s ease;
}

.rail-list a::before {
  content: counter(r, decimal-leading-zero);
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

.rail-list a:hover,
.rail-list a.on {
  color: var(--rose);
  box-shadow: var(--in);
}

.rail-top {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 14px;
  border-radius: 8px;
  box-shadow: var(--in);
  color: var(--sky);
  font-size: 1rem;
  text-decoration: none;
}

.rail-top::before {
  content: "↑";
  margin-right: 6px;
  color: var(--rose);
}

/* ---------- 正文 ---------- */
.stream { order: 1; min-width: 0; }

.stream div {
  padding: 28px 0;
  scroll-margin-top: 122px;
}

.stream div:first-child { padding-top: 8px; }

.stream div + div {
  padding-top: 36px;
  box-shadow: inset 0 1px 0 rgba(200, 224, 244, 0.085);
}

.stream h2 {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 4vw, 1.9rem);
  line-height: 1.35;
  font-weight: 600;
  color: var(--sky);
}

.stream h3 {
  margin: 26px 0 10px;
  font-size: 1.15rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--rose);
}

.stream p { margin: 0 0 14px; }

.stream ul,
.stream ol { margin: 0 0 16px; padding-left: 1.3em; }

.stream li { margin: 7px 0; }

.stream a { color: var(--sky); text-underline-offset: 3px; }

.stream strong { color: var(--rose); font-weight: 500; }

.stream img {
  margin: 12px 0;
  border-radius: 4px;
  box-shadow: var(--sh);
}

.stream figure { margin: 18px 0; }

.stream blockquote {
  margin: 18px 0;
  padding: 16px 20px;
  border-radius: 4px;
  box-shadow: var(--in);
  color: var(--dim);
}

/* 标题装饰 */
h2 .deco {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

h2 .deco::before {
  content: "";
  width: 16px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--sky), var(--rose));
}

/* ---------- 页脚 ---------- */
footer.base {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px 44px;
}

.foot-cta {
  padding: 34px 20px;
  border-radius: 16px;
  background: linear-gradient(150deg, #1d2730, #141b21);
  box-shadow: var(--sh);
  text-align: center;
}

.foot-cta h2 {
  margin: 0;
  font-size: clamp(1.4rem, 4.4vw, 2rem);
  line-height: 1.4;
  font-weight: 600;
  color: var(--sky);
}

.foot-cta h2 .deco { justify-content: center; }

.cta-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 18px;
  padding: 0 24px;
  border-radius: 12px;
  box-shadow: var(--in);
  color: var(--rose);
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease;
}

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

.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 26px;
  padding-top: 22px;
}

.foot-brand { display: flex; align-items: center; gap: 10px; }

.foot-row nav p {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
  margin: 0;
}

.foot-row nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--dim);
  font-size: 1rem;
  text-decoration: none;
}

.foot-row nav a:hover { color: var(--sky); }

.foot-copy {
  margin: 0;
  color: var(--dim);
  font-size: 1rem;
}

/* ---------- 断点 ---------- */
@media (min-width: 820px) {
  .hero {
    flex-direction: row;
    gap: 46px;
    padding: 40px 26px 52px;
  }
  .hero-copy { text-align: center; }
  .hero-art { width: 168px; height: 168px; flex: none; }
}

@media (min-width: 900px) {
  .stage {
    grid-template-columns: 238px minmax(0, 1fr);
    gap: 36px;
    align-items: start;
    padding-top: 12px;
  }
  .rail { order: 0; position: sticky; top: 116px; }
  .stream { order: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

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