/* components.css — 床的款式和类型大全 · 可复用组件（三页共用）
   只放跨页面复用的块：按钮、文字链、标签、表格、卡片骨架、声明条、页脚。 */

/* 按钮 */
.btn{
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-size: var(--fs-9); font-weight: 700;
  height: 40px; padding: 0 26px; border-radius: var(--pill);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-solid{ background: var(--accent); color: var(--ink-invert); }
.btn-solid:hover{ background: var(--accent-ink); }
.btn-ghost{ background: transparent; color: var(--accent-ink); border-color: var(--line); }
.btn-ghost:hover{ border-color: var(--accent); }
.btn-line{ background: transparent; color: var(--accent-ink); border-color: var(--accent); }
.btn-line:hover{ background: var(--accent); color: var(--ink-invert); }

/* 文字链 */
.link-arrow{
  font-size: var(--fs-9); font-weight: 700; color: var(--accent-ink);
  border-bottom: 1px solid var(--accent); padding-bottom: 2px;
}
.link-arrow:hover{ color: var(--ink); border-bottom-color: var(--ink); }

/* 标签 / 编号 */
.tag{
  display: inline-flex; align-items: center; height: 21px; padding: 0 9px;
  border-radius: var(--pill); background: var(--accent-soft);
  font-size: var(--fs-4); color: var(--accent-ink); white-space: nowrap;
}
.tag--plain{ background: transparent; border: 1px solid var(--line); color: var(--muted); }

/* 小标题（栏目头） */
.eyebrow{
  font-size: var(--fs-6); font-weight: 700; letter-spacing: .2em;
  color: var(--accent); text-transform: uppercase;
}

/* 表格 */
.table-wrap{ width: 100%; overflow-x: auto; }
.data-table{
  width: 100%; border-collapse: collapse;
  font-size: var(--fs-7); line-height: 1.5;
}
.data-table caption{ text-align: left; font-size: var(--fs-5); color: var(--muted-2); padding-bottom: 8px; }
.data-table th, .data-table td{ text-align: left; padding: 9px 14px; }
.data-table thead th{
  background: var(--bg-band); color: var(--accent-ink);
  font-size: var(--fs-5); font-weight: 700; letter-spacing: .04em; white-space: nowrap;
}
.data-table thead th:first-child{ border-top-left-radius: var(--radius-sm); border-bottom-left-radius: var(--radius-sm); }
.data-table thead th:last-child{ border-top-right-radius: var(--radius-sm); border-bottom-right-radius: var(--radius-sm); }
.data-table tbody th{ font-weight: 700; color: var(--ink); white-space: nowrap; }
.data-table tbody td{ border-bottom: 1px solid var(--line-soft); color: var(--body-soft); }
.data-table tbody tr:nth-child(even){ background: var(--card-tint); }
.data-table .num{ font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }

/* 声明条 */
.notice{
  background: var(--bg-card); border-radius: var(--radius);
  padding: 16px 18px; font-size: var(--fs-5); line-height: 1.72; color: var(--accent-ink);
}
.notice-title{ font-size: var(--fs-4); font-weight: 700; letter-spacing: .16em; color: var(--accent); margin-bottom: 8px; }
.notice-text{ color: var(--body-note); }

/* 跳转链接 */
.skip-link{
  position: absolute; left: -9999px; top: 0; z-index: 60;
  background: var(--ink); color: var(--ink-invert);
  padding: 10px 16px; border-radius: 0 0 var(--r-xs) 0;
}
.skip-link:focus{ left: 0; }

/* 视觉隐藏 */
.sr-only{
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 共享卡片骨架 */
.card{
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius); overflow: hidden;
}
.card:hover{ border-color: var(--line); }
