/* 迁徙斑蝶追踪 · 现代自然科学专题页样式
 *
 * 设计规范：自然科学期刊 × 现代数字产品质感
 * 主色调：深林翠墨 + 晨曦琥珀 + 纸灰素雅
 * 适配：桌面端、移动端、微信小程序 web-view（安全区自适应）
 */

:root {
  /* 主色系：自然深林墨绿 */
  --green-950: #061A12;
  --green-900: #0E2A1F;
  --green-800: #133E2F;
  --green-700: #1B513E;
  --green-600: #246952;
  --green-500: #2E8467;
  --green-100: #E6F3EC;
  --green-50: #F0F7F3;

  /* 强调色：暖阳琥珀橙 */
  --amber-600: #C26500;
  --amber-500: #D97706;
  --amber-400: #F59E0B;
  --amber-300: #FBBF24;
  --amber-100: #FEF3C7;
  --amber-50: #FFFBEB;

  /* 界面与中性色 */
  --paper: #F6F8F6;
  --paper-subtle: #EDF2EE;
  --white: #FFFFFF;
  --ink-900: #0B1914;
  --ink-800: #1D2B25;
  --ink-600: #485A52;
  --ink-400: #889B92;
  --ink-200: #DCE5E0;
  --line: #E2E8E4;
  --line-light: #EEF2EF;

  /* 状态色 */
  --ok-bg: #ECFDF5;
  --ok: #059669;
  --ok-border: #A7F3D0;
  --warn-bg: #FFFBEB;
  --warn: #D97706;
  --warn-border: #FDE68A;
  --err-bg: #FFF1F2;
  --err: #E11D48;
  --err-border: #FECDD3;

  /* 圆角与阴影 */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-xs: 0 1px 2px rgba(11, 25, 20, 0.04);
  --shadow-sm: 0 2px 4px rgba(11, 25, 20, 0.04), 0 1px 2px rgba(11, 25, 20, 0.03);
  --shadow-md: 0 6px 16px -2px rgba(11, 25, 20, 0.06), 0 2px 6px -1px rgba(11, 25, 20, 0.04);
  --shadow-lg: 0 16px 32px -4px rgba(11, 25, 20, 0.08), 0 4px 12px -2px rgba(11, 25, 20, 0.03);
  --shadow-xl: 0 24px 48px -8px rgba(11, 25, 20, 0.12), 0 8px 20px -4px rgba(11, 25, 20, 0.04);
  --shadow-glow-amber: 0 0 24px rgba(245, 158, 11, 0.35);

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink-900);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: env(safe-area-inset-bottom);
}

.wrap {
  width: min(1140px, 100% - 40px);
  margin-inline: auto;
}

h1, h2, h3, h4 {
  color: var(--ink-900);
  line-height: 1.3;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

b, strong {
  font-weight: 600;
}

.muted {
  color: var(--ink-600);
}

.small {
  font-size: 14px;
  line-height: 1.6;
}

/* ================================================================
   首屏 HERO
   ================================================================ */

.hero {
  position: relative;
  background-color: #061A12;
  color: #FFFFFF;
  padding: 86px 0 74px;
  overflow: hidden;
  min-height: 480px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  display: block;
}

.hero-dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  z-index: 1;
  pointer-events: none;
}

.hero-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-main {
  flex: 1 1 560px;
}

.kicker-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  margin-bottom: 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber-400);
  box-shadow: 0 0 8px var(--amber-400);
  animation: pulse-dot 2.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.kicker {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #FFFFFF;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: #FFFFFF;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.85), 0 1px 4px rgba(0, 0, 0, 0.95);
}

.lede {
  margin: 0 0 32px;
  max-width: 44em;
  font-size: clamp(15.5px, 1.9vw, 18px);
  line-height: 1.8;
  color: #FFFFFF;
  text-wrap: pretty;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

/* 编号查询卡片 */
.lookup {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lookup-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 12px;
}

.icon-svg {
  width: 17px;
  height: 17px;
  stroke: var(--amber-400);
}

.lookup-row {
  display: flex;
  gap: 10px;
}

.lookup-row input {
  flex: 1 1 auto;
  min-width: 0;
  height: 52px;
  padding: 0 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  background: #FFFFFF;
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.lookup-row input:focus {
  border-color: var(--amber-400);
  box-shadow: 0 0 0 3.5px rgba(245, 158, 11, 0.35);
}

.lookup-row input::placeholder {
  font-family: var(--font-main);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: normal;
  color: var(--ink-400);
  text-transform: none;
}

.lookup-row button {
  flex: 0 0 auto;
  height: 52px;
  padding: 0 28px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber-400) 0%, var(--amber-500) 100%);
  color: #1F1604;
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lookup-row button:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.45);
  filter: brightness(1.05);
}

.lookup-row button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.3);
}

.lookup-row button[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.lookup-hint {
  display: block;
  position: relative;
  margin: 12px 0 0;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.icon-hint-svg {
  position: absolute;
  left: 0;
  top: 3px;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: var(--amber-300);
}

.lookup-hint b {
  color: var(--amber-300);
}

/* 查询结果卡片 */
.lookup-result {
  margin-top: 20px;
  background: #FFFFFF;
  color: var(--ink-900);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.8);
  animation: fadeInDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.lookup-result .res-state {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.res-state.ok {
  background: var(--ok-bg);
  color: var(--ok);
  border: 1px solid var(--ok-border);
}

.res-state.warn {
  background: var(--warn-bg);
  color: var(--warn);
  border: 1px solid var(--warn-border);
}

.res-state.err {
  background: var(--err-bg);
  color: var(--err);
  border: 1px solid var(--err-border);
}

.lookup-result h3 {
  margin: 0 0 6px;
  font-size: 22px;
  color: var(--green-900);
}

.lookup-result .res-code {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--amber-600);
  margin: 0 0 16px;
}

.res-facts {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.res-facts li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.res-facts dt {
  font-size: 12px;
  color: var(--ink-400);
  margin: 0;
}

.res-facts dd {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-800);
}

.timeline {
  margin: 22px 0 0;
  padding: 0 0 0 20px;
  border-left: 2px solid var(--amber-300);
  list-style: none;
}

.timeline li {
  position: relative;
  padding: 0 0 18px 14px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--amber-500);
  box-shadow: 0 0 0 3px #FFFFFF, 0 0 6px rgba(217, 119, 6, 0.4);
}

.timeline .tl-date {
  font-weight: 700;
  color: var(--ink-900);
  font-size: 15px;
}

.timeline .tl-meta {
  font-size: 13.5px;
  color: var(--ink-600);
  margin-top: 3px;
}

/* CTA 按钮 */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  color: var(--green-900);
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  background: #FDFEFE;
}

.cta:active {
  transform: translateY(1px);
}

/* Hero 右侧视觉卡片 */
.hero-visual {
  flex: 0 0 360px;
  display: block;
}

.hero-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-xl);
  overflow: hidden;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65);
}

.hero-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3.2;
  overflow: hidden;
  background: var(--green-900);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.hero-card:hover .hero-photo {
  transform: scale(1.05);
}

.hero-photo-badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.4));
}

.sticker-mini {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), 0 0 0 2px rgba(255, 255, 255, 0.95);
  transition: transform 0.3s ease;
}

.sticker-mini svg,
.sticker svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ================================================================
   吸顶导航栏
   ================================================================ */

.tabs {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 248, 246, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}

.tabs-inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 8px 0;
}

.tabs-inner::-webkit-scrollbar {
  display: none;
}

.tabs a {
  flex: 0 0 auto;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  color: var(--ink-600);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.tabs a:hover {
  color: var(--green-900);
  background: var(--paper-subtle);
}

.tabs a.active {
  color: #FFFFFF;
  background: var(--green-800);
  box-shadow: 0 2px 8px rgba(19, 62, 47, 0.25);
}

/* ================================================================
   通用区块
   ================================================================ */

.section {
  padding: 68px 0;
}

.section.alt {
  background: #FFFFFF;
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: 28px;
}

.section h2 {
  font-size: clamp(24px, 3.2vw, 32px);
  color: var(--green-900);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-sub {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--ink-600);
}

.empty {
  padding: 44px 24px;
  text-align: center;
  color: var(--ink-600);
  background: var(--paper);
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-lg);
  font-size: 15px;
}

/* ================================================================
   数据看板与漏斗 FUNNEL
   ================================================================ */

.funnel {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.funnel-step {
  flex: 1 1 0;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.funnel-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--green-500);
  opacity: 0.7;
}

.funnel-step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.funnel-step b {
  display: block;
  font-size: clamp(32px, 4.4vw, 44px);
  color: var(--green-900);
  font-weight: 800;
  line-height: 1.15;
  font-family: var(--font-main);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.funnel-step span {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-600);
}

.funnel-step.highlight {
  border-color: var(--amber-400);
  background: linear-gradient(180deg, #FFFCF5 0%, #FFFFFF 100%);
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.12);
}

.funnel-step.highlight::before {
  background: linear-gradient(90deg, var(--amber-400), var(--amber-500));
  opacity: 1;
}

.funnel-step.highlight b {
  color: var(--amber-600);
}

.funnel-arrow {
  flex: 0 0 auto;
  align-self: center;
  width: 24px;
  height: 2px;
  background: var(--line);
  position: relative;
}

.funnel-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -4px;
  border: 5px solid transparent;
  border-left-color: var(--line);
}

.funnel-note {
  margin: 16px 0 0;
  padding: 12px 18px;
  background: var(--paper-subtle);
  border-radius: var(--radius-sm);
  color: var(--ink-600);
  font-size: 14px;
  line-height: 1.6;
  border-left: 3px solid var(--amber-400);
}

/* 6格统计指标 */
.stat-grid {
  margin-top: 24px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.stat {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  box-shadow: var(--shadow-xs);
  transition: all 0.25s ease;
}

.stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--green-500);
}

.stat b {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: var(--ink-900);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.stat span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-600);
}

/* 物种构成 */
.species-bar {
  margin-top: 32px;
  padding: 22px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}

.species-bar h3 {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--ink-600);
  font-weight: 600;
}

.species-bar ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.species-bar li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-800);
  display: inline-flex;
  align-items: center;
}

.species-bar li em {
  font-style: normal;
  color: var(--green-600);
  font-family: var(--font-mono);
  margin-left: 8px;
  background: #FFFFFF;
  padding: 1px 8px;
  border-radius: var(--radius-full);
  font-size: 12px;
  border: 1px solid var(--line);
}

/* ================================================================
   这是什么（项目介绍与标本贴纸）
   ================================================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

.prose h3 {
  margin: 36px 0 14px;
  font-size: 20px;
  color: var(--green-900);
  font-weight: 700;
}

.prose h3:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 16px;
  color: var(--ink-800);
  font-size: 15.5px;
  line-height: 1.8;
}

.goals {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.goals li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-800);
  font-size: 15.5px;
  line-height: 1.6;
}

.goals li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23246952' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

/* 标本贴纸卡片 */
.tagcard {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 80px;
}

.tagcard-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--green-950);
}

.tagcard-bg-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  filter: saturate(1.1);
}

.tagcard-visual {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sticker {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 0 3.5px rgba(255, 255, 255, 0.95);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.sticker:hover {
  transform: scale(1.08) rotate(4deg);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5), 0 0 0 4px #FFFFFF;
}

.tagcard-text {
  padding: 24px;
}

.tagcard-text h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--green-900);
}

.tagcard-text p {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.7;
}

/* ================================================================
   追踪地图
   ================================================================ */

.map-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.map-chart {
  width: 100%;
  height: min(68vw, 580px);
  min-height: 360px;
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-800);
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: var(--radius-md);
  padding: 12px 18px;
}

.icon-info-svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  stroke: var(--warn);
}

/* ================================================================
   最新发现卡片流
   ================================================================ */

.cards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-500);
}

.card-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper-subtle);
  display: block;
  transition: transform 0.4s ease;
}

.card:hover .card-photo {
  transform: scale(1.03);
}

.card-body {
  padding: 18px 20px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.card-code {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--amber-600);
  background: var(--amber-50);
  border: 1px solid var(--amber-100);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 8px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-900);
}

.card-meta {
  font-size: 13.5px;
  color: var(--ink-600);
  margin: 0 0 4px;
  line-height: 1.5;
}

.card-flight {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 13.5px;
  color: var(--green-700);
  font-weight: 700;
}

/* ================================================================
   已标放斑蝶表格与筛选
   ================================================================ */

.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
  background: #FFFFFF;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}

.filter-input-wrap {
  flex: 1 1 240px;
  position: relative;
  display: flex;
  align-items: center;
}

.icon-filter-svg {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  stroke: var(--ink-400);
  pointer-events: none;
}

.filters input[type=text] {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 40px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font-family: var(--font-main);
  font-size: 14.5px;
  outline: none;
  transition: all 0.2s ease;
}

.filters input[type=text]:focus {
  border-color: var(--green-600);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(36, 105, 82, 0.15);
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-800);
  cursor: pointer;
  user-select: none;
}

.check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--ink-400);
  border-radius: 5px;
  background: #FFFFFF;
  display: inline-block;
  position: relative;
  transition: all 0.2s ease;
}

.check input:checked + .checkbox-custom {
  background: var(--green-600);
  border-color: var(--green-600);
}

.check input:checked + .checkbox-custom::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #FFFFFF;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.filters button {
  height: 44px;
  padding: 0 24px;
  border: none;
  border-radius: 10px;
  background: var(--green-800);
  color: #FFFFFF;
  font-family: var(--font-main);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filters button:hover {
  background: var(--green-700);
  transform: translateY(-1px);
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #FFFFFF;
  box-shadow: var(--shadow-xs);
}

.tag-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.tag-table th, .tag-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line-light);
  font-size: 14.5px;
}

.tag-table th {
  background: var(--paper-subtle);
  font-size: 13px;
  color: var(--ink-600);
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.tag-table tbody tr {
  cursor: pointer;
  transition: background 0.15s ease;
}

.tag-table tbody tr:hover {
  background: var(--green-50);
}

.tag-table tbody tr:last-child td {
  border-bottom: none;
}

.tag-table .t-code {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--green-800);
  letter-spacing: 0.06em;
}

.badge-recovered {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--ok-bg);
  color: var(--ok);
  border: 1px solid var(--ok-border);
  font-size: 12.5px;
  font-weight: 700;
}

.badge-none {
  color: var(--ink-400);
  font-size: 13px;
}

.pager {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
}

.pager button {
  height: 40px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #FFFFFF;
  color: var(--ink-800);
  font-family: var(--font-main);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
}

.pager button:not([disabled]):hover {
  border-color: var(--green-600);
  color: var(--green-800);
  transform: translateY(-1px);
}

.pager button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.pager span {
  font-size: 14px;
  color: var(--ink-600);
  font-variant-numeric: tabular-nums;
}

/* ================================================================
   怎么参与
   ================================================================ */

.join-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.join-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

.join-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-500);
}

.join-card-featured {
  background: linear-gradient(180deg, #F0F7F3 0%, var(--paper) 100%);
  border-color: rgba(36, 105, 82, 0.3);
  box-shadow: 0 8px 24px rgba(36, 105, 82, 0.08);
}

.join-card-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: var(--shadow-xs);
}

.join-card-badge svg {
  width: 22px;
  height: 22px;
  stroke: var(--green-700);
}

.join-card h3 {
  margin: 0 0 16px;
  font-size: 19px;
  color: var(--green-900);
  font-weight: 700;
}

.step-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: step-counter;
}

.step-list li {
  position: relative;
  padding-left: 32px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-800);
}

.step-list li::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-800);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.join-card p {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-800);
}

.join-card .cta {
  background: var(--green-800);
  color: #FFFFFF;
  margin-top: 10px;
  margin-bottom: 16px;
  box-shadow: 0 6px 18px rgba(19, 62, 47, 0.25);
}

.join-card .cta:hover {
  background: var(--green-700);
}

.flow {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.flow summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--green-800);
  font-size: 15px;
  outline: none;
  list-style-position: inside;
}

.flow ol {
  margin-top: 14px;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.7;
}

.flow ol li {
  margin-bottom: 8px;
}

/* ================================================================
   页脚
   ================================================================ */

.foot {
  background: var(--green-950);
  color: rgba(255, 255, 255, 0.8);
  padding: 48px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.foot-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.foot-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.02em;
}

.foot .muted {
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* ================================================================
   小程序码弹层
   ================================================================ */

.mask {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(6, 26, 18, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.mask[hidden] {
  display: none !important;
}

.mask-box {
  position: relative;
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 36px 28px 28px;
  text-align: center;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleUp {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.mask-box h3 {
  margin: 0 0 20px;
  font-size: 20px;
  color: var(--green-900);
}

.qr-img-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.mask-box img {
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: block;
}

.mask-close {
  position: absolute;
  right: 16px;
  top: 14px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--paper-subtle);
  font-size: 20px;
  line-height: 1;
  color: var(--ink-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mask-close:hover {
  background: var(--line);
  color: var(--ink-900);
}

/* ================================================================
   响应式适配
   ================================================================ */

@media (max-width: 960px) {
  .hero-wrap {
    flex-direction: column;
    gap: 36px;
  }
  .hero-visual {
    width: 100%;
    max-width: 440px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .tagcard {
    position: static;
    max-width: 500px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: max(52px, env(safe-area-inset-top) + 20px) 0 36px;
    min-height: auto;
  }

  .kicker-wrap {
    padding: 4px 12px;
    margin-bottom: 12px;
  }

  .kicker {
    font-size: 12px;
  }

  .hero h1 {
    font-size: 27px;
    margin-bottom: 12px;
    line-height: 1.25;
  }

  .lede {
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 18px;
  }

  .hero-visual {
    display: none;
  }

  .lookup {
    padding: 16px 14px;
    border-radius: var(--radius-md);
  }

  .lookup-label {
    font-size: 13.5px;
    margin-bottom: 10px;
  }

  .lookup-row {
    flex-direction: column;
    gap: 8px;
  }

  .lookup-row input {
    width: 100%;
    height: 48px;
    font-size: 16px;
    padding: 0 14px;
    border-radius: 10px;
  }

  .lookup-row button {
    width: 100%;
    height: 48px;
    font-size: 15px;
    border-radius: 10px;
  }

  .lookup-hint {
    font-size: 12px;
    margin-top: 10px;
  }

  .cta {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 13px 18px;
    font-size: 15px;
    margin-top: 16px;
  }

  .section {
    padding: 38px 0;
  }

  .section-head h2 {
    font-size: 24px;
  }

  .funnel {
    flex-direction: column;
    gap: 8px;
  }

  .funnel-step {
    flex: 0 0 auto;
    width: 100%;
    padding: 16px 14px;
    border-radius: var(--radius-md);
    min-height: 76px;
  }

  .funnel-step b {
    font-size: 32px;
    line-height: 1.15;
  }

  .funnel-step span {
    font-size: 13px;
    margin-top: 4px;
  }

  .funnel-arrow {
    width: 2px;
    height: 12px;
    margin-inline: auto;
  }

  .funnel-arrow::after {
    right: -4px;
    top: auto;
    bottom: 0;
    border-left-color: transparent;
    border-top-color: var(--line);
  }

  .funnel-note {
    font-size: 13px;
    padding: 10px 14px;
    margin-top: 12px;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 16px;
  }

  .stat {
    padding: 14px 12px;
    border-radius: var(--radius-sm);
  }

  .stat b {
    font-size: 22px;
  }

  .stat span {
    font-size: 12px;
    margin-top: 2px;
  }

  .species-bar {
    padding: 16px;
    margin-top: 20px;
  }

  .species-bar li {
    font-size: 13px;
    padding: 5px 12px;
  }

  .join-card {
    padding: 20px 16px;
  }
}

