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

:root {
  --sky: #3bb1ff;
  --coral: #ff5252;
  --ink: #000;
  --paper: #fffdf6;
  --r: 18px;
  --line: 3px solid #000;
  --shadow: 5px 5px 0 #000;
  --font: 'Josefin Sans', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --display: 'Cinzel', 'Josefin Sans', system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }

/* ---------- 左侧竖排导航 ---------- */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 40;
  width: 268px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 20px 34px;
  background: var(--sky);
  border-right: var(--line);
  overflow-y: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 12px;
  background: #fff;
  border: var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: 0.03em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.brand:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 #000; }
.brand:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #000; }
.brand-mark { width: 36px; height: 36px; object-fit: contain; border-radius: 10px; flex: 0 0 36px; }
.brand-name { word-break: break-word; }

.rail-title {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

.rail-sub {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
}

.rail-nav { margin-top: 2px; }
.rail-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rail-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 13px;
  background: #fff;
  border: var(--line);
  border-radius: var(--r);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.rail-nav a::before {
  content: "";
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  margin-right: 10px;
  background: var(--coral);
  border: 2px solid #000;
  border-radius: 4px;
}

.rail-nav li:nth-child(even) a::before { background: var(--sky); }

.rail-nav a:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #000;
  background: #fff;
}

.rail-nav a:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000; }

.rail-nav a[aria-current="true"] {
  background: #000;
  color: #fff;
  box-shadow: 5px 5px 0 var(--sky);
}

/* ---------- 主区 ---------- */
main {
  margin-left: 268px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 30px 0;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 32px;
  margin-bottom: 10px;
  background: var(--sky);
  border: var(--line);
  border-radius: var(--r) var(--r) 52px 52px;
  box-shadow: var(--shadow);
}

.hero-art { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }

.hero-ghost {
  position: absolute;
  left: 10px;
  bottom: 4px;
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(60px, 10.5vw, 146px);
  line-height: 0.82;
  letter-spacing: 0.02em;
  color: #000;
  opacity: 0.16;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 620px;
  margin-left: auto;
  padding: 22px 24px;
  background: #fff;
  border: var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  text-align: right;
}

.hero h1 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(27px, 4.4vw, 44px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.01em;
  overflow-wrap: break-word;
}

.hero-desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  color: #161616;
}

/* ---------- 正文 ---------- */
.content { flex: 1 1 auto; }

.content > section { display: block; }

section div {
  padding: 42px 0;
  border-bottom: 3px dashed #000;
}

section div:last-child { border-bottom: 0; }
section div[id] { scroll-margin-top: 26px; }

section h2 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(23px, 3.1vw, 33px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

section h3 {
  margin: 26px 0 10px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  padding-left: 12px;
  border-left: 7px solid var(--coral);
}

section h4 {
  margin: 20px 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

section p { max-width: 72ch; }
section ul, section ol { max-width: 72ch; padding-left: 1.5em; margin: 0 0 1em; }
section li { margin: 0.35em 0; }

section a {
  text-decoration: none;
  border-bottom: 2px solid var(--coral);
  padding-bottom: 1px;
  transition: background 0.15s ease;
}

section a:hover { background: var(--sky); }

section strong { font-weight: 700; }

section img {
  margin: 20px 0;
  border: var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

section blockquote {
  margin: 22px 0;
  padding: 16px 20px;
  background: #fff;
  border: var(--line);
  border-left: 10px solid var(--coral);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

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

section table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 16px;
}

section th, section td {
  border: 2px solid #000;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

section th { background: var(--sky); font-weight: 700; }

section pre {
  background: #000;
  color: #fff;
  padding: 16px;
  border-radius: var(--r);
  overflow-x: auto;
  font-size: 15px;
  line-height: 1.6;
}

section code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 15px;
}

section pre code { font-size: 15px; }

section hr {
  border: 0;
  border-top: 3px dashed #000;
  margin: 26px 0;
}

p.subtitle, p.subhead, p.desc, p.lead {
  margin-top: -6px;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 500;
  color: #222;
}

/* ---------- 页脚 ---------- */
.foot {
  margin-top: 40px;
  padding: 38px 30px 26px;
  background: #000;
  color: #fff;
  border-top: var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 26px;
  font-size: 16px;
}

.foot p { margin: 0; }

.foot-cta { grid-column: 1 / -1; }

.foot-cta a {
  display: inline-block;
  padding: 10px 20px;
  background: var(--coral);
  color: #000;
  font-family: var(--display);
  font-size: clamp(21px, 3.4vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
  border: 3px solid #fff;
  border-radius: var(--r);
  box-shadow: 6px 6px 0 var(--sky);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.foot-cta a:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--sky); }
.foot-cta a:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--sky); }

.foot-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.45;
}

.foot-col a {
  display: flex;
  align-items: center;
  min-height: 40px;
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid #3a3a3a;
  padding: 6px 0;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.foot-col a:hover { color: var(--sky); border-color: var(--sky); }

.foot-copy {
  grid-column: 1 / 3;
  align-self: center;
  font-size: 16px;
  opacity: 0.8;
}

.foot-top {
  grid-column: 3 / 4;
  justify-self: end;
  align-self: center;
}

.foot-top a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 14px;
  color: #fff;
  text-decoration: none;
  border: 3px solid #fff;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}

.foot-top a:hover { background: #fff; color: #000; }

/* ---------- 滚动显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 窄屏 ---------- */
@media (max-width: 920px) {
  .rail {
    position: sticky;
    top: 0;
    bottom: auto;
    left: auto;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-right: 0;
    border-bottom: var(--line);
    overflow: visible;
  }

  .rail-title, .rail-sub { display: none; }

  .brand {
    min-height: 44px;
    padding: 6px 12px;
    font-size: 16px;
    box-shadow: 4px 4px 0 #000;
    flex: 0 0 auto;
    max-width: 46vw;
  }

  .brand-mark { width: 28px; height: 28px; flex: 0 0 28px; }

  .rail-nav {
    flex: 1 1 auto;
    min-width: 0;
    margin-top: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }

  .rail-nav ul { flex-direction: row; gap: 8px; }

  .rail-nav a {
    white-space: nowrap;
    min-height: 44px;
    padding: 8px 12px;
    box-shadow: none;
  }

  .rail-nav a::before { flex: 0 0 10px; width: 10px; height: 10px; margin-right: 8px; }

  main { margin-left: 0; }
  .wrap { padding: 16px 16px 0; }

  .hero {
    min-height: 0;
    padding: 22px 16px 32px;
    border-radius: var(--r) var(--r) 36px 36px;
  }

  .hero-copy { max-width: 100%; padding: 18px 16px; }
  .hero h1 { font-size: clamp(24px, 7vw, 34px); }
  .hero-ghost { font-size: clamp(44px, 15vw, 96px); left: 6px; }

  section div { padding: 32px 0; }
  section div[id] { scroll-margin-top: 118px; }
  section h2 { font-size: clamp(22px, 6vw, 28px); }
  section h3 { font-size: 18px; }

  .foot {
    grid-template-columns: 1fr;
    padding: 28px 18px 22px;
    gap: 16px;
  }

  .foot-copy { grid-column: 1 / -1; }
  .foot-top { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 420px) {
  .brand-name { font-size: 15px; }
  .wrap { padding: 14px 12px 0; }
}
</｜DSML｜ parameter>
</｜DSML｜ invoke>
</｜DSML｜ calls>

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