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

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

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

body {
  margin: 0;
  background: #ffffff;
  color: #000000;
  font-family: 'Archivo', Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: inherit; }
p, ul, ol, figure, blockquote { margin-top: 0; }

:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}
main :focus-visible,
footer :focus-visible { outline-color: #ffffff; }

.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 100vh;
}

/* ---------- 左侧竖排导航区 ---------- */

.rail {
  background: #000000;
  color: #ffffff;
  padding: 1.15rem 1.1rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-bottom: 1px solid #000000;
}

.strip {
  margin: 0;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
  font-size: 0.95rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #dcdcdc;
}

.brand { display: flex; }
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.2rem 0;
  text-decoration: none;
  color: #ffffff;
}
.logo-img {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  background: #ffffff;
}
.brand-name {
  font-family: 'Space Grotesk', 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.rail-label {
  margin: 0.3rem 0 0;
  font-family: 'Space Grotesk', 'Archivo', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: #a8a8a8;
}
.rail-label > span {
  display: inline-block;
  padding-bottom: 0.28rem;
  border-bottom: 2px solid #ffffff;
}

.rail-nav ul {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.rail-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 0.85rem;
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.2;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 28px;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.rail-nav a:hover,
.rail-nav a:focus-visible {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.rail-foot { margin-top: auto; padding-top: 0.4rem; }
.to-top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 1px solid #ffffff;
}

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

main { display: block; min-width: 0; }

.hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1.1rem;
  min-height: 44vh;
  padding: 1.6rem 1.15rem 0;
}

.hero-top {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 0.8rem;
}

.hero h1 {
  margin: 0;
  max-width: 22ch;
  font-family: 'Space Grotesk', 'Archivo', sans-serif;
  font-weight: 700;
  font-size: clamp(1.95rem, 6.6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.hero-lead {
  margin: 0;
  max-width: 52ch;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #222222;
}

.hero-media {
  margin: 0;
  border: 1px solid #000000;
  border-radius: 28px;
  overflow: hidden;
  background: #000000;
}
.hero-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  transform-origin: center;
  will-change: transform;
}

.wrap {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  padding: 2rem 1.15rem 2.6rem;
}
.wrap > * { grid-column: 1 / -1; }

.body {
  border: 1px solid #000000;
  border-radius: 28px;
  padding: 1.3rem;
  background: #ffffff;
  min-width: 0;
}

/* ---------- 正文 ---------- */

section { min-width: 0; }

section article[id] { scroll-margin-top: 1.25rem; }
section article + article {
  margin-top: 2.2rem;
  padding-top: 2.2rem;
  border-top: 1px solid #000000;
}

section h2 {
  margin: 0 0 0.85rem;
  font-family: 'Space Grotesk', 'Archivo', sans-serif;
  font-weight: 600;
  font-size: clamp(1.35rem, 2.7vw, 1.9rem);
  line-height: 1.16;
  letter-spacing: -0.012em;
}
section h2 > span {
  display: inline-block;
  padding-bottom: 0.16em;
  border-bottom: 3px solid #000000;
}

section h3 {
  margin: 1.6rem 0 0.6rem;
  font-family: 'Space Grotesk', 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 1.16rem;
  line-height: 1.3;
}
section h3 > span {
  display: inline-block;
  padding-bottom: 0.12em;
  border-bottom: 2px solid #000000;
}

section p,
section li {
  font-size: 1.05rem;
  line-height: 1.8;
}
section p { margin: 0 0 1rem; max-width: 70ch; }
section ul,
section ol { margin: 0 0 1rem; padding-left: 1.15rem; max-width: 70ch; }
section li { margin: 0.25rem 0; }

section a {
  color: #000000;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

section img {
  border-radius: 28px;
  border: 1px solid #000000;
}

section blockquote {
  margin: 1.2rem 0;
  padding: 0.15rem 0 0.15rem 1.1rem;
  border-left: 4px solid #000000;
  font-size: 1.08rem;
  max-width: 66ch;
}

section strong { font-weight: 600; }

section table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  margin: 0 0 1rem;
}
section th,
section td {
  border: 1px solid #000000;
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

/* ---------- 页脚：单行三段 ---------- */

footer {
  background: #000000;
  color: #ffffff;
  padding: 1.4rem 1.15rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  align-items: center;
  border-top: 1px solid #000000;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.foot-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.3rem 0.9rem;
  color: #ffffff;
  text-decoration: none;
  border: 1px solid #ffffff;
  border-radius: 28px;
  font-family: 'Space Grotesk', 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 1rem;
}
.foot-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.foot-name > span {
  display: inline-block;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid #ffffff;
}

.foot-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.5rem;
}
.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.3rem 0.5rem;
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 1px solid transparent;
}
.foot-nav a:hover,
.foot-nav a:focus-visible { border-bottom-color: #ffffff; }

.foot-legal {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.foot-legal p {
  margin: 0;
  font-size: 1rem;
  color: #cccccc;
}
.foot-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 1px solid #ffffff;
}

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

@media (prefers-reduced-motion: no-preference) {
  .rail-nav li {
    opacity: 0;
    transform: translateY(8px);
    animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
  }
  .rail-nav li:nth-child(1) { animation-delay: 0.04s; }
  .rail-nav li:nth-child(2) { animation-delay: 0.08s; }
  .rail-nav li:nth-child(3) { animation-delay: 0.12s; }
  .rail-nav li:nth-child(4) { animation-delay: 0.16s; }
  .rail-nav li:nth-child(5) { animation-delay: 0.2s; }
  .rail-nav li:nth-child(6) { animation-delay: 0.24s; }
  .rail-nav li:nth-child(7) { animation-delay: 0.28s; }

  @keyframes rise {
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-img { transform: none !important; }
}

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

@media (min-width: 640px) {
  footer { grid-template-columns: auto 1fr; }
  .foot-legal { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (min-width: 900px) {
  .shell { grid-template-columns: 300px minmax(0, 1fr); }

  .rail {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 100vh;
    overflow-y: auto;
    border-right: 1px solid #000000;
    border-bottom: 0;
    padding: 1.4rem 1.2rem 1.6rem;
  }
  .rail-nav ul { flex-direction: column; gap: 0.15rem; }
  .rail-nav a { justify-content: flex-start; }

  .hero { padding: 2.6rem 2.5rem 0; }
  .wrap { padding: 2.6rem 2.5rem 3.6rem; }
  .wrap > .body { grid-column: 2 / 12; }
  .body { padding: 2.1rem 2.3rem; }
  section article[id] { scroll-margin-top: 2rem; }

  footer {
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    padding: 1.5rem 2.5rem;
  }
  .foot-nav ul { justify-content: center; }
  .foot-legal { grid-column: auto; justify-content: flex-end; }
}

@media (min-width: 1280px) {
  .shell { grid-template-columns: 340px minmax(0, 1fr); }
  .hero { min-height: 45vh; }
  .wrap > .body { grid-column: 2 / 11; }
}

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