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

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

:root {
  --ink: #171f26;
  --ink2: #1e2a33;
  --ice: #c8e0f4;
  --rose: #f5e0e8;
  --txt: #dae6ef;
  --dim: #93a7b6;
  --line: rgba(200, 224, 244, 0.10);
  --pop: -6px -6px 18px rgba(255, 255, 255, 0.055), 6px 6px 20px rgba(0, 0, 0, 0.55);
  --press: inset 4px 4px 10px rgba(0, 0, 0, 0.62), inset -4px -4px 10px rgba(255, 255, 255, 0.05);
  --glass: linear-gradient(160deg, rgba(200, 224, 244, 0.075), rgba(245, 224, 232, 0.04));
}

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

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.68;
  color: var(--txt);
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(200, 224, 244, 0.13), transparent 65%),
    radial-gradient(760px 520px at -12% 92%, rgba(245, 224, 232, 0.10), transparent 62%),
    var(--ink);
  background-attachment: fixed;
  overflow-wrap: break-word;
}

h1, h2, h3 {
  margin: 0 0 0.5em;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

a { color: var(--ice); }

p { margin: 0 0 1em; }

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

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

.shell {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

/* ---------- header ---------- */

.sitehead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(23, 31, 38, 0.90);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
}

.strip {
  padding: 7px 16px 8px;
  text-align: center;
  font-size: 16px;
  letter-spacing: 0.16em;
  color: var(--dim);
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: 1080px;
  margin: 0 auto;
  padding: 9px clamp(16px, 4vw, 32px);
}

.mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  line-height: 0;
  background: linear-gradient(145deg, #202d37, #151d24);
  box-shadow: var(--pop);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mark:active {
  transform: scale(0.95);
  box-shadow: var(--press);
}

.pills {
  display: flex;
  flex: 1 1 auto;
  gap: 10px;
  min-width: 0;
  padding: 3px 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 16px;
  white-space: nowrap;
  text-decoration: none;
  color: var(--txt);
  background: linear-gradient(145deg, #1f2c36, #151d23);
  box-shadow: -4px -4px 10px rgba(255, 255, 255, 0.05), 4px 4px 12px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.pill:hover { color: var(--ice); }

.pill:active {
  transform: scale(0.97);
  box-shadow: var(--press);
}

/* ---------- hero ---------- */

main.shell { padding-block: 10px 48px; }

.hero {
  display: flex;
  align-items: center;
  gap: clamp(18px, 5vw, 56px);
  min-height: 70vh;
  padding: clamp(26px, 6vw, 56px) 0;
}

.hero-art {
  flex: 0 0 168px;
  width: 168px;
}

.orb {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.5));
}

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

h1 {
  font-size: clamp(34px, 6.4vw, 62px);
  line-height: 1.08;
  margin-bottom: 0.36em;
  background: linear-gradient(118deg, #ffffff 4%, #c8e0f4 46%, #f5e0e8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 34ch;
  margin: 0 0 26px auto;
  font-size: 18px;
  line-height: 1.6;
  color: var(--dim);
}

.go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 17px;
  text-decoration: none;
  color: #16202a;
  background: linear-gradient(145deg, #e2eef8, #c3d9ec);
  box-shadow: -5px -5px 14px rgba(255, 255, 255, 0.07), 5px 5px 16px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.go:active {
  transform: scale(0.96);
  box-shadow: var(--press);
}

/* ---------- doc grid ---------- */

.docgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 262px;
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
}

.docbody { min-width: 0; }

section [id] { scroll-margin-top: 132px; }

.docbody > div {
  margin: 0 0 26px;
  padding: clamp(20px, 3vw, 32px);
  border-radius: 4px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  box-shadow: -4px -4px 14px rgba(255, 255, 255, 0.035), 7px 7px 20px rgba(0, 0, 0, 0.35);
}

.docbody > div:last-child { margin-bottom: 0; }

.docbody h2 {
  font-size: clamp(21px, 2.4vw, 27px);
  margin-bottom: 0.7em;
  color: #f0f7fd;
}

.docbody h2::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin-top: 14px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ice), var(--rose));
}

.docbody h3 {
  font-size: 19px;
  margin-top: 1.4em;
  color: #e8f2fa;
}

.docbody p { color: var(--txt); }

.docbody ul, .docbody ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

.docbody li { margin-bottom: 0.5em; }

.docbody a { text-decoration-color: rgba(200, 224, 244, 0.45); }

.docbody blockquote {
  margin: 0 0 1em;
  padding: 14px 18px;
  border-left: 3px solid var(--rose);
  border-radius: 4px;
  background: rgba(245, 224, 232, 0.07);
}

.docbody img { border-radius: 4px; }

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

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

/* ---------- aside ---------- */

.side {
  position: sticky;
  top: 122px;
  padding: 18px 16px;
  border-radius: 4px;
  background: rgba(23, 31, 38, 0.62);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.side-h {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--dim);
}

.side-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  border-radius: 12px;
  font-size: 16px;
  text-decoration: none;
  color: var(--txt);
  background: linear-gradient(145deg, #1d2a33, #161e25);
  box-shadow: -3px -3px 8px rgba(255, 255, 255, 0.04), 3px 3px 9px rgba(0, 0, 0, 0.42);
  transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.side-list a:hover { color: var(--ice); }

.side-list a:active {
  transform: scale(0.985);
  box-shadow: var(--press);
}

/* ---------- footer ---------- */

.sitefoot {
  margin-top: 44px;
  padding: 36px 0 26px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(200, 224, 244, 0.05), transparent 72%);
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 30px;
  padding: clamp(22px, 4vw, 38px);
  border-radius: 16px;
  background: linear-gradient(145deg, #1f2c36, #141c22);
  box-shadow: -8px -8px 22px rgba(255, 255, 255, 0.05), 10px 10px 26px rgba(0, 0, 0, 0.55);
}

.cta-brand {
  margin: 0;
  font-size: clamp(23px, 4vw, 33px);
  line-height: 1.25;
  color: #f2f8fd;
}

.cta-go {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 16px;
  text-decoration: none;
  color: #16202a;
  background: linear-gradient(145deg, #e2eef8, #c3d9ec);
  box-shadow: -4px -4px 12px rgba(255, 255, 255, 0.06), 4px 4px 14px rgba(0, 0, 0, 0.5);
}

.cta-go:active { box-shadow: var(--press); transform: scale(0.97); }

.footcols {
  display: grid;
  grid-template-columns: 1.05fr 1.4fr 1fr;
  gap: 26px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fcol { min-width: 0; }

.faddr {
  font-style: normal;
  font-size: 17px;
  color: var(--txt);
}

.fnav dl { margin: 0; }

.fnav dt {
  margin-bottom: 6px;
  font-size: 16px;
  letter-spacing: 0.12em;
  color: var(--dim);
}

.fnav dd { margin: 0; }

.fnav dd a,
.flist a {
  display: flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  text-decoration: none;
  color: var(--txt);
}

.fnav dd a:hover,
.flist a:hover { color: var(--ice); }

.flist {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 16px;
}

.legal small { font-size: 16px; color: var(--dim); }

.legallinks {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legallinks a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  text-decoration: none;
  color: var(--dim);
}

.legallinks a:hover { color: var(--ice); }

/* ---------- motion ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .pill, .go, .mark, .side-list a, .cta-go { transition: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 920px) {
  .docgrid { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; order: 2; }
  .footcols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero {
    flex-direction: column;
    align-items: flex-end;
    min-height: 0;
    padding-top: 34px;
    padding-bottom: 40px;
  }
  .hero-art { flex: 0 0 auto; width: 118px; }
  .lede { font-size: 17px; }
  .footcols { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .legal { flex-direction: column; align-items: flex-start; }
  section [id] { scroll-margin-top: 150px; }
}

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