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

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

:root {
  --ink: #000000;
  --paper: #ffffff;
  --r: 18px;
  --max: 1240px;
  --hair: rgba(0, 0, 0, 0.18);
}

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 20px; }

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

/* 顶部细条 */
.strip {
  background: var(--ink);
  color: var(--paper);
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 16px 16px;
}

.strip-in {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.strip-brand {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.26em;
  background: var(--ink);
  padding: 2px 6px 2px 0;
}

.strip-rule {
  flex: 1;
  height: 1px;
  background: var(--paper);
  opacity: 0.4;
  min-width: 24px;
}

/* 页头 */
.bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}

.bar-in {
 scale: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  padding-right: 12px;
}

.mark-img { width: 28px; height: 28px; border-radius: 8px; }

.mark-txt {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.nav { position: relative; }

.nav summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  list-style: none;
  cursor: pointer;
  user-select: none;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.nav summary::-webkit-details-marker { display: none; }
.nav summary:hover { background: #1a1a1a; }

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a,
.rail-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-size: 16px;
  border-radius: 12px;
}

/* 主体网格：左栏 + 正文 */
.frame {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 24px 96px;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

/* 侧栏 */
.rail { position: sticky; top: 92px; }

.rail-in {
  border-radius: var(--r);
  padding: 20px 16px;
  background-image: radial-gradient(rgba(0, 0, 0, 0.16) 1px, transparent 1px);
  background-size: 18px 18px;
}

.rail-h {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.4;
  background: var(--paper);
  padding: 2px 4px;
}

.rail-in hr {
  border: 0;
  height: 2px;
  background: var(--ink);
  margin: 12px 0 14px;
}

.rail-menu { list-style: none; margin: 0; padding: 0; }

.rail-menu a {
  padding: 0 10px;
  background: var(--paper);
  margin-bottom: 2px;
}

.rail-menu a:hover { background: var(--ink); color: var(--paper); }

/* 正文 */
main { min-width: 0; }

.doc { display: block; }

.hero {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 70vh;
  padding: 24px 0 64px;
  scroll-margin-top: 96px;
  background-image: radial-gradient(rgba(0, 0, 0, 0.12) 1px, transparent 1px);
  background-size: 22px 22px;
}

.hero-copy { grid-column: 1 / span 7; }

.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(2.1rem, 6vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-wrap: balance;
}

.hero-lede {
  margin: 0;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  max-width: 46ch;
  background: var(--paper);
  padding: 6px 8px 6px 0;
}

.hero-figure {
  grid-column: 8 / span 5;
  align-self: stretch;
  min-height: 320px;
  border-radius: var(--r);
  overflow: hidden;
  background-color: var(--ink);
  background-image: radial-gradient(rgba(255, 255, 255, 0.55) 1px, transparent 1px);
  background-size: 14px 14px;
}

.hero-shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r);
  transition: transform 0.7s ease;
}

.hero-figure:hover .hero-shot { transform: scale(1.04); }

/* 正文区块 */
.doc > section {
  padding: 64px 0;
  scroll-margin-top: 96px;
}

.doc > section + section { border-top: 1px solid var(--ink); }

.doc h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
  font-weight: 700;
  text-wrap: balance;
}

.doc h3 {
  margin: 32px 0 12px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.doc hr {
  border: 0;
  height: 3px;
  width: 100%;
  background: var(--ink);
  margin: 16px 0 30px;
}

.doc p,
.doc ul,
.doc ol { max-width: 70ch; }

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

.doc li { margin-bottom: 8px; }

.doc blockquote {
  margin: 26px 0;
  padding: 4px 0 4px 20px;
  border-left: 4px solid var(--ink);
  font-weight: 500;
  max-width: 66ch;
}

.doc a { text-decoration: underline; text-underline-offset: 3px; }
.doc strong { font-weight: 600; }

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 16px;
}

.doc th,
.doc td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--hair);
  vertical-align: top;
}

.doc th { font-weight: 600; border-bottom: 2px solid var(--ink); }

.doc img { border-radius: var(--r); margin: 8px 0 24px; }

/* 页脚 */
.foot { background: var(--ink); color: var(--paper); margin-top: 40px; }

.foot-in {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 24px 32px;
}

.foot-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}

.foot-name {
  margin: 0 0 12px;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.foot-desc {
  margin: 0;
  max-width: 44ch;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}

.foot-label {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.78);
}

.foot-row { display: flex; flex-wrap: wrap; gap: 8px; }

.foot-input {
  flex: 1 1 200px;
  min-width: 0;
  min-height: 48px;
  padding: 0 16px;
  font: inherit;
  font-size: 16px;
  color: var(--paper);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--r);
}

.foot-btn {
  min-height: 48px;
  padding: 0 26px;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-radius: var(--r);
  cursor: pointer;
}

.foot-btn:hover { background: #d9d9d9; }

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding: 32px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.foot-cols dl { margin: 0; }

.foot-cols dt {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.foot-cols dd { margin: 0; }

.foot-cols a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
}

.foot-cols a:hover {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.foot-copy { margin: 0; font-size: 16px; color: rgba(255, 255, 255, 0.78); }
.foot-up { margin: 0; }

.foot-up a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px solid var(--paper);
}

/* 滚动显现 */
.rv { opacity: 0; transform: translateY(16px); }

.rv.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (max-width: 999px) {
  .nav-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 258px;
    display: grid;
    gap: 2px;
    padding: 8px;
    background: var(--ink);
    border-radius: var(--r);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  }

  .nav-menu a {
    padding: 0 14px;
    color: var(--paper);
    border-radius: 12px;
  }

  .nav-menu a:hover { background: var(--paper); color: var(--ink); }
}

@media (min-width: 1000px) {
  .nav {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 6px;
  }

  .nav-menu { display: flex; gap: 2px; }

  .nav-menu a { padding: 0 12px; }
  .nav-menu a:hover { background: var(--ink); color: var(--paper); }
}

@media (max-width: 980px) {
  .frame {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding-bottom: 64px;
  }

  .rail { position: static; order: 2; }
  main { order: 1; }

  .rail-in { padding: 18px 14px; }
}

@media (max-width: 760px) {
  .strip-in { padding: 9px 18px; }
  .bar-in { padding: 10px 18px; }

  .frame { padding: 8px 18px 56px; }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 16px 0 40px;
  }

  .hero-copy,
  .hero-figure { grid-column: 1 / -1; }

  .hero-figure { min-height: 230px; }

  .doc > section { padding: 44px 0; }
  .doc hr { margin: 14px 0 22px; }

  .foot-in { padding: 48px 18px 28px; }
  .foot-top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .foot-cols { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; }
  .hero-shot { transition: none; }
}

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