:root {
  --ink: #000000;
  --paper: #ffffff;
  --line: #000000;
  --u: 8px;
  --dock-h: 72px;
  --pad: clamp(16px, 4vw, 48px);
}

*,
*::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: "Archivo", "Space Grotesk", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: 0;
  overflow-x: hidden;
  padding-bottom: calc(var(--dock-h) + 32px + env(safe-area-inset-bottom));
  font-variant-numeric: tabular-nums;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", "Archivo", Arial, "PingFang SC", "Noto Sans SC", sans-serif;
  font-weight: 700;
}

p {
  margin: 0 0 18px;
}

/* ---------- 底部固定导航 ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--ink);
  padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
}

.dock-brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 44px;
  padding-right: 14px;
  border-right: 1px solid var(--paper);
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.dock-brand:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.dock-search {
  display: flex;
  flex: 0 0 auto;
  align-items: stretch;
}

.dock-search input {
  width: 118px;
  height: 40px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid var(--paper);
  border-right: 0;
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: 16px;
}

.dock-search input::placeholder {
  color: var(--paper);
  opacity: 0.7;
}

.dock-search button {
  height: 40px;
  min-width: 40px;
  padding: 0 10px;
  border: 1px solid var(--paper);
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.dock-search button:hover {
  background: var(--paper);
  color: var(--ink);
}

.dock-list {
  display: flex;
  flex: 1 1 auto;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.dock-list::-webkit-scrollbar {
  display: none;
}

.dock-list a {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid transparent;
  color: var(--paper);
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}

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

.dock-list .num {
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  opacity: 0.72;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  align-items: end;
  min-height: 45vh;
  padding: 64px var(--pad) 48px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 16px;
}

.hero-badge {
  position: absolute;
  top: 20px;
  right: var(--pad);
  margin: 0;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.hero-media {
  grid-column: 1 / 8;
  position: relative;
  align-self: stretch;
  min-height: 32vh;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  background: repeating-linear-gradient(135deg, #000 0 2px, #fff 2px 11px);
  clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-text {
  grid-column: 8 / 13;
  text-align: right;
}

.hero h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

/* ---------- 主体网格 ---------- */
main {
  padding: 0 var(--pad);
}

.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 304px;
  gap: 32px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 0 72px;
}

.content {
  min-width: 0;
}

div > section {
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}

div > section:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

div h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

div h3 {
  margin: 28px 0 8px;
  font-size: 20px;
  line-height: 1.3;
}

div p,
div li {
  max-width: 68ch;
}

div ul,
div ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

div li {
  margin: 0 0 8px;
}

div blockquote {
  margin: 0 0 18px;
  padding: 0 0 0 18px;
  border-left: 3px solid var(--line);
}

div a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

div a:hover {
  background: var(--ink);
  color: var(--paper);
}

div img {
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

/* ---------- 侧栏 ---------- */
.side {
  position: sticky;
  top: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
}

.side-box h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.subtitle {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.55;
}

.side-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.side-list li {
  border-bottom: 1px solid var(--line);
}

.side-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 2px;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, padding-left 0.18s ease;
}

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

/* ---------- 页脚 ---------- */
.foot {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  padding: 56px var(--pad) 28px;
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
}

.foot-cta {
  grid-column: 1 / -1;
  margin: 0 0 24px;
  max-width: 18ch;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: clamp(34px, 7vw, 70px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
}

.foot-col {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  margin: 0;
}

.foot-col a {
  display: flex;
  align-items: center;
  min-height: 42px;
  border-top: 1px solid var(--paper);
  color: var(--paper);
  font-size: 16px;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.foot-col a:hover {
  background: var(--paper);
  color: var(--ink);
}

.foot-copy {
  grid-column: 1 / 7;
  margin: 32px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--paper);
  font-size: 16px;
  opacity: 0.86;
}

.foot-top {
  grid-column: 7 / 13;
  margin: 32px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--paper);
  text-align: right;
}

.foot-top a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 2px;
  color: var(--paper);
  font-size: 16px;
  text-decoration: none;
}

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

/* ---------- 动效 ---------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.dock-list li,
.side-list li,
.foot-col a {
  animation: rise 0.42s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.dock-list li:nth-child(2) { animation-delay: 0.03s; }
.dock-list li:nth-child(3) { animation-delay: 0.06s; }
.dock-list li:nth-child(4) { animation-delay: 0.09s; }
.dock-list li:nth-child(5) { animation-delay: 0.12s; }
.dock-list li:nth-child(6) { animation-delay: 0.15s; }
.dock-list li:nth-child(7) { animation-delay: 0.18s; }

.side-list li:nth-child(2) { animation-delay: 0.04s; }
.side-list li:nth-child(3) { animation-delay: 0.08s; }
.side-list li:nth-child(4) { animation-delay: 0.12s; }
.side-list li:nth-child(5) { animation-delay: 0.16s; }
.side-list li:nth-child(6) { animation-delay: 0.2s; }
.side-list li:nth-child(7) { animation-delay: 0.24s; }

/* ---------- 断点 ---------- */
@media (max-width: 980px) {
  .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .side {
    position: static;
  }
}

@media (max-width: 760px) {
  :root {
    --dock-h: 118px;
  }

  .dock {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px var(--pad) calc(8px + env(safe-area-inset-bottom));
  }

  .dock-brand {
    flex: 1 1 auto;
    border-right: 0;
    padding-right: 0;
    min-height: 40px;
  }

  .dock-search input {
    width: 104px;
    height: 40px;
  }

  .dock-list {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 60px var(--pad) 36px;
    min-height: 0;
  }

  .hero-text {
    order: 1;
    grid-column: 1 / -1;
  }

  .hero-media {
    order: 2;
    grid-column: 1 / -1;
    min-height: 34vh;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
  }

  .foot-col {
    grid-column: span 6;
  }

  .foot-copy,
  .foot-top {
    grid-column: 1 / -1;
  }

  .foot-top {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .side {
    padding: 16px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

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