/* =====================================================
   长沙跨境贸易国际公共采购服务平台 - 样式表 v2.0
   ===================================================== */

/* ---------- CSS变量 ---------- */
:root {
  --un-blue: #009edb;
  --un-blue-dark: #0077a8;
  --un-blue-light: #e8f6fc;
  --cuppf-gold: #c8a84b;
  --cuppf-gold-light: #fdf6e3;
  --lianmao-green: #27ae60;
  --accent-red: #e74c3c;
  --accent-orange: #f39c12;
  --text-primary: #1a2332;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --bg-light: #f7f9fc;
  --bg-white: #ffffff;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.16);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: all 0.2s ease;
}

/* ---------- 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans SC', 'Inter', -apple-system, sans-serif; color: var(--text-primary); background: var(--bg-light); line-height: 1.6; }
a { text-decoration: none; color: var(--un-blue); }
img { max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }

/* ---------- 授权认证条 ---------- */
.auth-bar {
  background: linear-gradient(135deg, #1a2332 0%, #0d3c6e 100%);
  color: #fff;
  padding: 8px 0;
  font-size: 12px;
  border-bottom: 2px solid var(--cuppf-gold);
}
.auth-bar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.auth-left { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.auth-badge { display: flex; align-items: center; gap: 6px; }
.auth-icon { font-size: 14px; }
.auth-text { color: rgba(255,255,255,0.9); }
.auth-right { display: flex; gap: 16px; align-items: center; }
.auth-cert { color: var(--cuppf-gold); font-weight: 500; }
.auth-link { color: rgba(255,255,255,0.7); font-size: 11px; border: 1px solid rgba(255,255,255,0.3); padding: 2px 8px; border-radius: 4px; transition: var(--transition); }
.auth-link:hover { color: #fff; border-color: #fff; }
.sync-live-dot { width: 6px; height: 6px; border-radius: 50%; background: #2ecc71; display: inline-block; animation: pulse 2s infinite; }

/* ---------- 顶部导航 ---------- */
.header { background: #fff; box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 1000; }
.header-top { background: var(--un-blue-dark); padding: 6px 0; }
.header-top-inner { display: flex; justify-content: space-between; align-items: center; }
.header-notice { color: rgba(255,255,255,0.9); font-size: 12px; }
.header-top-right { display: flex; align-items: center; gap: 10px; }
.lang-btn { background: transparent; border: 1px solid rgba(255,255,255,0.4); color: rgba(255,255,255,0.8); padding: 3px 10px; border-radius: 4px; font-size: 12px; transition: var(--transition); }
.lang-btn.active, .lang-btn:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.8); color: #fff; }
.divider { color: rgba(255,255,255,0.3); }
.header-link { color: rgba(255,255,255,0.8); font-size: 12px; }
.header-link:hover { color: #fff; }
.btn-sm { padding: 4px 12px; font-size: 12px; }

.header-main { padding: 12px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-un-icon, .logo-icon { width: 48px; height: 48px; }
.logo-icon img { width: 48px; height: 48px; border-radius: 8px; }
.logo-name { font-size: 16px; font-weight: 700; color: var(--text-primary); line-height: 1.2; }
.logo-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.nav { display: flex; gap: 4px; }
.nav-link { padding: 8px 14px; border-radius: 8px; color: var(--text-secondary); font-size: 14px; font-weight: 500; transition: var(--transition); }
.nav-link:hover, .nav-link.active { background: var(--un-blue-light); color: var(--un-blue); }
.menu-btn { display: none; font-size: 22px; padding: 8px; color: var(--text-primary); }

.mobile-menu { display: none; padding: 12px 0; border-top: 1px solid var(--border); background: #fff; }
.mobile-menu.open { display: block; }
.mobile-nav-link { display: block; padding: 10px 0; color: var(--text-secondary); font-size: 15px; border-bottom: 1px solid var(--border); }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 24px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; transition: var(--transition); cursor: pointer; }
.btn-primary { background: var(--un-blue); color: #fff; border: 2px solid var(--un-blue); }
.btn-primary:hover { background: var(--un-blue-dark); border-color: var(--un-blue-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,158,219,.35); }
.btn-outline { background: transparent; color: var(--un-blue); border: 2px solid var(--un-blue); }
.btn-outline:hover { background: var(--un-blue-light); }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: var(--radius); }
.btn-sm { padding: 6px 14px; font-size: 12px; }

/* ---------- 英雄区 ---------- */
.hero { background: linear-gradient(135deg, #0d3c6e 0%, #0077a8 50%, #009edb 100%); color: #fff; padding: 80px 0 60px; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-particles { position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(255,255,255,0.15)'/%3E%3C/svg%3E"); }
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-badges-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); padding: 6px 14px; border-radius: 20px; font-size: 13px; backdrop-filter: blur(10px); }
.hero-auth-tag { display: inline-flex; align-items: center; background: rgba(200,168,75,0.2); border: 1px solid rgba(200,168,75,0.5); padding: 6px 14px; border-radius: 20px; font-size: 13px; color: #f5d67a; }
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(1.2); } }

.hero-title { font-size: clamp(28px, 4vw, 52px); font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.highlight { color: #7ecef4; }
.hero-desc { font-size: 16px; opacity: 0.9; margin-bottom: 36px; max-width: 680px; line-height: 1.8; }

.hero-search { background: rgba(255,255,255,0.1); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 32px; }
.search-box { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.search-icon { font-size: 18px; }
.search-input { flex: 1; min-width: 200px; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); border-radius: var(--radius-sm); padding: 10px 14px; color: #fff; font-size: 14px; outline: none; }
.search-input::placeholder { color: rgba(255,255,255,0.6); }
.search-input:focus { border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.2); }
.search-filter { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); border-radius: var(--radius-sm); padding: 10px 12px; color: #fff; font-size: 13px; cursor: pointer; }
.search-filter option { background: #1a2332; }
.search-btn { white-space: nowrap; }
.search-tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; opacity: 0.8; }
.tag { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25); padding: 4px 10px; border-radius: 12px; cursor: pointer; transition: var(--transition); font-size: 12px; color: #fff; }
.tag:hover { background: rgba(255,255,255,0.3); }

.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-num { font-size: 28px; font-weight: 800; color: #fff; }
.stat-label { font-size: 12px; opacity: 0.75; margin-top: 4px; }

/* ---------- 数据来源条 ---------- */
.source-bar { background: #fff; border-bottom: 1px solid var(--border); padding: 14px 0; }
.source-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.source-label { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.source-logos { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.source-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-secondary); }
.cuppf-source { border: 1px solid var(--cuppf-gold); padding: 4px 10px; border-radius: 6px; background: var(--cuppf-gold-light); }
.source-badge { padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; color: #fff; }
.source-badge.cuppf { background: var(--cuppf-gold); color: #1a2332; }
.source-badge.lianmao { background: var(--lianmao-green); }
.source-badge.ungm { background: var(--un-blue); }
.source-badge.unops { background: #3498db; }
.source-badge.undp { background: #1a5276; }
.sync-status { background: var(--bg-light); padding: 4px 10px; border-radius: 6px; }
.sync-dot { width: 8px; height: 8px; border-radius: 50%; background: #95a5a6; display: inline-block; }
.sync-dot.syncing { background: #f39c12; animation: pulse 1s infinite; }
.sync-dot.success { background: #2ecc71; }
.sync-dot.error { background: var(--accent-red); }

/* ---------- 功能卡片 ---------- */
.features { background: var(--bg-light); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 32px; font-weight: 800; color: var(--text-primary); margin-bottom: 12px; }
.section-header p { font-size: 15px; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }
.features-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.feature-card { background: #fff; border-radius: var(--radius); padding: 18px 14px; border: 1px solid var(--border); transition: var(--transition); overflow: hidden; }
.feature-card img { max-width: 100%; height: auto; object-fit: contain; border-radius: var(--radius-sm); }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--un-blue); }
.highlight-card { border: 2px solid var(--cuppf-gold); background: var(--cuppf-gold-light); }
.highlight-card:hover { border-color: var(--cuppf-gold); box-shadow: 0 4px 20px rgba(200,168,75,0.2); }
.feature-icon { font-size: 28px; margin-bottom: 10px; }
.feature-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--text-primary); }
.feature-card p { font-size: 12px; color: var(--text-secondary); line-height: 1.6; }

/* ---------- 招标大厅 ---------- */
.tenders-section { background: #fff; }
.filter-bar { background: var(--bg-light); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.filter-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-group label { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-tab { padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; background: #fff; color: var(--text-secondary); border: 1px solid var(--border); transition: var(--transition); }
.filter-tab:hover { border-color: var(--un-blue); color: var(--un-blue); }
.filter-tab.active { background: var(--un-blue); color: #fff; border-color: var(--un-blue); }
.filter-select { padding: 6px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; background: #fff; color: var(--text-primary); }
.filter-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.result-count { font-size: 13px; color: var(--text-muted); }

.tenders-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; min-height: 200px; }
.loading-spinner { grid-column: 1/-1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 60px; color: var(--text-muted); }
.spinner { width: 40px; height: 40px; border: 4px solid var(--border); border-top-color: var(--un-blue); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.tender-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 20px; cursor: pointer; transition: var(--transition); position: relative; overflow: hidden; }
.tender-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--un-blue); }
.tender-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--un-blue); transform: scaleX(0); transition: var(--transition); transform-origin: left; }
.tender-card:hover::before { transform: scaleX(1); }
.tender-card.lianmao-source::after { content: '联贸云'; position: absolute; top: 12px; right: 12px; background: var(--lianmao-green); color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 4px; }

.card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; gap: 8px; }
.card-agency { display: flex; align-items: center; gap: 6px; }
.agency-tag { padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; color: #fff; background: var(--un-blue); }
.card-status { padding: 3px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.status-open { background: #d5f5e3; color: #1e8449; }
.status-closing { background: #fef9e7; color: #d68910; }
.status-closed { background: #f5f5f5; color: #999; }

.card-title { font-size: 15px; font-weight: 600; color: var(--text-primary); line-height: 1.5; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title-en { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.card-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.card-meta span { display: flex; align-items: center; gap: 4px; }
.card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--border); }
.card-deadline { font-size: 13px; }
.deadline-urgent { color: var(--accent-red); font-weight: 600; }
.deadline-normal { color: var(--text-secondary); }
.card-value { font-size: 13px; font-weight: 600; color: var(--un-blue-dark); }
.card-hot { position: absolute; top: 12px; left: 12px; background: var(--accent-red); color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 4px; }

.load-more-wrap { text-align: center; margin-top: 32px; display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; }
.view-all { color: var(--un-blue); font-size: 14px; }

/* ---------- UNSPSC 四级编码 ---------- */
.unspsc-section { background: var(--bg-light); }
.unspsc-search-bar { background: #fff; border-radius: var(--radius); padding: 20px; margin-bottom: 24px; border: 1px solid var(--border); }
.unspsc-search-box { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.unspsc-input { flex: 1; min-width: 240px; padding: 10px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; outline: none; transition: var(--transition); }
.unspsc-input:focus { border-color: var(--un-blue); box-shadow: 0 0 0 3px var(--un-blue-light); }
.unspsc-stats { font-size: 13px; color: var(--text-muted); }
.unspsc-stats strong { color: var(--un-blue); }

.unspsc-cascade { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.cascade-arrow { display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--text-muted); background: var(--bg-light); padding: 0 8px; border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
.cascade-level { display: flex; flex-direction: column; min-height: 400px; }
.cascade-header { padding: 14px 16px; background: var(--un-blue); display: flex; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 2; }
.level-badge { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,0.25); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.level1 { background: rgba(255,255,255,0.3); }
.level2 { background: rgba(255,255,255,0.25); }
.level3 { background: rgba(255,255,255,0.2); }
.level4 { background: rgba(255,255,255,0.15); }
.level-title { color: #fff; font-size: 13px; font-weight: 600; }
.cascade-list { flex: 1; overflow-y: auto; padding: 8px; }
.cascade-placeholder { color: var(--text-muted); font-size: 13px; padding: 16px; text-align: center; }
.cascade-item { padding: 8px 12px; border-radius: var(--radius-sm); cursor: pointer; font-size: 13px; line-height: 1.4; transition: var(--transition); border: 1px solid transparent; margin-bottom: 2px; }

/* ========== UNSPSC 最近使用编码 ========== */
.unspsc-recent {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  flex-wrap: wrap;
  font-size: 13px;
}
.recent-label {
  color: var(--text-secondary);
  font-weight: 500;
  flex-shrink: 0;
}
.recent-codes {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.recent-code-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: var(--un-blue-light);
  border: 1px solid var(--un-blue);
  border-radius: 20px;
  font-size: 12px;
  color: var(--un-blue-dark);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.recent-code-btn:hover {
  background: var(--un-blue);
  color: #fff;
}
.recent-clear {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  padding: 2px 6px;
}
.recent-clear:hover { color: var(--accent-red); }
.cascade-item:hover { background: var(--un-blue-light); border-color: var(--un-blue); }
.cascade-item.active { background: var(--un-blue); color: #fff; }
.cascade-item .item-code { font-size: 11px; font-family: monospace; opacity: 0.7; display: block; }
.cascade-item .item-name { font-weight: 500; }
.cascade-item .item-name-en { font-size: 11px; opacity: 0.7; display: block; }

.unspsc-selected { background: #fff; border: 2px solid var(--lianmao-green); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.selected-header { font-weight: 700; color: var(--lianmao-green); margin-bottom: 12px; font-size: 15px; }
.selected-path { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 16px; }
.path-item { background: var(--un-blue-light); border: 1px solid var(--un-blue); padding: 6px 12px; border-radius: 6px; font-size: 13px; color: var(--un-blue-dark); }
.path-item .code { font-family: monospace; font-weight: 700; }
.path-arrow { color: var(--text-muted); font-size: 16px; }
.selected-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ========== UNSPSC 选中路径实时面包屑 ========== */
.unspsc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e8f6fc 100%);
  border: 1px solid rgba(0,158,219,0.2);
  border-radius: 12px;
  padding: 12px 20px;
  margin-bottom: 20px;
  font-size: 14px;
  flex-wrap: wrap;
  animation: slideDown 0.25s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.unspsc-breadcrumb span { font-weight: 500; }
.bc-seg { color: var(--text-secondary); }
.bc-fam { color: var(--text-secondary); }
.bc-cls { color: var(--text-secondary); }
.bc-item { color: var(--un-blue); font-weight: 700; font-size: 15px; }
.bc-arrow { color: #cbd5e0; font-size: 18px; font-weight: 300; }
.bc-arrow-active { color: var(--un-blue); }
.unspsc-breadcrumb .bc-done { opacity: 0.5; }
.unspsc-results { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.results-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 14px; color: var(--text-secondary); }
.results-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; max-height: 400px; overflow-y: auto; }
.result-item { padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition); }
.result-item:hover { border-color: var(--un-blue); background: var(--un-blue-light); }
.result-code { font-family: monospace; font-size: 13px; font-weight: 700; color: var(--un-blue); margin-bottom: 4px; }
.result-name { font-size: 14px; font-weight: 500; }
.result-name-en { font-size: 12px; color: var(--text-muted); }
.result-path { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ---------- 机构分类 ---------- */
.agencies-section { background: var(--bg-light); }
.agency-categories { display: flex; flex-direction: column; gap: 32px; }
.agency-group { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.agency-group-header { display: flex; align-items: center; gap: 14px; padding: 18px 24px; }
.agency-group-header.development { background: linear-gradient(135deg, #1a5276, #2980b9); color: #fff; }
.agency-group-header.humanitarian { background: linear-gradient(135deg, #922b21, #e74c3c); color: #fff; }
.agency-group-header.specialized { background: linear-gradient(135deg, #1e8449, #27ae60); color: #fff; }
.agency-group-header.financial { background: linear-gradient(135deg, #6c3483, #9b59b6); color: #fff; }
.agency-group-header.peacekeeping { background: linear-gradient(135deg, #17202a, #2c3e50); color: #fff; }
.group-icon { font-size: 28px; }
.group-name { font-size: 18px; font-weight: 700; }
.group-desc { font-size: 13px; opacity: 0.8; }
.agency-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0; }
.agency-card { display: flex; align-items: center; gap: 14px; padding: 16px 20px; cursor: pointer; transition: var(--transition); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.agency-card:hover { background: var(--un-blue-light); }
.agency-code { width: 64px; min-width: 64px; height: 36px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #fff; letter-spacing: 0.5px; }
.undp-color { background: #1a5276; }
.unops-color { background: #117a65; }
.unfpa-color { background: #76448a; }
.unwomen-color { background: #922b21; }
.unhcr-color { background: #1f618d; }
.wfp-color { background: #d35400; }
.unicef-color { background: #1a9fd4; }
.ocha-color { background: #0e6655; }
.who-color { background: #1a5276; }
.fao-color { background: #1e8449; }
.unesco-color { background: #154360; }
.ilo-color { background: #6e2f8e; }
.iaea-color { background: #1b6ca8; }
.unido-color { background: #145a32; }
.wb-color { background: #1b4f72; }
.adb-color { background: #7b241c; }
.aiib-color { background: #1a2332; }
.afdb-color { background: #784212; }
.dfs-color { background: #2c3e50; }
.mission-color { background: #17202a; }
.agency-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.agency-name-en { font-size: 11px; color: var(--text-muted); line-height: 1.4; }
.agency-count { font-size: 12px; color: var(--un-blue); margin-top: 4px; font-weight: 500; }

/* ---------- 注册指导 ---------- */
.guide-section { background: #fff; }
.steps-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 36px;
}
.steps-container .step-card {
  flex: 1 1 300px;
  max-width: 380px;
  min-width: 280px;
}

.step-card {
  background: white;
  border-radius: 16px;
  padding: 28px 24px;
  border: 1px solid #e8ecf1;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  width: 100%;
}
.step-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0099d8, #00b4d8);
  border-radius: 0 0 4px 4px;
}
.step-card:hover {
  box-shadow: 0 8px 30px rgba(0,153,216,0.12);
  transform: translateY(-4px);
  border-color: #b8ddf5;
}
.step-num {
  font-size: 48px;
  font-weight: 900;
  background: linear-gradient(135deg, #0099d8 0%, #007bb8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 4px;
  font-family: 'Inter', sans-serif;
}
.step-content { flex: 1; }
.step-content h3 { font-size: 17px; font-weight: 700; color: #1a2332; margin-bottom: 10px; }
.step-content p { font-size: 14px; color: #4a5568; line-height: 1.75; margin-bottom: 12px; }
.step-content p a { color: #0099d8; text-decoration: none; font-weight: 500; }
.step-content p a:hover { text-decoration: underline; }
.step-tip {
  font-size: 13px;
  color: #b45309;
  background: #fffbeb;
  padding: 8px 14px;
  border-radius: 8px;
  border-left: 3px solid #f59e0b;
  margin-top: auto;
}
.guide-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

/* 响应式 */
@media (max-width: 768px) {
  .steps-container .step-card {
    flex: 1 1 260px;
    max-width: 100%;
  }
}

/* ---------- 数据分析 ---------- */
.analytics-section { background: var(--bg-light); }
.analytics-grid { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 20px; margin-bottom: 32px; }
.chart-card { background: #fff; border-radius: var(--radius); padding: 20px; border: 1px solid var(--border); }
.chart-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 16px; color: var(--text-primary); }
.chart-wide { grid-column: span 1; }
.analytics-highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.highlight-item { background: #fff; border-radius: var(--radius); padding: 20px; text-align: center; border: 1px solid var(--border); }
.hl-num { font-size: 28px; font-weight: 800; color: var(--un-blue); margin-bottom: 8px; }
.hl-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* ---------- 页脚 ---------- */
.footer { background: #1a2332; color: rgba(255,255,255,0.7); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.logo-icon-sm { font-size: 32px; }
.footer-platform-name { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.3; }
.footer-platform-sub { font-size: 12px; color: var(--cuppf-gold); }
.footer-desc { font-size: 13px; line-height: 1.7; margin-bottom: 12px; }
.footer-auth .footer-cert { font-size: 12px; color: var(--cuppf-gold); border: 1px solid rgba(200,168,75,0.4); padding: 4px 10px; border-radius: 4px; }
.footer-links h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.footer-links a { display: block; color: rgba(255,255,255,0.6); font-size: 13px; margin-bottom: 8px; transition: var(--transition); }
.footer-links a:hover { color: var(--un-blue); }
.footer-contact h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.footer-contact p { font-size: 13px; margin-bottom: 8px; }
.footer-contact a { color: var(--un-blue); }
.footer-section h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.footer-section p { font-size: 13px; margin-bottom: 8px; color: rgba(255,255,255,0.8); }
.footer-section a { display: block; color: rgba(255,255,255,0.6); font-size: 13px; margin-bottom: 8px; text-decoration: none; transition: var(--transition); }
.footer-section a:hover { color: var(--un-blue); }
.footer-social { display: flex; gap: 8px; margin-top: 12px; }
.social-btn { padding: 6px 14px; border: 1px solid rgba(255,255,255,0.2); border-radius: 6px; color: rgba(255,255,255,0.6); font-size: 12px; transition: var(--transition); }
.social-btn:hover { border-color: var(--un-blue); color: var(--un-blue); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 12px; color: rgba(255,255,255,0.4); }
.footer-divider { margin: 0 8px; }

/* ---------- 弹窗 ---------- */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 2000; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal-content { background: #fff; border-radius: var(--radius-lg); max-width: 680px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; padding: 36px; animation: slideUp 0.2s ease; }
.modal-sm { max-width: 460px; }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-light); font-size: 16px; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.modal-close:hover { background: var(--accent-red); color: #fff; }
.modal-agency { font-size: 12px; font-weight: 700; color: #fff; background: var(--un-blue); padding: 3px 8px; border-radius: 4px; display: inline-block; margin-bottom: 8px; }
.modal-title { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.modal-title-en { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; font-style: italic; }
.modal-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; font-size: 13px; }
.modal-meta span { background: var(--bg-light); padding: 4px 10px; border-radius: 6px; }
.modal-section { margin-bottom: 16px; }
.modal-section h4 { font-size: 14px; font-weight: 700; color: var(--text-secondary); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.modal-section p { font-size: 14px; color: var(--text-primary); line-height: 1.8; }
.modal-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

.consult-body h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.consult-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.consult-info { background: var(--bg-light); border-radius: var(--radius-sm); padding: 16px; }
.consult-item { font-size: 14px; margin-bottom: 10px; }
.consult-qr { background: #fff; border: 2px dashed var(--border); border-radius: var(--radius-sm); padding: 30px; text-align: center; color: var(--text-muted); font-size: 13px; margin: 12px 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .analytics-grid { grid-template-columns: 1fr 1fr; }
  .chart-wide { grid-column: 1 / -1; }
  .analytics-highlights { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .unspsc-cascade { grid-template-columns: 1fr; }
  .cascade-arrow { display: none; }
  .cascade-level { min-height: 200px; }
}

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .menu-btn { display: block; }
  .hero { padding: 60px 0 40px; }
  .hero-title { font-size: 28px; }
  .hero-stats { gap: 20px; }
  .auth-right { display: none; }
  .tenders-grid { grid-template-columns: 1fr; }
  .source-inner { flex-direction: column; align-items: flex-start; }
  .filter-bar { flex-direction: column; align-items: flex-start; }
  .filter-right { margin-left: 0; }
  .analytics-grid { grid-template-columns: 1fr; }
  .analytics-highlights { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .modal-content { padding: 20px; }
  .logo-name { font-size: 13px; }
  .assistant-panel { width: calc(100vw - 24px); right: 12px; bottom: 80px; }
}

/* =====================================================
   智能助手 FAB & 对话面板
   ===================================================== */

.assistant-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #009edb, #0073b1);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,158,219,0.45);
  z-index: 9000;
  transition: transform 0.2s, box-shadow 0.2s;
  user-select: none;
}
.assistant-fab:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(0,158,219,0.6); }
.fab-icon { font-size: 26px; line-height: 1; }
.fab-label { font-size: 10px; font-weight: 600; margin-top: 2px; }
.fab-badge {
  position: absolute; top: 4px; right: 4px;
  background: #e74c3c; color: white;
  width: 18px; height: 18px; border-radius: 50%;
  font-size: 11px; font-weight: bold;
  display: flex; align-items: center; justify-content: center;
}
@keyframes fabPulse {
  0%,100% { box-shadow: 0 4px 20px rgba(0,158,219,0.45); }
  50% { box-shadow: 0 4px 36px rgba(0,158,219,0.8), 0 0 0 8px rgba(0,158,219,0.15); }
}
.fab-pulse { animation: fabPulse 1.5s ease-in-out; }

.assistant-panel {
  position: fixed;
  bottom: 24px;
  right: 28px;
  width: 380px;
  height: 560px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.18);
  z-index: 9001;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.asst-slide-in { animation: slideIn 0.28s ease-out; }

.asst-header {
  background: linear-gradient(135deg, #009edb, #0073b1);
  color: white;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.asst-header-left { display: flex; align-items: center; gap: 10px; }
.asst-avatar { width: 36px; height: 36px; background: rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.asst-name { font-size: 14px; font-weight: 700; }
.asst-status { font-size: 11px; opacity: 0.85; display: flex; align-items: center; gap: 4px; }
.asst-dot { width: 7px; height: 7px; background: #2ecc71; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.asst-header-right { display: flex; gap: 6px; }
.asst-btn-icon { background: rgba(255,255,255,0.18); border: none; color: white; width: 28px; height: 28px; border-radius: 6px; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.asst-btn-icon:hover { background: rgba(255,255,255,0.3); }

.asst-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8fafc;
}
.asst-msg { display: flex; flex-direction: column; }
.asst-msg-user { align-items: flex-end; }
.asst-msg-bot { align-items: flex-start; }
.asst-bubble {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.65;
}
.asst-bubble-bot { background: white; color: #2d3748; border: 1px solid #e2e8f0; border-radius: 2px 12px 12px 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.asst-bubble-user { background: linear-gradient(135deg, #009edb, #0073b1); color: white; border-radius: 12px 12px 2px 12px; }
.asst-time { font-size: 10px; color: #a0aec0; margin-top: 3px; padding: 0 4px; }

.typing-dots { display: inline-flex; gap: 4px; align-items: center; padding: 2px 0; }
.typing-dots span { width: 7px; height: 7px; background: #009edb; border-radius: 50%; animation: typingDot 1.4s infinite; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot { 0%,80%,100%{transform:scale(0.7);opacity:0.5} 40%{transform:scale(1);opacity:1} }

.asst-quick-btns {
  padding: 8px 12px 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
  background: #f8fafc;
  border-top: 1px solid #eee;
}
.quick-btn {
  padding: 5px 10px;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 20px;
  font-size: 11px;
  cursor: pointer;
  color: #4a5568;
  transition: all 0.15s;
  white-space: nowrap;
}
.quick-btn:hover { background: #009edb; color: white; border-color: #009edb; }

.asst-input-row {
  display: flex;
  padding: 10px 12px;
  gap: 8px;
  flex-shrink: 0;
  background: white;
  border-top: 1px solid #e2e8f0;
}
.asst-input {
  flex: 1;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  outline: none;
  color: #2d3748;
}
.asst-input:focus { border-color: #009edb; }
.asst-send-btn {
  background: #009edb;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.asst-send-btn:hover { background: #0073b1; }

/* =====================================================
   资质自测弹窗
   ===================================================== */

.modal-qualify { max-width: 560px; max-height: 80vh; overflow-y: auto; }
.qualify-header { text-align: center; margin-bottom: 24px; }
.qualify-icon { font-size: 40px; margin-bottom: 8px; }
.qualify-header h2 { font-size: 22px; color: #1a202c; margin: 0 0 8px; }
.qualify-header p { color: #718096; font-size: 14px; }

.qualify-progress { margin-bottom: 20px; }
.qp-bar { height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; }
.qp-fill { height: 100%; background: linear-gradient(90deg, #009edb, #27ae60); border-radius: 3px; transition: width 0.4s ease; }
.qp-text { font-size: 12px; color: #718096; margin-top: 6px; text-align: right; }

.qualify-question { }
.qq-num { display: inline-block; background: #009edb; color: white; padding: 3px 10px; border-radius: 4px; font-size: 12px; font-weight: 700; margin-bottom: 10px; }
.qq-text { font-size: 16px; color: #1a202c; font-weight: 600; margin-bottom: 16px; line-height: 1.5; }
.qq-options { display: flex; flex-direction: column; gap: 10px; }
.qq-option {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  background: white;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  color: #2d3748;
  transition: all 0.15s;
}
.qq-option:hover { border-color: #009edb; background: #f0f9ff; }
.qq-option.selected { border-color: #27ae60; background: #f0fff4; }
.qq-option:disabled { cursor: default; }
.qq-opt-num { width: 24px; height: 24px; background: #f7f8fa; border: 1px solid #d1d5db; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex-shrink: 0; }
.qq-option.selected .qq-opt-num { background: #27ae60; color: white; border-color: #27ae60; }

.qualify-result { }
.qr-score-ring { display: flex; justify-content: center; margin-bottom: 16px; }
.qr-level { text-align: center; font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.qr-advice { background: #f8fafc; border-radius: 10px; padding: 14px; font-size: 14px; color: #4a5568; line-height: 1.65; margin-bottom: 16px; }
.qr-weak-list { margin-bottom: 16px; }
.qr-weak-title { font-weight: 700; color: #c05621; font-size: 13px; margin-bottom: 8px; }
.qr-weak { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: #744210; background: #fffbeb; border: 1px solid #f6e05e; border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; line-height: 1.5; }
.qr-weak-icon { flex-shrink: 0; }
.qr-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* =====================================================
   收藏追踪弹窗
   ===================================================== */

.modal-watchlist { max-width: 560px; }
.watchlist-body h2 { margin: 0 0 6px; font-size: 20px; }
.watchlist-sub { color: #718096; font-size: 13px; margin-bottom: 20px; }
.watchlist-empty { text-align: center; padding: 40px 20px; color: #718096; }
.watchlist-item {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
  position: relative;
}
.wl-agency { display: inline-block; background: #eef9ff; color: #009edb; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; margin-bottom: 6px; }
.wl-title { font-size: 14px; font-weight: 600; color: #1a202c; margin-bottom: 8px; line-height: 1.4; padding-right: 60px; }
.wl-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; }
.wl-deadline { font-weight: 600; }
.deadline-ok { color: #27ae60; }
.deadline-warn { color: #f39c12; }
.deadline-urgent { color: #e74c3c; }
.wl-added { color: #a0aec0; }
.wl-remove {
  position: absolute; top: 12px; right: 12px;
  background: #fff5f5; border: 1px solid #fed7d7;
  color: #e53e3e; padding: 4px 10px; border-radius: 6px;
  font-size: 12px; cursor: pointer;
}
.wl-remove:hover { background: #e53e3e; color: white; }

/* =====================================================
   投标全流程模块
   ===================================================== */

.bidflow-section { background: linear-gradient(180deg, #f0f9ff 0%, #e8f4fc 100%); }
.bidflow-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
/* 连接线（桌面端 4 列网格，行间有连线） */
.bidflow-track::before {
  content: '';
  position: absolute;
  top: 28px; left: 12.5%; right: 12.5%;
  height: 2px;
  background: repeating-linear-gradient(90deg, #cce3ff 0px, #cce3ff 8px, transparent 8px, transparent 14px);
  z-index: 0;
  display: none; /* 简化设计，去掉连线 */
}

.bidflow-step {
  background: white;
  border: 2px solid #e8ecf1;
  border-radius: 14px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
}
.bidflow-step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0099d8, #00b4d8);
  border-radius: 14px 14px 0 0;
  opacity: 0;
  transition: opacity 0.25s;
}
.bidflow-step:hover {
  border-color: #0099d8;
  box-shadow: 0 8px 24px rgba(0,153,216,0.12);
  transform: translateY(-3px);
}
.bidflow-step:hover::before { opacity: 1; }
.bfs-win { border-color: #f6ad55; background: #fffdf7; }
.bfs-win::before { background: linear-gradient(90deg, #f6ad55, #e88a00); }
.bfs-win:hover { border-color: #e88a00; }

.bfs-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #0099d8, #0077b6);
  color: white; font-size: 15px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,153,216,0.25);
}
.bfs-win .bfs-num { background: linear-gradient(135deg, #f6ad55, #e88a00); font-size: 22px; }

.bfs-content { flex: 1; display: flex; flex-direction: column; }
.bfs-title { font-size: 15px; font-weight: 700; color: #1a2332; margin-bottom: 8px; }
.bfs-desc { font-size: 13px; color: #5a6878; line-height: 1.6; margin-bottom: 12px; }
.bfs-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.bfs-tag {
  font-size: 11px; padding: 3px 9px; border-radius: 5px;
  background: #f5f7fa; color: #6b7c93; border: 1px solid #e2e8f0;
  font-weight: 500;
}
.bfs-tag.warn { background: #fff5f5; color: #dc2626; border-color: #fecaca; }
.bfs-tag.success { background: #f0fff4; color: #16a34a; border-color: #bbf7d0; }
.bfs-action {
  width: 100%; padding: 9px; border: 1.5px solid #0099d8;
  color: #0099d8; background: #f0f7ff;
  border-radius: 8px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; margin-top: auto;
}
.bfs-action:hover { background: #0099d8; color: white; }

.bidflow-arrow { display: none; }  /* grid 布局不需要箭头 */

.bidflow-note {
  display: flex; align-items: flex-start; gap: 10px;
  background: white; border: 1px solid #bee3f8;
  border-radius: 10px; padding: 14px 18px;
  margin-top: 20px; font-size: 14px; color: #2b6cb0; line-height: 1.6;
}

/* 响应式 */
@media (max-width: 1100px) {
  .bidflow-track { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .bidflow-track { grid-template-columns: 1fr; }
}
.bidflow-note a { color: #009edb; font-weight: 600; }

/* =====================================================
   导航新增按钮样式
   ===================================================== */

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.15); }

/* =====================================================
   Toast 提示
   ===================================================== */

.asst-toast {
  position: fixed;
  bottom: 110px;
  right: 28px;
  background: #1a202c;
  color: white;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.25s ease;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.asst-toast.show { opacity: 1; transform: translateY(0); }

/* =====================================================
   招标卡片新增元素
   ===================================================== */

.card-cn-badge {
  display: inline-block;
  background: linear-gradient(135deg, #fff5f5, #fed7d7);
  color: #c53030;
  border: 1px solid #feb2b2;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.card-watch-btn { flex-shrink: 0; }

/* =====================================================
   湖南省跨境贸易综合服务（自主开发）
   ===================================================== */

.trade-service-section {
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
  padding-bottom: 80px;
}
.trade-service-section .section-header h2 { color: var(--un-blue-dark); }

.api-source-bar {
  display: flex; align-items: center; gap: 12px;
  background: #1a2332; color: white;
  padding: 10px 18px; border-radius: 10px; margin-bottom: 28px;
  flex-wrap: wrap; font-size: 12px;
}
.api-source-tag { background: var(--cuppf-gold); color: #1a2332; font-weight: 700; padding: 2px 8px; border-radius: 4px; font-size: 11px; }
.api-source-item { color: #a0c4e8; }
.api-source-sep { color: #4a6080; }

.trade-tabs { display: flex; gap: 0; margin-bottom: 28px; border-bottom: 3px solid var(--border); position: relative; }
.trade-tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 12px; background: var(--bg-light); border: none; border-bottom: 3px solid transparent; margin-bottom: -3px; cursor: pointer; transition: all 0.2s; border-radius: 10px 10px 0 0; }
.trade-tab:hover { background: var(--un-blue-light); }
.trade-tab.active { background: white; border-bottom-color: var(--un-blue); }
.tab-icon { font-size: 22px; }
.tab-label { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.tab-sub { font-size: 10px; color: var(--text-muted); }

.trade-module { display: none; }
.trade-module.active { display: block; }

.mod-toolbar { display: flex; justify-content: space-between; align-items: center; background: var(--un-blue-light); border: 1px solid rgba(0,158,219,0.2); border-radius: var(--radius-sm); padding: 10px 16px; margin-bottom: 20px; flex-wrap: wrap; gap: 8px; }
.toolbar-status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.status-dot.online { background: #27ae60; box-shadow: 0 0 6px #27ae60; }
.status-ver { background: var(--un-blue); color: white; font-size: 10px; padding: 1px 6px; border-radius: 4px; }

.trade-widget { background: white; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 20px; overflow: hidden; }
.widget-header { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--bg-light); }
.widget-title-icon { font-size: 18px; }
.widget-title { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.widget-badge { margin-left: auto; font-size: 11px; background: var(--un-blue-light); color: var(--un-blue-dark); padding: 2px 8px; border-radius: 4px; border: 1px solid rgba(0,158,219,0.2); }
.widget-badge.success { background: #e8f8f0; color: #27ae60; border-color: rgba(39,174,96,0.2); }
.widget-badge.warning { background: #fef9e7; color: #e67e22; border-color: rgba(230,126,34,0.2); }

.trade-input { width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; font-family: inherit; background: white; transition: border-color 0.2s; }
.trade-input:focus { outline: none; border-color: var(--un-blue); }
.trade-select { width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; font-family: inherit; background: white; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 16px 18px 0; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; padding: 16px 18px 0; }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-label { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.required { color: #e74c3c; }
.form-actions { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.form-note { font-size: 11px; color: var(--text-muted); margin-left: auto; }

.hs-search-row { display: flex; gap: 10px; padding: 16px 18px; align-items: center; flex-wrap: wrap; }
.hs-search-row .trade-input { flex: 1; min-width: 200px; }
.hs-search-row .trade-select { width: 200px; }
.hs-result-panel { border-top: 1px solid var(--border); background: var(--bg-light); }
.hs-result-header { padding: 10px 18px 8px; font-size: 13px; color: var(--text-secondary); border-bottom: 1px solid var(--border); }
.hs-result-tip { color: var(--text-muted); font-size: 11px; }
.hs-result-list { max-height: 220px; overflow-y: auto; }
.hs-result-row { display: flex; align-items: center; gap: 16px; padding: 10px 18px; cursor: pointer; border-bottom: 1px solid var(--border); transition: background 0.15s; }
.hs-result-row:hover { background: var(--un-blue-light); }
.hsr-code { font-family: monospace; font-weight: 700; color: var(--un-blue-dark); font-size: 13px; min-width: 110px; }
.hsr-name { flex: 1; font-size: 13px; color: var(--text-primary); }
.hsr-unit { font-size: 11px; color: var(--text-muted); min-width: 80px; }
.hsr-tax { font-size: 11px; background: var(--un-blue-light); color: var(--un-blue-dark); padding: 2px 6px; border-radius: 4px; }

.declaration-form { padding-bottom: 0; }
.decl-status-list { padding: 0 18px 18px; }
.decl-status-item { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.dsi-left { display: flex; flex-direction: column; gap: 2px; min-width: 140px; }
.dsi-no { font-family: monospace; font-weight: 700; font-size: 13px; color: var(--un-blue-dark); }
.dsi-date { font-size: 11px; color: var(--text-muted); }
.dsi-status { min-width: 110px; }
.dsi-badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.dsi-badge.pass { background: #e8f8f0; color: #27ae60; }
.dsi-badge.reviewing { background: #fef9e7; color: #e67e22; }
.dsi-info { flex: 1; font-size: 13px; color: var(--text-secondary); }
.status-search-row { display: flex; gap: 10px; padding: 16px 18px; align-items: center; }

.fee-calc { border-top: 1px solid var(--border); }
.fee-calc-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-primary); background: var(--bg-light); }
.fee-calc-header:hover { background: var(--un-blue-light); }
.fee-calc-body { display: none; padding: 16px 18px; }
.fee-calc-body.open { display: block; }
.fee-calc-toggle { font-size: 12px; color: var(--text-muted); }
.fee-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.fee-item { background: var(--bg-light); padding: 10px 14px; border-radius: var(--radius-sm); display: flex; flex-direction: column; gap: 4px; }
.fee-label { font-size: 11px; color: var(--text-muted); }
.fee-value { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.fee-item.fee-highlight { background: var(--un-blue-light); }
.fee-item.fee-highlight .fee-value { color: var(--un-blue-dark); }
.fee-note { font-size: 11px; color: var(--text-muted); background: #fffbeb; padding: 8px 12px; border-radius: 6px; border: 1px solid #fde68a; }

.logistics-calc-form { padding: 16px 18px; }
.logistics-result { display: none; border-top: 1px solid var(--border); }
.logistics-result-header { padding: 10px 18px 8px; font-size: 13px; font-weight: 600; color: var(--text-secondary); background: var(--bg-light); border-bottom: 1px solid var(--border); }
.logistics-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 16px 18px; }
@media (max-width: 900px) { .logistics-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .logistics-cards { grid-template-columns: 1fr; } }
.logistics-card { border: 2px solid var(--border); border-radius: var(--radius); padding: 14px; cursor: pointer; transition: all 0.2s; }
.logistics-card:hover { border-color: var(--un-blue); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.lc-header { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.lc-logo { font-size: 24px; }
.lc-title { flex: 1; }
.lc-name { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.lc-meta { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.lc-type { font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 4px; }
.lc-days { font-size: 11px; color: var(--text-muted); }
.lc-price { margin-bottom: 10px; }
.lcp-amount { font-size: 20px; font-weight: 700; color: var(--un-blue-dark); }
.lcp-unit { font-size: 10px; color: var(--text-muted); }
.lc-footer { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.lc-stars { font-size: 12px; color: var(--cuppf-gold); }
.lc-track { font-size: 11px; color: var(--text-muted); }
.lc-select-btn { width: 100%; padding: 7px; background: var(--un-blue); color: white; border: none; border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; cursor: pointer; transition: background 0.2s; font-family: inherit; }
.lc-select-btn:hover { background: var(--un-blue-dark); }
.tracking-row { display: flex; gap: 10px; padding: 16px 18px; align-items: center; flex-wrap: wrap; }
.tracking-row .trade-input { flex: 1; min-width: 200px; }
.tracking-row .trade-select { width: 180px; }
.tracking-detail { padding: 0 18px 18px; }
.tracking-summary { display: flex; justify-content: space-between; align-items: center; background: var(--bg-light); padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }
.ts-no { font-family: monospace; font-weight: 700; font-size: 14px; color: var(--un-blue-dark); display: block; }
.ts-carrier { font-size: 12px; color: var(--text-secondary); }
.ts-status { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ts-badge { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.ts-badge.in-transit { background: var(--un-blue-light); color: var(--un-blue-dark); }

/* ========== UNSPSC 树形结构 ========== */
.unspsc-tree-wrapper {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.tree-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.tree-toolbar-btn {
  padding: 5px 14px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: #fff;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.tree-toolbar-btn:hover {
  border-color: var(--un-blue);
  color: var(--un-blue);
  background: var(--un-blue-light);
}
.tree-toolbar-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: auto;
}
.unspsc-tree {
  max-height: 520px;
  overflow-y: auto;
  padding: 8px 0;
}
.unspsc-tree .tree-loading {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 14px;
}

/* Tree node */
.tree-node {
  user-select: none;
}
.tree-node-content {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  cursor: pointer;
  transition: background 0.12s;
  border-left: 3px solid transparent;
  position: relative;
}
.tree-node-content:hover {
  background: var(--un-blue-light);
}
.tree-node-content:focus {
  outline: 2px solid var(--un-blue);
  outline-offset: -2px;
}
.tree-node-content.selected {
  background: #e8f8f0;
  border-left-color: var(--lianmao-green);
}
.tree-node-content.active-path {
  background: #fef9e7;
  border-left-color: var(--accent-orange);
}

.tree-arrow {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s ease;
  border-radius: 4px;
}
.tree-arrow:hover {
  background: rgba(0,0,0,0.06);
  color: var(--text-primary);
}
.tree-arrow.expanded {
  transform: rotate(90deg);
}
.tree-arrow.leaf {
  visibility: hidden;
}

.tree-code {
  font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--un-blue);
  min-width: 48px;
  flex-shrink: 0;
}
.tree-node.level-0 .tree-code { min-width: 36px; font-size: 13px; }
.tree-node.level-1 .tree-code { min-width: 54px; }
.tree-node.level-3 .tree-code { color: var(--lianmao-green); }

.tree-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tree-node.level-0 .tree-name { font-size: 14px; font-weight: 600; }
.tree-node.level-1 .tree-name { font-weight: 600; }

.tree-name-en {
  font-size: 11px;
  color: var(--text-muted);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 1;
}

.tree-count {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-light);
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.tree-children {
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.tree-children.collapsed {
  display: none;
}
.tree-children.expanded {
  display: block;
}

/* Indentation per level */
.tree-node.level-0 > .tree-node-content { padding-left: 16px; }
.tree-node.level-1 > .tree-node-content { padding-left: 36px; }
.tree-node.level-2 > .tree-node-content { padding-left: 56px; }
.tree-node.level-3 > .tree-node-content { padding-left: 76px; }

/* Level background striping */
.tree-node.level-0 > .tree-node-content { background: #fafcfd; }
.tree-node.level-0 > .tree-node-content:hover { background: var(--un-blue-light); }
.tree-node.level-1 > .tree-children { border-left: 2px solid #e8f0f4; margin-left: 28px; }
.tree-node.level-2 > .tree-children { border-left: 2px solid #edf2f5; margin-left: 20px; }

/* Commodity item (leaf) */
.tree-node.level-3 > .tree-node-content {
  border-left: 3px solid transparent;
}
.tree-node.level-3 > .tree-node-content:hover {
  border-left-color: var(--lianmao-green);
  background: #f0fff4;
}
.tree-node.level-3 > .tree-node-content.selected {
  background: #e8f8f0;
  border-left-color: var(--lianmao-green);
}
.tree-node.level-3 > .tree-node-content .tree-name {
  color: var(--text-primary);
  font-weight: 500;
}

/* Tree node highlight animation */
@keyframes treeHighlight {
  0% { background: rgba(0,158,219,0.25); }
  100% { background: transparent; }
}
.tree-node-content.flash {
  animation: treeHighlight 0.8s ease;
}

/* ========== 跨境服务入口卡片 ========== */
.trade-entrance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 0;
}
@media (max-width: 1100px) { .trade-entrance-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .trade-entrance-grid { grid-template-columns: 1fr; } }

.trade-entrance-card {
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  overflow: hidden;
  will-change: transform, box-shadow;
}
/* 顶部彩色条 */
.trade-entrance-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--un-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.trade-entrance-card:nth-child(1)::before { background: #e74c3c; }
.trade-entrance-card:nth-child(2)::before { background: #2c3e50; }
.trade-entrance-card:nth-child(3)::before { background: #009edb; }
.trade-entrance-card:nth-child(4)::before { background: #e67e22; }
.trade-entrance-card:nth-child(5)::before { background: #27ae60; }
.trade-entrance-card:nth-child(6)::before { background: #8e44ad; }
.trade-entrance-card:nth-child(7)::before { background: #d4a017; }
.trade-entrance-card:nth-child(8)::before { background: #00838f; }
/* 每张卡片各自的强调色 */
.trade-entrance-card:nth-child(1):hover { border-color: #e74c3c; box-shadow: 0 8px 32px rgba(231,76,60,0.18), 0 2px 8px rgba(0,0,0,0.08); }
.trade-entrance-card:nth-child(2):hover { border-color: #2c3e50; box-shadow: 0 8px 32px rgba(44,62,80,0.18), 0 2px 8px rgba(0,0,0,0.08); }
.trade-entrance-card:nth-child(3):hover { border-color: #009edb; box-shadow: 0 8px 32px rgba(0,158,219,0.18), 0 2px 8px rgba(0,0,0,0.08); }
.trade-entrance-card:nth-child(4):hover { border-color: #e67e22; box-shadow: 0 8px 32px rgba(230,126,34,0.18), 0 2px 8px rgba(0,0,0,0.08); }
.trade-entrance-card:nth-child(5):hover { border-color: #27ae60; box-shadow: 0 8px 32px rgba(39,174,96,0.18), 0 2px 8px rgba(0,0,0,0.08); }
.trade-entrance-card:nth-child(6):hover { border-color: #8e44ad; box-shadow: 0 8px 32px rgba(142,68,173,0.18), 0 2px 8px rgba(0,0,0,0.08); }
.trade-entrance-card:nth-child(7):hover { border-color: #d4a017; box-shadow: 0 8px 32px rgba(212,160,23,0.18), 0 2px 8px rgba(0,0,0,0.08); }
.trade-entrance-card:nth-child(8):hover { border-color: #00838f; box-shadow: 0 8px 32px rgba(0,131,143,0.18), 0 2px 8px rgba(0,0,0,0.08); }
/* 悬停整体上浮+缩放 */
.trade-entrance-card:hover {
  transform: translateY(-6px) scale(1.015);
}
.trade-entrance-card:hover::before { transform: scaleX(1); }

/* 点击加载状态 */
.trade-entrance-card.clicking::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.6);
  border-radius: inherit;
  animation: cardClickPulse 0.5s ease forwards;
}
@keyframes cardClickPulse {
  0% { opacity: 0; }
  30% { opacity: 1; }
  100% { opacity: 0; }
}

.tec-icon {
  font-size: 40px;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  border-radius: var(--radius);
}
.tec-body { flex: 1; }
.tec-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px;
}
.tec-body p {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0 0 10px;
  line-height: 1.5;
}
.tec-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
/* 每张卡片的标签配色 */
.trade-entrance-card:nth-child(1) .tec-tag { background: #fef0ef; color: #e74c3c; }
.trade-entrance-card:nth-child(2) .tec-tag { background: #eef1f4; color: #2c3e50; }
.trade-entrance-card:nth-child(3) .tec-tag { background: #e8f6fc; color: #009edb; }
.trade-entrance-card:nth-child(4) .tec-tag { background: #fef5ec; color: #e67e22; }
.trade-entrance-card:nth-child(5) .tec-tag { background: #edfdf4; color: #27ae60; }
.trade-entrance-card:nth-child(6) .tec-tag { background: #f5eefa; color: #8e44ad; }
.trade-entrance-card:nth-child(7) .tec-tag { background: #fef9ee; color: #d4a017; }
.trade-entrance-card:nth-child(8) .tec-tag { background: #e8f5f6; color: #00838f; }.tec-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 500;
  transition: transform 0.2s;
}
.trade-entrance-card:hover .tec-tag { transform: scale(1.05); }

.tec-arrow {
  font-size: 22px;
  color: var(--text-muted);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s;
  flex-shrink: 0;
}
.trade-entrance-card:hover .tec-arrow { transform: translateX(6px) scale(1.1); }

/* =====================================================
   中标大厅样式
   ===================================================== */

.awards-section {
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}
.awards-section .section-header h2 { color: var(--un-blue-dark); }

/* 筛选栏 */
.filter-bar {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.filter-bar > span {
  font-size: 13px;
  color: var(--text-muted);
  align-self: center;
  margin-left: auto;
  white-space: nowrap;
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}
.filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-tab {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.filter-tab:hover { border-color: var(--un-blue); color: var(--un-blue); background: var(--un-blue-light); }
.filter-tab.active {
  background: var(--un-blue);
  border-color: var(--un-blue);
  color: white;
  font-weight: 600;
}
.filter-select {
  padding: 6px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-primary);
  background: white;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
}
.filter-select:focus { border-color: var(--un-blue); }

/* 中标卡片网格 */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
.award-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.award-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,158,219,0.15);
  border-color: var(--un-blue);
}
.award-header {
  background: linear-gradient(135deg, var(--un-blue-dark), var(--un-blue));
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.award-agency-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.2);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}
.award-year-tag {
  font-size: 11px;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}
.award-title {
  padding: 14px 18px 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  flex: 1;
}
.award-meta {
  padding: 0 18px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.award-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.award-meta-item .meta-label { color: var(--text-muted); min-width: 56px; }
.award-value {
  padding: 8px 18px 14px;
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-orange);
  border-top: 1px solid var(--border);
}
.award-value small { font-size: 12px; font-weight: 400; color: var(--text-muted); }
.award-footer {
  padding: 8px 18px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.award-category-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg-light);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.award-detail-link {
  font-size: 12px;
  color: var(--un-blue);
  font-weight: 600;
  cursor: pointer;
}
.award-detail-link:hover { text-decoration: underline; }

/* 加载更多 */
.load-more-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.load-more-wrap button {
  padding: 10px 32px;
  background: var(--un-blue);
  color: white;
  border: none;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.load-more-wrap button:hover { background: var(--un-blue-dark); transform: translateY(-1px); }
.load-more-wrap a { font-size: 13px; color: var(--text-muted); }
.load-more-wrap a:hover { color: var(--un-blue); }

/* 供应商国家标签 */
.supplier-country-tag {
  display: inline-block;
  background: #edfdf4;
  color: #27ae60;
  border: 1px solid #9ae6b4;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}

/* 区域标签 */
.region-tag {
  display: inline-block;
  background: #fef5ec;
  color: #e67e22;
  border: 1px solid #fbd5a8;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
}

/* =====================================================
   机构详情页样式
   ===================================================== */

.agency-detail-header {
  background: linear-gradient(135deg, #1a2332 0%, #0d3c6e 100%);
  color: white;
  padding: 48px 0;
}
.agency-detail-breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}
.agency-detail-breadcrumb a { color: rgba(255,255,255,0.8); text-decoration: none; }
.agency-detail-breadcrumb a:hover { color: white; }
.agency-detail-title-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.agency-detail-logo {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.3);
}
.agency-detail-title-text h1 {
  font-size: 28px;
  font-weight: 800;
  color: white;
  margin-bottom: 4px;
}
.agency-detail-title-text h1 .en { font-size: 16px; opacity: 0.7; font-weight: 400; }
.agency-detail-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.agency-detail-tag {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
}
.agency-detail-body { padding: 48px 0; }
.agency-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
}
.agency-detail-main {}
.agency-detail-sidebar {}
.agency-info-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.agency-info-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--un-blue);
}
.agency-info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--bg-light);
  font-size: 13px;
}
.agency-info-row:last-child { border-bottom: none; }
.agency-info-icon { font-size: 15px; flex-shrink: 0; margin-top: 1px; }
.agency-info-label { color: var(--text-muted); min-width: 90px; font-weight: 500; }
.agency-info-value { color: var(--text-primary); flex: 1; word-break: break-all; }
.agency-info-value a { color: var(--un-blue); }
.agency-info-value a:hover { text-decoration: underline; }
.procurement-category-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  margin: 0 6px 8px 0;
}
.procurement-desc { font-size: 13px; color: var(--text-secondary); margin-top: 8px; line-height: 1.7; }
.agency-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.agency-stat-box {
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
}
.agency-stat-num { font-size: 20px; font-weight: 800; color: var(--un-blue); }
.agency-stat-label { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.agency-apply-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--un-blue);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  margin-top: 16px;
}
.agency-apply-btn:hover { background: var(--un-blue-dark); transform: translateY(-1px); }
.agency-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 20px;
}
.agency-back-btn:hover { border-color: var(--un-blue); color: var(--un-blue); }
.agency-section-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.agency-section-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.agency-section-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.8; }
.agency-recent-tenders { display: flex; flex-direction: column; gap: 10px; }
.agency-recent-tender-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
}
.agency-recent-tender-item:hover { border-color: var(--un-blue); background: var(--un-blue-light); }
.agency-recent-tender-title { font-size: 13px; font-weight: 600; color: var(--text-primary); flex: 1; }
.agency-recent-tender-meta { font-size: 11px; color: var(--text-muted); white-space: nowrap; }
@media (max-width: 768px) {
  .agency-detail-grid { grid-template-columns: 1fr; }
  .awards-grid { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; }
}
.trade-entrance-card:nth-child(1):hover .tec-arrow { color: #e74c3c; }
.trade-entrance-card:nth-child(2):hover .tec-arrow { color: #2c3e50; }
.trade-entrance-card:nth-child(3):hover .tec-arrow { color: #009edb; }
.trade-entrance-card:nth-child(4):hover .tec-arrow { color: #e67e22; }
.trade-entrance-card:nth-child(5):hover .tec-arrow { color: #27ae60; }
.trade-entrance-card:nth-child(6):hover .tec-arrow { color: #8e44ad; }
.trade-entrance-card:nth-child(7):hover .tec-arrow { color: #d4a017; }
.trade-entrance-card:nth-child(8):hover .tec-arrow { color: #00838f; }
/* ========== 独立服务页面头部 ========== */
.page-header {
  background: var(--text-primary);
  color: white;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.page-header .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.back-link {
  display: inline-block;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.back-link:hover { color: white; }
.page-title-wrap { display: flex; align-items: center; gap: 16px; }
.page-icon { font-size: 36px; }
.page-title { font-size: 28px; font-weight: 700; margin: 0; color: white; }
.page-subtitle { font-size: 13px; color: rgba(255,255,255,0.6); margin: 4px 0 0; }
.page-main { min-height: calc(100vh - 200px); padding: 32px 0 60px; }
.page-footer { background: var(--text-primary); padding: 20px; text-align: center; color: rgba(255,255,255,0.5); font-size: 13px; }
.ts-eta { font-size: 11px; color: var(--text-muted); }
.tracking-timeline { position: relative; }
.timeline-item { display: flex; gap: 14px; position: relative; padding-bottom: 16px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: 5px; top: 14px; bottom: 0; width: 2px; background: var(--border); }
.timeline-item:last-child::before { display: none; }
.ti-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--border); flex-shrink: 0; margin-top: 4px; position: relative; z-index: 1; }
.ti-dot.done { background: var(--un-blue); box-shadow: 0 0 6px rgba(0,158,219,0.4); }
.ti-time { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.ti-desc { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

.fx-rate-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 16px 18px; }
@media (max-width: 800px) { .fx-rate-grid { grid-template-columns: repeat(2, 1fr); } }
.fx-rate-card { background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; text-align: center; }
.fx-pair { font-size: 12px; color: var(--text-muted); font-weight: 600; margin-bottom: 6px; }
.fx-rate { font-size: 22px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.fx-change { font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 3px; }
.fx-change.up .fx-arrow,
.fx-change.up .fx-val { color: #e74c3c; }
.fx-change.down .fx-arrow,
.fx-change.down .fx-val { color: #27ae60; }
.fx-arrow { font-size: 16px; line-height: 1; }
.fx-arrow.gray { color: #ccc !important; }
.fx-val { font-size: 11px; }
.fx-loading { padding: 24px; text-align: center; color: var(--text-muted); font-size: 14px; }
.fx-refresh-note { padding: 8px 18px 16px; font-size: 11px; color: var(--text-muted); }
.fx-converter { padding: 16px 18px; }
.fx-convert-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.fx-convert-group { display: flex; flex-direction: column; gap: 4px; min-width: 120px; }
.fx-arrow { font-size: 20px; color: var(--un-blue); align-self: flex-end; padding-bottom: 8px; }
.fx-result-display { display: flex; flex-direction: column; gap: 4px; margin-left: auto; background: var(--un-blue); color: white; padding: 10px 18px; border-radius: var(--radius-sm); min-width: 200px; }
.fx-result-label { font-size: 11px; opacity: 0.8; }
.fx-result-value { font-size: 20px; font-weight: 700; }
.settlement-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 16px 18px; }
@media (max-width: 700px) { .settlement-methods { grid-template-columns: 1fr; } }
.settlement-card { display: flex; gap: 14px; padding: 14px; border: 2px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: all 0.2s; align-items: flex-start; position: relative; }
.settlement-card:hover { border-color: var(--un-blue); background: var(--un-blue-light); }
.settlement-check { font-size: 18px; color: var(--un-blue); flex-shrink: 0; line-height: 1; }
.settlement-icon { font-size: 28px; flex-shrink: 0; }
.settlement-info h4 { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.settlement-info p { font-size: 12px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 8px; }
.settlement-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.st-tag { font-size: 10px; background: var(--bg-light); color: var(--text-muted); padding: 2px 6px; border-radius: 4px; border: 1px solid var(--border); }
.st-tag.green { background: #e8f8f0; color: #27ae60; border-color: rgba(39,174,96,0.2); }
.payment-form { padding-bottom: 0; }

.tax-calc-form { padding-bottom: 0; }
.tax-result { display: block; border-top: 1px solid var(--border); }
.tax-result-header { padding: 12px 18px; font-size: 13px; font-weight: 700; color: var(--text-primary); background: var(--un-blue-light); border-bottom: 1px solid rgba(0,158,219,0.2); }
.tax-result-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 16px 18px; }
@media (max-width: 800px) { .tax-result-grid { grid-template-columns: repeat(2, 1fr); } }
.tax-result-item { background: var(--bg-light); padding: 10px 14px; border-radius: var(--radius-sm); display: flex; flex-direction: column; gap: 4px; }
.tax-result-item.highlight { background: var(--un-blue-light); }
.tax-result-item.highlight.green { background: #e8f8f0; }
.tri-label { font-size: 11px; color: var(--text-muted); }
.tri-value { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.tri-value.tri-large { font-size: 20px; color: var(--un-blue-dark); }
.tri-value.tri-warn { color: #e67e22; }
.tax-result-note { padding: 10px 18px 16px; font-size: 11px; color: var(--text-muted); background: #fffbeb; border-top: 1px solid #fde68a; }
.tax-check-list { padding: 0 18px 16px; }
.tax-check-item { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.15s; }
.tax-check-item:hover { background: var(--bg-light); padding: 12px 8px; border-radius: 6px; }
.tci-check { font-size: 20px; color: var(--un-blue); flex-shrink: 0; line-height: 1; min-width: 24px; }
.tci-check.unchecked { color: var(--border); }
.tci-title { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.tci-desc { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.tax-check-summary { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; background: var(--bg-light); border-top: 1px solid var(--border); flex-wrap: wrap; gap: 8px; }
.tcs-count { font-size: 13px; color: var(--text-secondary); }
.policy-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 16px 18px; }
@media (max-width: 800px) { .policy-cards { grid-template-columns: 1fr; } }
.policy-card { background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; display: flex; gap: 12px; }
.pc-icon { font-size: 24px; flex-shrink: 0; }
.pc-body h4 { font-size: 13px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.pc-body p { font-size: 12px; color: var(--text-secondary); line-height: 1.6; }
.btn-block { width: 100%; display: block; margin: 16px 18px 0; }

/* ========== Content Gating (会员登录后才能查看) ========== */
.section-gated { position: relative; }
.section-gated > .container {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
  transition: filter 0.2s;
}
.section-gated.granted > .container {
  filter: none;
  pointer-events: auto;
  user-select: auto;
}
.gated-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  background: rgba(247,249,252,0.6);
}
.gated-overlay .gated-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 48px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 420px;
  width: 90%;
}
.gated-card .gated-icon {
  font-size: 40px;
  margin-bottom: 12px;
}
.gated-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.gated-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.gated-card .gated-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.gated-card .gated-actions .btn {
  font-size: 14px;
  padding: 10px 24px;
}

/* Inline gating for sidebar cards (agencies.html) */
.gated-card-sm {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  border: 1px solid var(--border);
}
.gated-card-sm .gated-icon {
  font-size: 28px;
  margin-bottom: 8px;
}
.gated-card-sm h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.gated-card-sm p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.gated-card-sm .btn {
  font-size: 13px;
  padding: 8px 18px;
}
