/* ============================================================
   爱知识的智慧服务 — 设计系统
   风格：Zine 编辑风 × 贴纸玩具感
   底色 暖米纸 / 墨色描边 / 硬投影 / 糖果点缀色
   ============================================================ */

/* ---------- 1. Design Tokens ---------- */
:root {
  /* 纸张与墨色 */
  --paper: #FBF6EE;
  --paper-2: #F4EBDE;
  --paper-3: #FFFFFF;
  --ink: #221C17;
  --ink-soft: #5B4F45;
  --ink-faint: #6F6357;

  /* 糖果点缀色 —— vivid 用于色块填充，deep 用于文字（保证 AA 对比度） */
  --sun: #FFC53D;
  --sun-deep: #855B00;
  --coral: #F2542D;
  --coral-deep: #C43E1C;
  --teal: #0E7C7B;
  --teal-deep: #0B6B6A;
  --grape: #7B5EA7;
  --grape-deep: #6A4C93;
  --sky: #4FA8D1;
  --sky-deep: #226B8A;
  --leaf: #5BA82F;
  --leaf-deep: #417A1F;
  --mint: #BFE3D0;
  --blush: #FFD9CE;
  --lilac: #DED2F2;

  /* 圆角 */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 36px;
  --r-pill: 999px;

  /* 硬投影（贴纸感核心） */
  --lift-1: 3px 3px 0 var(--ink);
  --lift-2: 5px 5px 0 var(--ink);
  --lift-3: 8px 8px 0 var(--ink);
  --lift-soft: 0 10px 30px -12px rgba(34, 28, 23, 0.28);

  /* 描边 */
  --stroke: 2px solid var(--ink);
  --stroke-thin: 1.5px solid rgba(34, 28, 23, 0.55);

  /* 排版 */
  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI",
    "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", Consolas, "Courier New", monospace;

  /* 流式字号 */
  --fs-xs: 0.78rem;
  --fs-sm: 0.875rem;
  --fs-base: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  --fs-lg: clamp(1.06rem, 0.98rem + 0.4vw, 1.22rem);
  --fs-xl: clamp(1.25rem, 1.1rem + 0.7vw, 1.55rem);
  --fs-2xl: clamp(1.5rem, 1.25rem + 1.2vw, 2.1rem);
  --fs-3xl: clamp(1.9rem, 1.4rem + 2.2vw, 3rem);
  --fs-4xl: clamp(2.4rem, 1.6rem + 3.6vw, 4.4rem);

  /* 流式间距 */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: clamp(2.5rem, 2rem + 2vw, 4rem);
  --sp-8: clamp(3rem, 2rem + 4vw, 6rem);
  --sp-9: clamp(4rem, 2.5rem + 6vw, 8rem);

  /* 动效 */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 140ms;
  --dur: 260ms;
  --dur-slow: 520ms;

  --maxw: 1160px;
  --maxw-narrow: 780px;
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

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

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.72;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255, 197, 61, 0.16), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(191, 227, 208, 0.28), transparent 38%),
    radial-gradient(circle at 78% 92%, rgba(222, 210, 242, 0.3), transparent 40%),
    radial-gradient(rgba(34, 28, 23, 0.055) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 22px 22px;
  background-attachment: fixed, fixed, fixed, scroll;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* clip 不会创建滚动容器，因此不会破坏 header 的 sticky 定位 */
  overflow-x: clip;
}

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 900;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

::selection {
  background: var(--sun);
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- 3. Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2rem);
}

.wrap--narrow {
  max-width: var(--maxw-narrow);
}

.section {
  padding-block: var(--sp-9);
}

.section--tight {
  padding-block: var(--sp-8);
}

.section--tint {
  background: var(--paper-2);
  border-block: var(--stroke);
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -200px;
  transform: translateX(-50%);
  z-index: 999;
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1.3rem;
  border-radius: var(--r-pill);
  font-weight: 700;
  transition: top var(--dur) var(--ease-out-quart);
}
.skip-link:focus {
  top: 14px;
}

/* grid / flex 子项默认 min-width:auto 会被长内容撑破，统一归零 */
.hero__copy,
.hero__visual,
.stat,
.pillars {
  min-width: 0;
}

/* ---------- 4. Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
}

.h-display {
  font-size: var(--fs-4xl);
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.h-section {
  font-size: var(--fs-3xl);
}

.lede {
  font-size: var(--fs-lg);
  color: var(--ink-soft);
  line-height: 1.75;
}

/* 荧光笔高亮 —— 代替纯色文字 */
.mark {
  position: relative;
  display: inline-block;
  padding-inline: 0.12em;
  z-index: 0;
}

.mark::after {
  content: "";
  position: absolute;
  left: -0.06em;
  right: -0.06em;
  bottom: 0.02em;
  height: 0.42em;
  background: var(--sun);
  border-radius: 3px;
  z-index: -1;
  transform: rotate(-0.8deg);
}

.mark--mint::after {
  background: var(--mint);
  transform: rotate(0.9deg);
}

.mark--blush::after {
  background: var(--blush);
}

.text-coral { color: var(--coral-deep); }
.text-teal { color: var(--teal-deep); }
.text-grape { color: var(--grape-deep); }
.text-sky { color: var(--sky-deep); }
.text-sun { color: var(--sun-deep); }
.text-leaf { color: var(--leaf-deep); }

.mono {
  font-family: var(--font-mono);
  font-size: 0.86em;
  letter-spacing: -0.01em;
}

/* ---------- 5. Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 238, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 2px solid transparent;
  transition: border-color var(--dur) var(--ease-out-quart),
    box-shadow var(--dur) var(--ease-out-quart);
}

.site-header.is-stuck {
  border-bottom-color: var(--ink);
  box-shadow: 0 2px 0 rgba(34, 28, 23, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 900;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.brand__mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: var(--stroke);
  border-radius: 12px;
  background: var(--sun);
  display: grid;
  place-items: center;
  box-shadow: var(--lift-1);
  transition: transform var(--dur) var(--ease-out-quart);
}

.brand:hover .brand__mark {
  transform: rotate(-8deg) scale(1.06);
}

.brand__mark svg {
  width: 22px;
  height: 22px;
}

.brand__text small {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  text-transform: uppercase;
  line-height: 1.4;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color var(--dur-fast) var(--ease-out-quart),
    background-color var(--dur-fast) var(--ease-out-quart);
}

.nav__link:hover {
  color: var(--ink);
  background: rgba(34, 28, 23, 0.06);
}

.nav__link[aria-current="page"] {
  color: var(--ink);
  background: var(--sun);
  box-shadow: var(--lift-1);
  border: var(--stroke);
  padding: calc(0.5rem - 2px) calc(0.85rem - 2px);
}

.nav__cta {
  margin-left: 0.4rem;
}

.nav__toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: var(--stroke);
  background: var(--paper-3);
  border-radius: 13px;
  box-shadow: var(--lift-1);
  cursor: pointer;
  padding: 0;
  place-items: center;
  transition: transform var(--dur-fast) var(--ease-out-quart);
}

.nav__toggle:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.nav__toggle span {
  display: block;
  width: 20px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease-out-quart),
    opacity var(--dur) var(--ease-out-quart);
}

.nav__toggle span + span {
  margin-top: 5px;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav__toggle {
    display: grid;
  }
  .nav__links {
    position: absolute;
    inset: calc(100% + 2px) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 1rem clamp(1.15rem, 4vw, 2rem) 1.5rem;
    background: var(--paper);
    border-bottom: var(--stroke);
    box-shadow: 0 18px 30px -20px rgba(34, 28, 23, 0.5);
    transform-origin: top;
    display: none;
  }
  .nav__links.is-open {
    display: flex;
    animation: dropIn var(--dur) var(--ease-out-quart);
  }
  .nav__links li {
    width: 100%;
  }
  .nav__link {
    display: block;
    padding: 0.85rem 1rem;
    font-size: 1.05rem;
    border: var(--stroke-thin);
    background: var(--paper-3);
  }
  .nav__link[aria-current="page"] {
    padding: calc(0.85rem - 2px) calc(1rem - 2px);
  }
  .nav__cta {
    margin: 0.4rem 0 0;
  }
}

@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scaleY(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.82rem 1.5rem;
  min-height: 46px;
  border: var(--stroke);
  border-radius: var(--r-pill);
  background: var(--paper-3);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.97rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: var(--lift-2);
  transition: transform var(--dur-fast) var(--ease-out-quart),
    box-shadow var(--dur-fast) var(--ease-out-quart),
    background-color var(--dur-fast) var(--ease-out-quart);
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--lift-3);
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--ink);
}

.btn--primary {
  background: var(--ink);
  color: var(--paper);
}

.btn--sun {
  background: var(--sun);
}

.btn--coral {
  background: var(--coral);
  color: #FFFFFF;
}

.btn--ghost {
  background: transparent;
  box-shadow: none;
  border-color: var(--ink);
}
.btn--ghost:hover {
  background: var(--paper-3);
  box-shadow: var(--lift-2);
  transform: translate(-2px, -2px);
}

.btn--sm {
  padding: 0.55rem 1.05rem;
  min-height: 40px;
  font-size: 0.88rem;
  box-shadow: var(--lift-1);
}
.btn--sm:hover {
  box-shadow: var(--lift-2);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

/* ---------- 7. Chips / Tags ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.34rem 0.8rem;
  border: var(--stroke);
  border-radius: var(--r-pill);
  background: var(--paper-3);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.chip--sun { background: var(--sun); }
.chip--mint { background: var(--mint); }
.chip--blush { background: var(--blush); }
.chip--lilac { background: var(--lilac); }
.chip--sky { background: #CFE8F3; }
.chip--leaf { background: #D7EDC6; }
.chip--ink { background: var(--ink); color: var(--paper); }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

/* ---------- 8. Cards ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1.25rem, 2.4vw, 1.85rem);
  background: var(--paper-3);
  border: var(--stroke);
  border-radius: var(--r-lg);
  box-shadow: var(--lift-soft);
  transition: transform var(--dur) var(--ease-out-quart),
    box-shadow var(--dur) var(--ease-out-quart);
}

.card--lift {
  box-shadow: var(--lift-2);
}

.card--lift:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--lift-3);
}

.card__icon {
  width: 54px;
  height: 54px;
  border: var(--stroke);
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: var(--lift-1);
}

.card__icon svg {
  width: 27px;
  height: 27px;
}

.card__title {
  font-size: var(--fs-xl);
}

.card__body {
  color: var(--ink-soft);
  flex-grow: 1;
}

.card__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-top: auto;
  padding-top: 0.5rem;
}

/* 卡片点缀色 */
.card--sun-top { border-top: 8px solid var(--sun); }
.card--coral-top { border-top: 8px solid var(--coral); }
.card--teal-top { border-top: 8px solid var(--teal); }
.card--grape-top { border-top: 8px solid var(--grape); }
.card--sky-top { border-top: 8px solid var(--sky); }
.card--leaf-top { border-top: 8px solid var(--leaf); }

/* ---------- 9. Grids ---------- */
.grid {
  display: grid;
  gap: clamp(1.1rem, 2.2vw, 1.75rem);
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
}

/* ---------- 10. Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(3rem, 6vw, 5.5rem);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

@media (max-width: 940px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.hero__title {
  margin-block: 1.1rem 1.4rem;
}

.hero__title .line {
  display: block;
}

.hero__lede {
  max-width: 46ch;
}

.hero__actions {
  margin-top: 1.9rem;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 2.4rem;
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: var(--stroke-thin);
}

.stat__num {
  display: block;
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.stat__label {
  font-size: var(--fs-xs);
  color: var(--ink-faint);
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* Hero 视觉：堆叠便签 */
.hero__visual {
  position: relative;
  min-height: 400px;
  display: grid;
  place-items: center;
}

.note-stack {
  position: relative;
  width: min(100%, 400px);
  aspect-ratio: 1 / 1.05;
}

.note {
  position: absolute;
  border: var(--stroke);
  border-radius: var(--r-md);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--lift-2);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.5;
}

.note--1 {
  width: 66%;
  left: 0;
  top: 6%;
  background: var(--sun);
  transform: rotate(-6deg);
  animation: float1 7s var(--ease-out-quart) infinite;
}
.note--2 {
  width: 62%;
  right: 0;
  top: 30%;
  background: var(--mint);
  transform: rotate(4.5deg);
  animation: float2 8.5s var(--ease-out-quart) infinite;
}
.note--3 {
  width: 70%;
  left: 8%;
  bottom: 8%;
  background: var(--lilac);
  transform: rotate(-2.5deg);
  animation: float3 9.5s var(--ease-out-quart) infinite;
}

.note__tag {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(34, 28, 23, 0.6);
  margin-bottom: 0.35rem;
  font-weight: 800;
}

.note__line {
  display: block;
  height: 2px;
  background: rgba(34, 28, 23, 0.28);
  border-radius: 2px;
  margin-top: 0.5rem;
}
.note__line--short {
  width: 55%;
}

@keyframes float1 {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50% { transform: rotate(-5deg) translateY(-10px); }
}
@keyframes float2 {
  0%, 100% { transform: rotate(4.5deg) translateY(0); }
  50% { transform: rotate(5.5deg) translateY(-14px); }
}
@keyframes float3 {
  0%, 100% { transform: rotate(-2.5deg) translateY(0); }
  50% { transform: rotate(-3.5deg) translateY(-8px); }
}

.hero__badge {
  position: absolute;
  right: -6px;
  bottom: 2%;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: var(--coral-deep);
  color: #fff;
  border: var(--stroke);
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 900;
  font-size: 0.8rem;
  line-height: 1.25;
  letter-spacing: 0.02em;
  box-shadow: var(--lift-2);
  transform: rotate(9deg);
  padding: 0.5rem;
}

@media (max-width: 940px) {
  .hero__visual {
    min-height: 340px;
  }
  .note-stack {
    width: min(100%, 330px);
  }
  .hero__badge {
    width: 88px;
    height: 88px;
    font-size: 0.7rem;
    right: 0;
  }
}

/* ---------- 11. Marquee 跑马灯 ---------- */
.marquee {
  border-block: var(--stroke);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding-block: 0.85rem;
}

.marquee__track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: scrollX 34s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.marquee__item::before {
  content: "✦";
  color: var(--sun);
  font-size: 1.1em;
}

@keyframes scrollX {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ---------- 12. Section heading ---------- */
.sec-head {
  max-width: 64ch;
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
}

.sec-head--center {
  margin-inline: auto;
  text-align: center;
}

.sec-head--center .eyebrow {
  justify-content: center;
}

.sec-head__title {
  margin-block: 0.85rem 0.9rem;
}

/* ---------- 13. 理念条目（带编号） ---------- */
.pillar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1rem, 2.5vw, 2.2rem);
  align-items: start;
  padding-block: clamp(1.8rem, 3.4vw, 2.6rem);
  border-top: var(--stroke-thin);
}

.pillar:last-child {
  border-bottom: var(--stroke-thin);
}

.pillar__num {
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
  min-width: 2.2ch;
}

.pillar__body h3 {
  font-size: var(--fs-2xl);
  margin-bottom: 0.7rem;
}

.pillar__body p {
  color: var(--ink-soft);
  max-width: 68ch;
}

@media (max-width: 640px) {
  .pillar {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
  .pillar__num {
    -webkit-text-stroke: 1.5px var(--coral-deep);
    font-size: 2rem;
  }
}

/* ---------- 14. 内容卡片 / 文章条目 ---------- */
.post {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: clamp(1.3rem, 2.3vw, 1.8rem);
  background: var(--paper-3);
  border: var(--stroke);
  border-radius: var(--r-md);
  box-shadow: var(--lift-soft);
  height: 100%;
  transition: transform var(--dur) var(--ease-out-quart),
    box-shadow var(--dur) var(--ease-out-quart);
}

.post:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--lift-2);
}

.post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  align-items: center;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--ink-faint);
}

.post__title {
  font-size: var(--fs-xl);
  letter-spacing: -0.028em;
}

.post__desc {
  color: var(--ink-soft);
  font-size: 0.97rem;
  flex-grow: 1;
}

.post__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  font-size: 0.92rem;
  margin-top: auto;
  padding-top: 0.4rem;
  color: var(--ink);
}

.post__link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--dur) var(--ease-out-quart);
}

.post:hover .post__link svg {
  transform: translateX(4px);
}

.post__stripe {
  position: absolute;
  left: -2px;
  top: 14%;
  bottom: 14%;
  width: 7px;
  border-radius: 0 4px 4px 0;
  border: 2px solid var(--ink);
  border-left: none;
}

/* ---------- 15. 筛选 Tab ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: clamp(1.8rem, 3.5vw, 2.6rem);
}

.filter {
  padding: 0.55rem 1.15rem;
  min-height: 44px;
  border: var(--stroke);
  border-radius: var(--r-pill);
  background: var(--paper-3);
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: var(--lift-1);
  transition: transform var(--dur-fast) var(--ease-out-quart),
    background-color var(--dur-fast) var(--ease-out-quart),
    box-shadow var(--dur-fast) var(--ease-out-quart);
}

.filter:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--lift-2);
}

.filter[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.filter__count {
  font-size: 0.76em;
  opacity: 0.7;
  margin-left: 0.3em;
}

.is-hidden {
  display: none !important;
}

/* ---------- 16. 精选 / 大条目 ---------- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border: var(--stroke);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--paper-3);
  box-shadow: var(--lift-2);
}

@media (max-width: 860px) {
  .feature {
    grid-template-columns: 1fr;
  }
}

.feature__media {
  position: relative;
  background: var(--sun);
  border-right: var(--stroke);
  min-height: 280px;
  display: grid;
  place-items: center;
  padding: 2rem;
  overflow: hidden;
}

@media (max-width: 860px) {
  .feature__media {
    border-right: none;
    border-bottom: var(--stroke);
    min-height: 200px;
  }
}

.feature__media svg {
  width: min(100%, 300px);
  height: auto;
}

.feature__body {
  padding: clamp(1.6rem, 3vw, 2.8rem);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  justify-content: center;
}

/* ---------- 17. 关于我：时间线 ---------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--ink) 0 8px,
    transparent 8px 15px
  );
}

.timeline li {
  position: relative;
  padding: 0 0 clamp(1.6rem, 3vw, 2.4rem) 3rem;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sun);
  border: var(--stroke);
  box-shadow: var(--lift-1);
}

.timeline li:nth-child(2)::before { background: var(--mint); }
.timeline li:nth-child(3)::before { background: var(--blush); }
.timeline li:nth-child(4)::before { background: var(--lilac); }
.timeline li:nth-child(5)::before { background: #CFE8F3; }

.timeline__year {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--coral-deep);
  margin-bottom: 0.25rem;
}

.timeline h3 {
  font-size: var(--fs-lg);
  margin-bottom: 0.3rem;
}

.timeline p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  max-width: 62ch;
}

/* ---------- 18. FAQ 折叠 ---------- */
.faq {
  display: grid;
  gap: 0.8rem;
}

.faq details {
  border: var(--stroke);
  border-radius: var(--r-md);
  background: var(--paper-3);
  box-shadow: var(--lift-1);
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease-out-quart);
}

.faq details[open] {
  box-shadow: var(--lift-2);
}

.faq summary {
  cursor: pointer;
  padding: 1.05rem 1.3rem;
  font-weight: 800;
  font-size: 1rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  width: 12px;
  height: 12px;
  border-right: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  transform: rotate(45deg) translate(-2px, -2px);
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease-out-quart);
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translate(-4px, -4px);
}

.faq__body {
  padding: 0 1.3rem 1.3rem;
  color: var(--ink-soft);
  border-top: var(--stroke-thin);
  padding-top: 1rem;
}

/* ---------- 19. 表单 ---------- */
.form {
  display: grid;
  gap: 1.1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.field label .req {
  color: var(--coral-deep);
  font-weight: 900;
}

.field input,
.field textarea,
.field select {
  padding: 0.85rem 1rem;
  min-height: 48px;
  border: var(--stroke);
  border-radius: var(--r-sm);
  background: var(--paper-3);
  font-size: 0.97rem;
  transition: box-shadow var(--dur-fast) var(--ease-out-quart),
    transform var(--dur-fast) var(--ease-out-quart);
  width: 100%;
}

.field textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.65;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.9rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23221C17' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 17px 17px;
  cursor: pointer;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  box-shadow: var(--lift-1);
  transform: translate(-2px, -2px);
}

.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.field__hint {
  font-size: var(--fs-xs);
  color: var(--ink-faint);
}

.field__error {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--coral-deep);
  display: none;
}

.field.has-error input,
.field.has-error textarea {
  border-color: var(--coral-deep);
  background: #FFF4F1;
}

.field.has-error .field__error {
  display: block;
}

.form__status {
  padding: 1rem 1.2rem;
  border: var(--stroke);
  border-radius: var(--r-md);
  background: var(--mint);
  font-weight: 700;
  box-shadow: var(--lift-1);
  display: none;
}

.form__status.is-visible {
  display: block;
  animation: dropIn var(--dur) var(--ease-out-quart);
}

/* ---------- 20. 联系卡片 ---------- */
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: clamp(1.1rem, 2vw, 1.5rem);
  background: var(--paper-3);
  border: var(--stroke);
  border-radius: var(--r-md);
  box-shadow: var(--lift-1);
  transition: transform var(--dur) var(--ease-out-quart),
    box-shadow var(--dur) var(--ease-out-quart);
}

.contact-item:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--lift-2);
}

.contact-item__icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border: var(--stroke);
  border-radius: 13px;
  display: grid;
  place-items: center;
  box-shadow: var(--lift-1);
}

.contact-item__icon svg {
  width: 22px;
  height: 22px;
}

.contact-item h3 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.contact-item p {
  font-size: 0.93rem;
  color: var(--ink-soft);
}

.contact-item a {
  font-weight: 800;
  border-bottom: 2px solid var(--sun);
}
.contact-item a:hover {
  border-bottom-color: var(--ink);
}

/* ---------- 21. CTA 区块 ---------- */
.cta {
  position: relative;
  border: var(--stroke);
  border-radius: var(--r-xl);
  background: var(--sun);
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem);
  box-shadow: var(--lift-3);
  overflow: hidden;
  text-align: center;
}

.cta::before,
.cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: var(--stroke);
  opacity: 0.35;
}

.cta::before {
  width: 190px;
  height: 190px;
  left: -60px;
  top: -70px;
  background: var(--coral);
}

.cta::after {
  width: 150px;
  height: 150px;
  right: -45px;
  bottom: -60px;
  background: var(--mint);
}

.cta > * {
  position: relative;
  z-index: 1;
}

.cta__title {
  font-size: var(--fs-3xl);
  margin-block: 0.6rem 0.9rem;
}

.cta__lede {
  max-width: 52ch;
  margin-inline: auto;
  color: rgba(34, 28, 23, 0.88);
  font-size: var(--fs-lg);
  font-weight: 600;
}

.cta .btn-row {
  justify-content: center;
  margin-top: 1.8rem;
}

/* ---------- 22. Footer ---------- */
.site-footer {
  border-top: var(--stroke);
  background: var(--paper-2);
  padding-block: clamp(2.6rem, 5vw, 4rem) 1.6rem;
  margin-top: 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
  gap: clamp(1.8rem, 4vw, 3.5rem);
}

@media (max-width: 760px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand-col {
    grid-column: 1 / -1;
  }
}

.footer__title {
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.9rem;
}

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.footer__list a {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color var(--dur-fast) var(--ease-out-quart);
}
.footer__list a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--sun);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.footer__bottom {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.4rem;
  border-top: var(--stroke-thin);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
  color: var(--ink-faint);
  font-weight: 600;
}

/* ---------- 23. Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--dur-slow) var(--ease-out-expo),
    transform var(--dur-slow) var(--ease-out-expo);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 24. 页头 Banner（内页） ---------- */
.page-head {
  padding-block: clamp(2.8rem, 6vw, 4.6rem) clamp(2rem, 4vw, 3rem);
  border-bottom: var(--stroke);
  background: var(--paper-2);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--ink-faint);
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.breadcrumb li::after {
  content: "/";
  margin-left: 0.5rem;
  opacity: 0.5;
}
.breadcrumb li:last-child::after {
  content: "";
}

.breadcrumb a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 25. 其他工具类 ---------- */
.stack-sm > * + * { margin-top: 0.75rem; }
.stack > * + * { margin-top: 1.25rem; }
.stack-lg > * + * { margin-top: 2rem; }

.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.flow-tight { max-width: 60ch; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  width: 50px;
  height: 50px;
  border: var(--stroke);
  border-radius: 14px;
  background: var(--paper-3);
  box-shadow: var(--lift-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity var(--dur) var(--ease-out-quart),
    transform var(--dur) var(--ease-out-quart),
    visibility var(--dur);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--sun);
}

.to-top svg {
  width: 20px;
  height: 20px;
}

.noise-divider {
  height: 0;
  border-top: var(--stroke);
}
