:root {
  --ink: #1f1f1f;
  --paper: #ffffff;
  --stone: #f5f5f5;
  --line: rgba(31, 31, 31, 0.13);
  --mute: #6b6b6b;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 14px 32px rgba(0, 0, 0, 0.06);
  --shadow-lift: 0 8px 16px rgba(0, 0, 0, 0.08), 0 22px 44px rgba(0, 0, 0, 0.09);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: Quicksand, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

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

.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- 顶栏 ---------- */
.top {
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  padding: 10px 0 12px;
}

.top-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 4px rgba(31, 31, 31, 0.12);
  flex: none;
}

.brand-name {
  white-space: nowrap;
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  flex: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cta:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: var(--shadow);
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.menu-i {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.menu-i:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-1px);
}

/* ---------- 骨架 ---------- */
.wrap {
  display: grid;
  gap: 16px;
  padding: 16px 0 34px;
}

.side {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px 16px 16px;
  box-shadow: var(--shadow);
}

.side-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.side-title span {
  display: inline-block;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 2px;
}

.side-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.side-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 12px;
  border-radius: 4px;
  background: var(--stone);
  text-decoration: none;
  font-size: 16px;
  transition: background 0.18s ease, color 0.18s ease;
}

.side-list a:hover {
  background: var(--ink);
  color: var(--paper);
}

.body {
  order: -1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}

.body > article {
  grid-column: span 6;
  min-width: 0;
}

.body > article:not(.hero) {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 20px 18px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.body > article:not(.hero):hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow-lift);
}

/* ---------- 头图 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 44vh;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: linear-gradient(145deg, #1f1f1f 0%, #3d3d3d 60%, #1f1f1f 100%);
  color: var(--paper);
  box-shadow: var(--shadow-lift);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.66));
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.06);
  will-change: transform;
}

.hero-ghost {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: Caveat, Quicksand, sans-serif;
  font-size: clamp(46px, 13vw, 132px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.17);
  white-space: nowrap;
  pointer-events: none;
}

.hero-text {
  position: relative;
  text-align: center;
  padding: 30px 18px;
}

.hero-text h1 {
  margin: 0 0 16px;
  font-size: clamp(26px, 5.2vw, 44px);
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.hero-go {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.18s ease, color 0.18s ease;
}

.hero-go:hover {
  background: var(--paper);
  color: var(--ink);
}

/* ---------- 正文排版 ---------- */
.body h2 {
  margin: 0 0 14px;
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.35;
  padding-left: 11px;
  border-left: 4px solid var(--ink);
}

.body h2 span {
  display: inline;
}

.body h3 {
  margin: 20px 0 8px;
  font-size: 18px;
  line-height: 1.4;
}

.body p {
  margin: 0 0 14px;
}

.body ul,
.body ol {
  margin: 0 0 14px;
  padding-left: 1.25em;
}

.body li {
  margin-bottom: 6px;
}

.body blockquote {
  margin: 0 0 16px;
  padding: 10px 14px;
  background: var(--stone);
  border-left: 3px solid var(--ink);
  border-radius: 0 4px 4px 0;
}

.body a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.body a:hover {
  background: var(--stone);
}

.body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

.body figure {
  margin: 0 0 16px;
}

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

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

/* ---------- 页脚 ---------- */
.foot {
  border-top: 2px solid var(--ink);
  background: var(--paper);
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
  justify-content: space-between;
  align-items: flex-start;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 34px;
}

.foot-nav dl {
  margin: 0;
}

.foot-nav dt {
  margin: 0;
}

.foot-nav dt h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--mute);
}

.foot-nav dd {
  margin: 0;
}

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
  font-size: 16px;
}

.foot-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.foot-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.copy {
  margin: 0;
  font-size: 15px;
  color: var(--mute);
}

.to-top {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-size: 16px;
  transition: background 0.18s ease, color 0.18s ease;
}

.to-top:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- 宽屏 ---------- */
@media (min-width: 900px) {
  .wrap {
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: start;
    gap: 20px;
    padding-top: 20px;
  }

  .top {
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
  }

  .side {
    grid-column: 1;
    order: 0;
    position: sticky;
    top: 128px;
  }

  .side-list {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .side-list a {
    justify-content: flex-start;
    width: 100%;
  }

  .body {
    grid-column: 2;
    order: 0;
  }

  .body > article,
  .body > article:not(.hero) {
    scroll-margin-top: 130px;
  }

  .body > article:nth-of-type(2),
  .body > article:nth-of-type(3) {
    grid-column: span 3;
  }

  .body > article:nth-of-type(4) {
    grid-column: span 2;
  }

  .body > article:nth-of-type(5) {
    grid-column: span 4;
  }

  .body > article:nth-of-type(6),
  .body > article:nth-of-type(7) {
    grid-column: span 3;
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: 38vh;
  }

  .body > article:not(.hero) {
    padding: 18px 14px;
  }

  .foot {
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
    animation: none !important;
  }

  .body > article:not(.hero):hover {
    transform: none;
  }

  .hero-img {
    transform: none !important;
  }
}

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