/* =========================================================
   邹雄 · 笔记
   设计：白 + 深蓝 + 单一强调色 #0071e3，大字号、细分割线、留白
   ========================================================= */

:root {
  --white: #ffffff;
  --paper: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: rgba(0, 0, 0, 0.11);
  --line-soft: rgba(0, 0, 0, 0.06);
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --navy-1: #001733;
  --navy-2: #003a8c;
  --navy-3: #0a5cd6;
  --night: #000a14;
  --radius: 22px;
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, p, dl, dd, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }

.skip {
  position: absolute;
  left: -9999px;
  padding: 10px 18px;
  background: var(--white);
  color: var(--ink);
  z-index: 200;
}
.skip:focus { left: 16px; top: 16px; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ================= 导航 ================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  color: rgba(255, 255, 255, 0.92);
  background: transparent;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  color: var(--ink);
  border-bottom-color: var(--line-soft);
}

.nav-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: 52px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.nav-mark {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.9;
}

.nav-links {
  margin-left: auto;
  display: flex;
  gap: 26px;
  font-size: 13px;
  letter-spacing: 0.01em;
}
.nav-links a {
  opacity: 0.78;
  transition: opacity 0.2s ease;
}
.nav-links a:hover { opacity: 1; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid currentColor;
  opacity: 0.9;
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.nav-cta:hover { opacity: 1; background: currentColor; }
.nav-cta:hover span:last-child { color: var(--white); }
.nav.is-solid .nav-cta:hover { color: var(--white); }

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  padding: 120px var(--gutter) 96px;
  overflow: hidden;
}

.hero-art {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 92% at 50% -18%, var(--navy-3) 0%, var(--navy-2) 34%, var(--navy-1) 66%, var(--night) 100%);
}
.hero-glow {
  position: absolute;
  left: 50%;
  top: -30%;
  width: min(1100px, 120vw);
  height: 720px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(72, 160, 255, 0.45), rgba(72, 160, 255, 0) 72%);
  filter: blur(30px);
}
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 180px;
  background: linear-gradient(to bottom, rgba(0, 10, 20, 0), rgba(0, 10, 20, 0.55));
}

.hero-content { position: relative; max-width: 900px; }

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: clamp(20px, 4vw, 34px);
}

.hero-name {
  font-size: clamp(4.5rem, 14vw, 11rem);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #ffffff 42%, rgba(196, 218, 255, 0.86) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-name-en {
  margin-top: 18px;
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.hero-role {
  margin-top: clamp(26px, 5vw, 44px);
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.hero-sub {
  margin: clamp(16px, 3vw, 24px) auto 0;
  max-width: 520px;
  font-size: 15.5px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.6);
}

.hero-actions {
  margin-top: clamp(30px, 5vw, 46px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.95);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.pill:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.6); transform: translateY(-1px); }
.pill-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}
.pill-primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }

.hero-foot {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.hero-foot-line {
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
}

/* ================= 数字条 ================= */
.stats {
  background: var(--white);
  border-bottom: 1px solid var(--line-soft);
}
.stats-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(44px, 7vw, 76px) var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat {
  padding: 0 clamp(8px, 2vw, 28px);
  border-left: 1px solid var(--line);
  text-align: center;
}
.stat:first-child { border-left: 0; }
.stat b {
  display: block;
  font-size: clamp(1.9rem, 4.2vw, 2.85rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.stat span {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

/* ================= 通用区块 ================= */
.kicker {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.section-head {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.section-title {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.08;
}
.section-note {
  max-width: 300px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-3);
}
.section-side {
  display: flex;
  align-items: flex-end;
  gap: 28px;
}

/* ================= 精选（深色滑块） ================= */
.featured {
  position: relative;
  background: linear-gradient(170deg, #001428 0%, #000a14 62%, #00070f 100%);
  color: var(--white);
  padding: clamp(64px, 9vw, 108px) 0 clamp(40px, 6vw, 64px);
  overflow: hidden;
}
.featured .kicker { color: #4aa3ff; }
.featured .section-note { color: rgba(255, 255, 255, 0.45); }

.carousel-controls { display: flex; gap: 10px; }
.ctrl {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.ctrl svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ctrl:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.ctrl[disabled] { opacity: 0.28; cursor: default; }
.ctrl[disabled]:hover { background: transparent; border-color: rgba(255, 255, 255, 0.18); }

.carousel {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px var(--gutter) 10px;
  cursor: grab;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel.is-dragging { cursor: grabbing; scroll-snap-type: none; }

.carousel-track {
  display: flex;
  gap: 18px;
  width: max-content;
}

.slide {
  position: relative;
  flex: 0 0 min(420px, 80vw);
  scroll-snap-align: start;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.035);
  padding: 30px 30px 26px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
  overflow: hidden;
}
.slide:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-4px);
}
.slide::after {
  content: "";
  position: absolute;
  inset: auto -40% -60% auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 113, 227, 0.35), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.slide:hover::after { opacity: 1; }

.slide-index {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.32);
  font-variant-numeric: tabular-nums;
}
.slide-title {
  margin-top: 18px;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: #fff;
}
.slide-excerpt {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.45);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}
.slide-meta {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
  font-variant-numeric: tabular-nums;
}
.slide-read {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #4aa3ff;
  transition: gap 0.2s ease;
}
.slide:hover .slide-read { gap: 8px; }

.carousel-progress {
  max-width: var(--maxw);
  margin: 26px auto 0;
  padding-inline: var(--gutter);
}
.carousel-progress span {
  display: block;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #4aa3ff, #0071e3);
  transition: width 0.15s linear;
}

/* ================= 归档 ================= */
.archive {
  padding: clamp(64px, 9vw, 108px) 0 clamp(56px, 8vw, 96px);
  background: var(--white);
}
.archive .section-head { margin-bottom: clamp(22px, 3vw, 34px); }

.filters {
  max-width: var(--maxw);
  margin: 0 auto clamp(24px, 3.5vw, 36px);
  padding-inline: var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  font: inherit;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  font-variant-numeric: tabular-nums;
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.chip .count { opacity: 0.5; margin-left: 6px; font-size: 12px; }

.list-head,
.list li a {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 132px 72px;
  gap: 18px;
  align-items: center;
}

.list-head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter) 12px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
}
.list-head .num { text-align: right; }

.list {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.list li { border-bottom: 1px solid var(--line-soft); }
.list li a {
  padding: 18px 14px;
  margin-inline: -14px;
  border-radius: 10px;
  transition: background 0.2s ease;
}
.list li a:hover { background: var(--paper); }

.list-date {
  font-size: 13px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.list-title {
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.list li a:hover .list-title { color: var(--blue); }
.list-cat {
  font-size: 12.5px;
  color: var(--ink-2);
}
.list-views {
  text-align: right;
  font-size: 13px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.list-empty {
  padding: 48px 0;
  text-align: center;
  color: var(--ink-3);
  font-size: 14px;
}

.pagination {
  max-width: var(--maxw);
  margin: clamp(30px, 4vw, 46px) auto 0;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 6px;
}
.page-btn {
  font: inherit;
  font-size: 13.5px;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.page-btn:hover:not([disabled]):not(.is-current) { background: var(--paper); color: var(--ink); }
.page-btn.is-current { background: var(--blue); color: var(--white); }
.page-btn[disabled] { opacity: 0.3; cursor: default; }
.page-arrow svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.page-ellipsis { color: var(--ink-3); padding: 0 4px; }
.page-total { margin-left: auto; font-size: 12.5px; color: var(--ink-3); }

/* ================= 关于 ================= */
.about {
  background: var(--paper);
  padding: clamp(64px, 9vw, 108px) 0;
}
.about-grid {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}
.about-title {
  font-size: clamp(1.75rem, 3.8vw, 2.6rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.16;
  margin-bottom: 26px;
  max-width: 15em;
}
.about-copy p {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink-2);
}
.about-copy p + p { margin-top: 16px; }

.about-facts {
  border-top: 1px solid var(--line);
}
.about-facts div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.about-facts dt { color: var(--ink-3); flex-shrink: 0; }
.about-facts dd { color: var(--ink); text-align: right; }

/* ================= 联系 ================= */
.contact {
  background: linear-gradient(160deg, var(--navy-2) 0%, var(--navy-1) 55%, var(--night) 100%);
  color: var(--white);
  padding: clamp(72px, 10vw, 128px) 0;
}
.contact-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  text-align: center;
}
.contact .kicker { color: #4aa3ff; }
.contact-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.contact-text {
  margin: 18px auto 0;
  max-width: 460px;
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.58);
}
.contact-links {
  margin-top: clamp(30px, 5vw, 44px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.contact-links a:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.5); }
.contact-links .label {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

/* ================= 页脚 ================= */
.footer {
  background: var(--night);
  color: rgba(255, 255, 255, 0.34);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.footer-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 26px var(--gutter) 34px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* ================= 入场动画 ================= */
.reveal { opacity: 1; transform: none; }
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }
html.no-anim .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

/* 分页切换时的列表淡入 */
.list.is-swapping { opacity: 0; transform: translateY(6px); }
.list { transition: opacity 0.22s ease, transform 0.22s ease; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .carousel { scroll-snap-type: none; }
}

/* ================= 响应式 ================= */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }

  .stats-inner { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .stat { border-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }

  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .section-side { width: 100%; justify-content: space-between; align-items: center; }
  .section-note { max-width: 100%; }

  .list-head { display: none; }
  .list li a {
    grid-template-columns: 1fr auto;
    grid-template-areas: "title views" "date cat";
    row-gap: 5px;
    padding: 16px 0;
    margin-inline: 0;
  }
  .list-title { grid-area: title; white-space: normal; font-size: 15.5px; line-height: 1.45; }
  .list-views { grid-area: views; align-self: start; }
  .list-date { grid-area: date; font-size: 12.5px; }
  .list-cat { grid-area: cat; text-align: right; font-size: 12px; }

  .about-grid { grid-template-columns: 1fr; }
  .carousel-progress { margin-top: 20px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 104px; }
  .hero-name { font-size: clamp(4rem, 20vw, 6rem); }
  .hero-sub { font-size: 14.5px; }
  .slide { padding: 24px 22px 20px; min-height: 300px; }
  .slide-title { font-size: 1.25rem; }
  .slide-excerpt { -webkit-line-clamp: 2; }
  .filters { gap: 6px; }
  .chip { font-size: 12.5px; padding: 7px 13px; }
  .pagination { flex-wrap: wrap; gap: 4px; }
  .page-btn { min-width: 32px; height: 34px; font-size: 12.5px; padding: 0 7px; }
  .page-total { width: 100%; margin: 10px 0 0; font-size: 12px; }
}
