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

:root {
  --ink: #000000;
  --paper: #ffffff;
  --line: rgba(0, 0, 0, 0.16);
  --hair: rgba(0, 0, 0, 0.08);
  --grid: rgba(0, 0, 0, 0.045);
  --unit: 8px;
  --radius: 18px;
  --head: 'Playfair Display SC', 'Songti SC', 'Source Han Serif SC', Georgia, serif;
  --body: 'Karla', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

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

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

body {
  margin: 0;
  max-width: 100%;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.14;
  overflow-wrap: break-word;
}

p {
  margin: 0 0 1em;
  overflow-wrap: break-word;
}

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

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

::selection {
  background: var(--ink);
  color: var(--paper);
}

.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  z-index: 99;
}

.skip:focus {
  width: auto;
  height: auto;
  clip-path: none;
  left: 8px;
  top: 8px;
  padding: 12px 18px;
  font-size: 16px;
}

/* ---------- 页头 ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border-bottom: 1px solid var(--ink);
  padding: 8px clamp(12px, 3vw, 40px) 14px;
}

.brandrow {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hair);
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 0;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.brandtext {
  font-family: var(--head);
  font-size: clamp(19px, 2.2vw, 25px);
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.brandmark {
  width: 26px;
  height: 26px;
  background: var(--ink);
  display: block;
  flex: none;
}

.brandmark-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
  flex: none;
}

.brandrule {
  flex: 1 1 24px;
  min-width: 0;
  height: 1px;
  background: var(--ink);
  opacity: 0.25;
}

.navrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  min-width: 0;
}

nav {
  min-width: 0;
}

nav > ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
  transition: background 0.18s ease, color 0.18s ease;
}

nav a:hover,
nav a:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  flex: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.cta:hover,
.cta:focus-visible {
  background: var(--paper);
  color: var(--ink);
}

/* ---------- 主区 ---------- */

main {
  display: block;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(14px, 3vw, 40px) clamp(12px, 3vw, 40px) 24px;
}

article[id] {
  scroll-margin-top: 168px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  align-content: center;
  min-height: 70vh;
  padding-block: clamp(20px, 4vh, 56px) clamp(44px, 6vh, 72px);
  position: relative;
  min-width: 0;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  height: 14px;
  background: var(--ink);
  transform: skewY(-1.4deg);
  opacity: 0.94;
}

.hfig {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  min-width: 0;
}

.hfig:empty {
  background-image: repeating-linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.07) 0 2px,
    transparent 2px 11px
  );
}

.hfig img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: drift 20s ease-in-out infinite alternate;
}

.hfig-a {
  grid-column: 1 / 6;
  grid-row: 1;
  aspect-ratio: 4 / 5;
  transform: translateY(-14px);
}

.hfig-b {
  grid-column: 3 / 8;
  grid-row: 2;
  aspect-ratio: 16 / 10;
  margin-top: -24px;
}

.hcopy {
  grid-column: 8 / 13;
  grid-row: 1 / 3;
  align-self: center;
  text-align: right;
  padding-left: 8px;
  min-width: 0;
}

.hcopy h1 {
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(30px, 5.6vw, 64px);
  line-height: 1.06;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
  overflow-wrap: break-word;
}

.hdesc {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--ink);
  opacity: 0.78;
  margin-left: auto;
  max-width: 34ch;
  overflow-wrap: break-word;
}

.creed {
  display: grid;
  gap: 10px;
  justify-items: start;
  border-top: 1px solid var(--ink);
  padding-block: 44px 20px;
  margin-top: 12px;
  min-width: 0;
}

.creed small {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.34em;
  line-height: 1.5;
}

.creed h2 {
  font-family: var(--head);
  font-weight: 400;
  font-size: clamp(28px, 4.4vw, 54px);
  line-height: 1.1;
  letter-spacing: 0.01em;
}

/* ---------- 正文模块 ---------- */

main > article:not(.hero):not(.creed) {
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(7px) saturate(130%);
  -webkit-backdrop-filter: blur(7px) saturate(130%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 34px);
  margin-block: 20px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
  min-width: 0;
}

main > article > small {
  display: block;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.24em;
  line-height: 1.5;
  margin-bottom: 8px;
  opacity: 0.72;
}

main > article > h2,
main > article > h3 {
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(23px, 3vw, 34px);
  line-height: 1.16;
  margin-bottom: 14px;
}

main > article > h3 {
  font-size: clamp(20px, 2.4vw, 26px);
}

main > article p,
main > article li {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.75;
}

main > article ul,
main > article ol {
  padding-left: 1.3em;
  margin: 0 0 1em;
}

main > article li {
  margin-bottom: 0.4em;
}

main > article img {
  display: block;
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-block: 8px;
}

main > article blockquote {
  margin: 0 0 1em;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--ink);
  font-size: 17px;
}

main > article code,
main > article pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  overflow-wrap: break-word;
}

main > article table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 16px;
}

main > article th,
main > article td {
  border-bottom: 1px solid var(--hair);
  padding: 10px 8px;
  text-align: left;
}

/* ---------- 页脚 ---------- */

.foot {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 28px 32px;
  border-top: 1px solid var(--ink);
  margin-top: 72px;
  padding: 36px clamp(12px, 3vw, 40px) 48px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  width: 100%;
}

.foot article {
  min-width: 0;
}

.foot-brand .brand {
  min-height: 44px;
}

.foot-links ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 14px;
}

.foot-links a {
  display: flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.foot-links a:hover,
.foot-links a:focus-visible {
  border-bottom-color: var(--ink);
}

.foot-key {
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  opacity: 0.8;
  overflow-wrap: break-word;
}

.foot-bar {
  grid-column: 1 / -1;
  border-top: 1px solid var(--hair);
  padding-top: 18px;
  text-align: center;
}

.foot-bar p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.foot-bar a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 4px;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}

/* ---------- 动效 ---------- */

.rv {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.rv.is-in {
  opacity: 1;
  transform: none;
}

@keyframes drift {
  from { transform: scale(1); }
  to { transform: scale(1.055); }
}

/* ---------- 断点 ---------- */

@media (max-width: 900px) {
  .hcopy h1 {
    font-size: clamp(28px, 6vw, 46px);
  }
  .foot {
    grid-template-columns: 1fr 1fr;
  }
  .foot-key {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 17px;
    background-size: 44px 44px;
  }
  .masthead {
    padding-bottom: 12px;
  }
  .navrow {
    justify-content: flex-start;
    gap: 8px;
  }
  nav > ol {
    gap: 6px;
  }
  nav a,
  .cta {
    min-height: 44px;
    padding: 0 14px;
    font-size: 16px;
  }
  .hero {
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    min-height: 0;
    padding-block: 18px 48px;
  }
  .hcopy {
    grid-column: 1 / 7;
    grid-row: 1;
    text-align: left;
    padding-left: 0;
    margin-bottom: 6px;
  }
  .hdesc {
    margin-left: 0;
    max-width: none;
  }
  .hfig-a {
    grid-column: 1 / 4;
    grid-row: 2;
    aspect-ratio: 1;
    transform: none;
  }
  .hfig-b {
    grid-column: 3 / 7;
    grid-row: 2;
    aspect-ratio: 1;
    margin-top: 26px;
  }
  .creed {
    padding-block: 34px 16px;
  }
  main > article:not(.hero):not(.creed) {
    padding: 18px 16px;
    margin-block: 14px;
  }
  article[id] {
    scroll-margin-top: 200px;
  }
  .foot {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 48px;
    padding-bottom: 40px;
  }
  .foot-key,
  .foot-bar {
    grid-column: auto;
  }
  .foot-bar {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hfig img {
    animation: none;
  }
}
</｜DSML｜ parameter>
</｜DSML｜ invoke>
</｜DSML｜ calls>

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