@import url('https://fonts.googleapis.com/css2?family=Anton&family=Epilogue:wght@400;500;600;700&display=swap');

:root {
  --ink: #171f26;
  --ink-hi: #1f2b36;
  --ink-lo: #111820;
  --ice: #c8e0f4;
  --rose: #f5e0e8;
  --fg: #e3ecf3;
  --body: #c4d3df;
  --dim: #93a7b7;
  --line: rgba(126, 158, 184, 0.16);
  --r-card: 28px;
  --r-soft: 16px;
  --up: -6px -6px 16px rgba(72, 106, 136, 0.24), 8px 8px 20px rgba(0, 0, 0, 0.55);
  --up-sm: -3px -3px 9px rgba(72, 106, 136, 0.22), 4px 4px 11px rgba(0, 0, 0, 0.5);
  --down: inset -4px -4px 10px rgba(72, 106, 136, 0.22), inset 4px 4px 10px rgba(0, 0, 0, 0.5);
  --pad: clamp(20px, 3.2vw, 42px);
  --head: "Anton", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --sans: "Epilogue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 150px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(200, 224, 244, 0.09), transparent 62%),
    radial-gradient(760px 480px at 92% 4%, rgba(245, 224, 232, 0.08), transparent 60%),
    var(--ink);
  color: var(--body);
  font: 400 17px/1.7 var(--sans);
  letter-spacing: 0.01em;
}

h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 400;
  color: var(--ice);
  letter-spacing: 0.03em;
  line-height: 1.14;
  margin: 0;
}

a { color: var(--ice); text-decoration: none; }
a:hover { color: #ffffff; }
p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; }

hr {
  border: 0;
  height: 3px;
  width: 68px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--ice), var(--rose));
  margin: 14px 0 22px;
}

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

/* ---------- 页头 ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(20, 27, 34, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

.top-line,
.top-nav ol {
  max-width: 1200px;
  margin: 0 auto;
}

.top-line {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px clamp(16px, 3vw, 32px) 8px;
}

.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 15px;
  background: linear-gradient(145deg, var(--ice), #9dc4e4);
  box-shadow: var(--up-sm);
  color: var(--ink);
  font-family: var(--head);
  font-size: 22px;
  line-height: 1;
  overflow: hidden;
}

.mark-img { width: 100%; height: 100%; object-fit: cover; }
.mark.small { width: 40px; height: 40px; border-radius: 13px; font-size: 19px; }

.brand {
  font-family: var(--head);
  font-size: 21px;
  letter-spacing: 0.06em;
  color: #f2f8fd;
  white-space: nowrap;
}

.find {
  margin-left: auto;
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex: 1 1 auto;
  max-width: 340px;
  justify-content: flex-end;
}

.find input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  border: 0;
  border-radius: var(--r-soft);
  background: #121a21;
  box-shadow: var(--down);
  color: var(--fg);
  font: 400 16px/1.5 var(--sans);
  padding: 10px 14px;
}

.find input::placeholder { color: #7d8f9e; }

.find button,
.f-sub button {
  border: 0;
  cursor: pointer;
  border-radius: var(--r-soft);
  background: linear-gradient(145deg, var(--ice), #a9cbe6);
  color: #16202a;
  font: 600 16px/1.5 var(--sans);
  padding: 10px 18px;
  box-shadow: var(--up-sm);
  transition: transform 150ms ease, box-shadow 150ms ease;
  white-space: nowrap;
}

.find button:active,
.f-sub button:active,
.cta:active,
.to-top:active { transform: scale(0.965); box-shadow: var(--down); }

/* ---------- 菜单 ---------- */
.top-nav { border-top: 1px solid var(--line); }

.top-nav ol {
  display: flex;
  gap: 4px;
  list-style: none;
  padding: 6px clamp(16px, 3vw, 32px) 10px;
  margin: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.top-nav ol::-webkit-scrollbar { height: 5px; }
.top-nav ol::-webkit-scrollbar-thumb { background: rgba(150, 180, 205, 0.28); border-radius: 4px; }

.top-nav li { flex: none; position: relative; }

.top-nav a {
  display: block;
  padding: 12px 15px;
  border-radius: 14px;
  color: #c3d4e1;
  font-size: 16px;
  white-space: nowrap;
  transition: background 150ms ease, box-shadow 150ms ease, color 150ms ease;
}

.top-nav a:hover,
.cluster:focus-within > a {
  background: linear-gradient(145deg, #22303c, #172029);
  box-shadow: var(--up-sm);
  color: #ffffff;
}

.top-nav li:first-child a { color: var(--rose); }

.cluster > a::after {
  content: "▾";
  font-size: 12px;
  margin-left: 6px;
  opacity: 0.7;
}

.drop {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 186px;
  list-style: none;
  margin: 0;
  padding: 8px;
  display: none;
  border-radius: 18px;
  background: linear-gradient(145deg, #1e2a35, #141c24);
  box-shadow: var(--up);
  z-index: 80;
}

.cluster:hover .drop,
.cluster:focus-within .drop { display: block; }

.drop a { padding: 11px 12px; border-radius: 12px; }

/* ---------- 主体骨架 ---------- */
main { padding: 28px 0 64px; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
  display: grid;
  grid-template-columns: 262px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 38px);
  align-items: start;
}

.stage { min-width: 0; }

/* ---------- 侧栏 ---------- */
.rail {
  position: sticky;
  top: 148px;
  display: grid;
  gap: 14px;
}

.rail-box {
  border-radius: 24px;
  background: linear-gradient(150deg, #1d2833, #141c23);
  box-shadow: var(--up);
  padding: 18px 16px 16px;
}

.rail-t {
  font-size: 19px;
  letter-spacing: 0.1em;
  color: var(--rose);
  margin: 0;
}

.rail-box hr { margin: 10px 0 12px; width: 46px; height: 2px; }

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  counter-reset: rail;
}

.rail-list a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #b6c8d6;
  font-size: 16px;
  line-height: 1.4;
  transition: background 150ms ease, box-shadow 150ms ease, color 150ms ease;
}

.rail-list a:hover {
  background: linear-gradient(145deg, #24313d, #182129);
  box-shadow: var(--up-sm);
  color: #ffffff;
}

.to-top {
  display: block;
  text-align: center;
  padding: 12px 10px;
  border-radius: var(--r-soft);
  background: linear-gradient(145deg, #202d38, #151d25);
  box-shadow: var(--up-sm);
  color: #c8d8e5;
  font-size: 16px;
  transition: transform 150ms ease;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 0 0 132px 132px;
  background: linear-gradient(150deg, #24323e, #131b22);
  box-shadow: var(--up);
  margin-bottom: 34px;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.46;
  transform: scale(1.06);
  will-change: transform;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(185deg, rgba(17, 24, 32, 0.32), rgba(17, 24, 32, 0.94));
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(22px, 4vw, 52px);
  text-align: right;
}

.hero-copy h1 {
  font-size: clamp(30px, 5.4vw, 60px);
  color: #ffffff;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.02em;
}

.lede {
  margin: 14px 0 20px auto;
  max-width: 46ch;
  color: #d5e2ec;
  font-size: 17px;
}

.cta {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--r-soft);
  background: linear-gradient(145deg, var(--rose), #dcc3ce);
  color: #1b242c;
  font-weight: 600;
  font-size: 16px;
  box-shadow: var(--up-sm);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.hero-band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 15px;
  z-index: 3;
  background: linear-gradient(90deg, var(--ice), var(--rose));
  clip-path: polygon(0 52%, 100% 0, 100% 100%, 0 100%);
}

/* ---------- 正文 ---------- */
.prose > div {
  background: linear-gradient(150deg, #1c2731, #131b22);
  border-radius: var(--r-card);
  box-shadow: var(--up);
  padding: var(--pad);
  margin-bottom: 30px;
  scroll-margin-top: 152px;
}

.prose > div > *:last-child { margin-bottom: 0; }
.prose > div > h2 { margin-top: 0; }

.prose h2 { font-size: clamp(23px, 3.2vw, 36px); }
.prose h3 { font-size: clamp(19px, 2.2vw, 24px); color: #eceff4; margin: 26px 0 10px; }
.prose h4 { font-size: 18px; color: var(--rose); margin: 22px 0 8px; }

.prose p { color: var(--body); }
.prose strong { color: #ffffff; }
.prose em { color: var(--rose); font-style: normal; }

.prose ul,
.prose ol {
  padding-left: 1.35em;
  margin: 0 0 1.1em;
}

.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--ice); }

.prose blockquote {
  margin: 20px 0;
  padding: 16px 20px;
  border-radius: var(--r-soft);
  background: #121a21;
  box-shadow: var(--down);
  color: #cddae5;
}

.prose img { border-radius: 18px; box-shadow: var(--up-sm); }

.prose a {
  color: var(--ice);
  border-bottom: 1px solid rgba(200, 224, 244, 0.45);
}

.prose a:hover { border-bottom-color: #ffffff; }

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

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

/* ---------- 页脚 ---------- */
.base {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.25fr;
  gap: 34px 26px;
  padding: 52px max(18px, calc((100% - 1180px) / 2)) 0;
  background: linear-gradient(180deg, #131b22, #0e141a);
  border-top: 1px solid var(--line);
}

.base > div { min-width: 0; }

.f-brand .f-brandname {
  font-family: var(--head);
  font-size: 20px;
  color: #eef6fc;
  margin: 14px 0 8px;
  letter-spacing: 0.05em;
}

.f-note { color: var(--dim); font-size: 16px; }

.f-t {
  font-family: var(--head);
  font-size: 17px;
  letter-spacing: 0.14em;
  color: var(--rose);
  margin: 0 0 10px;
}

.base ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.base ol a {
  display: inline-block;
  padding: 9px 0;
  color: #b3c5d3;
  font-size: 16px;
}

.base ol a:hover { color: #ffffff; }

.f-sub form { display: grid; gap: 9px; }

.f-sub input {
  border: 0;
  border-radius: var(--r-soft);
  background: #0f161c;
  box-shadow: var(--down);
  color: var(--fg);
  font: 400 16px/1.5 var(--sans);
  padding: 11px 14px;
  width: 100%;
}

.f-sub input::placeholder { color: #7d8f9e; }

.foot-bot {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding: 16px 0 28px;
  color: var(--dim);
  font-size: 16px;
}

.foot-bot p { margin: 0; }
.foot-bot a { padding: 11px 0; color: #c6d7e4; }

/* ---------- 动效 ---------- */
.js .prose > div {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.js .prose > div.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .prose > div { opacity: 1; transform: none; transition: none; }
  .hero-img { transform: none !important; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .wrap { grid-template-columns: minmax(0, 1fr); }
  .rail {
    position: static;
    order: 2;
    margin-top: 8px;
  }
  .stage { order: 1; }
  .base { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .top-line { gap: 8px; padding: 10px 14px 6px; }
  .brand { font-size: 16px; letter-spacing: 0.02em; }
  .mark { width: 42px; height: 42px; flex: none; }
  .find { max-width: none; }
  .find button { padding: 10px 12px; }
  .top-nav ol { padding: 5px 12px 8px; }
  .top-nav a { padding: 11px 12px; }
  .drop { left: auto; right: 0; }
  main { padding-top: 18px; }
  .hero { border-radius: 0 0 64px 64px; min-height: 45vh; }
  .hero-copy { padding: 20px 20px 26px; }
  .lede { margin-top: 10px; }
  .base { grid-template-columns: 1fr; padding: 40px 18px 0; gap: 26px; }
  .foot-bot { padding-bottom: 24px; }
  .prose > div { scroll-margin-top: 170px; }
}
</style>

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