/* ==========================================================================
   纸币与纪念币收藏馆 — 样式表
   结构：1.重置  2.设计令牌  3.基础排版  4.布局工具  5.组件  6.响应式断点
   ========================================================================== */

/* ---------- 1. 重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem; /* 锚点定位时避让固定导航栏 */
}

body,
h1, h2, h3, h4, p, figure, blockquote, dl, dd {
  margin: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

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

button {
  background: none;
  border: 0;
  cursor: pointer;
}

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

/* ---------- 2. 设计令牌 ---------- */
:root {
  /* 主色调：纸币的油墨绿 + 印章朱红 + 纸张米白 */
  --ink: #14261f;
  --ink-soft: #3d5249;
  --ink-muted: #6b7f76;

  --paper: #faf7f0;
  --paper-2: #f3eee2;
  --paper-3: #e9e1d1;

  --green: #1f5c46;
  --green-bright: #2d8464;
  --green-wash: #eaf3ee;

  --seal: #b8382c;
  --seal-soft: #d9584a;

  --gold: #a8842f;
  --gold-wash: #f7efdb;

  --line: #ddd3c0;
  --line-strong: #c9bda5;

  /* 字体 */
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --font-mono: "JetBrains Mono", "SF Mono", Consolas, monospace;

  /* 间距节奏 */
  --space-xs: 0.5rem;
  --space-sm: 0.875rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* 圆角与阴影 */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(20, 38, 31, 0.06), 0 2px 8px rgba(20, 38, 31, 0.04);
  --shadow-md: 0 4px 12px rgba(20, 38, 31, 0.08), 0 12px 32px rgba(20, 38, 31, 0.06);
  --shadow-lg: 0 12px 40px rgba(20, 38, 31, 0.14), 0 2px 8px rgba(20, 38, 31, 0.06);

  --container: 1180px;
  --nav-h: 4.25rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--paper);
  /* 纸张纹理：极淡的斜纹，避免纯色死板 */
  background-image:
    repeating-linear-gradient(45deg, rgba(168, 132, 47, 0.025) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 20% 0%, rgba(31, 92, 70, 0.05), transparent 45%);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

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

/* 跳到主内容（键盘用户） */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background: var(--green);
  color: #fff;
  border-radius: var(--radius-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 1rem;
}

/* ---------- 4. 布局工具 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.section--tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--green-bright);
  opacity: 0.6;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  color: var(--ink);
}

.section-desc {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
}

/* ---------- 5. 组件 ---------- */

/* 5.1 顶部导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(250, 247, 240, 0.82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 20px rgba(20, 38, 31, 0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a {
  position: relative;
  color: var(--ink-soft);
  padding-block: 0.35rem;
  transition: color 0.2s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--green-bright);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.15rem;
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: background 0.22s var(--ease), transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.nav-cta:hover {
  background: var(--green-bright);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* 汉堡按钮：仅移动端显示 */
.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
}
.nav-toggle svg {
  width: 20px;
  height: 20px;
}
.nav-toggle .icon-close {
  display: none;
}
.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}
.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

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

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.9rem 0.35rem 0.45rem;
  background: var(--gold-wash);
  border: 1px solid rgba(168, 132, 47, 0.28);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #7d621f;
  margin-bottom: 1.35rem;
}
.hero-badge .dot {
  width: 1.55rem;
  height: 1.55rem;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: #fff;
  border-radius: 50%;
  font-size: 0.62rem;
  font-family: var(--font-mono);
  font-weight: 700;
}

.hero-title {
  font-size: clamp(2.1rem, 5.6vw, 3.6rem);
  line-height: 1.16;
  letter-spacing: -0.005em;
}
.hero-title em {
  font-style: normal;
  color: var(--green);
  position: relative;
  white-space: nowrap;
}
/* 标题下的手绘感下划线 */
.hero-title em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.32em;
  background: linear-gradient(90deg, rgba(168, 132, 47, 0.32), rgba(168, 132, 47, 0.12));
  border-radius: 3px;
  z-index: -1;
}

.hero-desc {
  margin-top: 1.4rem;
  max-width: 34rem;
  font-size: clamp(0.98rem, 1.5vw, 1.1rem);
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.22s var(--ease), border-color 0.22s var(--ease);
  will-change: transform;
}
.btn svg {
  width: 17px;
  height: 17px;
  transition: transform 0.22s var(--ease);
}
.btn--primary {
  background: var(--green);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn--primary:hover {
  background: var(--green-bright);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn--primary:hover svg {
  transform: translateX(3px);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover {
  background: #fff;
  border-color: var(--green-bright);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.hero-stat dt {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1.1;
}
.hero-stat dd {
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

/* Hero 右侧：叠放的纸币卡组 */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(20rem, 40vw, 27rem);
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 4% 4%;
  background: radial-gradient(ellipse at center, rgba(31, 92, 70, 0.14), transparent 68%);
  filter: blur(24px);
  border-radius: 50%;
  z-index: 0;
}

.banknote-stack {
  position: relative;
  width: min(100%, 26rem);
  aspect-ratio: 1.62 / 1;
  z-index: 1;
}

.banknote {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  border: 1px solid rgba(20, 38, 31, 0.12);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform 0.55s var(--ease);
  background: #fffdf7;
}

/* 第 1 层（最下）：纪念币金色 */
.banknote--1 {
  transform: rotate(-9deg) translate(-1.6rem, 1.4rem) scale(0.94);
  background: linear-gradient(135deg, #f4e6c3, #e3cd96 55%, #d9bf7f);
  opacity: 0.95;
}
/* 第 2 层：红色纪念钞 */
.banknote--2 {
  transform: rotate(5deg) translate(1.2rem, 0.6rem) scale(0.96);
  background: linear-gradient(135deg, #f6ded6, #eec4b6 60%, #e0a998);
  opacity: 0.95;
}
/* 第 3 层（最上）：绿色纸币主图 */
.banknote--3 {
  transform: rotate(-1.5deg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.35)),
    repeating-linear-gradient(115deg, #e8f1ea 0 8px, #dceade 8px 16px);
}

.banknote--3 .note-inner {
  position: absolute;
  inset: 0;
  padding: clamp(0.9rem, 2.5vw, 1.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--green);
}
.note-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: var(--font-mono);
  font-size: clamp(0.5rem, 1.2vw, 0.68rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
}
.note-center {
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.05rem, 3vw, 1.65rem);
  letter-spacing: 0.35em;
  text-indent: 0.35em;
}
.note-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--font-mono);
  font-size: clamp(0.55rem, 1.3vw, 0.72rem);
}
.note-seal {
  width: clamp(2rem, 5vw, 2.9rem);
  height: clamp(2rem, 5vw, 2.9rem);
  border-radius: 50%;
  border: 1.5px solid var(--seal);
  color: var(--seal);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: clamp(0.5rem, 1.2vw, 0.68rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  transform: rotate(-8deg);
  opacity: 0.85;
  animation: sealPulse 5s ease-in-out infinite;
}

/* 纸币上的防伪水印纹样 */
.note-guilloche {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    repeating-radial-gradient(circle at 78% 28%, transparent 0 5px, rgba(31, 92, 70, 0.28) 5px 6px),
    repeating-radial-gradient(circle at 22% 74%, transparent 0 6px, rgba(168, 132, 47, 0.3) 6px 7px);
  background-size: 46px 46px, 58px 58px;
}

@keyframes sealPulse {
  0%, 100% { opacity: 0.8; transform: rotate(-8deg) scale(1); }
  50% { opacity: 0.95; transform: rotate(-8deg) scale(1.04); }
}

/* 悬浮徽章：真实感标识 */
.float-tag {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  font-size: 0.75rem;
  font-weight: 600;
  animation: floatY 6s ease-in-out infinite;
}
.float-tag--tl {
  top: 2%;
  left: -4%;
  animation-delay: -1s;
}
.float-tag--br {
  bottom: 6%;
  right: -3%;
  animation-delay: -3s;
}
.float-tag .tag-icon {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 700;
}
.float-tag--tl .tag-icon {
  background: var(--gold-wash);
  color: var(--gold);
}
.float-tag--br .tag-icon {
  background: var(--green-wash);
  color: var(--green);
}
.float-tag .tag-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--ink-muted);
  line-height: 1.3;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* 5.3 分类导航条 */
.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.4rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-bar::-webkit-scrollbar {
  display: none;
}

.chip {
  flex-shrink: 0;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.chip:hover {
  background: var(--green-wash);
  color: var(--green);
}
.chip[aria-pressed="true"] {
  background: var(--green);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

/* 分类区头部行 */
.collection-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.search-box {
  position: relative;
  flex: 0 1 20rem;
  min-width: 0;
}
.search-box svg {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--ink-muted);
  pointer-events: none;
}
.search-box input {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.6rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.88rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.search-box input::placeholder {
  color: var(--ink-muted);
}
.search-box input:focus {
  outline: none;
  background: #fff;
  border-color: var(--green-bright);
  box-shadow: 0 0 0 3px rgba(45, 132, 100, 0.14);
}

/* 5.4 藏品卡片网格 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
  gap: clamp(1rem, 2.2vw, 1.75rem);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  /* 入场动画初始态 */
  opacity: 0;
  transform: translateY(18px);
}
.card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease),
              box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.card:hover,
.card:focus-visible {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-2);
  display: grid;
  place-items: center;
  padding: 1.4rem 1.6rem;
}

/* 用 CSS 绘制的纸币/纪念币缩略图，避免依赖外部图片 */
.mini-note {
  position: relative;
  width: 100%;
  aspect-ratio: 1.85 / 1;
  border-radius: 5px;
  border: 1px solid rgba(20, 38, 31, 0.14);
  box-shadow: 0 6px 16px rgba(20, 38, 31, 0.16);
  transition: transform 0.45s var(--ease);
  overflow: hidden;
}
.card:hover .mini-note {
  transform: scale(1.06) rotate(-1deg);
}

.mini-note__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.42;
  background-image:
    repeating-radial-gradient(circle at 80% 22%, transparent 0 4px, rgba(0, 0, 0, 0.22) 4px 5px),
    repeating-linear-gradient(105deg, rgba(255, 255, 255, 0.28) 0 3px, transparent 3px 9px);
}
.mini-note__label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.55rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.mini-note__denom {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.mini-note__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 纪念币缩略图：圆形金币 */
.mini-coin {
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 32% 28%, #fdf3d4, #dcbf82 42%, #b8964e 72%, #97783a);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.6),
    inset 0 -3px 8px rgba(90, 68, 20, 0.4),
    0 8px 20px rgba(20, 38, 31, 0.2);
  transition: transform 0.45s var(--ease);
}
.card:hover .mini-coin {
  transform: scale(1.07) rotate(6deg);
}
.mini-coin::before {
  /* 币面齿轮纹 */
  content: "";
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.42);
}
.mini-coin__face {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 700;
  color: #6b5222;
  letter-spacing: 0.15em;
  text-indent: 0.15em;
}

/* 状态角标 */
.card-status {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  backdrop-filter: blur(4px);
}
.card-status[data-tone="rare"] {
  background: var(--seal);
  color: #fff;
  border-color: transparent;
}
.card-status[data-tone="stopped"] {
  background: var(--green);
  color: #fff;
  border-color: transparent;
}
.card-status[data-tone="mint"] {
  background: var(--gold);
  color: #fff;
  border-color: transparent;
}

.card-body {
  padding: 1.15rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
}

.card-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
}

.card-excerpt {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--line);
}
.card-year {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
}
.card-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
}
.card-more svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s var(--ease);
}
.card:hover .card-more svg {
  transform: translateX(3px);
}

/* 空状态 */
.empty-state {
  grid-column: 1 / -1;
  padding: 4rem 1.5rem;
  text-align: center;
  color: var(--ink-muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
}
.empty-state strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}

/* 5.5 关于 / 收藏知识 */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.about-list {
  display: grid;
  gap: 1rem;
}

.feature {
  display: flex;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.feature:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  transform: translateX(3px);
}
.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--green-wash);
  color: var(--green);
}
.feature-icon svg {
  width: 19px;
  height: 19px;
}
.feature h3 {
  font-size: 0.98rem;
  margin-bottom: 0.2rem;
}
.feature p {
  font-size: 0.83rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* 状态图例/统计面板 */
.panel {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: linear-gradient(160deg, #fff, var(--paper-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.panel h3 {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.bar-list {
  display: grid;
  gap: 1.05rem;
}
.bar-item {
  display: grid;
  gap: 0.4rem;
}
.bar-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.bar-head span:last-child {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-muted);
}
.bar-track {
  height: 7px;
  background: var(--paper-3);
  border-radius: 999px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--green-bright));
  transition: width 1.1s var(--ease);
}
.bar-item:nth-child(2) .bar-fill {
  background: linear-gradient(90deg, #a8842f, #c9a552);
}
.bar-item:nth-child(3) .bar-fill {
  background: linear-gradient(90deg, #b8382c, #d9584a);
}
.bar-item:nth-child(4) .bar-fill {
  background: linear-gradient(90deg, #4a6d8c, #6b91b3);
}

.panel-note {
  margin-top: 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px dashed var(--line-strong);
  font-size: 0.76rem;
  color: var(--ink-muted);
  line-height: 1.7;
}

/* 5.6 时间线（收藏历程） */
.timeline {
  position: relative;
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  padding-left: 1.9rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: linear-gradient(var(--green-bright), var(--line) 75%, transparent);
}
.timeline-item {
  position: relative;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-1.9rem + 0.4rem - 4px);
  top: 0.42rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--green-bright);
  box-shadow: 0 0 0 3px var(--paper);
}
.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--green);
  font-weight: 700;
}
.timeline-item h3 {
  font-size: 1rem;
  margin: 0.2rem 0 0.35rem;
}
.timeline-item p {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 34rem;
}

/* 5.7 联系 / CTA */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3.5rem);
  background: linear-gradient(135deg, #1b4f3d, #14261f 70%);
  border-radius: var(--radius-lg);
  color: #f4f1e8;
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    repeating-radial-gradient(circle at 88% 10%, transparent 0 8px, rgba(255, 255, 255, 0.16) 8px 9px),
    repeating-radial-gradient(circle at 8% 92%, transparent 0 10px, rgba(212, 175, 100, 0.28) 10px 11px);
  background-size: 90px 90px, 120px 120px;
}
.cta-band > * {
  position: relative;
  z-index: 1;
}
.cta-band h2 {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  color: #fff;
}
.cta-band p {
  margin: 0.9rem auto 0;
  max-width: 34rem;
  color: rgba(244, 241, 232, 0.78);
  font-size: 0.95rem;
}
.cta-band .btn--primary {
  background: var(--gold);
  margin-top: 1.9rem;
}
.cta-band .btn--primary:hover {
  background: #c09840;
}

/* CTA 下方的邮箱提示文字 */
.cta-mail {
  margin-top: 1.15rem;
  font-size: 0.8rem;
  color: rgba(244, 241, 232, 0.6) !important;
  letter-spacing: 0.01em;
}
.cta-mail .mail-text {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(244, 241, 232, 0.88);
  user-select: all; /* 一次点击即可全选复制 */
  cursor: text;
}

/* 5.8 页脚 */
.site-footer {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.75rem;
  border-top: 1px solid var(--line);
  background: rgba(243, 238, 226, 0.6);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3.5rem);
}
.footer-brand p {
  margin-top: 0.9rem;
  font-size: 0.83rem;
  color: var(--ink-muted);
  max-width: 22rem;
  line-height: 1.7;
}
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.9rem;
}
.footer-col ul {
  display: grid;
  gap: 0.55rem;
}
.footer-col a {
  font-size: 0.85rem;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}
.footer-col a:hover {
  color: var(--green);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  color: var(--ink-muted);
}

/* 5.9 详情弹层（原生 dialog） */
.dialog {
  width: min(44rem, calc(100vw - 2rem));
  max-height: min(85dvh, 44rem);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.dialog::backdrop {
  background: rgba(20, 38, 31, 0.45);
  backdrop-filter: blur(3px);
}
.dialog[open] {
  animation: dialogIn 0.32s var(--ease);
}
@keyframes dialogIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dialog-scroll {
  overflow-y: auto;
  max-height: inherit;
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.dialog-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  z-index: 2;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.dialog-close:hover {
  background: #fff;
  transform: rotate(90deg);
}
.dialog-close svg {
  width: 16px;
  height: 16px;
}

.dialog-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.5rem;
}
.dialog-title {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  padding-right: 2.5rem;
}
.dialog-media {
  margin: 1.35rem 0;
  padding: 1.75rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
}
.dialog-media .mini-note {
  max-width: 22rem;
}
.dialog-media .mini-coin {
  max-width: 10rem;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 0.85rem;
  margin-block: 1.25rem;
}
.spec {
  padding: 0.75rem 0.9rem;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.spec dt {
  font-size: 0.68rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}
.spec dd {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.dialog-text {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.8;
}
.dialog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.25rem;
}
.tag-pill {
  padding: 0.25rem 0.7rem;
  background: var(--green-wash);
  color: var(--green);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}

/* ---------- 6. 响应式 ---------- */

/* 平板横屏 ~ 小桌面 */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-visual {
    order: -1;
    min-height: 17rem;
  }
  .banknote-stack {
    width: min(100%, 22rem);
  }
  .hero-desc {
    max-width: 100%;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* 移动端：导航折叠为抽屉 */
@media (max-width: 768px) {
  :root {
    --nav-h: 3.85rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem clamp(1.25rem, 5vw, 2rem) 1.5rem;
    background: rgba(250, 247, 240, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    font-size: 1rem;
    /* 折叠态 */
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-links a {
    padding-block: 0.85rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a::after {
    display: none;
  }
  .nav-cta {
    display: none; /* 抽屉内已含联系入口 */
  }
  .nav-links .mobile-cta {
    display: inline-flex;
    justify-content: center;
    margin-top: 1rem;
    padding: 0.8rem 1.25rem;
    background: var(--green);
    color: #fff;
    border-radius: 999px;
    font-weight: 600;
    border-bottom: 0;
  }

  .hero {
    padding-block: 2rem 2.5rem;
  }
  .hero-visual {
    min-height: 13rem;
  }
  .float-tag--tl {
    left: -2%;
  }
  .float-tag--br {
    right: 0;
  }

  .hero-stats {
    gap: 1.25rem 1.75rem;
  }
  .hero-stat {
    flex: 1 1 40%;
  }

  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
    gap: 1rem;
  }

  .collection-toolbar {
    align-items: stretch;
  }
  .search-box {
    flex: 1 1 100%;
  }
  .category-bar {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* 小手机 */
@media (max-width: 420px) {
  .brand-name {
    font-size: 0.92rem;
  }
  .brand-sub {
    display: none;
  }
  .hero-title {
    font-size: clamp(1.85rem, 8.5vw, 2.3rem);
  }
  .banknote-stack {
    width: 100%;
  }
  .note-center {
    letter-spacing: 0.2em;
    text-indent: 0.2em;
  }
  .float-tag {
    font-size: 0.68rem;
    padding: 0.45rem 0.7rem;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .spec-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 尊重系统减弱动效偏好 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .card {
    opacity: 1;
    transform: none;
  }
}

/* 打印样式 */
@media print {
  .site-header,
  .nav-toggle,
  .hero-actions,
  .cta-band,
  .site-footer,
  .dialog {
    display: none !important;
  }
  body {
    background: #fff;
  }
  .card {
    break-inside: avoid;
    box-shadow: none;
  }
}
