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

:root {
  --ink: #000000;
  --paper: #ffffff;
  --glass: rgba(255, 255, 255, 0.66);
  --hair: rgba(0, 0, 0, 0.12);
  --dock: 74px;
  --edge: clamp(1rem, 4vw, 4.5rem);
  --unit: 8px;
}

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

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

body {
  margin: 0;
  overflow-x: clip;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  background-image: linear-gradient(90deg, var(--hair) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  background-position: 0 0;
  letter-spacing: -0.005em;
}

img { max-width: 100%; }
a { color: var(--ink); }

/* ---------- 角标品牌 ---------- */
.mark {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  border-bottom-right-radius: 18px;
  overflow: hidden;
}
.mark__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mark__txt { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.02em; }

/* ---------- 底部固定导航 ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--ink);
}
.dock__list {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0.4rem var(--edge);
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.dock__list::-webkit-scrollbar { display: none; }
.dock li { flex: 0 0 auto; }
.dock a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.55rem 0.7rem;
  color: var(--paper);
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
  border-radius: 10px;
  transition: background 0.18s ease, color 0.18s ease;
}
.dock a::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
}
.dock a:hover,
.dock a:focus-visible { background: var(--paper); color: var(--ink); }
.dock__n {
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  opacity: 0.6;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  padding: clamp(4.5rem, 11vh, 7rem) var(--edge) 2.5rem;
  border-bottom: 1px solid var(--ink);
}
.hero__big {
  position: absolute;
  top: -0.08em;
  right: -0.06em;
  z-index: 0;
  margin: 0;
  font-size: clamp(4rem, 19vw, 17rem);
  font-weight: 700;
  line-height: 0.78;
  letter-spacing: -0.055em;
  color: rgba(0, 0, 0, 0.07);
  white-space: nowrap;
  pointer-events: none;
  will-change: transform;
}
.hero__cols {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--unit);
  align-items: end;
}
.hero__pics {
  position: relative;
  grid-column: 1 / 8;
  height: min(46vh, 360px);
}
.hero__shot {
  position: absolute;
  display: block;
  object-fit: cover;
  border: 1px solid var(--ink);
  border-radius: 18px;
  filter: grayscale(1) contrast(1.08);
  background: repeating-linear-gradient(45deg, #f3f3f3 0 6px, #e9e9e9 6px 12px);
}
.hero__shot--a { left: 0; top: 0; width: 64%; height: 76%; }
.hero__shot--b { left: 42%; top: 38%; width: 48%; height: 58%; mix-blend-mode: multiply; }
.hero__lead {
  grid-column: 8 / 13;
  text-align: right;
}
.hero__lead h1 {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
}

/* ---------- 正文骨架 ---------- */
.paper {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 2rem var(--edge);
  padding: 3.5rem var(--edge) 4rem;
  align-items: start;
}

.rail {
  grid-column: 1;
  grid-row: 1 / span 60;
  position: sticky;
  top: 2rem;
  align-self: start;
}
.rail__h {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.rail hr {
  margin: 0 0 0.9rem;
  border: 0;
  border-top: 1px solid var(--ink);
}
.rail__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.15rem;
}
.rail__list li {
  animation: rise 0.5s ease both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
.rail__list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0.3rem 0;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  color: rgba(0, 0, 0, 0.72);
}
.rail__list a::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 0.6rem;
  background: currentColor;
  flex: 0 0 auto;
}
.rail__list a:hover,
.rail__list a:focus-visible { color: var(--ink); border-bottom-color: var(--ink); }

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

.paper > article {
  grid-column: 2;
  margin-bottom: 1.25rem;
  scroll-margin-top: 1.5rem;
  padding: clamp(1.25rem, 2.6vw, 2.6rem);
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  border: 1px solid var(--ink);
  border-radius: 18px;
}

.paper article h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.35rem, 2.4vw, 1.95rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.paper article h2 + hr {
  margin: 0 0 1.1rem;
  border: 0;
  border-top: 1px solid var(--ink);
}
.paper article h3 {
  margin: 1.6rem 0 0.4rem;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.paper article hr {
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.3);
  margin: 1.4rem 0;
}
.paper article p { margin: 0 0 1rem; max-width: 68ch; }
.paper article p:last-child { margin-bottom: 0; }
.paper article ul,
.paper article ol { margin: 0 0 1rem; padding-left: 1.25rem; max-width: 68ch; }
.paper article li { margin-bottom: 0.35rem; }
.paper article strong { font-weight: 700; }
.paper article a { text-decoration: underline; text-underline-offset: 3px; }
.paper article img {
  display: block;
  width: auto;
  height: auto;
  margin: 1rem 0;
  border-radius: 14px;
  border: 1px solid var(--ink);
}
.paper article blockquote {
  margin: 1rem 0;
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 3px solid var(--ink);
  font-size: 1.02rem;
}
.paper article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.97rem;
}
.paper article th,
.paper article td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  padding: 0.5rem 0.4rem;
  text-align: left;
}
.paper article code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.92em;
  background: rgba(0, 0, 0, 0.07);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}
.paper article time {
  font-variant-numeric: tabular-nums;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: rgba(0, 0, 0, 0.6);
}

/* ---------- 页脚 ---------- */
.ft {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem var(--edge);
  padding: 2.75rem var(--edge) calc(var(--dock) + 2.5rem);
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--ink);
}
.ft p { margin: 0; font-size: 0.95rem; line-height: 1.5; }
.ft__brand { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.ft__desc { color: rgba(255, 255, 255, 0.72); }
.ft__links {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0 1rem;
}
.ft__links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--paper);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}
.ft__links a:hover,
.ft__links a:focus-visible { border-bottom-color: var(--paper); }
.ft__cr {
  font-size: 0.82rem;
  text-align: right;
  align-self: end;
  color: rgba(255, 255, 255, 0.7);
  font-variant-numeric: tabular-nums;
}

/* ---------- 中屏 ---------- */
@media (max-width: 1080px) {
  .paper { grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); }
  .hero__pics { grid-column: 1 / 7; }
  .hero__lead { grid-column: 7 / 13; }
}

/* ---------- 移动端 ---------- */
@media (max-width: 860px) {
  body { font-size: 16px; background-size: calc(100% / 3) 100%; }
  .hero {
    min-height: 0;
    padding: 4.25rem var(--edge) 1.75rem;
  }
  .hero__big { font-size: clamp(3.2rem, 22vw, 7rem); }
  .hero__cols { grid-template-columns: 1fr; gap: 1.1rem; }
  .hero__lead { grid-column: 1; order: -1; text-align: left; }
  .hero__lead h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .hero__pics { grid-column: 1; height: 30vh; min-height: 160px; }

  .paper {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem var(--edge) 2.5rem;
  }
  .rail {
    grid-column: 1;
    grid-row: auto;
    position: static;
  }
  .rail__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1rem;
  }
  .rail__list a { min-height: 40px; }
  .paper > article {
    grid-column: 1;
    padding: 1.25rem 1.1rem;
    border-radius: 18px;
  }

  .ft { grid-template-columns: 1fr 1fr; padding-top: 2rem; }
  .ft__cr { grid-column: 2; align-self: end; }
  .dock__list { padding-left: 1rem; padding-right: 1rem; }
}

@media (max-width: 420px) {
  .ft { grid-template-columns: 1fr; }
  .ft__cr { grid-column: 1; text-align: left; }
}

@media (min-width: 900px) {
  .dock__list { justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }
  .hero__big { transform: none !important; }
}

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