/* ==========================================================================
   家里有矿（jlyk.net）- 5大板块全端统一高保真设计系统
   设计标准：极简、现代、暗绿 & 黄金配比、去除说教黑体、无界卡片
   ========================================================================== */

:root {
  --primary: #0D231A;
  --primary-light: #183B2C;
  --primary-hover: #1F4A38;
  --primary-dark: #06120D;
  
  --accent: #D9B14A;
  --accent-hover: #E9C15A;
  --accent-light: #FAF4E4;
  --accent-dark: #B58F2E;

  --bg-main: #F2F5F3;
  --bg-surface: #FFFFFF;

  --border-color: #E0E7E2;
  --text-primary: #111A16;
  --text-secondary: #52635A;
  --text-muted: #889990;
  --text-inverse: #FFFFFF;

  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 8px rgba(13, 35, 26, 0.04);
  --shadow-md: 0 8px 24px rgba(13, 35, 26, 0.07);
  --shadow-lg: 0 16px 40px rgba(13, 35, 26, 0.12);
  --shadow-accent: 0 8px 25px rgba(217, 177, 74, 0.25);

  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 15px;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  touch-action: manipulation;
}

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

.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* 顶部 Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 35, 26, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(217, 177, 74, 0.15);
  color: var(--text-inverse);
}

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent) 0%, #B58F2E 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  box-shadow: 0 2px 8px rgba(217, 177, 74, 0.3);
}
.brand-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}
.brand-name { font-size: 18px; font-weight: 800; color: #FFFFFF; letter-spacing: 0.5px; }
.brand-domain-tag {
  font-size: 10.5px;
  font-weight: 700;
  background: rgba(217, 177, 74, 0.16);
  color: var(--accent);
  border: 1px solid rgba(217, 177, 74, 0.4);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.5px;
  line-height: 1.2;
}
.brand-sub { font-size: 10px; color: rgba(217, 177, 74, 0.9); font-weight: 500; display: flex; align-items: center; gap: 4px; }

/* 🌐 官方域名心智识别条样式 */
.hero-domain-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 35, 26, 0.85);
  border: 1px solid rgba(217, 177, 74, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
}
.hero-domain-bar .domain-icon { font-size: 14px; }
.hero-domain-bar .domain-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.5px;
}
.hero-domain-bar .domain-desc {
  font-size: 12px;
  color: #E2E8F0;
}
.hero-domain-bar .domain-highlight {
  color: #FDE047;
  font-weight: 700;
}

/* 🔐 模态框域名防伪提醒卡片 */
.auth-domain-tip {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #166534;
}
.auth-domain-tip strong {
  color: #15803D;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* 👣 页脚域名徽标 */
.footer-domain-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(217, 177, 74, 0.15);
  border: 1px solid rgba(217, 177, 74, 0.35);
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

.main-nav.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: #A0B2A8;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition-fast);
}

.nav-link:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.08); }
.nav-link.active { color: var(--primary-dark); background: var(--accent); font-weight: 600; }

.badge, .mobile-badge {
  background: var(--danger);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
}

.user-control {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.profile-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  color: white;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition-fast);
  user-select: none;
}

.profile-button:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(217, 177, 74, 0.4);
}

.avatar {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #2D5A47 0%, #16382B 100%);
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent);
  font-size: 13px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.avatar img, .avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* 👤 用户中心下拉菜单 (Account Dropdown Menu) - 升级版 */
.account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 324px;
  max-width: calc(100vw - 24px);
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  box-shadow: 0 20px 48px -6px rgba(13, 35, 26, 0.22), 0 8px 20px -4px rgba(0, 0, 0, 0.08);
  padding: 10px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: accountMenuDrop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

@keyframes accountMenuDrop {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 顶部商户尊贵身份看板 (Hero Header) */
.menu-user-hero {
  background: linear-gradient(135deg, #0D261C 0%, #071711 100%);
  border: 1px solid rgba(217, 177, 74, 0.35);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.menu-user-hero::before {
  content: '';
  position: absolute;
  top: -24px;
  right: -24px;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(217, 177, 74, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.menu-user-top {
  display: flex;
  align-items: center;
  gap: 11px;
}

.menu-user-avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.menu-user-avatar-wrap .avatar,
.menu-user-avatar-wrap .small-avatar {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50%;
  border: 2px solid rgba(217, 177, 74, 0.75);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  font-size: 17px;
  overflow: hidden;
}

.menu-user-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}

.menu-user-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.menu-user-name {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-role-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 1.5px 7px;
  border-radius: 12px;
  background: rgba(217, 177, 74, 0.2);
  color: #FCD34D;
  border: 1px solid rgba(217, 177, 74, 0.5);
  white-space: nowrap;
  flex-shrink: 0;
}

.menu-user-company {
  font-size: 11.5px;
  color: #A7F3D0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.3;
}

/* 核心资产与权益条 (Asset Strip) */
.menu-assets-strip {
  background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%);
  border: 1px solid #A7F3D0;
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.menu-assets-left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #065F46;
}

.menu-assets-val {
  font-size: 15px;
  font-weight: 800;
  color: #047857;
}

.menu-assets-btn {
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  background: #FFFFFF;
  border: 1px solid #6EE7B7;
  padding: 3px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.menu-assets-btn:hover {
  background: #059669;
  color: #FFFFFF;
  border-color: #059669;
}

/* 50% 现金分润提现钱包条 */
.menu-earnings-strip {
  background: linear-gradient(135deg, #FFFDF7 0%, #FEF9C3 100%);
  border: 1px solid #FDE68A;
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.menu-earnings-left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #92400E;
}

.menu-earnings-val {
  font-size: 15px;
  font-weight: 800;
  color: #B45309;
}

.menu-earnings-btn {
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  border: none;
  padding: 3.5px 10px;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(217, 119, 6, 0.25);
  transition: all 0.15s ease;
}

.menu-earnings-btn:hover {
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
  transform: translateY(-1px);
}

/* 管理员专属入口 */
.account-menu .menu-admin-entry {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border: 1px solid #FCD34D;
  color: #92400E;
  font-weight: 700;
  padding: 8.5px 12px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}

.account-menu .menu-admin-entry:hover {
  background: #FDE68A;
  color: #78350F;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.18);
}

/* 分组标题与菜单项 */
.menu-group-title {
  font-size: 10.5px;
  font-weight: 700;
  color: #94A3B8;
  padding: 5px 6px 2px 6px;
  letter-spacing: 0.5px;
  text-align: left;
}

.menu-list-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.account-menu button.menu-nav-item {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7.5px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #1E293B;
  text-align: left;
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
  background: transparent;
}

.account-menu button.menu-nav-item:hover {
  background: #F1F5F9;
  color: var(--primary);
  transform: translateX(2px);
}

.menu-nav-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.menu-nav-icon {
  font-size: 14px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.menu-nav-text-col {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.menu-nav-main-title {
  font-weight: 600;
  font-size: 12.5px;
  color: #1E293B;
}

.menu-nav-sub-desc {
  font-size: 10.5px;
  color: #64748B;
  margin-top: 1px;
}

.menu-nav-badge {
  font-size: 10.5px;
  padding: 1.5px 6px;
  border-radius: 10px;
  font-weight: 600;
  flex-shrink: 0;
}

.menu-nav-badge-green {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.menu-nav-badge-orange {
  background: #FFFBEB;
  color: #D97706;
  border: 1px solid #FDE68A;
}

.menu-nav-badge-blue {
  background: #EFF6FF;
  color: #2563EB;
  border: 1px solid #BFDBFE;
}

.menu-nav-arrow {
  font-size: 11.5px;
  color: #94A3B8;
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.account-menu button.menu-nav-item:hover .menu-nav-arrow {
  color: var(--primary);
  transform: translateX(2px);
}

.account-menu-divider {
  height: 1px;
  background: #F1F5F9;
  margin: 3px 0;
}

/* 退出登录 */
.account-menu button.menu-logout-btn {
  width: 100%;
  padding: 7.5px 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #DC2626;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: 2px;
}

.account-menu button.menu-logout-btn:hover {
  background: #FEF2F2;
  color: #B91C1C;
}

/* ⚙️ 综合账户与名片设置中心 (Account Settings Center) */
.modal-card.settings-modal-card,
.modal-card.modal-lg.settings-modal-card {
  max-width: 1160px !important;
  width: 92vw !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: 0 28px 72px rgba(7, 20, 15, 0.30);
  background: #FFFFFF;
}

@media (min-width: 1400px) {
  .modal-card.settings-modal-card,
  .modal-card.modal-lg.settings-modal-card {
    max-width: 1220px !important;
  }
}

.settings-modal-layout {
  display: flex;
  min-height: 580px;
}

/* 左侧导航侧边栏 */
.settings-sidebar {
  width: 250px;
  background: #F8FAF9;
  border-right: 1px solid #E6ECE8;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.settings-user-brief {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #FFFFFF;
  border: 1px solid #E6ECE8;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.settings-brief-avatar {
  width: 44px;
  height: 44px;
  font-size: 17px;
  border: 2px solid var(--accent);
  flex-shrink: 0;
}

.settings-brief-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.settings-brief-info strong {
  font-size: 14.5px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.settings-role-tag {
  font-size: 11px;
  color: var(--accent-dark);
  font-weight: 600;
  margin-top: 2px;
}

.settings-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.settings-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-secondary);
}

.settings-nav-item:hover {
  background: #EDF2EE;
  color: var(--primary);
}

.settings-nav-item.active {
  background: #FFFFFF;
  color: var(--primary);
  border-color: #DDE5E0;
  box-shadow: 0 2px 8px rgba(13, 35, 26, 0.05);
  font-weight: 600;
  position: relative;
}

.settings-nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  background: var(--accent);
  border-radius: 0 4px 4px 0;
}

.nav-item-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.nav-item-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.nav-item-title {
  font-size: 13.5px;
  line-height: 1.3;
}

.nav-item-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* 右侧主工作面板 */
.settings-main-panel {
  flex: 1;
  min-width: 0;
  padding: 28px 32px 32px 32px;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  max-height: 85vh;
  overflow-y: auto;
}

.settings-panel-header {
  border-bottom: 1px solid #EDF2EE;
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.settings-panel-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}

.settings-panel-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.settings-panel-body {
  flex: 1;
}

/* 栅格双列布局 */
.settings-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

.settings-form-grid .form-item-full {
  grid-column: span 2;
}

.avatar-upload-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: #F8FAF9;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.avatar-preview-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 800;
  font-size: 22px;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar-preview-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-preview-banner {
  background: linear-gradient(135deg, #07140F 0%, #163B2C 100%);
  color: white;
  border-radius: var(--radius-md);
  padding: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(7, 20, 15, 0.15);
}

.card-preview-banner::after {
  content: "双方解锁后公开展示名片效果";
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 10px;
  background: rgba(255, 255, 255, 0.14);
  padding: 2px 8px;
  border-radius: 4px;
  color: #FDE047;
}

.copy-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #EFF6FF;
  color: #1D4ED8;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #DBEAFE;
  transition: var(--transition-fast);
}

.copy-badge-btn:hover {
  background: #DBEAFE;
}

/* 📱 移动端自适应 (<= 768px) */
@media (max-width: 768px) {
  .modal-card.settings-modal-card {
    max-width: 100vw;
    width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 90vh;
  }

  .settings-modal-layout {
    flex-direction: column;
    min-height: unset;
  }

  .settings-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #E6ECE8;
    padding: 10px 12px;
  }

  .settings-nav {
    flex-direction: row;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .settings-nav-item {
    flex-direction: column;
    padding: 8px 4px;
    gap: 3px;
    text-align: center;
    justify-content: center;
    border-radius: 8px;
  }

  .settings-nav-item .nav-item-icon {
    font-size: 16px;
  }

  .settings-nav-item .nav-item-title {
    font-size: 11px;
    white-space: nowrap;
  }

  .settings-nav-item.active::before {
    display: none;
  }

  .settings-nav-item.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
  }

  .settings-main-panel {
    padding: 16px 14px 28px 14px;
    max-height: calc(90vh - 110px);
  }

  .settings-form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .settings-form-grid .form-item-full {
    grid-column: span 1;
  }
}

.main-content {
  flex: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px 80px 20px;
}

.btn {
  min-height: 42px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-hover) 100%);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--primary);
  border: 1px solid var(--border-color);
}

.btn-outline { border: 1px solid var(--primary); color: var(--primary); }
.btn-lg { min-height: 48px; padding: 12px 24px; font-size: 16px; border-radius: var(--radius-md); }

/* 🌟 全局统一极简页头 (Clean Page Header) */
.page-header-clean {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.page-category {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent-dark);
  text-transform: uppercase;
  margin-bottom: 2px;
  display: block;
}

.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

/* 📱 移动端专属搜索、跑马灯、Pills 与类型分段器 */
.mobile-home-header, .mobile-market-header { display: none; margin-bottom: 14px; }
.mobile-search-bar {
  background: #FFFFFF; border: 1.5px solid var(--border-color); border-radius: 24px; height: 46px;
  padding: 0 14px; display: flex; align-items: center; gap: 10px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}
.mobile-search-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: var(--text-primary);
}
.mobile-search-clear {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #E5E7EB;
  color: #6B7280;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.mobile-search-bar .search-placeholder { font-size: 13px; color: var(--text-muted); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mobile-search-bar .search-btn { font-size: 12px; font-weight: 700; color: white; background: var(--primary); padding: 4px 12px; border-radius: 16px; }

.mobile-mineral-pills { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 2px; }
.mobile-mineral-pills::-webkit-scrollbar { display: none; }
.mineral-pill { white-space: nowrap; padding: 6px 14px; background: #FFFFFF; border: 1px solid var(--border-color); border-radius: 20px; font-size: 12px; font-weight: 600; color: var(--text-secondary); flex-shrink: 0; transition: var(--transition-fast); }
.mineral-pill.active { background: var(--primary); color: var(--accent); border-color: var(--primary); font-weight: 700; box-shadow: 0 2px 8px rgba(13, 35, 26, 0.15); }

/* 供需类型快速切换分段器 (Segment Tabs) */
.mobile-type-segments {
  display: flex;
  gap: 4px;
  margin-top: 10px;
  background: #E6EDE8;
  padding: 3px;
  border-radius: var(--radius-sm);
}

.type-segment {
  flex: 1;
  padding: 7px 0;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 6px;
  transition: var(--transition-fast);
}

.type-segment.active {
  background: #FFFFFF;
  color: var(--primary);
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* 💻 🌟 桌面端高保真 Hero 展台与信任看板设计 */
.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 32px;
  align-items: center;
  padding: 42px 38px;
  background: linear-gradient(135deg, #091D16 0%, #13392A 50%, #0B241A 100%);
  border-radius: var(--radius-lg);
  color: #FFFFFF;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: 0 16px 40px rgba(9, 29, 22, 0.28);
  border: 1px solid rgba(217, 177, 74, 0.2);
}

.hero-bg-glow {
  position: absolute;
  top: -40%;
  right: -15%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(217, 177, 74, 0.18) 0%, rgba(16, 185, 129, 0.1) 45%, rgba(9, 29, 22, 0) 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(217, 177, 74, 0.15);
  border: 1px solid rgba(217, 177, 74, 0.35);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
  color: #FFFFFF;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.hero-title .text-gradient {
  background: linear-gradient(90deg, #F3D078 0%, #10B981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 14px;
}

/* 💻 PC 首页前置全局大搜索框 */
.hero-search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(217, 177, 74, 0.4);
  border-radius: var(--radius-md);
  padding: 6px 8px 6px 16px;
  margin-bottom: 20px;
  max-width: 540px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: var(--transition-fast);
}

.hero-search-box:focus-within {
  background: #FFFFFF;
  border-color: var(--accent);
  box-shadow: 0 8px 28px rgba(217, 177, 74, 0.35);
}

.hero-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.hero-search-input-wrap .search-icon {
  font-size: 16px;
  color: var(--text-muted);
}

.hero-search-input-wrap input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

.hero-search-box .btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #B58F2E 100%);
  color: var(--primary-dark);
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  white-space: nowrap;
}

.hero-search-box .btn-accent:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
}

.hero-actions .btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #B58F2E 100%);
  color: var(--primary-dark);
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(217, 177, 74, 0.35);
}

.hero-actions .btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
  transform: translateY(-1px);
}

.hero-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.hero-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
}

/* 💻 PC 端实时履约与撮合动态播报条 (无缝循环滚动跑马灯) */
.live-ticker-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #B45309;
  background: #FEF3C7;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  z-index: 2;
}

.ticker-badge .ticker-dot {
  color: #F59E0B;
  font-size: 10px;
  animation: pulse-dot 1.8s infinite ease-in-out;
}

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

.ticker-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 16px, black calc(100% - 20px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 16px, black calc(100% - 20px), transparent);
}

.ticker-content-track {
  display: inline-flex;
  gap: 36px;
  white-space: nowrap;
  font-size: 12.5px;
  color: var(--text-secondary);
  animation: ticker-scroll 32s linear infinite;
  will-change: transform;
}

.ticker-viewport:hover .ticker-content-track {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* 📱 移动端微型跑马灯胶囊 */
.mobile-ticker-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 12px;
  padding: 2px 8px;
  margin-bottom: 6px;
  font-size: 11px;
  color: #92400E;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mobile-ticker-pill .pill-dot { color: #F59E0B; font-size: 11px; }

/* 📱 移动端一体化极简吸顶控制台 (高度仅约 86px) */
.mobile-market-header {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.mobile-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.mobile-search-bar {
  flex: 1;
  height: 34px;
  background: #F8FAF9;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.mobile-search-bar:focus-within {
  border-color: var(--primary);
  background: #FFFFFF;
  box-shadow: 0 0 0 2px rgba(13, 35, 26, 0.08);
}

.mobile-search-bar .search-icon {
  font-size: 12px;
  color: var(--text-muted);
}

.mobile-search-input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 12.5px;
  color: var(--text-primary);
}

.mobile-search-clear {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  padding: 2px 4px;
}

.mobile-filter-trigger-btn {
  height: 34px;
  padding: 0 12px;
  background: #F1F5F3;
  border: 1px solid #D5DFDA;
  border-radius: 18px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  transition: var(--transition-fast);
}

.mobile-filter-trigger-btn:hover {
  background: #E2EAE5;
}

.filter-dot-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 6px;
  height: 6px;
  background: #EF4444;
  border-radius: 50%;
}

/* 移动端无缝横滑分类胶囊条 */
.mobile-category-scroll-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.mobile-category-scroll-bar::-webkit-scrollbar { display: none; }

.mobile-segment-group, .mobile-mineral-group {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.mobile-scroll-divider {
  width: 1px;
  height: 14px;
  background: var(--border-color);
  flex-shrink: 0;
  margin: 0 2px;
}

.mobile-pill-btn {
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: #F8FAF9;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  white-space: nowrap;
  transition: var(--transition-fast);
  cursor: pointer;
}

.mobile-pill-btn:hover {
  background: #E2EAE5;
  color: var(--primary);
}

.mobile-pill-btn.active {
  background: var(--primary);
  color: var(--accent);
  font-weight: 700;
  border-color: var(--primary);
}

/* 📱 移动端底部半屏抽屉 (Bottom Sheet Modal) */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

.mobile-drawer-content {
  position: relative;
  z-index: 2;
  background: #FFFFFF;
  border-radius: 16px 16px 0 0;
  padding: 12px 18px 24px 18px;
  max-height: 80vh;
  overflow-y: auto;
  animation: drawerSlideUp 0.25s ease-out;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.15);
}

@keyframes drawerSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.drawer-drag-indicator {
  width: 36px;
  height: 4px;
  background: #CBD5E1;
  border-radius: 2px;
  margin: 0 auto 10px auto;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.drawer-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
}

.drawer-close-btn {
  background: none;
  border: none;
  font-size: 16px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
}

.drawer-section {
  margin-bottom: 14px;
}

.drawer-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: block;
}

.drawer-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #F8FAF9;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  border: 1px solid var(--border-color);
}

.drawer-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
}

.drawer-checkbox-label input {
  accent-color: var(--primary);
  cursor: pointer;
}

.drawer-footer {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.drawer-btn-reset {
  flex: 1;
  height: 40px;
  font-size: 13px;
}

.drawer-btn-confirm {
  flex: 2;
  height: 40px;
  font-size: 13px;
  font-weight: 700;
}

.section-head-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--border-color);
}

.section-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent-dark);
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}

.section-heading {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}

.link-view-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-light);
  transition: var(--transition-fast);
}

.link-view-all:hover {
  color: var(--accent-dark);
  transform: translateX(2px);
}

/* 🛡️ 五重可信保障流程卡片 (PC端) */
.trust-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.trust-step-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.trust-step-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.step-num-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-dark);
  background: var(--accent-light);
  padding: 2px 6px;
  border-radius: 4px;
}

.trust-step-card .step-icon {
  font-size: 24px;
  margin-bottom: 12px;
}

.trust-step-card h3 {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}

.trust-step-card p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* 🛡️ 右侧信任保障卡片看板 */
.hero-trust-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 2;
}

.trust-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
}

.trust-status {
  font-size: 11px;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.4);
}

.trust-box-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.trust-box-body p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
  margin-bottom: 18px;
}

.trust-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: rgba(0, 0, 0, 0.3);
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
}

/* 快捷金刚区 Quick Grid */
.quick-nav-section { margin-bottom: 28px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick-card {
  background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-md);
  padding: 16px; display: flex; align-items: center; gap: 12px; min-height: 72px; box-shadow: var(--shadow-sm); transition: var(--transition-normal);
}
.quick-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.quick-icon-wrap { width: 40px; height: 40px; border-radius: var(--radius-sm); font-size: 20px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-gold { background: #FEF3C7; color: #D97706; }
.icon-blue { background: #DBEAFE; color: #2563EB; }
.icon-emerald { background: #D1FAE5; color: #059669; }
.icon-purple { background: #F3E8FF; color: #7C3AED; }
.quick-info h3 { font-size: 15px; font-weight: 700; }
.quick-info p { font-size: 11px; color: var(--text-muted); }

/* 💎 1. 资源市场增强工具栏与行情表格 */
.market-toolbar-enhanced {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  box-shadow: var(--shadow-sm);
}

.market-toolbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.market-count-badge {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.market-sort-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.form-select-sm {
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  background: #F8FAF9;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
}

.form-select-sm:focus { border-color: var(--primary); }

.view-switch-group {
  display: flex;
  gap: 4px;
  background: #F1F5F3;
  padding: 3px;
  border-radius: var(--radius-sm);
}

.view-switch-btn {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 4px;
  transition: var(--transition-fast);
}

.view-switch-btn.active {
  background: #FFFFFF;
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* 📋 行情表格视图样式 */
.market-table-wrap {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.market-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.market-table thead {
  background: #F8FAF9;
  border-bottom: 1px solid var(--border-color);
}

.market-table th {
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

.market-table tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-fast);
  cursor: pointer;
}

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

.market-table tbody tr:hover {
  background: #F9FCFA;
}

.market-table td {
  padding: 12px 14px;
  color: var(--text-primary);
  vertical-align: middle;
}

.table-title-cell {
  font-weight: 700;
  color: var(--primary);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.table-title-cell small {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: normal;
}

.table-user-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 市场底部托底引导卡片 */
.market-bottom-fallback {
  background: #FAF8F2;
  border: 1px dashed #E5D5B3;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
}

.fallback-text strong {
  display: block;
  font-size: 14px;
  color: #854D0E;
  margin-bottom: 2px;
}

.fallback-text p {
  font-size: 12px;
  color: #A16207;
}

/* 辅助类：仅移动端显示，PC 端彻底隐藏 */
.mobile-only { display: none !important; }

/* 💎 1. 资源市场板块样式 (PC 端极简紧凑型顶部横向筛选条，高度仅约 46px) */
.market-top-filter-bar {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.filter-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1;
}

.filter-search-compact {
  display: flex;
  align-items: center;
  background: #F8FAF9;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 0 10px;
  height: 32px;
  width: 210px;
  transition: var(--transition-fast);
}

.filter-search-compact:focus-within {
  border-color: var(--primary);
  background: #FFFFFF;
  box-shadow: 0 0 0 2px rgba(13, 35, 26, 0.08);
  width: 240px;
}

.filter-search-compact .search-icon {
  font-size: 12px;
  color: var(--text-muted);
  margin-right: 6px;
}

.search-input-compact {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 12.5px;
  color: var(--text-primary);
}

.filter-v-divider {
  width: 1px;
  height: 18px;
  background: var(--border-color);
  flex-shrink: 0;
}

.filter-pills-compact {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pill-btn-compact {
  padding: 3px 10px;
  background: #F1F5F3;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  cursor: pointer;
}

.pill-btn-compact:hover {
  background: #E2EAE5;
  color: var(--primary);
}

.pill-btn-compact.active {
  background: var(--primary);
  color: var(--accent);
  font-weight: 700;
}

.select-compact {
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  background: #F8FAF9;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
  height: 30px;
}

.select-compact:focus {
  border-color: var(--primary);
  background: #FFFFFF;
}

.checkbox-compact {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.checkbox-compact input {
  accent-color: var(--primary);
  cursor: pointer;
}

.btn-reset-pill {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: #F8FAF9;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  transition: var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.btn-reset-pill:hover {
  background: #FFFFFF;
  color: var(--danger);
  border-color: #FCA5A5;
}

.market-main-content.full-width {
  width: 100%;
}

.market-filter-panel { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 18px; box-shadow: var(--shadow-sm); }
.filter-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border-color); }
.filter-title { font-size: 13px; font-weight: 700; color: var(--primary); }
.btn-text { font-size: 12px; color: var(--text-muted); cursor: pointer; }
.btn-text:hover { color: var(--primary); }
.filter-group { margin-bottom: 14px; }
.filter-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }

.form-input, .form-select, .form-textarea {
  width: 100%; padding: 10px 12px; background: #F8FAF9; border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); font-size: 14px; color: var(--text-primary); outline: none; transition: var(--transition-fast);
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--primary); background: #FFFFFF; box-shadow: 0 0 0 3px rgba(13, 35, 26, 0.08); }
.mobile-filter-bar { display: none; margin-bottom: 16px; }

.market-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.market-count-text { font-size: 13px; color: var(--text-muted); font-weight: 500; }

.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.listing-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  position: relative;
}
.listing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(217, 177, 74, 0.5); }
.listing-card.pinned-highlight { border: 1.5px solid #F59E0B; background: #FFFEFA; }

/* 1. 顶部发布方主体信息 (Trust-First 用户置顶) */
.card-user-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #F1F5F3;
}

.card-user-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.card-user-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.card-user-name-line {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.card-user-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.card-user-right {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  margin-left: 8px;
  padding-top: 2px;
}

/* 🏅 三维成就标签 */
.user-badges-cluster {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.user-badge-chip {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.user-badge-chip.active-blue { background: #EFF6FF; color: #2563EB; border: 1px solid #BFDBFE; }
.user-badge-chip.active-green { background: #ECFDF5; color: #059669; border: 1px solid #A7F3D0; }
.user-badge-chip.active-gold { background: #FFFBEB; color: #D97706; border: 1px solid #FDE68A; }
.user-badge-chip.gray { background: #F3F4F6; color: #9CA3AF; border: 1px solid #E5E7EB; opacity: 0.85; }

/* 2. 中部标的货盘主体 */
.card-goods-body {
  margin-bottom: 12px;
}

.listing-image { width: 100%; height: 130px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 8px; }

.card-title-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.card-goods-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #0F281E;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pill { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 12px; white-space: nowrap; flex-shrink: 0; }
.pill.供矿 { background: #ECFDF5; color: #059669; }
.pill.采购 { background: #EFF6FF; color: #2563EB; }
.pill.居间 { background: #FEF3C7; color: #D97706; }

.listing-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  background: #F8FAF9;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}

.meta-tag { font-weight: 600; }
.meta-dot { color: #CBD5E1; }

.level { font-size: 11px; font-weight: 700; color: var(--accent-dark); background: var(--accent-light); padding: 2px 6px; border-radius: 4px; }
.level-sub-badge { font-size: 10px; font-weight: 600; color: var(--text-secondary); background: rgba(0,0,0,0.04); padding: 1px 6px; border-radius: 4px; }
.listing-card .level { font-size: 10.5px; padding: 1px 6px; border-radius: 4px; background: rgba(255,255,255,0.9); font-weight: 700; }
.listing-card .level.cert-badge-gold { background: #FFFBEB; color: #B45309; border: 1px solid #FCD34D; }
.listing-card .level.cert-badge-green { background: #F0FDF4; color: #15803D; border: 1px solid #86EFAC; }
.listing-card .level.cert-badge-emerald { background: #ECFDF5; color: #047857; border: 1px solid #6EE7B7; }
.listing-card .level.cert-badge-blue { background: #EFF6FF; color: #1D4ED8; border: 1px solid #93C5FD; }
.listing-card .level.cert-badge-warning { background: #FEF3C7; color: #B45309; border: 1px dashed #F59E0B; }
.listing-card .level.cert-badge-gray { background: #F9FAFB; color: #6B7280; border: 1px solid #E5E7EB; }

.small-avatar { width: 28px; height: 28px; background: var(--primary); color: var(--accent); border-radius: 50%; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; position: relative; }

/* 3. 底部履约存证与操作栏 */
.card-trust-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.card-trust-tags {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.trust-foot-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.trust-foot-badge.tag-pinned { background: linear-gradient(135deg, #DC2626 0%, #EA580C 100%); color: white; }
.trust-foot-badge.tag-urgent { background: #FEE2E2; color: #DC2626; border: 1px solid #FCA5A5; }
.trust-foot-badge.tag-fulfilled { background: #FEF3C7; color: #B45309; border: 1px solid #FDE68A; }
.trust-foot-badge.tag-sub { background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }

.card-action-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  transition: var(--transition-fast);
}

.listing-card:hover .card-action-link {
  color: var(--accent-dark);
}

/* ⚡ 动态实力看板与进度条样式 */
.strength-dashboard-wrap {
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.dashboard-header-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.dashboard-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
}

.dashboard-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.strength-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.strength-card {
  background: #F9FAFB;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
}

.strength-card.role-selectable {
  cursor: pointer;
  user-select: none;
}

.strength-card.role-selectable:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.strength-card.active-gold {
  background: #FFFDF7;
  border-color: #FCD34D;
  box-shadow: 0 2px 8px rgba(217, 177, 74, 0.12);
}

.strength-card.active-blue {
  background: #F8FAFF;
  border-color: #BFDBFE;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.12);
}

.strength-card.active-emerald {
  background: #F7FEFA;
  border-color: #A7F3D0;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.12);
}

/* 🎯 选中透视角色卡片高亮状态 */
.strength-card.selected {
  border-width: 2px !important;
  transform: translateY(-2px);
}

.strength-card.active-gold.selected {
  border-color: #D97706 !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2), 0 6px 16px rgba(217, 119, 6, 0.18) !important;
  background: #FFFBEB !important;
}

.strength-card.active-blue.selected {
  border-color: #2563EB !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2), 0 6px 16px rgba(37, 99, 235, 0.18) !important;
  background: #EFF6FF !important;
}

.strength-card.active-emerald.selected {
  border-color: #059669 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2), 0 6px 16px rgba(5, 150, 105, 0.18) !important;
  background: #ECFDF5 !important;
}

.selected-indicator-pill {
  position: absolute;
  top: -8px;
  right: 12px;
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 3px;
}

.strength-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.role-icon {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.level-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

.level-pill.gold { background: #FEF3C7; color: #B45309; }
.level-pill.blue { background: #EFF6FF; color: #1D4ED8; }
.level-pill.emerald { background: #ECFDF5; color: #047857; }

.strength-metric {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

.metric-num {
  font-size: 21px;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.pt-badge-unit {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
  background: #F1F5F9;
  padding: 1.5px 7px;
  border-radius: 6px;
  letter-spacing: 0.2px;
  border: 1px solid #E2E8F0;
  line-height: 1.3;
}

.strength-card.active-gold .pt-badge-unit {
  color: #92400E;
  background: #FEF3C7;
  border-color: #FDE68A;
}

.strength-card.active-blue .pt-badge-unit {
  color: #1E40AF;
  background: #DBEAFE;
  border-color: #BFDBFE;
}

.strength-card.active-emerald .pt-badge-unit {
  color: #065F46;
  background: #D1FAE5;
  border-color: #A7F3D0;
}

.metric-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}

.strength-progress-wrap {
  margin-top: auto;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #E5E7EB;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.progress-fill.gold { background: linear-gradient(90deg, #F59E0B, #D97706); }
.progress-fill.blue { background: linear-gradient(90deg, #3B82F6, #1D4ED8); }
.progress-fill.emerald { background: linear-gradient(90deg, #10B981, #059669); }

.progress-note {
  font-size: 10.5px;
  color: var(--text-secondary);
  line-height: 1.35;
  font-weight: 500;
}

/* 📊 平台认证类型、Pt 积分与段位等级阶梯速查表 */
.tier-gradient-lookup-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  margin-top: 14px;
  margin-bottom: 0px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.lookup-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #F8FAFC;
  cursor: pointer;
  border-bottom: 1px solid #E2E8F0;
  transition: background 0.2s;
}

.lookup-card-header:hover {
  background: #F1F5F9;
}

.lookup-toggle-btn {
  font-size: 11px;
  color: var(--primary);
  font-weight: 700;
}

.lookup-table-wrap {
  padding: 12px 14px;
  background: #FFFFFF;
}

.lookup-table-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.lookup-col {
  background: #FAFBFB;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  font-size: 11.5px;
}

.lookup-col-head {
  padding: 6px 10px;
  font-weight: 800;
  font-size: 12px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.lookup-col-head.gold { background: #FEF3C7; color: #92400E; }
.lookup-col-head.blue { background: #EFF6FF; color: #1E40AF; }
.lookup-col-head.emerald { background: #ECFDF5; color: #065F46; }

.lookup-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  border-bottom: 1px dashed #E2E8F0;
}

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

.lookup-row .lvl {
  font-weight: 700;
  color: var(--primary);
}

.lookup-row .pt {
  color: #64748B;
  font-size: 11px;
}

.lookup-table-footnote {
  font-size: 11px;
  color: #64748B;
  margin: 10px 0 0 0;
  padding-top: 8px;
  border-top: 1px solid #F1F5F9;
  line-height: 1.5;
}

/* 🔒 商业隐私保密提示框 */
.confidential-tip-box {
  background: #FFFBEB;
  border: 1px dashed #FCD34D;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 18px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.tip-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.confidential-tip-box strong {
  font-size: 12px;
  color: #92400E;
  display: block;
  margin-bottom: 2px;
}

.confidential-tip-box p {
  font-size: 11px;
  color: #B45309;
  line-height: 1.5;
  margin: 0;
}

/* 🏅 游戏化点亮勋章集 (Gamified Badges Cluster) */
.user-info-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.user-name-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-name-line strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.user-name-line .publish-time {
  font-size: 11px;
  color: var(--text-muted);
}

.user-badges-cluster {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.user-badge-chip {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  line-height: 1.4;
  user-select: none;
}

/* 亮起状态 */
.user-badge-chip.active-blue {
  background: #EFF6FF;
  color: #2563EB;
  border: 1px solid #BFDBFE;
}

.user-badge-chip.active-green {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.user-badge-chip.active-gold {
  background: #FFFBEB;
  color: #D97706;
  border: 1px solid #FDE68A;
}

/* 置灰未点亮状态 */
.user-badge-chip.gray {
  background: #F3F4F6;
  color: #9CA3AF;
  border: 1px dashed #D1D5DB;
  opacity: 0.75;
}

/* ✨ 2. 发布中心板块样式 */
.publish-card-wrap { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }

/* 🛡️ 发布中心身份与资质透视条 */
.publish-auth-banner {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: var(--transition-fast);
}
.publish-auth-banner.role-mine {
  background: linear-gradient(135deg, #FFFDF7 0%, #FEF9C3 100%);
  border-color: #FDE68A;
}
.publish-auth-banner.role-buyer {
  background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
  border-color: #BAE6FD;
}
.publish-auth-banner.role-agent {
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  border-color: #A7F3D0;
}
.publish-auth-banner.role-unverified {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border-color: #FCD34D;
}
.auth-banner-left { display: flex; align-items: center; gap: 12px; }
.auth-banner-icon { font-size: 24px; }
.auth-banner-title { font-size: 13.5px; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.auth-banner-desc { font-size: 12px; color: var(--text-secondary); margin-top: 3px; }
.auth-banner-right { flex-shrink: 0; }

/* ⚠️ 无发布权限引导卡片 */
.publish-no-auth-box {
  background: #FDFEFA;
  border: 1.5px dashed #FCD34D;
  border-radius: var(--radius-md);
  padding: 36px 24px;
  text-align: center;
  margin-bottom: 24px;
}
.publish-no-auth-box .no-auth-icon { font-size: 40px; margin-bottom: 12px; }
.publish-no-auth-box h3 { font-size: 17px; font-weight: 700; color: #92400E; margin-bottom: 8px; }
.publish-no-auth-box p { font-size: 13px; color: #A16207; max-width: 600px; margin: 0 auto 20px auto; line-height: 1.6; }
.publish-no-auth-box .no-auth-actions { display: flex; justify-content: center; gap: 12px; }

.form-block { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px dashed var(--border-color); }
.form-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.block-title { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.block-subtitle-tip { font-size: 12px; color: var(--text-muted); font-weight: 400; }
.role-hint-pill { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 12px; background: #EEF2F6; color: var(--text-secondary); }
.step-num { width: 24px; height: 24px; background: var(--primary); color: var(--accent); border-radius: 50%; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.block-title h3 { font-size: 16px; font-weight: 700; color: var(--primary); }

/* 🛡️ 步骤 1：发布主体身份选择卡片 */
.publish-role-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.role-select-card {
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  background: #FAFBF9;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.role-select-card:hover {
  border-color: #94A3B8;
  background: #FFFFFF;
  transform: translateY(-2px);
}
.role-select-card.selected {
  border-color: #10B981;
  background: #FFFFFF;
  box-shadow: 0 4px 16px -2px rgba(16, 185, 129, 0.16), 0 0 0 2px rgba(16, 185, 129, 0.25);
}
.role-select-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.role-select-card.role-mine .role-select-icon {
  background: linear-gradient(135deg, #FFFDF7 0%, #FEF3C7 100%);
  border: 1px solid #FDE68A;
}
.role-select-card.role-buyer .role-select-icon {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border: 1px solid #BFDBFE;
}
.role-select-card.role-agent .role-select-icon {
  background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
  border: 1px solid #BBF7D0;
}
.role-select-main {
  flex: 1;
  min-width: 0;
}
.role-select-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
}
.role-select-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
}
.role-select-active-tag {
  font-size: 10px;
  font-weight: 700;
  color: #15803D;
  background: #DCFCE7;
  border: 1px solid #86EFAC;
  padding: 1px 6px;
  border-radius: 10px;
  display: none;
}
.role-select-card.selected .role-select-active-tag {
  display: inline-block;
}
.role-select-comp {
  font-size: 12px;
  font-weight: 600;
  color: #1E293B;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.role-select-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.type-selector-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.type-selector-grid-2 { grid-template-columns: repeat(2, 1fr); width: 100%; gap: 16px; }
.type-option-card { cursor: pointer; position: relative; width: 100%; }
.type-option-card input { position: absolute; opacity: 0; }

.option-content {
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  text-align: left;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  background: #FAFBF9;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
  height: 100%;
}
.type-option-card:hover .option-content {
  border-color: #94A3B8;
  background: #FFFFFF;
}

.option-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 26px;
}
.supply-icon-bg {
  background: linear-gradient(135deg, #FFFDF7 0%, #FEF3C7 100%);
  border: 1px solid #FDE68A;
}
.demand-icon-bg {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border: 1px solid #BFDBFE;
}

.option-main-text {
  flex: 1;
  min-width: 0;
}
.option-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.option-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
}
.option-sub-tag {
  font-size: 11px;
  color: #64748B;
  background: #F1F5F9;
  padding: 1px 7px;
  border-radius: 4px;
  font-weight: 600;
}
.option-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0 0 8px 0;
}
.option-tags-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.mini-feature-tag {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: #F8FAFC;
  color: #475569;
  border: 1px solid #E2E8F0;
}

.option-radio-check {
  flex-shrink: 0;
  margin-left: 6px;
}
.check-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #CBD5E1;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  color: transparent;
  transition: var(--transition-fast);
}

/* 授权与锁定徽标 */
.option-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  display: none;
}
.type-option-card.allowed .option-badge {
  display: inline-block;
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #86EFAC;
}
.type-option-card.locked .option-badge {
  display: inline-block;
  background: #F3F4F6;
  color: #6B7280;
  border: 1px solid #D1D5DB;
}

/* 锁定/不可选状态 */
.type-option-card.locked {
  cursor: pointer;
  opacity: 0.65;
}
.type-option-card.locked:hover {
  opacity: 0.85;
}
.type-option-card.locked .option-content {
  background: #F8FAFC;
  border-color: #E2E8F0;
  border-style: dashed;
}
.type-option-card.locked .option-icon-box {
  filter: grayscale(0.8);
  opacity: 0.7;
}
.type-option-card.locked .option-title {
  color: #6B7280;
}
.type-option-card.locked .check-circle {
  display: none;
}

/* 选中高亮状态 */
.type-option-card:not(.locked) input:checked + .option-content {
  border-color: #10B981;
  background: #FFFFFF;
  box-shadow: 0 4px 16px -2px rgba(16, 185, 129, 0.16), 0 0 0 2px rgba(16, 185, 129, 0.25);
}
.type-option-card:not(.locked) input:checked + .option-content .check-circle {
  border-color: #10B981;
  background: #10B981;
  color: #FFFFFF;
}
.type-option-card:not(.locked) input:checked + .option-content .check-circle::after {
  content: "✓";
}

.form-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-item { display: flex; flex-direction: column; gap: 6px; }
.form-item-full { grid-column: span 2; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.form-label.required::after { content: " *"; color: var(--danger); }

/* 📍 智能产地/交割区域选择器专用样式 */
.region-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.geo-status-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.geo-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #047857;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 2px 8px;
  border-radius: 12px;
}
.geo-status-tag.loading {
  color: #B45309;
  background: #FFFBEB;
  border-color: #FDE68A;
}
.btn-text-action {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: var(--transition-fast);
}
.btn-text-action:hover {
  background: #EEF2F6;
  color: #10B981;
}

.region-selector-composite {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.region-dropdown-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.region-select {
  width: 100%;
}
.region-detail-input-wrap {
  width: 100%;
}

.file-upload-dropzone {
  border: 2px dashed var(--border-color); border-radius: var(--radius-md); padding: 20px; text-align: center;
  background: #FAFBF9; cursor: pointer; transition: var(--transition-fast);
}
.file-upload-dropzone:hover { border-color: var(--primary); background: #FFFFFF; }
.file-input-hidden { display: none; }
.dropzone-label { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; color: var(--text-secondary); font-size: 13px; }
.upload-icon { font-size: 28px; }

/* 📷 多图上传管理器网格 */
.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.preview-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 105px;
  position: relative;
  border: 1.5px solid var(--border-color);
  background: #F1F5F9;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}
.preview-item:hover {
  border-color: #94A3B8;
  transform: translateY(-2px);
}
.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.preview-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.75) 100%);
  color: white;
  font-size: 10px;
  padding: 8px 6px 3px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn-remove-preview {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.9);
  color: white;
  border: none;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: var(--transition-fast);
}
.btn-remove-preview:hover {
  background: #B91C1C;
  transform: scale(1.15);
}
.preview-badge-status {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(16, 185, 129, 0.9);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  z-index: 4;
}

/* ➕ 继续添加卡片 */
.preview-add-card {
  border: 2px dashed #CBD5E1;
  border-radius: var(--radius-sm);
  height: 105px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #FAFBF9;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-secondary);
}
.preview-add-card:hover {
  border-color: var(--primary);
  background: #FFFFFF;
  color: var(--primary);
}
.preview-add-card .add-icon {
  font-size: 22px;
  font-weight: 700;
}
.preview-add-card .add-text {
  font-size: 11px;
  font-weight: 600;
}

/* 🖼️ 商机详情多图画廊展示 */
.listing-gallery-box {
  background: #FAFBF9;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 14px;
}
.listing-gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}
.listing-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
}
.gallery-thumb-wrap {
  position: relative;
  height: 85px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition-fast);
  background: #F1F5F9;
}
.gallery-thumb-wrap:hover {
  border-color: var(--primary);
  transform: scale(1.03);
  box-shadow: var(--shadow-sm);
}
.gallery-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-zoom-hint {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  opacity: 0;
  transition: var(--transition-fast);
}
.gallery-thumb-wrap:hover .gallery-zoom-hint {
  opacity: 1;
}

.compliance-notice-box { background: #FEFCE8; border: 1px solid #FEF08A; border-radius: var(--radius-sm); padding: 12px; display: flex; gap: 8px; font-size: 12px; color: #854D0E; margin-bottom: 12px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); cursor: pointer; }

/* 三大业务方向 Tabs 切换器 */
.cert-direction-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.cert-tab-btn {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  transition: var(--transition-normal);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.cert-tab-btn:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.cert-tab-btn.active {
  background: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 35, 26, 0.1), var(--shadow-md);
}

.cert-tab-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.cert-tab-btn.active .cert-tab-icon {
  background: var(--primary);
  color: var(--accent);
}

.cert-tab-info strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.cert-tab-info small {
  font-size: 11px;
  color: var(--text-muted);
}

/* 扩展可选资质并列色块卡片 (Addon Chips Cards) */
.addon-chips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.addon-chip-card {
  background: #FAFBF9;
  border: 1.5px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition-fast);
  user-select: none;
}

.addon-chip-card:hover {
  border-color: var(--primary-light);
  background: #FFFFFF;
}

.addon-chip-card.active {
  background: #FFFFFF;
  border: 1.5px solid var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 35, 26, 0.08);
}

.addon-chip-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.addon-chip-info {
  flex: 1;
}

.addon-chip-info strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.addon-chip-info p {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.addon-chip-checkbox {
  margin-left: auto;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

/* 🛡️ 3. 认证中心板块样式 */
.realname-gate-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.realname-gate-card.approved {
  border-color: #10B981;
  background: #F0FDF4;
}

.realname-gate-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.realname-gate-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.realname-gate-title h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
}

.cert-type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cert-type-card {
  background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-md);
  padding: 20px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: var(--transition-normal);
}
.cert-type-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.cert-type-card.locked {
  opacity: 0.65;
  background: #F9FAFB;
  border-style: dashed;
  cursor: not-allowed !important;
}
.cert-type-card.locked:hover {
  transform: none !important;
  border-color: var(--border-color) !important;
  box-shadow: none !important;
}
.cert-type-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 24px; }
.cert-type-top b { font-size: 12px; color: var(--accent-dark); background: var(--accent-light); padding: 2px 8px; border-radius: 12px; }
.cert-type-card h2 { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--primary); }
.cert-type-card p { font-size: 12px; color: var(--text-secondary); margin-bottom: 12px; flex: 1; }
.cert-type-card small { font-size: 10px; color: var(--text-muted); margin-bottom: 14px; display: block; }

/* 💬 5. 对接中心与私信样式 */
.request-card {
  background: #FFFFFF; border: 1px solid var(--border-color); border-radius: var(--radius-md);
  padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;
}
.request-card h3 { font-size: 14px; font-weight: 700; color: var(--primary); }
.request-card p { font-size: 12px; color: var(--text-secondary); }

.chat-log { max-height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; padding: 10px; background: #F8FAF9; border-radius: var(--radius-sm); border: 1px solid var(--border-color); }
.chat-bubble { padding: 8px 12px; border-radius: var(--radius-sm); font-size: 13px; max-width: 80%; }
.chat-bubble-other { background: #FFFFFF; border: 1px solid var(--border-color); align-self: flex-start; }
.chat-bubble-self { background: var(--primary); color: white; align-self: flex-end; }

/* 📱 移动端底部导航与 Modal */
.mobile-bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; height: 64px;
  background: rgba(13, 35, 26, 0.98); backdrop-filter: blur(16px);
  border-top: 1px solid rgba(217, 177, 74, 0.2); z-index: 900;
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #8E9E96; transition: var(--transition-fast); }
.mobile-nav-icon { font-size: 18px; margin-bottom: 2px; }
.mobile-nav-label { font-size: 10px; font-weight: 600; }
.mobile-nav-item.active { color: var(--accent); }

.modal { position: fixed; inset: 0; background: rgba(7, 20, 15, 0.75); backdrop-filter: blur(8px); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal.hidden { display: none !important; }
.modal-card { background: var(--bg-surface); border-radius: var(--radius-lg); width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; padding: 32px; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.8); transition: max-width 0.2s ease; }
.modal-card.modal-lg { max-width: 960px; width: 95vw; padding: 28px 32px; }
.modal-card.settings-modal-card,
.modal-card.modal-lg.settings-modal-card { max-width: 1160px !important; width: 92vw !important; padding: 0 !important; }
@media (min-width: 1400px) {
  .modal-card.settings-modal-card,
  .modal-card.modal-lg.settings-modal-card { max-width: 1220px !important; }
}
.close-modal { position: absolute; top: 18px; right: 18px; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-main); font-size: 20px; color: var(--text-muted); display: flex; align-items: center; justify-content: center; z-index: 10; }

/* 📑 深度尽调报告专属样式 */
.dd-report-container { display: flex; flex-direction: column; gap: 16px; font-size: 13px; color: var(--text-primary); }
.dd-section-title { font-size: 14px; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.dd-audit-card { background: #FFFFFF; border: 1px solid var(--border-color); border-radius: 12px; padding: 16px; box-shadow: var(--shadow-sm); }
.dd-strength-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 768px) {
  .modal-card.modal-lg { padding: 20px 16px; }
  .dd-strength-grid { grid-template-columns: 1fr; }
}
.dd-official-stamp {
  width: 96px;
  height: 96px;
  border: 2.5px dashed #DC2626;
  border-radius: 50%;
  color: #DC2626;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 900;
  text-align: center;
  transform: rotate(-10deg);
  background: rgba(254, 242, 242, 0.6);
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.12);
  letter-spacing: 0.5px;
  user-select: none;
  flex-shrink: 0;
}

/* 🔑 登录弹窗样式 */
.auth-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border-color); }
.auth-header-logo { width: 44px; height: 44px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); border: 1px solid var(--accent); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 20px; }
.auth-header-text h2 { font-size: 20px; font-weight: 800; color: var(--primary); }
.auth-header-text p { font-size: 12px; color: var(--text-muted); }
.auth-form-stack { display: flex; flex-direction: column; gap: 18px; }
.input-field-group { display: flex; flex-direction: column; gap: 6px; }
.input-field-group label { font-size: 13px; font-weight: 700; color: var(--text-secondary); }
.input-with-icon { position: relative; display: flex; align-items: center; }
.input-icon { position: absolute; left: 14px; font-size: 16px; color: var(--text-muted); pointer-events: none; }
.input-styled { width: 100%; height: 48px; padding: 10px 14px 10px 42px; background: #F8FAF9; border: 1.5px solid var(--border-color); border-radius: var(--radius-sm); font-size: 15px; color: var(--text-primary); outline: none; }

.input-styled:-webkit-autofill,
.input-styled:-webkit-autofill:hover, 
.input-styled:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text-primary);
  -webkit-box-shadow: 0 0 0px 1000px #F8FAF9 inset;
  transition: background-color 5000s ease-in-out 0s;
}

.btn-auth-submit { height: 48px; font-size: 16px; font-weight: 700; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: #FFFFFF; border-radius: var(--radius-sm); margin-top: 6px; }
.demo-fill-card { margin-top: 24px; background: #FAF8F2; border: 1px dashed #E5D5B3; border-radius: var(--radius-md); padding: 14px; }
.demo-fill-title { font-size: 11px; font-weight: 700; color: #854D0E; margin-bottom: 8px; }
.demo-chip-buttons { display: flex; gap: 8px; }
.demo-chip { flex: 1; padding: 8px 10px; background: #FFFFFF; border: 1px solid #E6D9BF; border-radius: var(--radius-sm); display: flex; flex-direction: column; align-items: flex-start; }

.toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(50px); background: var(--primary-dark); color: white; padding: 10px 20px; border-radius: 30px; font-size: 13px; border: 1px solid var(--accent); opacity: 0; transition: all 0.25s ease; z-index: 2000; }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.hidden { display: none !important; }

.footer { background: var(--primary-dark); color: #A0B2A8; padding: 32px 20px 96px 20px; font-size: 12px; }
.footer-inner { max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; }

/* 📜 履约存证角色切换按钮 */
.fulfill-tab-btn {
  padding: 10px 8px;
  background: #F1F5F9;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.fulfill-tab-btn:hover {
  background: #E2E8F0;
  border-color: #94A3B8;
}
.fulfill-tab-btn.active {
  background: #0B2B20;
  color: #FFFFFF;
  border-color: #0B2B20;
  box-shadow: 0 4px 12px rgba(11, 43, 32, 0.2);
}

.agent-level-card {
  transition: all 0.2s ease;
}
.agent-level-card:hover {
  border-color: #94A3B8 !important;
}
.agent-level-card.active {
  background: #EFF6FF !important;
  border-color: #2563EB !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

/* 🛡️ 公开信用资质认证透视主页 (Public Trust Profile) 基础样式 */
.public-profile-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding: 10px 16px;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.btn-back-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F1F5F3;
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-back-inline:hover {
  background: var(--primary);
  color: var(--accent);
  border-color: var(--primary);
}

.public-verified-pill {
  font-size: 12px;
  font-weight: 700;
  color: #047857;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 4px 10px;
  border-radius: 20px;
}

.trust-profile-content-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 1. 主体权威身份卡 */
.public-id-hero {
  background: linear-gradient(135deg, #0B241A 0%, #153E2E 100%);
  border: 1.5px solid rgba(217, 177, 74, 0.4);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  color: #FFFFFF;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  box-shadow: 0 8px 24px rgba(11, 36, 26, 0.15);
}

.public-id-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.public-big-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 26px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.public-id-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.public-id-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.public-id-name {
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
}

.public-id-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.75);
  flex-wrap: wrap;
}

.public-badges-cluster {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.btn-connect-hero {
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 800;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(217, 177, 74, 0.4);
  white-space: nowrap;
}

/* 2. 通用信用卡片 */
.public-section-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}

.public-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F1F5F3;
}

.public-section-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
}

.public-section-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.public-status-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: #047857;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 3px 10px;
  border-radius: 20px;
}

/* 冷热双轨 */
.dual-track-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.track-box {
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}

.track-box.cold-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
}
.track-box.cold-box .track-tag { color: #475569; font-size: 12px; font-weight: 600; }
.track-box.cold-box .track-val { color: #1E293B; font-size: 22px; font-weight: 800; margin: 6px 0 2px 0; }

.track-box.hot-box {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
}
.track-box.hot-box .track-tag { color: #15803D; font-size: 12px; font-weight: 600; }
.track-box.hot-box .track-val { color: #059669; font-size: 22px; font-weight: 800; margin: 6px 0 2px 0; }

.track-box.trust-stat-box {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
}
.track-box.trust-stat-box .track-tag { color: #B45309; font-size: 12px; font-weight: 600; }
.track-box.trust-stat-box .track-val { color: #D97706; font-size: 22px; font-weight: 800; margin: 6px 0 2px 0; }

.track-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* 履约历史 */
.fulfillment-history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.fulfillment-row-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #F8FAF9;
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
}

.f-row-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.f-mineral-name {
  color: var(--primary);
  font-size: 13.5px;
}

.f-quantity {
  color: var(--text-muted);
  font-size: 12px;
}

.f-row-right {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* 勋章墙 */
.public-badges-wall {
  background: #FAFBF9;
  border: 1px dashed var(--border-color);
  border-radius: 10px;
  padding: 14px 18px;
}

.wall-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.wall-badges-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* 认证中心基础样式补充 */
.cert-step2-header {
  margin-top: 24px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cert-step2-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
}

.cert-step2-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.cert-rule-banner {
  background: #FFFDF7;
  border: 1.5px solid #FDE68A;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.rule-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rule-icon { font-size: 24px; flex-shrink: 0; }
.rule-title { font-size: 14px; color: #92400E; display: block; }
.rule-desc { font-size: 12px; color: #B45309; margin: 2px 0 0 0; }

.btn-rule-detail {
  font-size: 12px;
  padding: 6px 12px;
  border-color: #FCD34D;
  color: #92400E;
  white-space: nowrap;
}

/* 🖥️ PC 桌面端专属 (> 768px)：严格隐藏移动端筛选栏与移动端抽屉 */
@media (min-width: 769px) {
  .mobile-filter-bar,
  #market-filter-panel {
    display: none !important;
  }
}

/* 📱 移动端 Media Queries (<= 768px) */
@media (max-width: 768px) {
  .desktop-nav, .desktop-only { display: none !important; }
  .mobile-bottom-nav { display: flex !important; }
  .mobile-home-header, .mobile-market-header { display: block; }
  .main-content { padding: 10px 10px 90px 10px; }
  .topbar-inner { padding: 0 12px; height: 52px; }
  .brand-name { font-size: 15px; }
  .brand-domain-tag { font-size: 9.5px; padding: 1px 4px; }
  .brand-sub { display: none; }

  .quick-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .quick-card { padding: 10px 4px; flex-direction: column; justify-content: center; text-align: center; min-height: 80px; background: #FFFFFF; }
  .quick-icon-wrap { width: 44px; height: 44px; border-radius: 50%; font-size: 22px; margin-bottom: 4px; }
  .quick-info h3 { font-size: 12px; font-weight: 700; }

  .market-layout { grid-template-columns: 1fr; gap: 10px; }
  .mobile-filter-bar { display: block !important; margin-bottom: 10px; }
  .mobile-filter-btn { width: 100%; justify-content: space-between; background: var(--bg-surface); border: 1px solid var(--border-color); font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: var(--radius-sm); }
  
  #market-filter-panel {
    display: none;
    background: #FFFFFF;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  }
  #market-filter-panel.mobile-open {
    display: block !important;
  }

  .type-selector-grid, .cert-type-grid { grid-template-columns: 1fr; gap: 10px; }
  .type-selector-grid .option-content { padding: 14px 12px; gap: 12px; }
  .type-selector-grid .option-icon-box { width: 42px; height: 42px; font-size: 22px; }
  .type-selector-grid .option-desc { font-size: 11.5px; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .form-item-full { grid-column: span 1; }

  .listing-grid { grid-template-columns: 1fr; gap: 10px; }
  .home-featured-section { margin-bottom: 20px; }
  .section-head-bar { margin-bottom: 10px; }
  .section-heading { font-size: 15px; }
  .market-toolbar-enhanced { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 10px; }
  .market-bottom-fallback { flex-direction: column; gap: 12px; align-items: stretch; text-align: center; }
  .modal { padding: 0; align-items: flex-end; }
  .modal-card { border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 90vh; padding: 24px 16px 36px 16px; }

  /* 🛡️ 移动端认证中心专项深度优化 */
  .strength-dashboard-wrap {
    padding: 14px 12px 14px 12px;
    margin-bottom: 14px;
  }

  .dashboard-header-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  .dashboard-title {
    font-size: 15px;
  }

  .dashboard-subtitle {
    font-size: 11.5px;
  }

  .dashboard-view-profile-btn {
    font-size: 11px !important;
    padding: 3px 10px !important;
    background: #F1F5F3;
    border-radius: 12px;
    align-self: flex-start;
    color: var(--primary) !important;
    font-weight: 700 !important;
  }

  /* 📱 移动端三大段位卡片：升级为横向平滑滑动轮播卡片 (Peek Effect) */
  .strength-grid-3 {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    margin: 0 -12px;
    padding: 0 12px 6px 12px;
    scrollbar-width: none;
  }
  .strength-grid-3::-webkit-scrollbar {
    display: none;
  }

  .strength-card {
    flex: 0 0 78% !important;
    min-width: 230px !important;
    max-width: 280px !important;
    scroll-snap-align: start;
    padding: 12px 14px;
  }

  .metric-num {
    font-size: 18px;
  }

  .progress-note {
    font-size: 10px;
  }

  /* 第1步实名卡片移动端优化 */
  .realname-gate-card {
    padding: 14px 12px;
    margin-bottom: 14px;
  }

  .realname-gate-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .realname-gate-title {
    display: flex;
    align-items: flex-start;
    gap: 8px;
  }

  .gate-icon {
    font-size: 20px;
    line-height: 1;
    margin-top: 2px;
  }

  .gate-info h3 {
    font-size: 14.5px;
    font-weight: 800;
    margin: 0;
  }

  .gate-info p {
    font-size: 11.5px;
    color: var(--text-secondary);
    margin-top: 2px;
    line-height: 1.4;
  }

  .gate-status-pill {
    align-self: flex-start;
    font-size: 11px !important;
    padding: 2px 8px !important;
  }

  /* 第2步标题与指引横幅移动端优化 */
  .cert-step2-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-top: 18px;
    margin-bottom: 10px;
  }

  .cert-step2-title {
    font-size: 14.5px;
  }

  .cert-step2-hint {
    font-size: 11.5px;
  }

  .cert-rule-banner {
    padding: 12px 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .rule-banner-left {
    align-items: flex-start;
    gap: 8px;
  }

  .rule-icon {
    font-size: 20px;
    margin-top: 2px;
  }

  .rule-title {
    font-size: 13.5px;
  }

  .rule-desc {
    font-size: 11.5px;
    line-height: 1.45;
  }

  .btn-rule-detail {
    width: 100%;
    text-align: center;
    font-size: 11.5px;
    padding: 6px 10px;
  }

  .cert-type-card {
    padding: 16px 14px;
  }

  .cert-type-card h2 {
    font-size: 15px;
  }

  .cert-type-card p {
    font-size: 12px;
  }

  .cert-type-card button {
    min-height: 38px;
    font-size: 13px;
    font-weight: 700;
  }

  /* 公开信用主页移动端优化 */
  .public-id-hero { flex-direction: column; align-items: flex-start; padding: 18px 16px; }
  .public-id-left { flex-direction: column; align-items: flex-start; gap: 12px; width: 100%; }
  .public-id-right { width: 100%; }
  .btn-connect-hero { width: 100%; justify-content: center; }
  .dual-track-grid-3 { grid-template-columns: 1fr; gap: 10px; }
  .fulfillment-row-item { flex-direction: column; align-items: flex-start; gap: 6px; }
  .lookup-table-grid { grid-template-columns: 1fr; gap: 8px; }
  .ecosystem-pillars-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* 🌐 生态合伙与配套服务专区专用样式 */
.ecosystem-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ecosystem-hero-banner {
  background: linear-gradient(135deg, #0B241A 0%, #154532 50%, #1F5F45 100%);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  color: #FFFFFF;
  box-shadow: 0 10px 25px -5px rgba(11, 36, 26, 0.15);
  position: relative;
  overflow: hidden;
}

.ecosystem-hero-banner::after {
  content: "🌐";
  position: absolute;
  right: 20px;
  bottom: -15px;
  font-size: 140px;
  opacity: 0.08;
  pointer-events: none;
}

.ecosystem-hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #86EFAC;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.ecosystem-hero-content h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #FFFFFF;
}

.ecosystem-hero-content p {
  font-size: 13.5px;
  color: #D1FAE5;
  line-height: 1.65;
  max-width: 820px;
}

.ecosystem-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ecosystem-pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.ecosystem-pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.08);
  border-color: var(--primary);
}

.pillar-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 14px;
}

.pillar-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  background: #F1F5F9;
  padding: 2px 8px;
  border-radius: 10px;
}

.ecosystem-pillar-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.ecosystem-pillar-card p {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.pillar-status {
  font-size: 11.5px;
  font-weight: 600;
  color: #D97706;
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  align-self: flex-start;
}

.ecosystem-inquiry-box {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.inquiry-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--border-color);
}

.inquiry-header h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.inquiry-header p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.ecosystem-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

