/* ==========================================================================
   奇异果体育场 Site Kit
   路径：/assets/site.css
   涵盖：刊头头部、页脚、排版基线、栅格、面板、数据组件、动效协议
   ========================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  --paper: #F2E8D5;
  --ink: #1C1B18;
  --kiwi-dark: #2B6E2C;
  --kiwi-bright: #6BBF3A;
  --dark-block: #2E3B31;
  --yellow: #FFD632;
  --card: #FFF6E5;
  --gray-ink: #34332D;
  --edge: #E5D8C0;
  --tomato: #D95D3B;

  --font-heading: "Noto Serif SC", "Source Han Serif SC", "Source Han Serif CN", "Songti SC", Georgia, serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "Source Han Sans CN", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --font-data: "JetBrains Mono", "Roboto Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --container: 76rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --section-space: clamp(4rem, 9vw, 7.5rem);
  --cut-sm: 8px;
  --cut-md: 14px;
  --cut-lg: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(1.8rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p { margin: 0 0 1rem; }

a {
  color: var(--kiwi-dark);
  text-decoration: none;
  transition: color 0.25s ease;
}

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

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

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(28, 27, 24, 0.28);
}

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

#main-content {
  scroll-margin-top: 6rem;
}

/* ---------- 3. 容器与栅格 ---------- */
.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 2rem, 48rem);
  margin-inline: auto;
}

.container--wide {
  width: min(100% - 2rem, 82rem);
  margin-inline: auto;
}

.section-block {
  padding: var(--section-space) 0;
  position: relative;
}

.grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 4. 章节标题系统 ---------- */
.section-title {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.section-index {
  font-family: var(--font-data);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--kiwi-bright);
  flex: 0 0 auto;
}

.section-kicker {
  display: block;
  font-family: var(--font-data);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--kiwi-dark);
  margin-bottom: 0.25rem;
}

.section-heading {
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  margin: 0;
}

.section-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--edge), transparent);
  align-self: center;
}

.speed-band {
  position: relative;
  overflow: hidden;
}

.speed-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -12deg,
    transparent 0 18px,
    rgba(107, 191, 58, 0.16) 18px 19px,
    transparent 19px 36px
  );
  pointer-events: none;
}

/* ---------- 5. 子页首屏 ---------- */
.page-hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  margin-bottom: clamp(2rem, 6vw, 4rem);
  margin-top: clamp(0.5rem, 2vw, 1.5rem);
  background: linear-gradient(105deg, var(--card) 0 58%, var(--kiwi-bright) 58% 63%, var(--dark-block) 63%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
  overflow: hidden;
}

.hero-kicker {
  display: block;
  font-family: var(--font-data);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--kiwi-dark);
  margin-bottom: 0.6rem;
}

.hero-title {
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  line-height: 1.1;
  margin: 0 0 0.8rem;
  color: var(--ink);
}

.hero-lead {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray-ink);
  max-width: 38rem;
  margin: 0;
}

/* ---------- 6. 首屏与通用分节 ---------- */
.kiwi-mark {
  display: block;
  width: 54px;
  height: 54px;
  filter: drop-shadow(0 2px 0 rgba(28, 27, 24, 0.12));
  flex: 0 0 auto;
}

.kiwi-mark--footer {
  width: 44px;
  height: 44px;
}

/* ---------- 7. 头部：刊头与导航 ---------- */
.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 200;
  padding: 0.5rem 1rem;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  transform: translateY(-160%);
  transition: transform 0.3s ease;
  box-shadow: 0 2px 0 rgba(28, 27, 24, 0.2);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(242, 232, 213, 0.84);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 3px double var(--ink);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.site-header[data-scrolled="true"] {
  background: rgba(242, 232, 213, 0.93);
  box-shadow: 0 6px 24px rgba(28, 27, 24, 0.1);
}

.masthead {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.1rem clamp(1rem, 4vw, 2rem) 0.7rem;
  transition: padding 0.35s ease;
}

.masthead-overline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  margin-bottom: 0.35rem;
}

.issue-dash {
  height: 1px;
  flex: 1;
  max-width: 110px;
  background: linear-gradient(90deg, var(--edge), var(--ink) 60%, var(--ink));
}

.issue-dash:last-child {
  background: linear-gradient(90deg, var(--ink) 40%, var(--edge));
}

.issue-text {
  font-family: var(--font-data);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gray-ink);
  white-space: nowrap;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-lockup:hover {
  color: var(--ink);
}

.masthead-title {
  font-size: clamp(1.35rem, 3.6vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: 0.06em;
  font-weight: 900;
  color: var(--ink);
}

.masthead-subline {
  display: block;
  overflow: hidden;
  max-height: 24px;
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--gray-ink);
  transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.4s ease;
}

.site-header[data-scrolled="true"] .masthead {
  padding-bottom: 0.5rem;
}

.site-header[data-scrolled="true"] .masthead-subline {
  max-height: 0;
  opacity: 0;
  margin: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  border-top: 1px solid var(--edge);
  background: rgba(255, 246, 229, 0.32);
}

.nav-link {
  position: relative;
  z-index: 0;
  display: inline-block;
  padding: 0.4rem 0.9rem 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gray-ink);
  text-decoration: none;
  transition: color 0.25s ease, font-weight 0.25s ease;
}

.nav-link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0.35rem;
  right: 0.35rem;
  height: 68%;
  transform: translateY(-50%) skewX(-8deg);
  background: var(--yellow);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: -1;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0;
  height: 2px;
  background: var(--kiwi-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link:hover::before { opacity: 0.35; }
.nav-link:active::before { opacity: 0.7; }
.nav-link:hover::after,
.nav-link:active::after { transform: scaleX(1); }

.nav-link[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}

.nav-link[aria-current="page"]::before {
  opacity: 0.5;
  background: var(--kiwi-bright);
}

.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--kiwi-dark);
}

.nav-num {
  font-family: var(--font-data);
  font-size: 0.65em;
  font-weight: 700;
  color: var(--kiwi-dark);
  margin-right: 0.35em;
  vertical-align: 0.35em;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  border: 2px solid var(--ink);
  background: var(--card);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}

.toggle-bars {
  display: grid;
  gap: 4px;
}

.toggle-bar {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--kiwi-dark), var(--kiwi-bright) 55%, var(--yellow));
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 4;
  pointer-events: none;
}

/* ---------- 8. 移动导航 ---------- */
@media (max-width: 720px) {
  .masthead {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.35rem 0.5rem;
    padding: 0.8rem 1rem;
  }

  .masthead-overline { display: none; }

  .masthead-subline {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: center;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    max-height: 22px;
  }

  .brand-lockup {
    justify-content: flex-start;
    gap: 0.55rem;
  }

  .kiwi-mark {
    width: 38px;
    height: 38px;
  }

  .masthead-title {
    font-size: 1.25rem;
    letter-spacing: 0.04em;
  }

  .nav-toggle {
    grid-column: 2;
    grid-row: 1;
    display: inline-flex;
  }

  .site-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 1rem;
    border-top: 0;
    background: transparent;
    transition: max-height 0.5s var(--ease), opacity 0.35s ease, padding 0.35s ease;
  }

  .site-nav[data-open="true"] {
    max-height: 380px;
    opacity: 1;
    padding: 0.6rem 1rem 0.8rem;
    border-top: 1px solid var(--edge);
  }

  .nav-link {
    text-align: center;
    padding: 0.65rem 0.4rem;
    font-size: 0.92rem;
  }

  .nav-link::before,
  .nav-num {
    display: none;
  }
}

@media (max-width: 380px) {
  .masthead-subline { display: none; }

  .masthead-title {
    font-size: 1.1rem;
  }
}

/* ---------- 9. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: var(--section-space);
  color: var(--paper);
  background: var(--ink);
  background-image: repeating-linear-gradient(
    -12deg,
    transparent 0 26px,
    rgba(107, 191, 58, 0.055) 26px 27.5px,
    transparent 27.5px 55px
  );
}

.site-footer::before {
  content: "";
  display: block;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--kiwi-bright) 0 120px, var(--yellow) 120px 132px);
}

.site-footer a {
  color: rgba(242, 232, 213, 0.82);
  text-decoration: none;
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.site-footer a:hover {
  color: var(--kiwi-bright);
}

.footer-main {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.footer-brand-col {
  min-width: 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--card);
}

.footer-desc {
  max-width: 34rem;
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(242, 232, 213, 0.76);
}

.footer-record {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.8rem;
  padding: 0.3rem 0.7rem;
  border: 1px dashed rgba(255, 214, 50, 0.55);
  font-size: 0.78rem;
  color: var(--yellow);
}

.footer-record span {
  font-size: 0.6rem;
  color: var(--kiwi-bright);
}

.footer-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.footer-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.9rem;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--card);
}

.footer-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(242, 232, 213, 0.18);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 0.35rem 1.5rem;
}

.footer-nav a {
  font-size: 0.9rem;
  padding: 0.15rem 0;
}

.footer-nav a:hover {
  color: var(--kiwi-bright);
  padding-left: 0.25rem;
}

.footer-meta {
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.meta-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0.4rem;
  align-items: baseline;
}

.meta-label {
  font-family: var(--font-data);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--kiwi-bright);
  padding-top: 0.15rem;
}

.meta-value {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(242, 232, 213, 0.85);
  overflow-wrap: break-word;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid rgba(242, 232, 213, 0.16);
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  font-size: 0.8rem;
  color: rgba(242, 232, 213, 0.62);
}

.footer-copy {
  margin: 0;
  font-family: var(--font-data);
}

.footer-note {
  margin: 0;
  text-align: right;
}

/* ---------- 10. 按钮与链接 ---------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - var(--cut-sm)) 0, 100% var(--cut-sm), 100% 100%, var(--cut-sm) 100%, 0 calc(100% - var(--cut-sm)));
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s var(--ease);
}

.button:hover {
  background: var(--ink);
  color: var(--card);
  transform: translateY(-2px);
}

.button:active {
  background: var(--yellow);
  color: var(--ink);
  transform: none;
}

.button--primary {
  background: var(--kiwi-bright);
  color: var(--ink);
}

.button--primary:hover {
  background: var(--ink);
  color: var(--kiwi-bright);
}

.button--ghost {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.button--small {
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding-bottom: 0.15rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--kiwi-dark);
  text-decoration: none;
  border-bottom: 2px solid var(--kiwi-bright);
  transition: gap 0.3s ease, color 0.3s ease;
}

.btn-arrow::after {
  content: "→";
  font-family: var(--font-data);
  transition: transform 0.3s ease;
}

.btn-arrow:hover {
  gap: 0.6rem;
  color: var(--ink);
}

.btn-arrow:hover::after {
  transform: translateX(3px);
}

/* ---------- 11. 面板与卡片 ---------- */
.slash-panel {
  position: relative;
  background: var(--card);
  border: 2px solid var(--edge);
  clip-path: polygon(0 0, calc(100% - var(--cut-lg)) 0, 100% var(--cut-lg), 100% 100%, var(--cut-lg) 100%, 0 calc(100% - var(--cut-lg)));
  transition: border-color 0.3s ease, background 0.3s ease;
}

.slash-panel:hover {
  border-color: var(--kiwi-dark);
  background: #FFF9EE;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: clamp(1.1rem, 2.6vw, 1.8rem);
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.card-title {
  margin: 0.15rem 0 0;
  font-size: 1.05rem;
  line-height: 1.45;
}

.card-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--gray-ink);
}

.card .btn-arrow {
  margin-top: auto;
}

/* ---------- 12. 数据组件 ---------- */
.data-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--edge);
}

.data-row:last-child {
  border-bottom: 0;
}

.data-label {
  font-size: 0.85rem;
  color: var(--gray-ink);
}

.data-value {
  font-family: var(--font-data);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  text-align: right;
}

.possession-row {
  display: grid;
  grid-template-columns: 120px 1fr 56px;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--edge);
}

.possession-row:last-child {
  border-bottom: 0;
}

.possession-label {
  font-family: var(--font-data);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--gray-ink);
}

.possession-track {
  display: block;
  height: 12px;
  background: var(--edge);
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 50%, calc(100% - 5px) 100%, 0 100%, 4px 50%);
}

.possession-fill {
  display: block;
  height: 100%;
  width: var(--p, 50%);
  background: linear-gradient(90deg, var(--kiwi-dark), var(--kiwi-bright));
}

.possession-value {
  font-family: var(--font-data);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: right;
  color: var(--ink);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.stat {
  background: var(--card);
  border: 2px solid var(--edge);
  padding: 1rem 1.2rem;
  clip-path: polygon(0 0, calc(100% - var(--cut-sm)) 0, 100% var(--cut-sm), 100% 100%, var(--cut-sm) 100%, 0 calc(100% - var(--cut-sm)));
  transition: border-color 0.3s ease;
}

.stat:hover {
  border-color: var(--kiwi-dark);
}

.stat-value {
  font-family: var(--font-data);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

.stat-value small {
  font-size: 0.6em;
  color: var(--kiwi-dark);
}

.stat-label {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--gray-ink);
}

/* ---------- 13. 徽标与标签 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.55rem;
  font-family: var(--font-data);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1.5px solid currentColor;
  white-space: nowrap;
}

.badge--live {
  color: var(--tomato);
  background: rgba(217, 93, 59, 0.08);
}

.badge--live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.badge--ok {
  color: var(--kiwi-dark);
  background: rgba(107, 191, 58, 0.1);
}

.badge--hot {
  color: var(--ink);
  background: var(--yellow);
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--edge);
  color: var(--gray-ink);
}

.tag--yellow {
  background: var(--yellow);
  color: var(--ink);
}

.tag--green {
  background: var(--kiwi-bright);
  color: var(--ink);
}

.tag--line {
  background: transparent;
  border: 1.5px dashed var(--kiwi-dark);
  color: var(--kiwi-dark);
}

/* ---------- 14. 面包屑、提示、筛选、时间线 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0 0;
  font-size: 0.85rem;
}

.breadcrumb a {
  color: var(--kiwi-dark);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.crumb-sep {
  color: var(--edge);
  font-family: var(--font-data);
}

.breadcrumb [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.callout {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 1.25rem;
  background: var(--card);
  border-left: 4px solid var(--kiwi-bright);
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--gray-ink);
}

.callout p {
  margin: 0;
}

.callout-tag {
  flex: 0 0 auto;
  padding: 0.15rem 0.45rem;
  font-family: var(--font-data);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
  background: var(--yellow);
  transform: skewX(-8deg);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
}

.filter-chip {
  padding: 0.4rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: transparent;
  border: 2px solid var(--edge);
  color: var(--gray-ink);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.filter-chip:hover {
  border-color: var(--kiwi-dark);
  color: var(--ink);
}

.filter-chip:active {
  background: var(--yellow);
}

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

.timeline {
  position: relative;
  padding-left: 2.2rem;
}

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

.timeline-item {
  position: relative;
  padding: 0 0 1.5rem 1.2rem;
}

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

.timeline-dot {
  position: absolute;
  left: -2.1rem;
  top: 0.3rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--kiwi-dark);
}

.timeline-meta {
  font-family: var(--font-data);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--kiwi-dark);
}

.timeline-body {
  font-size: 0.95rem;
  line-height: 1.7;
}

.timeline-body p {
  margin: 0.2rem 0 0;
}

/* ---------- 15. 图片容器基础 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--dark-block);
  clip-path: polygon(0 0, calc(100% - var(--cut-md)) 0, 100% var(--cut-md), 100% 100%, var(--cut-md) 100%, 0 calc(100% - var(--cut-md)));
}

.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(-12deg, transparent 0 16px, rgba(107, 191, 58, 0.14) 16px 17px, transparent 17px 34px);
  mix-blend-mode: screen;
  pointer-events: none;
}

/* ---------- 16. 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 46px;
  height: 46px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-data);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.to-top[data-visible="true"] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

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

.to-top:active {
  background: var(--tomato);
}

/* ---------- 17. 滚动显现协议 ---------- */
[data-js] [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

[data-js] [data-reveal][data-revealed="true"] {
  opacity: 1;
  transform: none;
}

/* ---------- 18. 响应式收尾 ---------- */
@media (max-width: 900px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-line {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    grid-template-columns: repeat(2, auto);
  }

  .possession-row {
    grid-template-columns: 90px 1fr 48px;
    gap: 0.5rem;
  }

  .meta-row {
    grid-template-columns: 48px 1fr;
  }

  .to-top {
    right: 0.75rem;
    bottom: 0.75rem;
    width: 42px;
    height: 42px;
  }
}

/* ---------- 19. Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }

  [data-js] [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
