/* ============================================
   好云仓 Web 版 v2 — 国际物流风格设计系统
   Inspired by Flexport / Maersk / Warehousing.com
   ============================================ */

:root {
  /* ---- 主色 ---- */
  --primary: #1e40af;
  --primary-dark: #1e3a8a;
  --primary-light: #3b82f6;
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;

  /* ---- 功能色 ---- */
  --success: #059669;
  --success-light: #d1fae5;
  --warning: #d97706;
  --warning-light: #fef3c7;
  --danger: #dc2626;
  --danger-light: #fee2e2;

  /* ---- 中性色 ---- */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --bg-body: #f8fafc;
  --bg-white: #ffffff;
  --border: #e2e8f0;
  --border-light: #f1f5f9;

  /* ---- 阴影 ---- */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.10);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.12);

  /* ---- 圆角 & 间距 ---- */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --header-h: 72px;
  --container: 1280px;
}

/* ========== Reset & Base ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-primary);
  background: var(--bg-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select, textarea { font: inherit; outline: none; }

/* ========== 顶部导航栏 ========== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226,232,240,.6);
  transition: all .3s ease;
}
.navbar.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255,255,255,.97);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--primary-dark);
  text-decoration: none;
}
.nav-logo-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  object-fit: contain;
  background: transparent;
}
.nav-logo-text span {
  font-weight: 400;
  font-size: 13px;
  color: var(--text-muted);
  display: block;
  line-height: 1;
  margin-top: 2px;
}
.nav-logo-text span.logo-main {
  font-weight: 800;
  font-size: 17px;
  color: var(--primary-dark);
  letter-spacing: -0.5px;
  line-height: 1;
  margin: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 14px;
}
.nav-link {
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  color: #1e3a5f;
  transition: all .2s ease;
  position: relative;
}
.nav-link:hover,
.nav-link.active {
  color: #0c2545;
  background: var(--primary-50);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
}

.nav-cta {
  padding: 9px 22px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff !important;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  transition: all .25s ease;
  box-shadow: 0 2px 12px rgba(30,64,175,.3);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(30,64,175,.4);
}

/* 语言切换按钮 */
.nav-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 38px;
  padding: 0 14px;
  margin-left: 14px;
  border: 1.5px solid var(--primary);
  border-radius: 50px;
  color: var(--primary) !important;
  background: rgba(255,255,255,.7);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .5px;
  text-decoration: none;
  cursor: pointer;
  transition: all .25s ease;
  backdrop-filter: blur(4px);
}
.nav-lang:hover {
  background: var(--primary);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(30,64,175,.35);
}
.navbar.scrolled .nav-lang {
  background: #fff;
}

/* 移动端汉堡菜单 */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all .25s;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ========== Hero 区域（首页） ========== */
.hero {
  position: relative;
  min-height: 520px;
  margin-top: var(--header-h);
  background-color: #060b1a;
  display: flex;
  align-items: center;
  overflow: hidden;
}
/* 地图底图：压暗、降饱和，作为背景层 */
.hero-map-bg {
  position: absolute;
  inset: 0;
  background:
    url('../images/hero-map.jpg') no-repeat center center / cover;
  opacity: .40;
  filter: brightness(.55) contrast(1.1) saturate(.7);
  pointer-events: none;
  z-index: 0;
}
/* 科技感动态背景： faint 网格 + 少量氛围光晕（不再刺眼闪光） */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: transparent;
  background-image:
    /* 大面积氛围光晕 */
    radial-gradient(circle at 15% 25%, rgba(56,130,246,.30) 0%, transparent 38%),
    radial-gradient(circle at 85% 70%, rgba(99,102,241,.24) 0%, transparent 42%),
    /* 移动网格 */
    linear-gradient(rgba(90,150,255,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90,150,255,.10) 1px, transparent 1px);
  background-size:
    100% 100%, 100% 100%,
    48px 48px, 48px 48px;
  background-position: 0 0, 0 0, 0 0, 0 0;
  animation: heroGridMove 22s linear infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes heroGridMove {
  from { background-position: 0 0, 0 0, 0 0, 0 0; }
  to   { background-position: 0 0, 0 0, 48px 48px, 48px 48px; }
}
/* 底部发光地平线 */
.hero-horizon {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, rgba(59,130,246,.15), transparent);
  pointer-events: none;
  z-index: 1;
}
/* 蓝色遮罩层，保证文字可读 */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(6,11,26,.78) 0%, rgba(10,23,51,.62) 55%, rgba(20,45,110,.52) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 60px 24px 80px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50px;
  color: rgba(255,255,255,.9);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
  animation: fadeInUp .6s ease both;
}
.hero-badge-dot {
  width: 7px; height: 7px;
  background: #34d399;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.4); }
}

.hero-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -.8px;
  margin-bottom: 20px;
  animation: fadeInUp .6s .1s ease both;
  text-shadow: 0 2px 10px rgba(0,0,0,.35), 0 4px 24px rgba(0,0,0,.25);
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, #93c5fd, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255,255,255,.82);
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: 36px;
  animation: fadeInUp .6s .2s ease both;
  text-shadow: 0 1px 6px rgba(0,0,0,.35);
}

/* Hero 搜索框 */
.hero-search {
  display: flex;
  max-width: 560px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeInUp .6s .3s ease both;
}
.hero-search input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  background: transparent;
  color: #fff;
}
.hero-search input::placeholder { color: rgba(255,255,255,.65); }
.hero-search-btn {
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: all .25s;
  box-shadow: 0 4px 16px rgba(30,64,175,.35);
}
.hero-search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(30,64,175,.45);
}

/* Hero 统计条 */
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  animation: fadeInUp .6s .4s ease both;
}
.hero-stat {
  text-align: left;
}
.hero-stat-num {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
}
.hero-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  margin-top: 2px;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== 统计卡片区（首页） ========== */
.stats-section {
  padding: 0 24px;
  margin-top: -44px;
  position: relative;
  z-index: 10;
}
.stats-row {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-card-v2 {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all .3s ease;
  border: 1px solid transparent;
}
.stat-card-v2:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-100);
}
.stat-card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.stat-card-icon.blue { background: var(--primary-50); }
.stat-card-icon.green { background: var(--success-light); }
.stat-card-icon.orange { background: var(--warning-light); }
.stat-card-icon.purple { background: #ede9fe; }
.stat-card-info h3 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -.5px;
  line-height: 1.2;
}
.stat-card-info p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ========== 区块通用 ========== */
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 24px;
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
}
.section-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -.4px;
  line-height: 1.2;
}
.section-title small {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 6px;
  letter-spacing: 0;
}
.section-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border-radius: 50px;
  transition: all .2s;
}
.section-more:hover {
  background: var(--primary-50);
}

/* ========== 云仓卡片网格 ========== */
.warehouse-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.wh-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border-light);
  transition: all .35s cubic-bezier(.4,0,.2,1);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.wh-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.wh-card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  overflow: hidden;
}
.wh-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.wh-card:hover .wh-card-img img {
  transform: scale(1.06);
}
.wh-card-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 42px;
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
}
.wh-card-badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 12px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
  color: #fff;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}
.wh-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.wh-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}
.wh-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.tag-v2 {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  white-space: nowrap;
  letter-spacing: .2px;
}
.tag-blue-v2 { background: var(--primary-50); color: var(--primary); }
.tag-green-v2 { background: var(--success-light); color: var(--success); }
.tag-orange-v2 { background: var(--warning-light); color: var(--warning); }
.tag-red-v2 { background: var(--danger-light); color: var(--danger); }
.tag-gray-v2 { background: #f1f5f9; color: var(--text-secondary); }

.wh-card-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--danger);
  white-space: nowrap;
}
.wh-card-price .unit {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}
.wh-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
}
.wh-card-location {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ========== 需求列表（首页） ========== */
.demand-list-home {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.demand-card-home {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  transition: all .2s;
  text-decoration: none;
  color: inherit;
}
.demand-card-home:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow-sm);
}
.demand-card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--warning-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.demand-card-body { flex: 1; min-width: 0; }
.demand-card-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.demand-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.demand-card-urgent {
  font-size: 11px;
  font-weight: 700;
  color: var(--danger);
  background: var(--danger-light);
  padding: 2px 8px;
  border-radius: 50px;
  flex-shrink: 0;
}

/* ========== 轮播图（精简版） ========== */
.banner-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.banner-swiper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4.8 / 1;
  background: var(--border);
  position: relative;
  box-shadow: var(--shadow-md);
}
.banner-slide {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.banner-dots {
  position: absolute;
  bottom: 12px;
  left: 50%; transform: translateX(-50%);
  display: flex;
  gap: 7px;
}
.banner-dot {
  width: 8px; height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,.45);
  transition: all .3s;
  cursor: pointer;
}
.banner-dot.active {
  width: 24px;
  background: #fff;
}

/* ========== 公告条 ========== */
.notice-bar-v2 {
  max-width: var(--container);
  margin: 20px auto 0;
  padding: 0 24px;
}
.notice-bar-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #fefce8, #fef9c3);
  border: 1px solid #fde047;
  border-radius: var(--radius);
  font-size: 14px;
  color: #854d0e;
  overflow: hidden;
}
.notice-bar-inner .notice-icon { flex-shrink: 0; font-size: 16px; }
.notice-bar-inner .notice-text {
  flex: 1;
  white-space: nowrap;
  animation: marquee 16s linear infinite;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========== 筛选栏（列表页） ========== */
.filter-bar-v2 {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  padding: 14px 24px;
  position: sticky;
  top: var(--header-h);
  z-index: 90;
}
.filter-bar-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-bar-inner::-webkit-scrollbar { display: none; }
.filter-chip-v2 {
  flex-shrink: 0;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg-white);
  transition: all .2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.filter-chip-v2:hover { border-color: var(--primary-light); color: var(--primary); }
.filter-chip-v2.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 10px rgba(30,64,175,.25);
}

/* ========== 详情页 ========== */
.detail-hero-v2 {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--primary-100), var(--primary-50));
  position: relative;
  overflow: hidden;
}
.detail-hero-v2 img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.detail-hero-placeholder-v2 {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 72px;
  color: var(--primary-light);
  opacity: .4;
}

.detail-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}

.detail-header {
  margin-bottom: 32px;
}
.detail-title-v2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -.4px;
  line-height: 1.25;
  margin-bottom: 14px;
}
.detail-price-row-v2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.detail-price-v2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--danger);
  letter-spacing: -.5px;
}
.detail-price-v2 .unit {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
}

.detail-grid-v2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}
.detail-field-v2 {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
}
.detail-field-v2:nth-child(odd) { border-right: 1px solid var(--border-light); }
.detail-field-v2:nth-last-child(-n+2) { border-bottom: none; }
.detail-field-label-v2 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  min-width: 80px;
  flex-shrink: 0;
}
.detail-field-value-v2 {
  font-size: 14px;
  word-break: break-word;
  color: var(--text-primary);
  font-weight: 500;
}

/* ========== 详情页轮播图 ========== */
.carousel-v2 {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  max-height: 540px;
  background: var(--border);
  overflow: hidden;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s ease-in-out;
  z-index: 1;
}
.carousel-slide.active { opacity: 1; z-index: 2; }
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.85);
  color: var(--text-primary);
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-md);
  transition: background .2s, transform .2s;
}
.carousel-btn:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }
.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.28);
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: all .3s;
}
.carousel-dot.active { width: 24px; background: #fff; }
.detail-hero-placeholder-v2 {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  max-height: 540px;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  color: var(--text-muted);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
@media (max-width: 768px) {
  .carousel-v2, .detail-hero-placeholder-v2 {
    aspect-ratio: 16 / 10;
    border-radius: 0;
  }
  .carousel-btn { width: 36px; height: 36px; font-size: 14px; }
  .carousel-prev { left: 10px; }
  .carousel-next { right: 10px; }
  .carousel-dots { bottom: 10px; }
}
.detail-section-v2 {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}
.detail-section-title-v2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.detail-section-title-v2::before {
  content: '';
  width: 4px; height: 16px;
  background: var(--primary);
  border-radius: 2px;
}
.detail-tags-wrap-v2 { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-desc-v2 {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* 图片画廊 */
.gallery-v2 {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.gallery-v2::-webkit-scrollbar { display: none; }
.gallery-thumb-v2 {
  flex-shrink: 0;
  width: 120px; height: 80px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border-light);
  cursor: pointer;
  transition: all .2s;
}
.gallery-thumb-v2:hover { border-color: var(--primary-light); }
.gallery-thumb-v2 img { width: 100%; height: 100%; object-fit: cover; }

/* 联系卡 */
.contact-card-v2 {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: #fff;
}
.contact-avatar-v2 {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}
.contact-info-v2 { flex: 1; }
.contact-name-v2 { font-size: 17px; font-weight: 700; }
.contact-phone-v2 { font-size: 14px; opacity: .8; margin-top: 2px; }
.btn-contact-v2 {
  padding: 12px 26px;
  background: #fff;
  color: var(--primary-dark);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  transition: all .25s;
  white-space: nowrap;
}
.btn-contact-v2:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}

/* ========== 页脚 ========== */
.footer {
  background: var(--text-primary);
  color: rgba(255,255,255,.6);
  padding: 56px 24px 32px;
  margin-top: 60px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand h3 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 300px;
}
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  padding: 5px 0;
  transition: color .2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--container);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

/* ========== 加载/空状态 ========== */
.loading-v2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  color: var(--text-muted);
  gap: 14px;
}
.spinner-v2 {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state-v2 {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state-v2 .empty-icon { font-size: 56px; margin-bottom: 14px; opacity: .5; }
.empty-state-v2 p { font-size: 15px; }

/* ========== 分页 ========== */
.pagination-v2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 36px 0;
}
.page-btn-v2 {
  min-width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: var(--bg-white);
  transition: all .2s;
}
.page-btn-v2.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 10px rgba(30,64,175,.25);
}
.page-btn-v2:disabled { opacity: .35; pointer-events: none; }
.page-btn-v2:hover:not(:disabled):not(.active) {
  border-color: var(--primary-light);
  color: var(--primary);
}

/* ========== Toast ========== */
.toast-v2 {
  position: fixed;
  top: 96px;
  left: 50%;
  transform: translateX(-50%) translateY(-16px);
  background: var(--text-primary);
  color: #fff;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  box-shadow: var(--shadow-lg);
}
.toast-v2.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ========== 返回按钮 ========== */
.back-btn-v2 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all .2s;
}
.back-btn-v2:hover { background: var(--bg-body); color: var(--primary); }

/* ========== 页面标题栏（子页面） ========== */
.page-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  padding: 18px 24px;
  margin-top: var(--header-h);
}
.page-header-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
}
.page-header h1 {
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
  flex: 1 1 auto;
  min-width: 0;
  letter-spacing: -.5px;
}
/* 在 page-header 里的小号主按钮应自适应宽度，避免被 .btn-primary {width:100%} 撑成全宽 */
.page-header-inner .btn-primary.btn-sm {
  width: auto;
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  margin-left: auto;
  box-shadow: 0 2px 8px rgba(30,64,175,.18);
}

/* 列表容器 */
.list-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px 24px;
}

/* ============================================
   响应式 — 平板 (≤1024px)
   ============================================ */
@media (max-width: 1024px) {
  .warehouse-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-stats { gap: 28px; }
  .hero-stat-num { font-size: 24px; }
}

/* ============================================
   响应式 — 手机 (≤768px)
   ============================================ */
@media (max-width: 768px) {
  :root { --header-h: 62px; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg-white);
    padding: 16px;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open .nav-link {
    padding: 12px 16px;
    font-size: 16px;
  }
  .nav-toggle { display: flex; }

  .hero { min-height: 420px; }
  .hero-inner { padding: 40px 20px 60px; }
  .hero-title { font-size: 28px; }
  .hero-subtitle { font-size: 15px; }
  .hero-search { flex-direction: column; border-radius: 14px; padding: 4px; }
  .hero-search input { padding: 12px 16px; text-align: center; }
  .hero-search-btn { padding: 12px 20px; border-radius: 10px; }
  .hero-stats {
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
  }
  .hero-stat { display: flex; align-items: center; gap: 12px; }

  .stats-section { margin-top: -32px; padding: 0 16px; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card-v2 { padding: 18px 14px; }
  .stat-card-icon { width: 42px; height: 42px; font-size: 20px; border-radius: 10px; }
  .stat-card-info h3 { font-size: 22px; }

  .section { padding: 36px 16px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 20px; }
  .section-title { font-size: 21px; }

  .warehouse-grid { grid-template-columns: 1fr; gap: 16px; }
  .wh-card-img { aspect-ratio: 16/10; }
  .wh-card-body { padding: 14px 16px 16px; }

  .detail-container { padding: 20px 16px 48px; }
  .detail-title-v2 { font-size: 22px; }
  .detail-price-v2 { font-size: 26px; }
  .contact-card-v2 { flex-direction: column; text-align: center; padding: 24px; }
  .btn-contact-v2 { width: 100%; justify-content: center; }

  .detail-grid-v2 { grid-template-columns: 1fr; }
  .detail-field-v2:nth-child(odd) { border-right: none; }
  .detail-field-v2:nth-last-child(-n+2) { border-bottom: 1px solid var(--border-light); }
  .detail-field-v2:last-child { border-bottom: none; }

  .banner-swiper { aspect-ratio: 3.5 / 1; border-radius: var(--radius); }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .page-header { padding: 14px 16px; }
  .list-container { padding: 20px 16px; }
  .filter-bar-v2 { padding: 12px 16px; }
}

/* ============================================
   响应式 — 手机 (≤480px) — page-header 垂直堆叠
   ============================================ */
@media (max-width: 480px) {
  .page-header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .page-header-inner h1 {
    order: 1;
    text-align: center;
    font-size: 19px;
  }
  .page-header-inner .back-btn-v2 {
    order: 2;
    align-self: flex-start;
    padding-left: 0;
  }
  .page-header-inner .btn-primary.btn-sm {
    order: 3;
    width: 100%;
    margin-left: 0;
    text-align: center;
    padding: 11px 22px;
  }
}

/* ============================================
   新增样式 — 登录/注册/表单/装备/文章/个人中心
   ============================================ */

/* ---------- 导航栏用户区域 ---------- */
.nav-user { display: flex; align-items: center; gap: 10px; margin-left: auto; position: relative; }
.nav-user-dropdown { position: relative; }
.nav-user-toggle {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; padding: 4px 8px; border-radius: var(--radius-sm);
  transition: all .2s;
  user-select: none;
}
.nav-user-toggle:hover { background: var(--bg-tertiary); }
.nav-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  flex-shrink: 0;
}
.nav-username { font-size: 13px; color: var(--text-secondary); max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-dropdown-arrow {
  color: var(--text-muted);
  transition: transform .2s;
  flex-shrink: 0;
}
.nav-user-dropdown:has(.nav-user-menu.open) .nav-dropdown-arrow { transform: rotate(180deg); }
.nav-user-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.08);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all .2s ease;
  z-index: 1000;
}
.nav-user-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-primary);
  text-decoration: none;
  transition: all .2s;
  cursor: pointer;
}
.nav-menu-item:hover { background: var(--bg-tertiary); color: var(--primary); }
.nav-menu-icon {
  width: 20px; text-align: center;
  font-size: 15px; line-height: 1;
  flex-shrink: 0;
}
.nav-menu-divider {
  height: 1px; background: var(--border);
  margin: 4px 6px;
}
.nav-menu-logout { color: var(--text-muted); }
.nav-menu-logout:hover { color: var(--danger); background: var(--danger-light); }
.nav-login-btn { font-size: 13px; color: var(--primary); font-weight: 600; padding: 7px 18px; border-radius: 50px; border: 1.5px solid var(--primary); transition: all .2s; }
.nav-login-btn:hover { background: var(--primary); color: #fff; }

/* ---------- 登录/注册页 ---------- */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 50%, #faf5ff 100%);
  padding: 40px 20px;
}
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--bg-white); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl); padding: 40px 36px;
}
.auth-card-logo { text-align: center; margin-bottom: 32px; }
.auth-card-logo .logo-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; margin-bottom: 12px;
}
.auth-card-logo h2 { font-size: 22px; font-weight: 800; color: var(--text-primary); }
.auth-card-logo p { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 15px; color: var(--text-primary);
  transition: border-color .2s, box-shadow .2s;
  background: var(--bg-white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.form-group textarea { min-height: 100px; resize: vertical; }

.btn-primary {
  width: 100%; padding: 14px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; font-size: 16px; font-weight: 700;
  transition: all .25s; cursor: pointer; border: none;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(30,64,175,.35); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

.auth-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-muted); }
.auth-footer a { color: var(--primary); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

/* 验证码 + 获取按钮 一行 */
.code-row { display: flex; gap: 10px; }
.code-row input { flex: 1; }
.btn-code {
  flex: 0 0 auto; white-space: nowrap; padding: 0 16px; border-radius: var(--radius);
  background: #fff; color: var(--primary); font-size: 14px; font-weight: 600;
  border: 1.5px solid var(--primary); cursor: pointer; transition: all .2s;
}
.btn-code:hover:not(:disabled) { background: var(--primary); color: #fff; }
.btn-code:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- 个人中心 ---------- */
.profile-page { padding-top: var(--header-h); }
.profile-hero {
  background: var(--bg-white);
  color: var(--text-primary);
  text-align: left;
  padding: 32px 24px 28px;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(15,23,42,.04);
}
.profile-avatar {
  width: 68px; height: 68px; border-radius: 14px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; color: #0c2545;
  margin: 0 0 12px;
}
.profile-name { font-size: 22px; font-weight: 700; color: var(--text-primary); }
.profile-role { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px auto 0;
  max-width: 1100px;
  padding: 0 24px;
}
.profile-stat {
  text-align: left;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  box-shadow: 0 2px 6px rgba(15,23,42,.04);
}
.profile-stat:hover { box-shadow: 0 6px 16px rgba(15,23,42,.08); transform: translateY(-1px); }
.profile-stat::before {
  grid-row: 1 / 3;
  grid-column: 1;
  content: '';
  width: 42px; height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
}
.profile-stat-num { grid-row: 1; grid-column: 2; align-self: end; }
.profile-stat-label { grid-row: 2; grid-column: 2; align-self: start; }

/* 三个 stat 卡片图标与配色（与参考图一致：每张卡片一种主色） */
.profile-stat:nth-child(1)::before { background: linear-gradient(135deg, #dbeafe, #93c5fd); content: '\1F3E2'; color: #fff; font-size: 18px; font-family: 'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif; text-align: center; line-height: 42px; }
.profile-stat:nth-child(2)::before { background: linear-gradient(135deg, #fed7aa, #fb923c); content: '\1F50E'; color: #fff; font-size: 18px; font-family: 'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif; text-align: center; line-height: 42px; }
.profile-stat:nth-child(3)::before { background: linear-gradient(135deg, #bbf7d0, #4ade80); content: '\1F6E0'; color: #fff; font-size: 18px; font-family: 'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif; text-align: center; line-height: 42px; }

.profile-stat:hover { transform: translateY(-2px); }
.profile-stat-num { font-size: 24px; font-weight: 700; color: #0c2545; line-height: 1; }
.profile-stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.profile-menu { max-width: 1100px; margin: -28px auto 32px; padding: 0 24px; position: relative; z-index: 1; }
.profile-menu-card {
  background: var(--bg-white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); overflow: hidden; margin-bottom: 16px;
}
.profile-menu-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; border-bottom: 1px solid var(--border-light);
  color: var(--text-primary); font-size: 15px; font-weight: 500;
  transition: background .15s;
}
.profile-menu-item:last-child { border-bottom: none; }
.profile-menu-item:hover { background: var(--bg-body); }
.profile-menu-icon { font-size: 22px; width: 36px; text-align: center; }
.profile-menu-arrow { margin-left: auto; color: var(--text-muted); font-size: 14px; }
.profile-menu-badge {
  background: var(--danger); color: #fff; font-size: 11px;
  padding: 2px 8px; border-radius: 10px; font-weight: 600;
}

/* ---------- 装备卡片 ---------- */
.eq-card {
  display: block; background: var(--bg-white); border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border-light);
  transition: all .25s ease;
}
.eq-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.eq-card-img {
  aspect-ratio: 16 / 10; background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; position: relative; overflow: hidden;
}
.eq-card-img img { width: 100%; height: 100%; object-fit: cover; }
.eq-card-body { padding: 16px 18px; }
.eq-card-title { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; line-height: 1.35; }
.eq-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.eq-card-meta { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--text-muted); }
.eq-card-price { font-size: 18px; font-weight: 800; color: var(--danger); }
.eq-card-price .unit { font-size: 12px; font-weight: 500; color: var(--text-muted); }

.equipment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ---------- 文章/资讯卡片 ---------- */
.article-card {
  display: flex; gap: 18px; background: var(--bg-white);
  border-radius: var(--radius-lg); padding: 18px;
  border: 1px solid var(--border-light); transition: all .2s;
}
.article-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow-sm); }
.article-card-thumb {
  width: 160px; height: 110px; flex-shrink: 0;
  border-radius: var(--radius); overflow: hidden;
  background: var(--primary-50); display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: var(--primary-light);
}
.article-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-card-body { flex: 1; min-width: 0; }
.article-card-title { font-size: 16px; font-weight: 700; color: var(--text-primary); line-height: 1.4; margin-bottom: 6px; }
.article-card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-card-date { font-size: 12px; color: var(--text-muted); margin-top: 8px; }

.article-list { display: flex; flex-direction: column; gap: 14px; }

/* 文章详情 */
.article-detail { max-width: 800px; margin: 0 auto; padding: 32px 24px 60px; }
.article-detail h1 { font-size: 28px; font-weight: 800; line-height: 1.3; margin-bottom: 12px; }
.article-detail-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid var(--border-light); }
.article-detail-content { font-size: 15px; line-height: 1.85; color: var(--text-secondary); }
.article-detail-content p { margin-bottom: 16px; }

/* ---------- 消息列表 ---------- */
.msg-list { display: flex; flex-direction: column; }
.msg-item {
  display: flex; gap: 14px; padding: 16px 20px;
  background: var(--bg-white); border-bottom: 1px solid var(--border-light);
  transition: background .15s; cursor: pointer;
}
.msg-item:hover { background: var(--primary-50); }
.msg-item.unread { background: #fffbeb; border-left: 3px solid var(--warning); }
.msg-icon { font-size: 24px; width: 40px; text-align: center; padding-top: 2px; }
.msg-body { flex: 1; min-width: 0; }
.msg-title { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 3px; }
.msg-preview { font-size: 13px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-time { font-size: 12px; color: var(--text-muted); white-space: nowrap; padding-top: 4px; }

/* ---------- 收藏列表 ---------- */
.fav-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

/* ---------- 发布表单页 ---------- */
.publish-page { padding-top: var(--header-h); }
.publish-form {
  max-width: 720px; margin: 0 auto; padding: 28px 24px 60px;
}
.publish-form h1 { font-size: 24px; font-weight: 800; margin-bottom: 24px; }
.form-section { margin-bottom: 28px; }
.form-section-title {
  font-size: 16px; font-weight: 700; color: var(--text-primary);
  margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-100);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ---------- 仓库特色复选框网格 ---------- */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 600px) {
  .checkbox-grid { grid-template-columns: repeat(2, 1fr); }
}
.checkbox-tag {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border: 1.5px solid var(--border-light);
  border-radius: var(--radius); cursor: pointer;
  transition: all 0.2s; user-select: none;
  background: var(--bg-white);
}
.checkbox-tag:hover { border-color: var(--primary-300); background: var(--primary-50); }
.checkbox-tag input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px; border: 2px solid var(--border);
  border-radius: 4px; cursor: pointer; flex-shrink: 0;
  position: relative; transition: all 0.15s;
}
.checkbox-tag input:checked {
  background: var(--primary); border-color: var(--primary);
}
.checkbox-tag input:checked::after {
  content: '✓'; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); color: #fff;
  font-size: 12px; font-weight: 700;
}
.checkbox-tag span { font-size: 14px; color: var(--text-secondary); }
.checkbox-tag input:checked + span { color: var(--primary); font-weight: 600; }

/* ---------- 需求详情 ---------- */
.demand-detail { max-width: 900px; margin: 0 auto; padding: 32px 24px 60px; }
.demand-header { margin-bottom: 24px; }
.demand-title { font-size: 26px; font-weight: 800; }
.demand-status {
  display: inline-block; padding: 4px 14px; border-radius: 50px;
  font-size: 13px; font-weight: 600; margin-left: 10px;
}
.status-active { background: var(--success-light); color: var(--success); }
.status-pending { background: var(--warning-light); color: var(--warning); }
.status-closed { background: var(--danger-light); color: var(--danger); }

/* ---------- 协议页 ---------- */
.agreement-page { max-width: 800px; margin: 0 auto; padding: 32px 24px 60px; }
.agreement-page h1 { font-size: 26px; font-weight: 800; margin-bottom: 24px; text-align: center; }
.agreement-content { font-size: 15px; line-height: 1.9; color: var(--text-secondary); }
.agreement-content h2 { font-size: 18px; font-weight: 700; color: var(--text-primary); margin: 28px 0 12px; }
.agreement-content p { margin-bottom: 12px; }

/* ---------- 关于/联系页 ---------- */
.static-page { max-width: 720px; margin: 0 auto; padding: 32px 24px 60px; }
.static-page h1 { font-size: 26px; font-weight: 800; margin-bottom: 24px; }
.static-page p { font-size: 15px; line-height: 1.8; color: var(--text-secondary); margin-bottom: 14px; }
.contact-info-list { margin-top: 20px; }
.contact-info-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; background: var(--bg-white);
  border: 1px solid var(--border-light); border-radius: var(--radius);
  margin-bottom: 10px; font-size: 15px;
}
.contact-info-item .ci-icon { font-size: 22px; }

/* ---------- Tab 切换（我的发布） ---------- */
.tab-nav {
  display: flex; gap: 0; background: var(--bg-white);
  border: 1px solid var(--border-light); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 20px;
}
.tab-nav-btn {
  flex: 1; padding: 12px; text-align: center; font-size: 14px; font-weight: 600;
  color: var(--text-secondary); border-right: 1px solid var(--border-light);
  transition: all .2s; cursor: pointer; background: none;
}
.tab-nav-btn:last-child { border-right: none; }
.tab-nav-btn.active { background: var(--primary); color: #fff; }
.tab-nav-btn:hover:not(.active) { background: var(--primary-50); color: var(--primary); }

/* ---------- 操作按钮组 ---------- */
.action-bar {
  display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap;
}
.btn-sm {
  padding: 6px 14px; border-radius: 50px; font-size: 13px; font-weight: 600;
  cursor: pointer; border: 1.5px solid var(--border); background: var(--bg-white);
  color: var(--text-secondary); transition: all .2s;
}
.btn-sm:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm-danger:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-light); }
.btn-sm-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-sm-primary:hover { background: var(--primary-dark); }

/* ---------- 首页装备推荐区块 ---------- */
.section-equipment { padding-top: 0; }

/* === 我的页面：标题 + 顶 tabs === */
.my-page-header {
  background: linear-gradient(135deg, var(--primary, #1e40af) 0%, #2952d6 100%);
  color: #fff;
  padding: 28px 0 0;
  border-radius: 0 0 24px 24px;
  margin-bottom: 0;
}
.my-page-header .page-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 24px 18px;
  flex-wrap: wrap;
  max-width: 1280px;
  margin: 0 auto;
}
.my-page-header h1 {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
  letter-spacing: -.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.my-page-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.18);
  border-radius: 10px;
  font-size: 18px;
  backdrop-filter: blur(8px);
}
.my-page-header .btn-primary.btn-sm {
  width: auto;
  padding: 9px 22px;
  font-size: 14px;
  white-space: nowrap;
  background: #fff;
  color: var(--primary, #1e40af);
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.my-page-header .btn-primary.btn-sm:hover {
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.16);
}
/* tab 切换条 */
.my-tabs {
  display: flex;
  gap: 4px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}
.my-tabs::after {
  content: '';
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 1px;
  background: rgba(255,255,255,.18);
}
.my-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 12px;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: all .2s;
  white-space: nowrap;
}
.my-tab:hover {
  color: #fff;
  background: rgba(255,255,255,.06);
}
.my-tab.active {
  color: #fff;
  border-bottom-color: #fff;
  font-weight: 600;
}
.my-tab-icon { font-size: 16px; }

/* 头部背景下，列表卡片位置下移 */
.list-container {
  margin-top: 24px;
}

/* 窄屏适配 */
@media (max-width: 768px) {
  .my-page-header { padding-top: 20px; border-radius: 0 0 16px 16px; }
  .my-page-header .page-header-inner { padding: 0 16px 14px; }
  .my-page-header h1 { font-size: 20px; }
  .my-page-icon { width: 32px; height: 32px; font-size: 16px; }
  .my-tabs { padding: 0 16px; }
  .my-tabs::after { left: 16px; right: 16px; }
  .my-tab { padding: 12px 8px; font-size: 13px; }
  .my-tab-icon { font-size: 14px; }
}
@media (max-width: 480px) {
  .my-page-header .page-header-inner { flex-direction: column; align-items: stretch; gap: 14px; }
  .my-page-header h1 { justify-content: center; }
  .my-page-header .btn-primary.btn-sm { width: 100%; }
  .my-tab { padding: 10px 4px; }
  .my-tab-label { font-size: 12px; }
}

/* === profile hero 内的 my-tabs（与 hero 蓝色融合） === */
.my-tabs-hero {
  margin: 8px -16px 0;
  padding: 0 16px;
  max-width: none;
  position: relative;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,.06);
}
.my-tabs-hero::after {
  left: 16px; right: 16px;
}
.my-tabs-hero .my-tab {
  padding: 12px 8px;
  font-size: 14px;
}
.my-tabs-hero .my-tab-label { font-weight: 500; }
.my-tabs-hero .my-tab.active { font-weight: 700; }
.my-tabs-hero .my-tab.active .my-tab-icon {
  background: rgba(255,255,255,.18);
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
}
@media (max-width: 480px) {
  .my-tabs-hero .my-tab-label { font-size: 12px; }
  .my-tabs-hero .my-tab { padding: 10px 4px; }
}

/* === profile 菜单卡片：横排网格 === */
.profile-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 8px;
}
.profile-menu-grid .profile-menu-item {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 18px 8px;
  gap: 8px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid #eef2f7;
  transition: all .2s ease;
  min-height: 92px;
}
.profile-menu-grid .profile-menu-item:hover {
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
  border-color: #bfdbfe;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(30,64,175,.08);
}

.profile-menu-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.profile-menu-badge.auth-none    { background: #f1f5f9; color: #64748b; }
.profile-menu-badge.auth-pending { background: #fef3c7; color: #b45309; }
.profile-menu-badge.auth-approved{ background: #d1fae5; color: #047857; }
.profile-menu-badge.auth-rejected{ background: #fee2e2; color: #b91c1c; }
.profile-menu-grid .profile-menu-item .profile-menu-icon {
  font-size: 28px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 12px;
  margin: 0;
}
.profile-menu-grid .profile-menu-item .profile-menu-label {
  font-size: 13px;
  color: var(--text, #1f2937);
  font-weight: 500;
  white-space: nowrap;
}
.profile-menu-grid .profile-menu-item .profile-menu-arrow { display: none; }

@media (max-width: 768px) {
  .profile-menu-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .profile-menu-grid .profile-menu-item { padding: 14px 4px; min-height: 80px; }
  .profile-menu-grid .profile-menu-item .profile-menu-icon { width: 42px; height: 42px; font-size: 22px; }
  .profile-menu-grid .profile-menu-item .profile-menu-label { font-size: 12px; }
}
@media (max-width: 480px) {
  .profile-menu-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .profile-menu-grid .profile-menu-item { min-height: 76px; padding: 12px 4px; }
}

/* === navbar 用户下拉菜单：5 列横排信息卡风格 === */
.nav-user-menu-grid {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr);
  min-width: 480px;
  padding: 8px;
  gap: 0;
  background: #fff;
  box-shadow: 0 8px 32px rgba(15, 23, 42, .12), 0 0 0 1px rgba(15,23,42,.04);
}
.nav-user-menu-grid .nav-menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 8px;
  border-radius: 10px;
  color: var(--primary, #1e40af);
  text-align: center;
  position: relative;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .18s;
}
.nav-user-menu-grid .nav-menu-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, #e5e7eb 30%, #e5e7eb 70%, transparent);
}
.nav-user-menu-grid .nav-menu-item:hover {
  background: #f1f5f9;
  color: var(--primary, #1e40af);
}
.nav-user-menu-grid .nav-menu-icon {
  font-size: 22px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 12px;
  margin: 0;
}
.nav-user-menu-grid .nav-menu-label {
  font-size: 12px;
  color: var(--text, #1f2937);
  white-space: nowrap;
  font-weight: 500;
}
.nav-user-menu-grid .nav-menu-item.nav-menu-logout {
  color: #dc2626;
}
.nav-user-menu-grid .nav-menu-item.nav-menu-logout .nav-menu-icon {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}
.nav-user-menu-grid .nav-menu-item.nav-menu-logout .nav-menu-label {
  color: #dc2626;
}

@media (max-width: 768px) {
  .nav-user-menu-grid {
    grid-template-columns: repeat(3, 1fr);
    min-width: 320px;
  }
  .nav-user-menu-grid .nav-menu-item:nth-child(3)::after { display: none; }
}
@media (max-width: 480px) {
  .nav-user-menu-grid {
    grid-template-columns: repeat(2, 1fr);
    min-width: 260px;
  }
  .nav-user-menu-grid .nav-menu-item:nth-child(2)::after { display: none; }
}


/* ===== 右侧用户区横排菜单：用户数据 | 已认证 | 用户名 | 用户中心 | 退出 ===== */
.nav-user-bar {
  display: flex;
  align-items: center;
  gap: 0;
  color: var(--text-secondary, #475569);
  font-size: 13px;
  white-space: nowrap;
}
.nav-user-bar .nav-bar-item {
  padding: 0 14px;
  color: var(--primary, #1e40af);
  text-decoration: none;
  font-weight: 500;
  transition: color .18s;
}
.nav-user-bar .nav-bar-item:hover { color: var(--primary-dark, #1e3a8a); text-decoration: underline; }
.nav-user-bar .nav-bar-item.nav-bar-name {
  color: var(--text, #1f2937);
  font-weight: 600;
  cursor: default;
}
.nav-user-bar .nav-bar-item.nav-bar-logout {
  color: #dc2626;
}
.nav-user-bar .nav-bar-item.nav-bar-logout:hover {
  color: #991b1b;
}
.nav-user-bar .nav-bar-sep {
  color: #cbd5e1;
  user-select: none;
}
.nav-user-bar .nav-auth-tag {
  padding: 0 14px;
  font-size: 12px;
  font-weight: 600;
  color: #16a34a;
}
.nav-auth-tag-link {
  color: #2563eb;
  text-decoration: none;
  cursor: pointer;
  transition: color .15s;
}
.nav-auth-tag-link:hover { color: #1d4ed8; text-decoration: underline; }
.nav-user-bar .nav-auth-tag[data-status="rejected"] { color: #dc2626; }
.nav-user-bar .nav-auth-tag[data-status="pending"]  { color: #d97706; }
.nav-user-bar .nav-auth-tag[data-status="none"]     { color: #94a3b8; }


/* ============== IWPA Workbench (2026-08-26) ============== */
.wk-page { max-width: 1200px; margin: 0 auto; padding: 32px 24px 64px; }

.wk-header { display: flex; justify-content: space-between; align-items: flex-end; padding: 0 0 24px; gap: 16px; flex-wrap: wrap; }
.wk-header-left { display: flex; flex-direction: column; gap: 6px; }
.wk-title { font-size: 28px; font-weight: 800; color: #0f172a; margin: 0; letter-spacing: -0.5px; }
.wk-subtitle { font-size: 20px; font-weight: 600; color: #475569; letter-spacing: -0.2px; }
.wk-header-right { display: flex; align-items: center; gap: 16px; }
.wk-date { font-size: 13px; color: #64748b; white-space: nowrap; }
.wk-publish-btn { display: inline-flex; align-items: center; gap: 4px; background: #2563eb; color: #fff; font-size: 14px; font-weight: 600; padding: 8px 18px; border-radius: 8px; text-decoration: none; transition: background .15s; }
.wk-publish-btn:hover { background: #1d4ed8; }

.wk-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.wk-stat { background: #fff; border-radius: 12px; padding: 22px 20px; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 1px 3px rgba(15,23,42,.06); display: flex; align-items: center; gap: 16px; transition: transform .15s, box-shadow .15s; }
.wk-stat:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(15,23,42,.08); }
.wk-stat-icon { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.icon-blue   { background: #dbeafe; color: #2563eb; }
.icon-red    { background: #fee2e2; color: #dc2626; }
.icon-yellow { background: #fef3c7; color: #d97706; }
.icon-green  { background: #d1fae5; color: #059669; }
.wk-stat-body { flex: 1; min-width: 0; }
.wk-stat-num { font-size: 28px; font-weight: 800; color: #0f172a; line-height: 1.1; letter-spacing: -0.5px; }
.wk-stat-label { font-size: 13px; font-weight: 500; color: #475569; margin-top: 4px; }
.wk-stat-sub { font-size: 12px; color: #94a3b8; margin-top: 4px; }
.wk-stat-sub .trend-up { color: #059669; font-weight: 600; }
.wk-stat-sub .trend-dn { color: #dc2626; font-weight: 600; }

.wk-card { background: #fff; border-radius: 12px; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 1px 3px rgba(15,23,42,.06); overflow: hidden; }

.wk-tabs { display: flex; border-bottom: 1px solid #e2e8f0; padding: 0 20px; gap: 4px; overflow-x: auto; }
.wk-tab { padding: 16px 14px; color: #475569; font-size: 14px; font-weight: 500; text-decoration: none; position: relative; white-space: nowrap; transition: color .15s; display: inline-flex; align-items: center; gap: 6px; }
.wk-tab:hover { color: #2563eb; }
.wk-tab.active { color: #2563eb; font-weight: 600; }
.wk-tab.active::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: #2563eb; border-radius: 1px; }
.wk-tab-badge { background: #ef4444; color: #fff; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 10px; min-width: 18px; text-align: center; line-height: 1.4; }

.wk-pane { padding: 20px 24px 24px; }
.wk-pane.hidden { display: none; }

.wk-toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.wk-select { border: 1px solid #e2e8f0; border-radius: 6px; padding: 7px 28px 7px 12px; font-size: 13px; color: #334155; background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2364748b'><path d='M4 6l4 4 4-4'/></svg>") no-repeat right 8px center / 14px; -webkit-appearance: none; appearance: none; min-width: 110px; cursor: pointer; }
.wk-select:focus { outline: none; border-color: #2563eb; }
.wk-search { margin-left: auto; border: 1px solid #e2e8f0; border-radius: 6px; padding: 7px 12px; font-size: 13px; min-width: 220px; background: #fff; }
.wk-search:focus { outline: none; border-color: #2563eb; }

.wk-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.wk-table th { text-align: left; font-size: 12px; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: .3px; padding: 12px 12px; border-bottom: 1px solid #e2e8f0; background: #f8fafc; }
.wk-table td { padding: 16px 12px; border-bottom: 1px solid #f1f5f9; color: #334155; vertical-align: middle; }
.wk-table tr:last-child td { border-bottom: none; }
.wk-table tr:hover td { background: #f8fafc; }
.wk-title-cell { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.wk-title-emoji { width: 36px; height: 36px; border-radius: 8px; background: #eff6ff; color: #2563eb; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.wk-title-emoji.eq { background: #ecfdf5; color: #059669; }
.wk-title-emoji.dm { background: #fff7ed; color: #ea580c; }
.wk-title-main { font-size: 14px; font-weight: 600; color: #0f172a; line-height: 1.3; }
.wk-title-sub { font-size: 12px; color: #94a3b8; margin-top: 2px; }
.wk-tag-blue { color: #2563eb; font-size: 13px; font-weight: 500; }
.wk-badge { display: inline-block; padding: 2px 10px; border-radius: 4px; font-size: 12px; font-weight: 500; }
.wk-badge.pub    { background: #d1fae5; color: #047857; }
.wk-badge.pend   { background: #fef3c7; color: #b45309; }
.wk-badge.closed { background: #e2e8f0; color: #475569; }
.wk-badge.draft  { background: #dbeafe; color: #1e40af; }
.wk-op { display: inline-flex; gap: 2px; }
.wk-op-btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; color: #94a3b8; border-radius: 6px; text-decoration: none; transition: all .15s; cursor: pointer; background: transparent; border: none; font-size: 14px; }
.wk-op-btn:hover { background: #f1f5f9; color: #2563eb; }
.wk-op-btn.danger:hover { background: #fee2e2; color: #dc2626; }

.wk-empty { text-align: center; padding: 60px 20px; color: #94a3b8; font-size: 14px; }
.wk-empty .icon { font-size: 48px; margin-bottom: 12px; opacity: .5; }

.wk-msg-list { display: flex; flex-direction: column; gap: 12px; }
.wk-msg-item { display: flex; gap: 12px; padding: 14px 16px; border: 1px solid #f1f5f9; border-radius: 10px; transition: background .15s; cursor: pointer; }
.wk-msg-item:hover { background: #f8fafc; }
.wk-msg-avatar { width: 40px; height: 40px; border-radius: 50%; background: #dbeafe; color: #2563eb; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.wk-msg-body { flex: 1; min-width: 0; }
.wk-msg-from { font-size: 14px; font-weight: 600; color: #0f172a; }
.wk-msg-text { font-size: 13px; color: #64748b; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-msg-time { font-size: 12px; color: #94a3b8; flex-shrink: 0; }
.wk-msg-unread { font-weight: 700; color: #0f172a; }

.wk-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.wk-stat-tile { background: #f8fafc; border-radius: 10px; padding: 20px; }
.wk-stat-tile-label { font-size: 13px; color: #64748b; }
.wk-stat-tile-num { font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 6px; }
.wk-stat-tile-sub { font-size: 12px; color: #94a3b8; margin-top: 4px; }

.wk-auth-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.wk-auth-item { display: flex; flex-direction: column; align-items: center; padding: 18px 8px; border: 1px solid #f1f5f9; border-radius: 10px; text-decoration: none; color: #334155; transition: all .15s; gap: 8px; }
.wk-auth-item:hover { border-color: #2563eb; color: #2563eb; transform: translateY(-1px); }
.wk-auth-icon { font-size: 28px; }
.wk-auth-label { font-size: 13px; font-weight: 500; }
.wk-auth-danger { color: #dc2626; border-color: #fee2e2; }
.wk-auth-danger:hover { background: #fee2e2; color: #dc2626; border-color: #fecaca; }

@media (max-width: 768px) {
  .wk-stats { grid-template-columns: repeat(2, 1fr); }
  .wk-auth-card { grid-template-columns: repeat(2, 1fr); }
  .wk-table th:nth-child(3), .wk-table td:nth-child(3),
  .wk-table th:nth-child(4), .wk-table td:nth-child(4) { display: none; }
  .wk-title { font-size: 22px; }
  .wk-search { min-width: 0; width: 100%; margin-left: 0; }
}


