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

:root {
  --ink: #1f1f1f;
  --mute: #5c5c5c;
  --paper: #ffffff;
  --wash: #f5f5f5;
  --line: rgba(31, 31, 31, 0.1);
  --glass: rgba(255, 255, 255, 0.68);
  --glass-hi: rgba(255, 255, 255, 0.86);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 18px 44px -26px rgba(0, 0, 0, 0.4);
  --r: 10px;
  --dock-h: 66px;
}

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

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

body {
  margin: 0;
  padding-bottom: calc(var(--dock-h) + 26px);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--wash);
  background-image: radial-gradient(rgba(31, 31, 31, 0.15) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: -11px -11px;
  overflow-x: hidden;
}

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

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

/* 角落品牌标记 */
.mark {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--glass-hi);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.22s ease;
}
.mark:hover { transform: scale(1.06); }
.mark img { width: 100%; height: 100%; object-fit: cover; }

/* 主区域 */
main { display: block; }

.sheet {
  display: block;
  max-width: 1240px;
  margin: 0 auto;
}

/* 首屏 */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  padding: 120px 22px 132px;
  border-radius: 0 0 56px 56px;
  overflow: hidden;
  background: #1f1f1f;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 20px 20px;
  color: #ffffff;
  isolation: isolate;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31, 31, 31, 0.35) 0%, rgba(31, 31, 31, 0.86) 78%);
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06);
  opacity: 0.9;
}

.hero-copy {
  width: 100%;
  max-width: 780px;
  margin-left: auto;
  text-align: right;
}

.kicker {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.72);
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 6.4vw, 64px);
  line-height: 1.16;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lede {
  max-width: 620px;
  margin: 16px 0 0 auto;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.84);
}

.jump { margin: 24px 0 0; }

.jump a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.jump a:hover { transform: scale(1.02); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.7); }

/* 网格外壳：左栏 + 正文流 */
.grid-shell {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  padding: 46px 22px 0;
}

.rail {
  position: sticky;
  top: 20px;
  padding: 18px 14px;
  border-radius: var(--r);
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.rail h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.rail hr,
.flow hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 10px 0 12px;
}

.rail-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  color: var(--mute);
  transition: background 0.2s ease, color 0.2s ease;
}
.rail-list a:hover { background: rgba(31, 31, 31, 0.06); color: var(--ink); }

/* 正文卡片流 */
.flow {
  min-width: 0;
  max-width: 780px;
}

.flow > section {
  margin: 0 0 18px;
  padding: 26px 24px 28px;
  border-radius: var(--r);
  background: var(--glass-hi);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  scroll-margin-top: 76px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.flow > section:hover { transform: scale(1.008); }

.flow > section:nth-child(3n + 2) {
  background: rgba(245, 245, 245, 0.9);
}
.flow > section:nth-child(3n + 3) {
  background: var(--glass);
}

.flow h2 {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 27px);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.flow h3 {
  margin: 24px 0 8px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
}

.flow p {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.85;
}
.flow p:last-child { margin-bottom: 0; }

.flow ul,
.flow ol {
  margin: 0 0 16px;
  padding-left: 22px;
}
.flow li { margin: 0 0 8px; line-height: 1.8; }

.flow a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.flow a:hover { background: rgba(31, 31, 31, 0.06); }

.flow blockquote {
  margin: 0 0 16px;
  padding: 12px 18px;
  border-left: 3px solid var(--ink);
  background: rgba(31, 31, 31, 0.04);
  border-radius: 0 8px 8px 0;
  font-weight: 300;
}

.flow strong { font-weight: 600; }

/* 页脚 */
.foot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 20px;
  max-width: 1240px;
  margin: 58px auto 0;
  padding: 26px 22px 30px;
  border-top: 1px solid var(--line);
}

.foot-brand {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.foot-copy {
  grid-column: 1;
  grid-row: 2;
  align-self: center;
  font-size: 15px;
  color: var(--mute);
}

.foot-nav {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  justify-content: flex-end;
}

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 15px;
  text-decoration: none;
  color: var(--mute);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  transition: color 0.2s ease, transform 0.2s ease;
}
.foot-nav a:hover { color: var(--ink); transform: scale(1.03); }

/* 回到顶部 */
.to-top {
  position: fixed;
  right: 14px;
  bottom: calc(var(--dock-h) + 26px);
  z-index: 35;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass-hi);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
}
.to-top.on { opacity: 1; visibility: visible; transform: none; }

/* 底部固定导航 */
.dock {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 45;
  width: max-content;
  max-width: calc(100vw - 20px);
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.06), 0 26px 50px -30px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}

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

.dock-list li { flex: 0 0 auto; }

.dock-list li + li::before {
  content: "";
  display: none;
}

.dock-list a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  color: var(--mute);
  transition: background 0.2s ease, color 0.2s ease;
}

.dock-list a:hover { background: rgba(31, 31, 31, 0.07); color: var(--ink); }

.dock-list a[aria-current="true"] {
  background: var(--ink);
  color: #ffffff;
}

.dock-list li:nth-child(2) { margin-left: 6px; }

/* 入场 */
.flow > section.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.flow > section.reveal.in { opacity: 1; transform: none; }

/* 窄屏 */
@media (max-width: 860px) {
  .grid-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 26px 16px 0;
  }
  .rail {
    position: static;
    padding: 14px 12px;
  }
  .rail-list {
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
    scrollbar-width: none;
  }
  .rail-list::-webkit-scrollbar { display: none; }
  .rail-list a {
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--line);
  }
  .flow { max-width: none; }
  .hero {
    padding: 104px 18px 120px;
    border-radius: 0 0 36px 36px;
    min-height: 100svh;
  }
  .hero-copy { text-align: left; }
  .lede { margin-left: 0; }
  .flow > section { padding: 22px 18px 24px; }
  .foot {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px 18px 26px;
  }
  .foot-copy { grid-row: 3; grid-column: 1; }
  .foot-nav { grid-column: 1; grid-row: 2; justify-content: flex-start; }
  .to-top { bottom: calc(var(--dock-h) + 18px); }
}

@media (max-width: 420px) {
  .dock { max-width: calc(100vw - 12px); bottom: 8px; }
  .dock-list a { padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flow > section.reveal { opacity: 1; transform: none; transition: none; }
  .mark:hover,
  .jump a:hover,
  .flow > section:hover,
  .foot-nav a:hover { transform: none; }
  .to-top { transition: none; }
}

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