/* ============================================================
   菇小二 · gx 主题补充样式
   用于基础模板中引入但 redesign 原型未覆盖的组件
   ============================================================ */

/* ===== 面包屑 ===== */
.gx-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--gx-space-2);
  list-style: none;
  font-size: var(--gx-text-sm);
  color: var(--gx-text-secondary);
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.gx-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: var(--gx-space-2);
}

.gx-breadcrumb li:not(:last-child)::after {
  content: '/';
  color: var(--gx-border);
}

.gx-breadcrumb a {
  color: var(--gx-text-secondary);
}

.gx-breadcrumb a:hover {
  color: var(--gx-primary);
}

.gx-breadcrumb li[aria-current="page"] {
  color: var(--gx-text-primary);
  font-weight: var(--gx-font-medium);
}

/* ===== Flash 消息 ===== */
.gx-flash-messages {
  margin-bottom: var(--gx-space-5);
}

.gx-alert {
  display: flex;
  align-items: center;
  gap: var(--gx-space-3);
  padding: var(--gx-space-3) var(--gx-space-4);
  border-radius: var(--gx-radius-md);
  margin-bottom: var(--gx-space-3);
  font-size: var(--gx-text-base);
}

.gx-alert-success { background: var(--gx-success-bg); color: var(--gx-success-text); }
.gx-alert-info    { background: var(--gx-info-bg); color: var(--gx-info); }
.gx-alert-warning { background: var(--gx-warning-bg); color: var(--gx-warning-text); }
.gx-alert-danger  { background: var(--gx-error-bg); color: var(--gx-error-text); }

.gx-alert i {
  flex-shrink: 0;
  font-size: var(--gx-text-lg);
}

.gx-alert span {
  flex: 1;
}

.gx-alert-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--gx-radius-sm);
  color: currentColor;
  opacity: 0.7;
  transition: opacity var(--gx-transition-fast);
}

.gx-alert-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.05);
}

/* ===== 表单错误提示 ===== */
.gx-form-error {
  display: none;
  font-size: var(--gx-text-xs);
  color: var(--gx-error-text);
  margin-top: var(--gx-space-2);
}

.gx-input-error {
  border-color: var(--gx-error-border) !important;
}

.gx-input-error:focus {
  box-shadow: 0 0 0 3px var(--gx-error-bg) !important;
}

/* ===== 分页 ===== */
.gx-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gx-space-4);
  margin-top: var(--gx-space-6);
  flex-wrap: wrap;
}

.gx-pagination-info {
  font-size: var(--gx-text-sm);
  color: var(--gx-text-secondary);
}

.gx-pagination-btns {
  display: flex;
  gap: var(--gx-space-3);
}

/* ===== 认证页 ===== */
.gx-auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

.gx-auth-bg {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.gx-auth-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(29, 33, 41, 0.75) 0%, rgba(32, 165, 58, 0.45) 100%);
  z-index: -1;
}

.gx-auth-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: var(--gx-space-6);
  position: relative;
  z-index: 1;
}

.gx-auth-nav {
  margin-bottom: var(--gx-space-8);
}

.gx-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--gx-space-3);
  color: #FFFFFF;
  text-decoration: none;
}

.gx-auth-brand:hover {
  color: #FFFFFF;
}

.gx-auth-brand-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--gx-radius-md);
  object-fit: cover;
}

.gx-auth-brand-name {
  font-size: var(--gx-text-xl);
  font-weight: var(--gx-font-bold);
  line-height: 1.2;
}

.gx-auth-brand-sub {
  font-size: var(--gx-text-xs);
  opacity: 0.85;
}

.gx-auth-content {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--gx-space-12);
  align-items: center;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.gx-auth-tagline {
  color: #FFFFFF;
}

.gx-auth-tagline h2 {
  font-size: var(--gx-text-display);
  font-weight: var(--gx-font-bold);
  color: #FFFFFF;
  line-height: var(--gx-leading-tight);
  margin-bottom: var(--gx-space-4);
}

.gx-auth-tagline h2 span {
  color: rgba(255, 255, 255, 0.85);
}

.gx-auth-tagline p {
  font-size: var(--gx-text-lg);
  opacity: 0.9;
}

.gx-auth-card {
  background: var(--gx-bg-card);
  border-radius: var(--gx-radius-card);
  box-shadow: var(--gx-shadow-xl);
  padding: var(--gx-space-8);
}

.gx-auth-card-title {
  font-size: var(--gx-text-2xl);
  font-weight: var(--gx-font-bold);
  color: var(--gx-text-primary);
  margin-bottom: var(--gx-space-2);
}

.gx-auth-card-subtitle {
  font-size: var(--gx-text-sm);
  color: var(--gx-text-secondary);
  margin-bottom: var(--gx-space-6);
}

.gx-auth-footer {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--gx-text-xs);
  padding: var(--gx-space-6) 0 0;
}

.gx-auth-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.gx-auth-footer a:hover {
  color: #FFFFFF;
}

@media (max-width: 992px) {
  .gx-auth-content {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .gx-auth-tagline {
    text-align: center;
    display: none;
  }

  .gx-auth-card {
    padding: var(--gx-space-6);
  }
}

/* ===== 错误页 ===== */
.gx-error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gx-space-6);
  background: var(--gx-bg-page);
}

.gx-error-container {
  text-align: center;
  max-width: 520px;
  width: 100%;
}

.gx-error-icon {
  font-size: 80px;
  margin-bottom: var(--gx-space-4);
}

.gx-error-icon.text-success { color: var(--gx-success); }
.gx-error-icon.text-danger  { color: var(--gx-error); }
.gx-error-icon.text-warning { color: var(--gx-warning); }
.gx-error-icon.text-info    { color: var(--gx-info); }

.gx-error-title {
  font-size: var(--gx-text-2xl);
  font-weight: var(--gx-font-bold);
  color: var(--gx-text-primary);
  margin-bottom: var(--gx-space-3);
}

.gx-error-desc {
  font-size: var(--gx-text-base);
  color: var(--gx-text-secondary);
  margin-bottom: var(--gx-space-6);
}

.gx-error-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gx-space-3);
  flex-wrap: wrap;
}

/* ===== 骨架屏（简化版，避免旧样式缺失） ===== */
.gx-skeleton {
  background: linear-gradient(90deg, var(--gx-border-light) 25%, var(--gx-bg-page) 50%, var(--gx-border-light) 75%);
  background-size: 200% 100%;
  border-radius: var(--gx-radius-sm);
  animation: gx-skeleton-loading 1.5s infinite;
}

@keyframes gx-skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .gx-skeleton {
    animation: none;
    background: var(--gx-border-light);
  }
}

/* ===== 旋转动画 ===== */
.gx-spin {
  display: inline-block;
  animation: gx-spin 1s linear infinite;
}

@keyframes gx-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

/* ===== 表单输入框内图标 ===== */
.gx-input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.gx-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gx-text-secondary);
  font-size: var(--gx-text-md);
  pointer-events: none;
  z-index: 1;
}

/* ===== 认证页链接行 ===== */
.gx-auth-link-row {
  text-align: center;
  font-size: var(--gx-text-sm);
  color: var(--gx-text-secondary);
}

.gx-auth-link-row a {
  color: var(--gx-primary);
  font-weight: var(--gx-font-medium);
}

/* ===== 通用隐藏 ===== */
.hidden {
  display: none !important;
}

/* ===== 密码强度条（兼容旧 JS 验证） ===== */
.password-strength {
  height: 6px;
  background: var(--gx-border);
  border-radius: var(--gx-radius-pill);
  margin-top: var(--gx-space-2);
  overflow: hidden;
}

.password-strength-bar {
  height: 100%;
  border-radius: var(--gx-radius-pill);
  transition: width 0.2s ease;
}

.strength-weak   { width: 33%; background: var(--gx-error); }
.strength-medium { width: 66%; background: var(--gx-warning); }
.strength-strong { width: 100%; background: var(--gx-success); }

/* ===== 文字大小工具类 ===== */
.text-xs { font-size: var(--gx-text-xs) !important; }
.text-sm { font-size: var(--gx-text-sm) !important; }
.text-lg { font-size: var(--gx-text-lg) !important; }
.text-xl { font-size: var(--gx-text-xl) !important; }

/* ===== 带背景色的页面标题区 ===== */
.gx-page-header--bg {
  background: var(--gx-gradient-primary);
  color: #FFFFFF;
  padding: var(--gx-space-6);
  border-radius: var(--gx-radius-card);
  margin-bottom: var(--gx-space-6);
  align-items: center;
}

.gx-page-header--bg .gx-page-title h2,
.gx-page-header--bg .gx-page-title p {
  color: #FFFFFF;
}

.gx-page-header--bg .text-brand {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* ===== 文本截断 ===== */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== 全宽 ===== */
.w-full { width: 100% !important; }

/* ===== 头像预览图填充 ===== */
.avatar-img-full {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* ===== 表单验证状态（兼容旧 JS 验证） ===== */
input.error,
input.gx-input-error {
  border-color: var(--gx-error-border) !important;
}

input.error:focus,
input.gx-input-error:focus {
  box-shadow: 0 0 0 3px var(--gx-error-bg) !important;
}

input.success,
input.gx-input-success {
  border-color: var(--gx-success) !important;
}

input.success:focus,
input.gx-input-success:focus {
  box-shadow: 0 0 0 3px var(--gx-success-bg) !important;
}

/* ===== 规则/列表页面 ===== */
.gx-rule-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gx-rule-list li {
  position: relative;
  padding-left: var(--gx-space-6);
  padding-bottom: var(--gx-space-3);
  margin-bottom: var(--gx-space-3);
  border-bottom: 1px solid var(--gx-border-light);
  line-height: var(--gx-leading-relaxed);
}

.gx-rule-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.gx-rule-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gx-primary);
}

/* ===== 采集指南步骤列表 ===== */
.gx-step-list {
  list-style: none;
  counter-reset: gx-step;
  padding: 0;
  margin: 0;
}

.gx-step-list > li {
  position: relative;
  padding-left: var(--gx-space-8);
  padding-bottom: var(--gx-space-4);
  margin-bottom: var(--gx-space-4);
  border-left: 2px solid var(--gx-border-light);
}

.gx-step-list > li:last-child {
  border-left-color: transparent;
  margin-bottom: 0;
  padding-bottom: 0;
}

.gx-step-list > li::before {
  counter-increment: gx-step;
  content: counter(gx-step);
  position: absolute;
  left: -16px;
  top: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gx-primary);
  color: #FFFFFF;
  border-radius: 50%;
  font-size: var(--gx-text-sm);
  font-weight: var(--gx-font-bold);
}

.gx-step-sublist {
  list-style: none;
  margin-top: var(--gx-space-2);
  padding-left: 0;
}

.gx-step-sublist li {
  position: relative;
  padding-left: var(--gx-space-4);
  margin-bottom: var(--gx-space-2);
  color: var(--gx-text-secondary);
  font-size: var(--gx-text-sm);
}

.gx-step-sublist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gx-primary-light);
}

.gx-time-badge {
  display: inline-block;
  padding: 2px var(--gx-space-2);
  background: var(--gx-primary-bg-light);
  color: var(--gx-primary-dark);
  border-radius: var(--gx-radius-sm);
  font-size: var(--gx-text-xs);
  font-weight: var(--gx-font-medium);
}

/* ===== 公开页通用 Hero ===== */
.gx-pub-hero-banner {
  position: relative;
  background: var(--gx-gradient-primary);
  color: #FFFFFF;
  padding: var(--gx-space-12) var(--gx-space-6);
  text-align: center;
  overflow: hidden;
}

.gx-pub-hero-banner::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 240px;
  height: 240px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.gx-pub-hero-banner-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.gx-pub-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--gx-space-2);
  padding: var(--gx-space-1) var(--gx-space-3);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--gx-radius-pill);
  font-size: var(--gx-text-sm);
  margin-bottom: var(--gx-space-5);
}

.gx-pub-hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FFFFFF;
}

.gx-pub-hero-title {
  font-size: var(--gx-text-display);
  font-weight: var(--gx-font-bold);
  line-height: var(--gx-leading-tight);
  margin-bottom: var(--gx-space-4);
}

.gx-pub-hero-title .text-brand-alt {
  color: rgba(255, 255, 255, 0.85);
}

.gx-pub-hero-desc {
  font-size: var(--gx-text-lg);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--gx-space-6);
}

.gx-pub-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gx-space-3);
  flex-wrap: wrap;
}

.gx-pub-hero-actions .gx-btn-outline {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.35);
}

.gx-pub-hero-actions .gx-btn-outline:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* ===== 公开页标本卡片 ===== */
.gx-specimen-card {
  display: flex;
  flex-direction: column;
  background: var(--gx-bg-card);
  border-radius: var(--gx-radius-card);
  box-shadow: var(--gx-shadow-card);
  overflow: hidden;
  transition: box-shadow var(--gx-transition-base), transform var(--gx-transition-base);
  text-decoration: none;
  color: inherit;
}

.gx-specimen-card:hover {
  box-shadow: var(--gx-shadow-card-hover);
  transform: translateY(-4px);
}

.gx-specimen-card-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gx-bg-page);
}

.gx-specimen-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--gx-ease-smooth);
}

.gx-specimen-card:hover .gx-specimen-card-img img {
  transform: scale(1.05);
}

.gx-specimen-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gx-primary-light);
  font-size: var(--gx-text-3xl);
}

.gx-specimen-card-badge {
  position: absolute;
  top: var(--gx-space-3);
  right: var(--gx-space-3);
}

.gx-specimen-card-genus {
  position: absolute;
  bottom: var(--gx-space-3);
  left: var(--gx-space-3);
}

.gx-specimen-card-body {
  padding: var(--gx-space-4);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gx-specimen-card-name {
  font-size: var(--gx-text-md);
  font-weight: var(--gx-font-semibold);
  color: var(--gx-text-primary);
  margin-bottom: 2px;
}

.gx-specimen-card-latin {
  font-size: var(--gx-text-sm);
  color: var(--gx-text-secondary);
  font-style: italic;
  margin-bottom: var(--gx-space-2);
}

.gx-specimen-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gx-space-2);
  font-size: var(--gx-text-xs);
  color: var(--gx-text-muted);
  margin-top: auto;
}

.gx-specimen-card-meta i {
  color: var(--gx-primary-light);
}

/* ===== 公开页分页 ===== */
.gx-page-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gx-space-2);
  margin-top: var(--gx-space-6);
  flex-wrap: wrap;
}

.gx-page-nav a,
.gx-page-nav span,
.gx-page-nav button {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--gx-space-3);
  border-radius: var(--gx-radius-md);
  font-size: var(--gx-text-sm);
  font-weight: var(--gx-font-medium);
  color: var(--gx-text-secondary);
  background: var(--gx-bg-card);
  border: 1px solid var(--gx-border);
  text-decoration: none;
  transition: all var(--gx-transition-fast);
}

.gx-page-nav a:hover,
.gx-page-nav button:hover {
  background: var(--gx-primary-bg-light);
  color: var(--gx-primary);
  border-color: var(--gx-primary);
}

.gx-page-nav a.active {
  background: var(--gx-primary);
  color: #FFFFFF;
  border-color: var(--gx-primary);
}

/* ===== 功能卡片（公开页） ===== */
.gx-feature-grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gx-space-5);
}

.gx-feature-pub-card {
  display: flex;
  align-items: flex-start;
  gap: var(--gx-space-4);
  padding: var(--gx-space-5);
  background: var(--gx-bg-card);
  border-radius: var(--gx-radius-card);
  box-shadow: var(--gx-shadow-card);
  transition: box-shadow var(--gx-transition-base), transform var(--gx-transition-base);
}

.gx-feature-pub-card:hover {
  box-shadow: var(--gx-shadow-card-hover);
  transform: translateY(-3px);
}

.gx-feature-pub-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: var(--gx-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--gx-text-2xl);
}

.gx-feature-pub-icon.is-green { background: var(--gx-primary-bg-light); }
.gx-feature-pub-icon.is-blue  { background: var(--gx-info-bg); }
.gx-feature-pub-icon.is-purple { background: rgba(156, 39, 176, 0.10); }
.gx-feature-pub-icon.is-amber { background: rgba(245, 158, 11, 0.10); }

.gx-feature-pub-title {
  font-size: var(--gx-text-md);
  font-weight: var(--gx-font-semibold);
  margin-bottom: var(--gx-space-1);
}

.gx-feature-pub-desc {
  font-size: var(--gx-text-sm);
  color: var(--gx-text-secondary);
  line-height: var(--gx-leading-relaxed);
}

/* ===== 安装步骤 ===== */
.gx-install-step {
  display: flex;
  align-items: flex-start;
  gap: var(--gx-space-4);
}

.gx-install-step-num {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gx-primary);
  color: #FFFFFF;
  font-size: var(--gx-text-sm);
  font-weight: var(--gx-font-bold);
}

.gx-install-step-title {
  font-weight: var(--gx-font-semibold);
  margin-bottom: var(--gx-space-1);
}

.gx-install-step-desc {
  font-size: var(--gx-text-sm);
  color: var(--gx-text-secondary);
}

/* ===== 公开页深色区块 ===== */
.gx-pub-section-dark {
  background: var(--gx-text-primary);
  color: #FFFFFF;
  padding: var(--gx-space-10) var(--gx-space-6);
  margin: 0 calc(-1 * var(--gx-space-6));
}

@media (max-width: 768px) {
  .gx-pub-section-dark {
    padding: var(--gx-space-8) var(--gx-space-4);
    margin: 0 calc(-1 * var(--gx-space-4));
  }
}

.gx-pub-section-dark h2,
.gx-pub-section-dark .gx-feature-pub-title {
  color: #FFFFFF;
}

.gx-pub-section-dark .gx-feature-pub-desc {
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 768px) {
  .gx-pub-hero-banner {
    padding: var(--gx-space-8) var(--gx-space-4);
  }

  .gx-pub-hero-title {
    font-size: var(--gx-text-3xl);
  }

  .gx-feature-grid-auto {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   system/ 模板迁移补充样式
   ============================================================ */

/* 行内表单（用于表格内操作按钮并列） */
.gx-inline-form {
  display: inline-block;
  margin: 0;
  padding: 0;
}

.gx-inline-form + .gx-inline-form,
.gx-inline-form + .gx-btn,
.gx-btn + .gx-inline-form {
  margin-left: var(--gx-space-2);
}

/* 页面标题误用在 h1 上时兜底 */
h1.gx-page-header {
  font-size: var(--gx-text-2xl);
  font-weight: var(--gx-font-bold);
  color: var(--gx-text-primary);
  margin-bottom: var(--gx-space-5);
}

/* 卡片标题旁的彩色竖条（兼容迁移后的 gx-title-bar） */
.gx-title-bar {
  display: inline-block;
  width: 4px;
  height: 18px;
  border-radius: 2px;
  margin-right: var(--gx-space-2);
  vertical-align: middle;
}

.gx-title-bar.is-primary { background: var(--gx-primary); }
.gx-title-bar.is-success { background: var(--gx-success); }
.gx-title-bar.is-info    { background: var(--gx-info); }
.gx-title-bar.is-warning { background: var(--gx-warning); }
.gx-title-bar.is-danger  { background: var(--gx-error); }
.gx-title-bar.is-purple  { background: #9C27B0; }
.gx-title-bar.is-cyan    { background: #009688; }
.gx-title-bar.is-pink    { background: #E91E63; }

/* 统计/图表卡片中的彩色小圆点 */
.gx-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: var(--gx-space-2);
}

.gx-dot.is-primary { background: var(--gx-primary); }
.gx-dot.is-success { background: var(--gx-success); }
.gx-dot.is-info    { background: var(--gx-info); }
.gx-dot.is-warning { background: var(--gx-warning); }
.gx-dot.is-danger  { background: var(--gx-error); }

/* 权限网格 */
.gx-permissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--gx-space-3);
  margin-top: var(--gx-space-4);
}

.gx-permission-item {
  display: flex;
  align-items: center;
  gap: var(--gx-space-2);
  padding: var(--gx-space-3);
  border: 1px solid var(--gx-border);
  border-radius: var(--gx-radius-md);
  cursor: pointer;
  transition: all var(--gx-transition-fast);
}

.gx-permission-item:hover {
  border-color: var(--gx-primary-border-light);
  background: var(--gx-primary-bg-faint);
}

/* 用户网格（广播通知选择用户） */
.gx-user-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--gx-space-3);
  max-height: 360px;
  overflow-y: auto;
  padding: var(--gx-space-2);
  border: 1px solid var(--gx-border);
  border-radius: var(--gx-radius-md);
}

.gx-user-item {
  display: flex;
  align-items: center;
  gap: var(--gx-space-3);
  padding: var(--gx-space-3);
  border-radius: var(--gx-radius-md);
  cursor: pointer;
  transition: background var(--gx-transition-fast);
}

.gx-user-item:hover {
  background: var(--gx-bg-hover);
}

/* 上传区域 */
.gx-upload-area {
  border: 2px dashed var(--gx-primary-border-light);
  border-radius: var(--gx-radius-card);
  padding: var(--gx-space-8);
  text-align: center;
  cursor: pointer;
  transition: all var(--gx-transition-fast);
}

.gx-upload-area:hover {
  border-color: var(--gx-primary);
  background: var(--gx-primary-bg-faint);
}

.gx-upload-icon {
  font-size: var(--gx-text-3xl);
  color: var(--gx-primary-light);
  margin-bottom: var(--gx-space-3);
}

.gx-upload-title {
  font-size: var(--gx-text-md);
  font-weight: var(--gx-font-medium);
  color: var(--gx-text-primary);
  margin-bottom: var(--gx-space-1);
}

.gx-upload-hint {
  font-size: var(--gx-text-sm);
  color: var(--gx-text-secondary);
}

.gx-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* 进度条 */
.gx-progress-bar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: var(--gx-text-xs);
}

/* Toast 遮罩 */
.gx-toast-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: calc(var(--gx-z-toast) - 1);
}

/* 表单操作栏 */
.gx-form-actions {
  display: flex;
  align-items: center;
  gap: var(--gx-space-3);
  margin-top: var(--gx-space-6);
  flex-wrap: wrap;
}

.gx-form-actions .gx-btn {
  margin: 0;
}

/* 最大宽度辅助 */
.gx-max-w-3xl { max-width: 720px; }
.gx-max-w-5xl { max-width: 1100px; }

/* 段落/区块标题 */
.gx-section-title {
  font-size: var(--gx-text-lg);
  font-weight: var(--gx-font-semibold);
  color: var(--gx-text-primary);
  margin-bottom: var(--gx-space-4);
  margin-top: var(--gx-space-6);
}

/* 搜索框组件（按钮在输入框右侧） */
.gx-search {
  display: flex;
  gap: var(--gx-space-2);
}

.gx-search .gx-input {
  min-width: 240px;
}

/* 提示标题 */
.gx-alert-title {
  font-weight: var(--gx-font-semibold);
  margin-bottom: var(--gx-space-1);
}

.gx-alert-text { color: var(--gx-text-secondary); line-height: 1.6; margin: 0; }

/* 数据导入/导出页缺失样式 */
.ei-realtime-progress { margin-bottom: var(--gx-space-4); }
.ei-gx-badge { margin-left: var(--gx-space-2); }
.ei-text-secondary { color: var(--gx-text-secondary); font-size: var(--gx-text-sm); }
.quality-gx-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gx-gradient-primary);
  color: #fff;
  font-weight: var(--gx-font-bold);
  font-size: var(--gx-text-md);
  margin-right: var(--gx-space-3);
  flex-shrink: 0;
}

/* 工具栏 */
.gx-toolbar {
  display: flex;
  align-items: center;
  gap: var(--gx-space-2);
  padding: var(--gx-space-2);
  background: var(--gx-bg-page);
  border-radius: var(--gx-radius-md);
  margin-bottom: var(--gx-space-3);
  flex-wrap: wrap;
}

/* 富文本编辑器区域兼容 */
.about-editor {
  min-height: 200px;
  border: 1px solid var(--gx-border);
  border-radius: var(--gx-radius-md);
  padding: var(--gx-space-3);
  background: var(--gx-bg-card);
}

.gx-preview-box {
  border: 1px dashed var(--gx-border);
  border-radius: var(--gx-radius-md);
  padding: var(--gx-space-4);
  background: var(--gx-bg-page);
  margin-top: var(--gx-space-3);
}

/* ============================================================
   标本模块迁移补充样式（兼容旧类名，统一使用 gx 变量）
   ============================================================ */

/* ----- 通用缺失工具类 ----- */
.ml-auto { margin-left: auto !important; }
.mr-6 { margin-right: var(--gx-space-3) !important; }
.mr-8 { margin-right: var(--gx-space-4) !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-12 { margin-bottom: var(--gx-space-6) !important; }
.mb-15 { margin-bottom: 20px !important; }
.mt-12 { margin-top: var(--gx-space-6) !important; }
.py-10 { padding-top: 10px !important; padding-bottom: 10px !important; }
.w-50 { width: 50% !important; }
.w-80 { width: 80px !important; flex-shrink: 0; }
.ai-center { align-items: center !important; }
.jc-between { justify-content: space-between !important; }
.ws-nowrap { white-space: nowrap !important; }
.overflow-x-auto { overflow-x: auto !important; }
.fs-italic { font-style: italic !important; }
.fs-14 { font-size: 14px !important; }
.fs-36 { font-size: 36px !important; }
.fs-12-icon { font-size: 12px !important; }
.text-muted-sm { font-size: var(--gx-text-xs); color: var(--gx-text-muted); }
.text-green-600 { color: var(--gx-primary-dark) !important; }
.text-yellow-500 { color: var(--gx-tertiary) !important; }
.c-f59e0b { color: var(--gx-warning) !important; }
.c-475569 { color: var(--gx-text-secondary) !important; }
.c-gray-400 { color: var(--gx-text-muted) !important; }
.gx-mono { font-family: var(--gx-font-family-mono); }

/* ----- 通用表单兼容 ----- */
.create-form-container { padding: var(--gx-space-4) 0; }

.form-section {
  background: var(--gx-bg-card);
  border-radius: var(--gx-radius-card);
  box-shadow: var(--gx-shadow-card);
  padding: var(--gx-space-5);
  margin-bottom: var(--gx-space-5);
}

.form-section > h3,
.form-section > .section-header h3 {
  font-size: var(--gx-text-lg);
  font-weight: var(--gx-font-semibold);
  color: var(--gx-text-primary);
  margin-bottom: var(--gx-space-4);
  display: flex;
  align-items: center;
  gap: var(--gx-space-2);
}

.form-section > h3 i,
.form-section > .section-header h3 i {
  color: var(--gx-primary);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--gx-space-4);
  gap: var(--gx-space-3);
  flex-wrap: wrap;
}

.section-header h3 { margin-bottom: 0 !important; }

/* 未加 gx-input 的裸输入框兜底 */
.form-row input:not([class]),
.form-row select:not([class]),
.form-row textarea:not([class]),
.gps-altitude-row input:not([class]),
.gps-altitude-row select:not([class]),
.habitat-row input:not([class]),
.habitat-row select:not([class]),
.gx-form-group input:not([class]),
.gx-form-group select:not([class]),
.gx-form-group textarea:not([class]) {
  width: 100%;
  padding: 10px var(--gx-space-4);
  background: var(--gx-bg-card);
  border: 1px solid var(--gx-border);
  border-radius: var(--gx-radius-md);
  font-size: var(--gx-text-base);
  color: var(--gx-text-primary);
  transition: all var(--gx-transition-fast);
}

.form-row input:not([class]):focus,
.gps-altitude-row input:not([class]):focus,
.habitat-row input:not([class]):focus,
.gx-form-group input:not([class]):focus,
.gx-form-group select:not([class]):focus,
.gx-form-group textarea:not([class]):focus {
  outline: none;
  border-color: var(--gx-primary);
  box-shadow: 0 0 0 3px var(--gx-primary-bg-faint);
}

.form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gx-space-4); }
.gps-altitude-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gx-space-4); }
.habitat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gx-space-4); }
@media (max-width: 992px) {
  .form-row, .gps-altitude-row { grid-template-columns: repeat(2, 1fr); }
  .habitat-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .form-row, .gps-altitude-row, .habitat-row { grid-template-columns: 1fr; }
}

.gps-field, .habitat-field, .altitude-field { min-width: 0; }
.altitude-input-wrap { display: flex; gap: var(--gx-space-2); }
.altitude-input-wrap input { flex: 1; }

.form-row-flex { display: flex; flex-wrap: wrap; gap: var(--gx-space-4); }
.form-inline-group { flex: 1; min-width: 220px; display: flex; align-items: center; gap: var(--gx-space-3); }
.form-group-flex { display: flex; align-items: flex-start; gap: var(--gx-space-3); }
@media (max-width: 576px) {
  .form-inline-group, .form-group-flex { flex-direction: column; align-items: stretch; }
}

.form-label-padt { padding-top: 10px; }

/* 物种拉丁名/中文名输入区 */
.species-name-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gx-space-4);
  margin-top: var(--gx-space-4);
}
@media (max-width: 768px) {
  .species-name-row { grid-template-columns: 1fr; }
}

.species-name-field { min-width: 0; }

.species-name-label {
  display: flex;
  align-items: center;
  gap: var(--gx-space-2);
  margin-bottom: var(--gx-space-2);
  flex-wrap: wrap;
}

.species-name-label .gx-form-label {
  margin-bottom: 0;
}

.species-hint-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 8px;
  background: var(--gx-primary-bg-faint);
  color: var(--gx-primary);
  border-radius: var(--gx-radius-sm);
  font-size: 11px;
  font-weight: var(--gx-font-normal);
  white-space: nowrap;
}

.species-correction-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: transparent;
  color: var(--gx-text-secondary);
  border: 1px solid var(--gx-border-color);
  border-radius: var(--gx-radius-sm);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.species-correction-btn:hover {
  color: var(--gx-primary);
  border-color: var(--gx-primary);
  background: var(--gx-primary-bg-faint);
}

.species-name-input-wrap {
  position: relative;
}

.species-name-input-wrap .gx-input {
  width: 100%;
  padding-left: 36px;
}

.species-name-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gx-text-secondary);
  font-size: 16px;
  pointer-events: none;
}

.species-name-input-wrap .gx-input:focus ~ .species-name-icon,
.species-name-input-wrap .gx-input:not(:placeholder-shown) ~ .species-name-icon {
  color: var(--gx-primary);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: var(--gx-space-3);
  flex-wrap: wrap;
  margin-top: var(--gx-space-6);
}

.form-actions .gx-btn { margin: 0; }

.inline-flex-row { display: inline-flex; align-items: center; gap: var(--gx-space-2); }

.required, .required-star { color: var(--gx-error); }

/* 旧 alert/提示 */
.amber-alert {
  display: flex;
  align-items: center;
  gap: var(--gx-space-2);
  padding: var(--gx-space-3) var(--gx-space-4);
  background: var(--gx-warning-bg);
  color: var(--gx-warning-text);
  border-radius: var(--gx-radius-md);
  margin-bottom: var(--gx-space-4);
  font-size: var(--gx-text-sm);
}
.link-amber { color: var(--gx-warning); text-decoration: underline; }

.upload-status-bar {
  display: flex;
  align-items: center;
  gap: var(--gx-space-2);
  padding: var(--gx-space-3) var(--gx-space-4);
  border-radius: var(--gx-radius-md);
  margin-top: var(--gx-space-3);
  font-size: var(--gx-text-sm);
  min-height: 40px;
}

/* 上传区 */
.upload-flex-row { display: flex; align-items: center; gap: var(--gx-space-3); flex-wrap: wrap; }
.file-hidden { position: absolute; opacity: 0; width: 0; height: 0; }
.file-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--gx-space-2);
  padding: 10px var(--gx-space-5);
  background: var(--gx-gradient-primary);
  color: #fff;
  border: none;
  border-radius: var(--gx-radius-button);
  font-weight: var(--gx-font-medium);
  cursor: pointer;
  transition: all var(--gx-transition-fast);
}
.file-upload-btn:hover { box-shadow: var(--gx-shadow-primary); }

.thumb-preview-box {
  position: relative;
  display: none;
  width: 120px;
  margin-top: var(--gx-space-3);
  border-radius: var(--gx-radius-md);
  overflow: hidden;
  border: 1px solid var(--gx-border);
}
.thumb-preview-box.is-visible { display: block; }
.thumb-preview-img { width: 100%; height: auto; display: block; }
.remove-btn {
  position: absolute;
  top: 4px; right: 4px;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.query-altitude-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--gx-space-1);
  padding: 8px var(--gx-space-3);
  background: var(--gx-primary);
  color: #fff;
  border: none;
  border-radius: var(--gx-radius-md);
  font-size: var(--gx-text-sm);
  cursor: pointer;
}
.query-altitude-btn:hover { background: var(--gx-primary-dark); }

/* ============================================================
   编辑标本页样式修复
   ============================================================ */
.edit-hr {
  border: none;
  border-top: 1px solid var(--gx-border-light);
  margin: var(--gx-space-3) 0 var(--gx-space-4);
}

/* 图片区：第一张为大图，其余为缩略图 */
.edit-image-section { margin-bottom: var(--gx-space-5); }

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: var(--gx-space-3);
  align-items: start;
}

.image-item-wrap {
  position: relative;
  border-radius: var(--gx-radius-md);
  overflow: hidden;
  background: var(--gx-bg-page);
  border: 1px solid var(--gx-border-light);
}

.image-item-wrap:first-child {
  grid-column: 1 / -1;
  border-radius: var(--gx-radius-card);
}

.image-item-wrap:first-child .edit-specimen-img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  aspect-ratio: auto;
}

.edit-specimen-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform var(--gx-transition-fast);
}

.image-item-wrap:hover .edit-specimen-img {
  transform: scale(1.02);
}

.image-delete-bar {
  position: absolute;
  top: 8px;
  right: 8px;
  display: none;
  gap: var(--gx-space-1);
}

.image-item-wrap:hover .image-delete-bar {
  display: flex;
}

.delete-image-btn {
  padding: 6px 10px;
  font-size: var(--gx-text-xs);
  border-radius: var(--gx-radius-md);
}

/* 上传更多图片 */
.img-upload-area {
  position: relative;
  min-height: 130px;
  border: 2px dashed var(--gx-primary-border-light);
  border-radius: var(--gx-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gx-primary-bg-faint);
  transition: border-color var(--gx-transition-fast), background var(--gx-transition-fast);
}

.img-upload-area:hover {
  border-color: var(--gx-primary);
  background: var(--gx-primary-bg-light);
}

.hidden-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--gx-space-1);
  color: var(--gx-primary);
  font-size: var(--gx-text-sm);
  font-weight: var(--gx-font-medium);
  pointer-events: none;
}

.upload-plus-icon { font-size: 24px; }

.no-image-placeholder {
  grid-column: 1 / -1;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gx-bg-page);
  border: 2px dashed var(--gx-border);
  border-radius: var(--gx-radius-card);
  color: var(--gx-text-muted);
}

.no-image-placeholder-inner {
  text-align: center;
}

.no-image-placeholder-inner .img-icon-lg { font-size: 48px; display: block; margin-bottom: var(--gx-space-2); }

/* EXIF 提示 */
.exif-hint-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gx-space-3);
  flex-wrap: wrap;
  margin-top: var(--gx-space-4);
  padding: var(--gx-space-3) var(--gx-space-4);
  background: var(--gx-info-bg);
  color: var(--gx-info-text);
  border-radius: var(--gx-radius-md);
  font-size: var(--gx-text-sm);
}

.exif-hint-inner { display: flex; align-items: center; gap: var(--gx-space-2); }
.exif-hint-icon { font-size: var(--gx-text-md); }

.exif-extract-btn,
.exif-extract-btn-green {
  display: inline-flex;
  align-items: center;
  gap: var(--gx-space-1);
  padding: 8px var(--gx-space-4);
  background: var(--gx-primary);
  color: #fff;
  border: none;
  border-radius: var(--gx-radius-button);
  font-size: var(--gx-text-sm);
  font-weight: var(--gx-font-medium);
  cursor: pointer;
  transition: background var(--gx-transition-fast);
}

.exif-extract-btn:hover,
.exif-extract-btn-green:hover { background: var(--gx-primary-dark); }

.exif-extract-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--gx-space-3);
  flex-wrap: wrap;
  margin: var(--gx-space-4) 0;
  padding: var(--gx-space-3) var(--gx-space-4);
  background: var(--gx-success-bg);
  color: var(--gx-success-text);
  border-radius: var(--gx-radius-md);
  font-size: var(--gx-text-sm);
}

.exif-extract-bar.is-visible { display: flex; }
.exif-extract-text { display: flex; align-items: center; gap: var(--gx-space-2); }
.exif-camera-icon { font-size: var(--gx-text-md); }

/* 保存状态条 */
.save-status-bar {
  display: none;
  margin: var(--gx-space-4) 0;
  padding: var(--gx-space-3) var(--gx-space-4);
  background: var(--gx-info-bg);
  color: var(--gx-info-text);
  border-radius: var(--gx-radius-md);
  font-size: var(--gx-text-sm);
}

.save-status-bar.is-visible { display: block; }

.save-status-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gx-space-3);
}

.save-status-left { display: flex; align-items: center; gap: var(--gx-space-2); }
.save-status-icon { font-size: var(--gx-text-md); }
.close-status-btn { padding: 4px 8px; font-size: 12px; }

/* 编号只读展示 */
.code-display-box {
  display: flex;
  align-items: center;
  gap: var(--gx-space-2);
  padding: 10px var(--gx-space-4);
  background: var(--gx-bg-page);
  border: 1px solid var(--gx-border);
  border-radius: var(--gx-radius-md);
  color: var(--gx-text-secondary);
  font-size: var(--gx-text-base);
}

.code-lock-icon { font-size: var(--gx-text-sm); }
.code-value { font-weight: var(--gx-font-semibold); color: var(--gx-text-primary); }
.code-readonly-hint { margin-left: auto; font-size: var(--gx-text-xs); color: var(--gx-text-muted); }

/* 联想输入框 */
.autocomplete-pos { position: relative; }

.ac-field {
  padding-left: 36px;
}

.field-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gx-text-muted);
  font-size: var(--gx-text-sm);
  pointer-events: none;
}

.correction-btn-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: var(--gx-space-2);
  padding: 4px 10px;
  background: transparent;
  color: var(--gx-primary);
  border: 1px solid var(--gx-primary-border-light);
  border-radius: var(--gx-radius-pill);
  font-size: var(--gx-text-xs);
  cursor: pointer;
  transition: all var(--gx-transition-fast);
}

.correction-btn-inline:hover {
  background: var(--gx-primary-bg-faint);
  border-color: var(--gx-primary);
}

/* 鉴定失败记录 */
.warn-box {
  margin: var(--gx-space-4) 0;
  padding: var(--gx-space-4);
  background: var(--gx-warning-bg);
  border: 1px solid var(--gx-warning-border);
  border-radius: var(--gx-radius-md);
}

.warn-box-label {
  display: flex;
  align-items: center;
  gap: var(--gx-space-2);
  font-weight: var(--gx-font-semibold);
  color: var(--gx-warning-text);
  margin-bottom: var(--gx-space-2);
}

.warn-box-icon { font-size: var(--gx-text-md); }
.warn-box-hint { font-weight: var(--gx-font-normal); font-size: var(--gx-text-xs); opacity: 0.85; }
.fails-log { background: var(--gx-bg-card); }

/* 挂售按钮 */
.btn-sell {
  display: inline-flex;
  align-items: center;
  gap: var(--gx-space-1);
  padding: 10px var(--gx-space-4);
  background: var(--gx-warning);
  color: #fff;
  border: none;
  border-radius: var(--gx-radius-button);
  font-weight: var(--gx-font-medium);
  cursor: pointer;
  transition: background var(--gx-transition-fast);
}

.btn-sell:hover { background: #e69500; }

.btn-sold {
  display: inline-flex;
  align-items: center;
  gap: var(--gx-space-1);
  padding: 10px var(--gx-space-4);
  background: var(--gx-bg-page);
  color: var(--gx-text-secondary);
  border: 1px solid var(--gx-border);
  border-radius: var(--gx-radius-button);
  text-decoration: none;
}

/* 编辑页图片放大弹窗 + 水印 */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--gx-z-modal);
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  padding: var(--gx-space-4);
}

.modal.is-open { display: flex; }

.modal-content-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--gx-radius-md);
}

.modal .close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}

.watermark {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--gx-space-2);
  pointer-events: none;
  color: rgba(255, 255, 255, 0.25);
  font-size: var(--gx-text-2xl);
  font-weight: var(--gx-font-bold);
  text-transform: uppercase;
  letter-spacing: 4px;
  user-select: none;
}

@media (max-width: 768px) {
  .image-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .edit-specimen-img { height: 100px; }
  .image-item-wrap:first-child .edit-specimen-img { max-height: 320px; }
  .exif-hint-bar,
  .exif-extract-bar,
  .save-status-inner { flex-direction: column; align-items: flex-start; }
  .code-readonly-hint { display: none; }
}

.description-section { margin-top: var(--gx-space-4); }
.desc-label {
  display: flex; align-items: center; gap: var(--gx-space-2);
  font-size: var(--gx-text-sm); font-weight: var(--gx-font-semibold);
  color: var(--gx-text-primary); margin-bottom: var(--gx-space-2);
}
.voice-input-btn {
  display: inline-flex; align-items: center; gap: var(--gx-space-1);
  padding: 4px 10px;
  background: var(--gx-bg-page);
  color: var(--gx-primary);
  border: 1px solid var(--gx-primary-border-light);
  border-radius: var(--gx-radius-pill);
  font-size: var(--gx-text-xs);
  cursor: pointer;
}
.voice-input-btn.voice-recording { background: var(--gx-error); color: #fff; border-color: var(--gx-error); }

.ac-hint, .ac-hint-text { font-size: var(--gx-text-xs); color: var(--gx-text-secondary); font-weight: var(--gx-font-normal); }
.ac-search-icon-sm { font-size: 11px; margin-right: 2px; }
.ac-relative { position: relative; }

.btn-outline-danger {
  display: inline-flex; align-items: center; gap: var(--gx-space-1);
  padding: 6px 12px;
  background: transparent;
  color: var(--gx-error);
  border: 1px solid var(--gx-error-border);
  border-radius: var(--gx-radius-button);
  font-size: var(--gx-text-sm);
  cursor: pointer;
  transition: all var(--gx-transition-fast);
}
.btn-outline-danger:hover { background: var(--gx-error-bg); }

.btn-sell-orange {
  display: inline-flex; align-items: center; gap: var(--gx-space-1);
  padding: 10px var(--gx-space-4);
  background: var(--gx-tertiary);
  color: #fff;
  border: none;
  border-radius: var(--gx-radius-button);
  font-weight: var(--gx-font-medium);
  cursor: pointer;
}

/* 纠错弹窗兼容 */
.corr-modal-overlay, .correction-modal-overlay {
  position: fixed; inset: 0; z-index: var(--gx-z-modal);
  background: var(--gx-bg-overlay);
  display: none; align-items: center; justify-content: center;
  padding: var(--gx-space-4);
}
.corr-modal-overlay.is-open, .correction-modal-overlay.is-open { display: flex; }
.corr-modal-box, .correction-modal-box {
  background: var(--gx-bg-card);
  border-radius: var(--gx-radius-card);
  box-shadow: var(--gx-shadow-xl);
  width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  padding: var(--gx-space-6);
}
.corr-h4, .correction-modal-title {
  font-size: var(--gx-text-lg); font-weight: var(--gx-font-semibold);
  margin-bottom: var(--gx-space-4); display: flex; align-items: center; gap: var(--gx-space-2);
}
.corr-field-row, .correction-field-row {
  display: flex; flex-direction: column; gap: var(--gx-space-2);
  margin-bottom: var(--gx-space-4);
}
.corr-field-label, .correction-field-label {
  font-size: var(--gx-text-sm); font-weight: var(--gx-font-medium); color: var(--gx-text-primary);
}
.corr-input, .correction-input, .corr-textarea, .correction-textarea {
  width: 100%; padding: 10px var(--gx-space-4); border: 1px solid var(--gx-border);
  border-radius: var(--gx-radius-md); font-size: var(--gx-text-base); color: var(--gx-text-primary);
}
.corr-input-readonly, .correction-input-readonly, .correction-field-readonly {
  width: 100%; padding: 10px var(--gx-space-4); background: var(--gx-bg-page);
  border: 1px solid var(--gx-border); border-radius: var(--gx-radius-md);
  color: var(--gx-text-secondary);
}
.corr-actions-row, .correction-actions, .correction-modal-actions {
  display: flex; justify-content: flex-end; gap: var(--gx-space-3); margin-top: var(--gx-space-4);
}
.corr-msg-box, .correction-msg-box, .correction-msg {
  display: none; padding: var(--gx-space-2) var(--gx-space-3);
  border-radius: var(--gx-radius-md); font-size: var(--gx-text-sm); margin-bottom: var(--gx-space-3);
}
.corr-star, .correction-required { color: var(--gx-error); }

/* 挂售弹窗兼容 */
.sell-modal-overlay {
  position: fixed; inset: 0; z-index: var(--gx-z-modal);
  background: var(--gx-bg-overlay);
  display: none; align-items: center; justify-content: center;
  padding: var(--gx-space-4);
}
.sell-modal-overlay.is-open { display: flex; }
.sell-modal-box {
  background: var(--gx-bg-card); border-radius: var(--gx-radius-card);
  box-shadow: var(--gx-shadow-xl); width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto; padding: var(--gx-space-6);
}
.sell-modal-close {
  float: right; background: none; border: none; font-size: 24px; color: var(--gx-text-secondary); cursor: pointer;
}
.sell-modal-h3 { font-size: var(--gx-text-lg); font-weight: var(--gx-font-semibold); margin-bottom: var(--gx-space-4); }
.sell-modal-section { margin-bottom: var(--gx-space-4); }
.sell-modal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gx-space-3); }
.sell-type-card-box {
  border: 2px solid var(--gx-border); border-radius: var(--gx-radius-md); padding: var(--gx-space-4);
  text-align: center; cursor: pointer; transition: all var(--gx-transition-fast);
}
.sell-type-card-box:hover, .sell-type-card-box.is-selected { border-color: var(--gx-primary); background: var(--gx-primary-bg-faint); }
.sell-radio-hidden { position: absolute; opacity: 0; }
.sell-modal-label, .sell-field-label { font-size: var(--gx-text-sm); font-weight: var(--gx-font-medium); display: block; margin-bottom: var(--gx-space-2); }
.sell-modal-input, .sell-input {
  width: 100%; padding: 10px var(--gx-space-4); border: 1px solid var(--gx-border);
  border-radius: var(--gx-radius-md); font-size: var(--gx-text-base);
}
.sell-modal-actions { display: flex; justify-content: flex-end; gap: var(--gx-space-3); margin-top: var(--gx-space-5); }
.btn-sell-cancel { padding: 10px var(--gx-space-5); background: var(--gx-bg-page); border: 1px solid var(--gx-border); border-radius: var(--gx-radius-button); cursor: pointer; }
.btn-sell-confirm { padding: 10px var(--gx-space-5); background: var(--gx-primary); color: #fff; border: none; border-radius: var(--gx-radius-button); cursor: pointer; }
.store-icon-color { color: var(--gx-primary); }

/* ----- 导出页 ----- */
.export-page-container { padding: var(--gx-space-4) 0; }
.export-desc-text { color: var(--gx-text-secondary); font-size: var(--gx-text-sm); margin-bottom: var(--gx-space-4); }
.filter-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gx-space-3); margin-bottom: var(--gx-space-4); }
@media (max-width: 576px) { .filter-options { grid-template-columns: 1fr; } }
.filter-option {
  display: flex; align-items: flex-start; gap: var(--gx-space-3);
  padding: var(--gx-space-4); border: 2px solid var(--gx-border);
  border-radius: var(--gx-radius-md); cursor: pointer;
  background: var(--gx-bg-card); transition: all var(--gx-transition-fast);
}
.filter-option:hover { border-color: var(--gx-primary-border-light); }
.filter-option.selected { border-color: var(--gx-primary); background: var(--gx-primary-bg-faint); }
.filter-option input { margin-top: 4px; }
.filter-option-label { font-weight: var(--gx-font-medium); color: var(--gx-text-primary); display: flex; align-items: center; gap: var(--gx-space-2); }
.filter-option-desc { font-size: var(--gx-text-xs); color: var(--gx-text-secondary); margin-top: 2px; }
.team-member-selector { display: none; margin-top: var(--gx-space-4); }
.team-member-selector.show { display: block; }
.fields-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gx-space-3); }
@media (max-width: 992px) { .fields-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .fields-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .fields-grid { grid-template-columns: 1fr; } }
.field-checkbox { display: flex; align-items: center; gap: var(--gx-space-2); }
.field-checkbox input { width: 18px; height: 18px; accent-color: var(--gx-primary); }
.field-checkbox label { font-size: var(--gx-text-sm); color: var(--gx-text-primary); cursor: pointer; }
.selected-count { font-size: var(--gx-text-xs); color: var(--gx-text-muted); font-weight: var(--gx-font-normal); margin-left: var(--gx-space-2); }

/* ----- 历史页时间线 ----- */
.view-container { padding: var(--gx-space-4) 0; }
.history-timeline { position: relative; padding-left: 28px; }
.history-item { position: relative; display: flex; gap: var(--gx-space-4); margin-bottom: var(--gx-space-5); }
.timeline-node { position: absolute; left: -28px; top: 4px; bottom: 0; width: 16px; display: flex; flex-direction: column; align-items: center; }
.node-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--gx-primary); border: 3px solid var(--gx-bg-card); box-shadow: 0 0 0 2px var(--gx-primary-border-light); }
.node-line { flex: 1; width: 2px; background: var(--gx-border-light); margin-top: 6px; }
.history-card { flex: 1; }
.history-card-header { display: flex; align-items: center; justify-content: space-between; gap: var(--gx-space-3); flex-wrap: wrap; margin-bottom: var(--gx-space-3); }
.history-meta { display: flex; align-items: center; gap: var(--gx-space-2); flex-wrap: wrap; }
.editor-badge, .time-badge, .change-count-badge {
  display: inline-flex; align-items: center; gap: var(--gx-space-1);
  padding: 2px var(--gx-space-2); border-radius: var(--gx-radius-sm);
  font-size: var(--gx-text-xs);
}
.editor-badge { background: var(--gx-primary-bg-light); color: var(--gx-primary-dark); }
.time-badge { background: var(--gx-bg-page); color: var(--gx-text-secondary); border: 1px solid var(--gx-border-light); }
.change-count-badge { background: var(--gx-info-bg); color: var(--gx-info); }
.field-name { font-weight: var(--gx-font-medium); color: var(--gx-text-primary); }
.old-val { color: var(--gx-error-text); }
.new-val { color: var(--gx-success-text); }
.arrow-cell { color: var(--gx-text-muted); text-align: center; }

/* ----- 快递列表 ----- */
.loading, .no-data { text-align: center; color: var(--gx-text-secondary); padding: var(--gx-space-6) 0; }

/* ----- 复选框组件 ----- */
.gx-form-check { display: inline-flex; align-items: center; gap: var(--gx-space-2); cursor: pointer; font-size: var(--gx-text-sm); color: var(--gx-text-primary); }
.gx-form-check input { width: 18px; height: 18px; accent-color: var(--gx-primary); }

/* ----- 扩展搜索框 ----- */
.gx-search--expand { width: 100%; }
.gx-search--expand .gx-input { min-width: 0; }

/* ----- 移动端录入页兼容（保留旧类名但使用 gx 变量） ----- */
.page-wrap { padding: var(--gx-space-4); }
.m-header {
  position: sticky; top: 0; z-index: var(--gx-z-sticky);
  display: flex; align-items: center; gap: var(--gx-space-3);
  padding: var(--gx-space-3) var(--gx-space-4);
  background: var(--gx-gradient-primary); color: #fff;
  box-shadow: var(--gx-shadow-sm);
}
.m-header-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; border-radius: 50%; background: rgba(255,255,255,0.15); }
.mobile-header-title { flex: 1; display: flex; flex-direction: column; }
.m-header-title { font-weight: var(--gx-font-semibold); font-size: var(--gx-text-md); }
.mobile-header-sub { font-size: var(--gx-text-xs); opacity: 0.85; }
.mobile-network-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gx-success); box-shadow: 0 0 0 3px rgba(255,255,255,0.25); }
.mobile-network-dot.offline { background: var(--gx-error); }

.step-tabs { display: flex; gap: var(--gx-space-3); margin-bottom: var(--gx-space-5); }
.step-tab { flex: 1; display: flex; align-items: center; gap: var(--gx-space-2); padding: var(--gx-space-3); border-radius: var(--gx-radius-md); background: var(--gx-bg-page); color: var(--gx-text-secondary); cursor: pointer; }
.step-tab.active { background: var(--gx-primary-bg-light); color: var(--gx-primary-dark); }
.tab-num { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--gx-border); color: var(--gx-text-secondary); font-size: var(--gx-text-sm); font-weight: var(--gx-font-bold); }
.step-tab.active .tab-num { background: var(--gx-primary); color: #fff; }
.tab-info { display: flex; flex-direction: column; }
.tab-title { font-weight: var(--gx-font-medium); font-size: var(--gx-text-sm); }
.tab-desc { font-size: var(--gx-text-xs); opacity: 0.8; }
.tab-check { margin-left: auto; color: var(--gx-success); font-weight: var(--gx-font-bold); }

.step-card { display: none; }
.step-card.active { display: block; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.photo-area {
  border: 2px dashed var(--gx-primary-border-light); border-radius: var(--gx-radius-card);
  padding: var(--gx-space-8); text-align: center; cursor: pointer;
  background: var(--gx-bg-card); transition: all var(--gx-transition-fast);
}
.photo-area:hover { border-color: var(--gx-primary); background: var(--gx-primary-bg-faint); }
.photo-icon-wrap { font-size: var(--gx-text-3xl); color: var(--gx-primary-light); margin-bottom: var(--gx-space-2); }
.photo-text { display: block; font-weight: var(--gx-font-medium); color: var(--gx-text-primary); }
.photo-hint { font-size: var(--gx-text-xs); color: var(--gx-text-secondary); }
.photo-tip { display: block; font-size: var(--gx-text-xs); color: var(--gx-text-muted); margin-top: var(--gx-space-2); }

.preview-list { display: flex; gap: var(--gx-space-2); flex-wrap: wrap; margin-top: var(--gx-space-3); }
.preview-list .preview-item { position: relative; width: 80px; height: 80px; border-radius: var(--gx-radius-md); overflow: hidden; }
.preview-list .preview-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-list .preview-del { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; background: rgba(0,0,0,0.6); color: #fff; border: none; border-radius: 50%; font-size: 12px; cursor: pointer; }
.photo-tips { margin-top: var(--gx-space-2); font-size: var(--gx-text-xs); color: var(--gx-text-secondary); }

.location-card {
  margin-top: var(--gx-space-4); padding: var(--gx-space-4);
  background: var(--gx-bg-card); border-radius: var(--gx-radius-card);
  border: 1px solid var(--gx-border);
}
.location-status { display: flex; align-items: center; gap: var(--gx-space-3); }
.loc-icon-wrap { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--gx-primary-bg-light); color: var(--gx-primary); }
.loc-text { flex: 1; font-size: var(--gx-text-sm); color: var(--gx-text-primary); }
.gps-btn-action {
  margin-top: var(--gx-space-3); padding: 8px var(--gx-space-4);
  background: var(--gx-primary); color: #fff; border: none; border-radius: var(--gx-radius-md);
  font-size: var(--gx-text-sm); cursor: pointer;
}

.field-group { margin-bottom: var(--gx-space-4); }
.field-label { display: block; font-size: var(--gx-text-sm); font-weight: var(--gx-font-semibold); color: var(--gx-text-primary); margin-bottom: var(--gx-space-2); }
.field-input, .field-textarea, .field-picker select {
  width: 100%; padding: 12px var(--gx-space-4); border: 1px solid var(--gx-border);
  border-radius: var(--gx-radius-md); font-size: var(--gx-text-base); color: var(--gx-text-primary);
  background: var(--gx-bg-card); transition: all var(--gx-transition-fast);
}
.field-input:focus, .field-textarea:focus, .field-picker select:focus { outline: none; border-color: var(--gx-primary); box-shadow: 0 0 0 3px var(--gx-primary-bg-faint); }
.field-textarea { min-height: 96px; resize: vertical; }
.field-readonly {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--gx-space-4); background: var(--gx-bg-page);
  border: 1px solid var(--gx-border); border-radius: var(--gx-radius-md);
  color: var(--gx-text-secondary); font-size: var(--gx-text-sm);
}
.readonly-text { flex: 1; }
.setting-link { color: var(--gx-primary); cursor: pointer; }
.field-picker { position: relative; }
.field-picker .picker-text { display: block; padding: 12px var(--gx-space-4); border: 1px solid var(--gx-border); border-radius: var(--gx-radius-md); background: var(--gx-bg-card); color: var(--gx-text-primary); cursor: pointer; }
.field-picker .picker-text.placeholder { color: var(--gx-text-placeholder); }
.field-picker .picker-arrow { position: absolute; right: var(--gx-space-4); top: 50%; transform: translateY(-50%); color: var(--gx-text-secondary); }
.field-picker select { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.field-row-inline { display: flex; gap: var(--gx-space-2); }
.field-row-inline .field-input { flex: 1; }
.reverse-btn { display: flex; align-items: center; gap: var(--gx-space-1); padding: 0 var(--gx-space-3); background: var(--gx-primary-bg-light); color: var(--gx-primary); border-radius: var(--gx-radius-md); font-size: var(--gx-text-sm); cursor: pointer; white-space: nowrap; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gx-space-3); }

.trade-section-box { border: 1px solid var(--gx-border); border-radius: var(--gx-radius-md); padding: var(--gx-space-3); }
.trade-fee-notice { font-size: var(--gx-text-xs); color: var(--gx-warning-text); background: var(--gx-warning-bg); padding: var(--gx-space-2) var(--gx-space-3); border-radius: var(--gx-radius-sm); margin-bottom: var(--gx-space-3); }
.trade-price-hint { font-size: var(--gx-text-xs); color: var(--gx-text-secondary); margin-top: var(--gx-space-2); }

.btn-row { display: flex; gap: var(--gx-space-3); margin-top: var(--gx-space-6); }
.btn-prev, .btn-next, .btn-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--gx-space-1);
  padding: 12px var(--gx-space-5); border-radius: var(--gx-radius-button); font-weight: var(--gx-font-medium);
  cursor: pointer; border: none; flex: 1;
}
.btn-prev { background: var(--gx-bg-page); color: var(--gx-text-primary); border: 1px solid var(--gx-border); }
.btn-next, .btn-submit { background: var(--gx-gradient-primary); color: #fff; box-shadow: var(--gx-shadow-primary); }

.success-page { display: none; text-align: center; padding: var(--gx-space-10) var(--gx-space-4); }
.success-page.show { display: block; }
.success-icon-big { font-size: 64px; color: var(--gx-success); margin-bottom: var(--gx-space-4); }
.success-title { font-size: var(--gx-text-2xl); font-weight: var(--gx-font-bold); color: var(--gx-text-primary); margin-bottom: var(--gx-space-2); }
.success-desc { color: var(--gx-text-secondary); margin-bottom: var(--gx-space-6); }
.success-btn { display: block; width: 100%; max-width: 280px; margin: 0 auto var(--gx-space-3); padding: 12px var(--gx-space-5); border-radius: var(--gx-radius-button); font-weight: var(--gx-font-medium); text-decoration: none; border: none; cursor: pointer; }
.success-btn.primary { background: var(--gx-gradient-primary); color: #fff; }
.success-btn.secondary { background: var(--gx-bg-page); color: var(--gx-text-primary); border: 1px solid var(--gx-border); }

.offline-banner {
  display: none; align-items: center; gap: var(--gx-space-2);
  padding: var(--gx-space-3) var(--gx-space-4); margin-bottom: var(--gx-space-4);
  background: var(--gx-warning-bg); color: var(--gx-warning-text); border-radius: var(--gx-radius-md);
}
.offline-banner.show { display: flex; }
.pending-bar {
  display: none; align-items: center; gap: var(--gx-space-2);
  padding: var(--gx-space-2) var(--gx-space-3); margin-bottom: var(--gx-space-4);
  background: var(--gx-success-bg); color: var(--gx-success-text); border-radius: var(--gx-radius-pill);
  font-size: var(--gx-text-sm);
}
.pending-bar.show { display: flex; }
.pending-badge { background: var(--gx-success); color: #fff; padding: 1px 8px; border-radius: var(--gx-radius-pill); font-size: var(--gx-text-xs); }
.btn-upload-pending { margin-left: auto; padding: 4px 12px; background: var(--gx-success); color: #fff; border: none; border-radius: var(--gx-radius-pill); font-size: var(--gx-text-xs); cursor: pointer; }
.upload-overlay {
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: var(--gx-space-3);
  position: fixed; inset: 0; z-index: var(--gx-z-modal); background: rgba(0,0,0,0.6); color: #fff;
}
.upload-overlay.show { display: flex; }

.suggest-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: var(--gx-z-dropdown);
  background: var(--gx-bg-card); border: 1px solid var(--gx-border); border-radius: var(--gx-radius-md);
  box-shadow: var(--gx-shadow-lg); max-height: 200px; overflow-y: auto;
}
.suggest-list > div { padding: var(--gx-space-2) var(--gx-space-3); cursor: pointer; font-size: var(--gx-text-sm); }
.suggest-list > div:hover { background: var(--gx-bg-hover); }

/* 公开页 small fixes */
.gx-pub-modal-form-header h4 { font-size: var(--gx-text-lg); font-weight: var(--gx-font-semibold); margin: 0; }

/* ============================================================
   标本列表页表格样式修复
   ============================================================ */
.specimen-table-container {
  background: var(--gx-bg-card);
  border-radius: var(--gx-radius-card);
  box-shadow: var(--gx-shadow-card);
  padding: var(--gx-space-5);
  margin-top: var(--gx-space-5);
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gx-space-3);
  margin-bottom: var(--gx-space-4);
  flex-wrap: wrap;
}

.table-toolbar-title {
  font-size: var(--gx-text-lg);
  font-weight: var(--gx-font-semibold);
  color: var(--gx-text-primary);
  margin: 0;
}

.specimen-actions {
  display: flex;
  align-items: center;
  gap: var(--gx-space-2);
  flex-wrap: wrap;
}

.global-search-container {
  position: relative;
  margin: var(--gx-space-5) 0;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: var(--gx-space-2);
  background: var(--gx-bg-card);
  border: 1px solid var(--gx-border);
  border-radius: var(--gx-radius-pill);
  padding: 0 var(--gx-space-4);
  transition: border-color var(--gx-transition-fast), box-shadow var(--gx-transition-fast);
}

.search-input-wrapper:focus-within {
  border-color: var(--gx-primary);
  box-shadow: 0 0 0 3px var(--gx-primary-bg-faint);
}

.search-input-wrapper input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 0;
  font-size: var(--gx-text-base);
  color: var(--gx-text-primary);
  outline: none;
}

.search-input-wrapper input::placeholder {
  color: var(--gx-text-placeholder);
}

.clear-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: var(--gx-bg-hover);
  color: var(--gx-text-secondary);
  cursor: pointer;
  font-size: 12px;
}

.search-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: var(--gx-z-dropdown);
  background: var(--gx-bg-card);
  border: 1px solid var(--gx-border);
  border-radius: var(--gx-radius-md);
  box-shadow: var(--gx-shadow-lg);
  max-height: 260px;
  overflow-y: auto;
}

.specimen-table-container .gx-table {
  table-layout: fixed;
  width: 100%;
  min-width: 960px;
}

.specimen-table-container .gx-table th,
.specimen-table-container .gx-table td {
  vertical-align: middle;
}

.list-th-center,
.list-td-center,
.specimen-table-container .w-50 {
  width: 50px !important;
  text-align: center;
}

.mw-50 { min-width: 50px; }
.mw-90 { width: 90px; }
.mw-100 { width: 100px; }
.mw-120 { width: 120px; }
.mw-150 { width: 150px; }

.list-td-ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.specimen-name-cell { line-height: 1.4; }
.specimen-name-cell p { margin: 0; }
.specimen-name-text { font-weight: var(--gx-font-medium); color: var(--gx-text-primary); }
.specimen-latin-text { color: var(--gx-text-secondary); font-size: var(--gx-text-sm); font-style: italic; }

.code-link {
  color: var(--gx-primary-dark);
  font-weight: var(--gx-font-semibold);
  text-decoration: none;
}
.code-link:hover { text-decoration: underline; }

.code-icon { margin-right: 6px; color: var(--gx-text-muted); }
.code-icon-yes { color: var(--gx-primary); }

.list-actions-row {
  display: inline-flex;
  align-items: center;
  gap: var(--gx-space-1);
  flex-wrap: nowrap;
}

.list-actions-row .gx-btn {
  padding: 6px 10px;
  font-size: var(--gx-text-sm);
}

.list-actions-row .delete-form,
.list-actions-row form { display: inline; margin: 0; }

/* 移动端标本卡片 */
.specimen-cards {
  display: none;
  grid-template-columns: 1fr;
  gap: var(--gx-space-3);
  margin-top: var(--gx-space-4);
}

.specimen-card {
  background: var(--gx-bg-card);
  border: 1px solid var(--gx-border-light);
  border-radius: var(--gx-radius-card);
  padding: var(--gx-space-4);
}

.specimen-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--gx-space-3);
}

.specimen-code {
  font-weight: var(--gx-font-semibold);
  color: var(--gx-primary-dark);
}

.specimen-card-content { margin-bottom: var(--gx-space-3); }

.specimen-card-row {
  display: flex;
  justify-content: space-between;
  gap: var(--gx-space-3);
  padding: var(--gx-space-2) 0;
  border-bottom: 1px solid var(--gx-border-light);
}

.specimen-card-row:last-child { border-bottom: none; }

.specimen-card-label { color: var(--gx-text-secondary); font-size: var(--gx-text-sm); white-space: nowrap; }
.specimen-card-value { color: var(--gx-text-primary); text-align: right; }

.specimen-card-footer {
  display: flex;
  gap: var(--gx-space-2);
  flex-wrap: wrap;
}

.specimen-card-footer form,
.specimen-card-footer .delete-form { display: inline; margin: 0; }

@media (max-width: 992px) {
  .specimen-table-container { padding: var(--gx-space-4); }
  .table-scroll-wrap { display: none; }
  .specimen-cards { display: grid; }
  .batch-delete-desktop-only { display: none !important; }
}

/* ===== 自定义 SVG 图标 ===== */
.gx-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.gx-icon use {
  pointer-events: none;
}

/* Size utilities for custom icons */
.gx-icon.is-sm { width: 0.875em; height: 0.875em; }
.gx-icon.is-lg { width: 1.25em; height: 1.25em; }
.gx-icon.is-xl { width: 1.5em; height: 1.5em; }

/* Spin animation for loading icons */
.gx-icon.gx-spin {
  animation: gx-spin 1s linear infinite;
  transform-origin: center;
}

@keyframes gx-spin {
  to { transform: rotate(360deg); }
}

