/* ================================================================
   Prototype Styles - All portal styles
   ================================================================ */

/* === Reset & Layout === */
* { box-sizing: border-box; margin: 0; padding: 0; }

.front-layout { min-height: 100vh; display: flex; flex-direction: column; }

.front-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 21, 34, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.front-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo-wrap { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), #22d3ee);
  border-radius: 8px;
  display: grid; place-items: center;
  color: white;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-0);
  line-height: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-sub {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.05em;
}

/* === Navigation === */
.front-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  margin: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.front-nav::-webkit-scrollbar { display: none; }

.front-nav-item {
  font-size: 14px;
  color: var(--text-2);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  text-decoration: none;
  flex-shrink: 0;
}

.front-nav-item:hover { color: var(--text-0); background: var(--surface); }

.front-nav-item.active {
  color: var(--accent);
  background: var(--accent-soft);
}

.front-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.lang-switch, .currency-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.lang-btn, .currency-btn {
  padding: 3px 7px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-2);
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn:hover, .currency-btn:hover { color: var(--text-0); }

.lang-btn.active, .currency-btn.active {
  background: var(--accent);
  color: #fff;
}

/* Notification */
.notif-icon {
  position: relative;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  color: var(--text-2);
  cursor: pointer;
  border-radius: 6px;
}
.notif-icon:hover { color: var(--text-0); background: var(--surface); }

.notif-dot {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  border-radius: 8px;
  display: grid; place-items: center;
  line-height: 1;
}

.notif-dropdown {
  position: absolute;
  top: 44px;
  right: 0;
  width: 320px;
  max-height: 400px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  z-index: 200;
}

.notif-title {
  padding: 12px 16px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-0);
  border-bottom: 1px solid var(--line);
}

.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.notif-item:hover { background: var(--surface-2); }
.notif-item.unread { background: var(--accent-soft); }

.notif-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-0);
  margin-bottom: 4px;
}
.notif-item-content { font-size: 12px; color: var(--text-2); margin-bottom: 4px; }
.notif-item-time { font-size: 11px; color: var(--text-3); font-family: var(--font-mono); }

/* Role Switch */
.role-switch { position: relative; }

.role-switch-current {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--surface);
}
.role-switch:hover .role-switch-current { border-color: var(--accent-line); }

.role-avatar {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), #22d3ee);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: grid; place-items: center;
  font-family: var(--font-mono);
}

.role-name { font-size: 13px; color: var(--text-1); font-weight: 500; }

.role-switch-menu {
  position: absolute;
  top: 48px;
  right: 0;
  width: 260px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  z-index: 200;
  padding: 6px;
  display: none;
}

.role-switch:hover .role-switch-menu { display: block; }

.role-menu-item {
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.role-menu-item:hover { background: var(--surface-2); }
.role-menu-item.active { background: var(--accent-soft); }
.role-menu-item strong { font-size: 13px; color: var(--text-0); font-weight: 600; }
.role-menu-item span { font-size: 11px; color: var(--text-3); }

.role-menu-divider { height: 1px; background: var(--line); margin: 6px 0; }

/* === Main Content === */
.front-main { flex: 1; }

.front-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  background: var(--bg-0);
}

/* === Common UI === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
  font-family: inherit;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: #0ea5e9; }

.btn-secondary {
  background: transparent;
  color: var(--text-1);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--accent-line); color: var(--accent); }

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border-color: transparent;
}
.btn-ghost:hover { color: var(--text-0); background: var(--surface); }

.btn-gold {
  background: var(--gold);
  color: #1c1917;
  border-color: var(--gold);
}
.btn-gold:hover { background: #fbbf24; }

.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 12px 28px; font-size: 15px; }
.btn-block { width: 100%; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 4px;
  line-height: 1.6;
  font-family: var(--font-mono);
}
.badge-default { background: var(--bg-2); color: var(--text-2); border: 1px solid var(--line); }
.badge-accent { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); }
.badge-gold { background: var(--gold-soft); color: var(--gold); border: 1px solid rgba(251,191,36,0.3); }
.badge-green { background: var(--green-soft); color: var(--green); border: 1px solid rgba(52,211,153,0.3); }
.badge-danger { background: rgba(239,68,68,0.1); color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }
.badge-silver { background: rgba(148,163,184,0.1); color: #94a3b8; border: 1px solid rgba(148,163,184,0.3); }

.star-rating { display: inline-flex; align-items: center; }

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-1);
  margin-bottom: 6px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text-0);
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 80px; }

/* === Modal === */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(5, 10, 20, 0.7);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.25s ease;
}

@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.modal-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-0);
}
.modal-close {
  width: 28px; height: 28px;
  background: transparent;
  border: none;
  color: var(--text-3);
  font-size: 24px;
  cursor: pointer;
  border-radius: 4px;
  display: grid; place-items: center;
}
.modal-close:hover { color: var(--text-0); background: var(--surface-2); }

.modal-body { padding: 20px; }

/* === Toast === */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 2000;
  animation: toastIn 0.3s ease;
}

@keyframes toastIn {
  from { transform: translateX(-50%) translateY(-20px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.toast-success {
  background: var(--green-soft);
  border: 1px solid var(--green);
  color: var(--green);
}
.toast-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid #ef4444;
  color: #ef4444;
}

/* === Login Modal === */
.login-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  background: var(--bg-2);
  padding: 4px;
  border-radius: 6px;
}
.login-tab {
  flex: 1;
  padding: 8px;
  font-size: 13px;
  color: var(--text-2);
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.login-tab.active { background: var(--accent); color: #fff; }

/* === Page Section === */
.page-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 24px;
}

.page-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-0);
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 15px;
  color: var(--text-2);
  margin-bottom: 24px;
}

/* === Product Image === */
.product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.product-image-inner {
  width: 80%;
  height: 80%;
  display: grid;
  place-items: center;
}

.product-image-inner svg {
  width: 100%;
  height: 100%;
}

/* === Product Card === */
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.25s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.product-card-image {
  position: relative;
  padding: 16px;
}

.product-card-tags {
  position: absolute;
  top: 24px; left: 24px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.product-card-body {
  padding: 0 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-brand {
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.product-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-0);
  margin-bottom: 6px;
  line-height: 1.4;
}

.product-card-params {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.product-card-price {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  margin-top: auto;
  padding-top: 8px;
}

.product-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-3);
}

/* === Hero Banner === */
.market-hero {
  position: relative;
  background: linear-gradient(135deg, var(--accent-soft) 0%, rgba(167,139,250,0.1) 50%, var(--gold-soft) 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 48px;
  margin-bottom: 32px;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: center;
}

.market-hero h1 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  color: var(--text-0);
  margin-bottom: 12px;
  line-height: 1.2;
}

.market-hero p {
  font-size: 16px;
  color: var(--text-2);
  max-width: 500px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.market-hero-search {
  display: flex;
  max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.market-hero-search input {
  flex: 1;
  padding: 12px 16px;
  font-size: 14px;
  background: transparent;
  border: none;
  color: var(--text-0);
  font-family: inherit;
}
.market-hero-search input:focus { outline: none; }

.market-hero-search button {
  padding: 0 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
.market-hero-search button:hover { background: #0ea5e9; }

.hero-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 24px;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s;
}
.hero-dot.active { background: var(--accent); }

/* === Categories Grid === */
.categories-bar {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.category-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.category-item:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
}

.category-item-icon {
  width: 40px; height: 40px;
  margin: 0 auto 10px;
  background: var(--accent-soft);
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--accent);
}

.category-item-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-0);
}

/* === Hot Scenes === */
.scenes-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.scene-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.scene-card:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.scene-card-icon {
  width: 36px; height: 36px;
  margin: 0 auto 8px;
  color: var(--gold);
  display: grid; place-items: center;
}

.scene-card-name {
  font-size: 12px;
  color: var(--text-1);
  margin-bottom: 2px;
}
.scene-card-count {
  font-size: 10px;
  color: var(--text-3);
  font-family: var(--font-mono);
}

/* === Data Bar === */
.market-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 32px;
}

.stat-item {
  background: var(--surface);
  padding: 24px;
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-2);
}

/* === Section Headers === */
.section-h {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
}

.section-h h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-0);
}

.section-h a {
  font-size: 13px;
  color: var(--accent);
  cursor: pointer;
}
.section-h a:hover { text-decoration: underline; }

/* === Products Grid === */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* === Filter Sidebar Layout === */
.filter-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
}

.filter-sidebar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: 80px;
}

.filter-group { margin-bottom: 20px; }
.filter-group-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-0);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  padding: 4px 0;
}
.filter-option:hover { color: var(--text-0); }
.filter-option input { cursor: pointer; }

.filter-price-range {
  display: flex;
  gap: 8px;
  align-items: center;
}
.filter-price-range input {
  width: 100%;
  padding: 6px 8px;
  font-size: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text-0);
}

/* === Toolbar === */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.toolbar-sort {
  display: flex;
  gap: 4px;
}

.sort-btn {
  padding: 6px 12px;
  font-size: 12px;
  color: var(--text-2);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
}
.sort-btn.active {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.view-toggle {
  display: flex;
  gap: 4px;
}
.view-toggle button {
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-2);
  border-radius: 4px;
  cursor: pointer;
  display: grid; place-items: center;
}
.view-toggle button.active {
  color: var(--accent);
  border-color: var(--accent);
}

/* === Pagination === */
.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 24px;
}
.pagination button {
  min-width: 32px; height: 32px;
  padding: 0 10px;
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-2);
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-mono);
}
.pagination button:hover { border-color: var(--accent); color: var(--accent); }
.pagination button.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* === Product Detail === */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.product-detail-gallery {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
}

.main-image {
  aspect-ratio: 1;
  border-radius: 8px;
  margin-bottom: 12px;
  display: grid;
  place-items: center;
}

.thumb-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.thumb-img {
  aspect-ratio: 1;
  border: 2px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s;
}
.thumb-img:hover, .thumb-img.active {
  border-color: var(--accent);
}

.product-detail-info h1 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-0);
  margin-bottom: 4px;
}

.product-detail-brand {
  font-size: 14px;
  color: var(--text-3);
  margin-bottom: 16px;
}
.product-detail-brand strong { color: var(--text-1); font-weight: 600; }

.product-detail-price {
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.product-detail-price .price {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  color: var(--accent);
}
.product-detail-price .moq {
  font-size: 13px;
  color: var(--text-2);
}

.currency-tabs {
  display: flex;
  gap: 4px;
}
.currency-tab {
  padding: 4px 10px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-2);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
}
.currency-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.specs-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
}
.spec-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  border-bottom: 1px solid var(--line);
}
.spec-row:last-child { border-bottom: none; }
.spec-label {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-2);
  background: var(--bg-2);
}
.spec-value {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-0);
  font-family: var(--font-mono);
}

.supplier-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}
.supplier-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.supplier-card-avatar {
  width: 48px; height: 48px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 16px;
}
.supplier-card-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-0);
  margin-bottom: 2px;
}
.supplier-card-meta {
  font-size: 12px;
  color: var(--text-3);
}
.supplier-card-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.supplier-stat { text-align: center; }
.supplier-stat-num {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}
.supplier-stat-label {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
}

.action-buttons {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 10px;
}

/* === Tabs === */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.tab {
  padding: 12px 20px;
  font-size: 14px;
  color: var(--text-2);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  background: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: inherit;
}
.tab:hover { color: var(--text-0); }
.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tab-content { padding: 8px 0; }
.tab-desc {
  font-size: 14px;
  color: var(--text-1);
  line-height: 1.8;
}

.compat-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }

/* === Supplier Page === */
.supplier-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.supplier-list-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  gap: 16px;
}
.supplier-list-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.supplier-list-avatar {
  width: 64px; height: 64px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-soft), var(--gold-soft));
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

.supplier-list-info { flex: 1; min-width: 0; }

.supplier-list-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-0);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.supplier-list-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }

.supplier-list-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 8px;
}

/* Supplier detail */
.supplier-banner {
  height: 180px;
  background: linear-gradient(135deg, var(--accent-soft), var(--gold-soft));
  border-radius: 10px 10px 0 0;
  position: relative;
  margin: -20px -20px 0;
}

.supplier-detail-header {
  display: flex;
  gap: 24px;
  margin-top: -40px;
  padding: 0 20px 20px;
  position: relative;
  z-index: 1;
}

.supplier-detail-avatar {
  width: 100px; height: 100px;
  border-radius: 12px;
  background: var(--surface);
  border: 4px solid var(--surface);
  display: grid; place-items: center;
  font-weight: 900;
  font-size: 32px;
  color: var(--accent);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.supplier-detail-info h1 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-0);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* === RFQ Page === */
.rfq-list { display: flex; flex-direction: column; gap: 12px; }

.rfq-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
}
.rfq-card:hover {
  border-color: var(--accent-line);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.rfq-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.rfq-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-0);
  margin-bottom: 4px;
}

.rfq-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 12px;
}
.rfq-meta span strong { color: var(--text-0); font-weight: 600; }

.rfq-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.rfq-quotes-count {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}

/* === AI Chat === */
.ai-chat-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
  height: calc(100vh - 160px);
  min-height: 600px;
}

.ai-chat-main {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ai-chat-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-chat-avatar {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #22d3ee);
  display: grid; place-items: center;
  color: #fff;
}

.ai-chat-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-0);
}
.ai-chat-sub {
  font-size: 11px;
  color: var(--green);
  font-family: var(--font-mono);
}

.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-msg { max-width: 80%; display: flex; gap: 10px; }
.chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }

.chat-msg-avatar {
  width: 32px; height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  display: grid; place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.chat-msg.ai .chat-msg-avatar { background: linear-gradient(135deg, var(--accent), #22d3ee); }
.chat-msg.user .chat-msg-avatar { background: var(--gold); color: #1c1917; }

.chat-msg-bubble {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-1);
}
.chat-msg.ai .chat-msg-bubble {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-top-left-radius: 2px;
}
.chat-msg.user .chat-msg-bubble {
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--text-0);
  border-top-right-radius: 2px;
}

.chat-products-recommend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.chat-product-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  text-align: center;
  cursor: pointer;
}
.chat-product-card:hover { border-color: var(--accent); }
.chat-product-card .name { font-size: 12px; color: var(--text-0); font-weight: 600; margin-top: 4px; }
.chat-product-card .price { font-size: 11px; color: var(--accent); font-family: var(--font-mono); font-weight: 600; }

.ai-chat-quick {
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.quick-btn {
  padding: 6px 12px;
  font-size: 12px;
  color: var(--text-2);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  font-family: inherit;
}
.quick-btn:hover { border-color: var(--accent); color: var(--accent); }

.ai-chat-input {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}
.ai-chat-input textarea {
  flex: 1;
  padding: 10px 14px;
  font-size: 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text-0);
  font-family: inherit;
  resize: none;
  height: 44px;
}
.ai-chat-input textarea:focus { outline: none; border-color: var(--accent); }
.ai-chat-input button {
  padding: 0 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
}

.ai-chat-sidebar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  overflow-y: auto;
}

.ai-sidebar-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-0);
  margin-bottom: 12px;
}

/* === Skill Store === */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.25s;
}
.skill-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.skill-card-header {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.skill-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-soft), rgba(167,139,250,0.15));
  display: grid; place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}

.skill-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-0);
  margin-bottom: 4px;
}
.skill-dev { font-size: 12px; color: var(--text-3); }

.skill-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 12px;
}

.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

.skill-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.skill-price {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}
.skill-price.free { color: var(--green); }

/* === Services Page === */
.services-tab-bar {
  display: flex;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
}

.services-tab {
  flex: 1;
  padding: 14px 20px;
  font-size: 13px;
  color: var(--text-2);
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.services-tab:hover { color: var(--text-0); }
.services-tab.active {
  color: var(--accent);
  background: var(--accent-soft);
  border-bottom-color: var(--accent);
}

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

.service-provider-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.25s;
}
.service-provider-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

.service-provider-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-0);
  margin-bottom: 8px;
}

.service-provider-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 10px;
}

.service-provider-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

/* === Rental Page === */
.rental-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.rental-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s;
}
.rental-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.rental-card-body { padding: 16px; }

.rental-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-0);
  margin-bottom: 8px;
}

.rental-pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
  text-align: center;
}
.rental-price-item {
  padding: 8px 4px;
  background: var(--bg-2);
  border-radius: 6px;
}
.rental-price-val {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}
.rental-price-unit { font-size: 10px; color: var(--text-3); }

.rental-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-2);
}

.rental-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 24px;
}

.rental-step {
  text-align: center;
  position: relative;
}
.rental-step-num {
  width: 40px; height: 40px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
  display: grid; place-items: center;
}
.rental-step-label { font-size: 13px; color: var(--text-1); font-weight: 600; }
.rental-step-desc { font-size: 11px; color: var(--text-3); margin-top: 4px; }

/* === Dashboard (Buyer) === */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
}

.metric-card-label {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 8px;
}

.metric-card-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  color: var(--text-0);
}

.metric-card-change {
  font-size: 12px;
  color: var(--green);
  font-family: var(--font-mono);
  margin-top: 4px;
}

.dashboard-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.chart-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
}

.chart-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-0);
  margin-bottom: 4px;
}

.chart-card-sub {
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

/* === Supplier Dashboard === */
.supplier-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.todo-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.todo-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-2);
  border-radius: 6px;
  font-size: 13px;
}

.todo-item-count {
  background: var(--danger);
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
}

/* === Data Tables === */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.data-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.data-table td {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-1);
  border-bottom: 1px solid var(--line);
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--surface-2); cursor: pointer; }

.table-product {
  display: flex;
  align-items: center;
  gap: 10px;
}
.table-product-img {
  width: 40px; height: 40px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.table-actions {
  display: flex;
  gap: 6px;
}
.table-btn {
  padding: 4px 10px;
  font-size: 12px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-2);
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
}
.table-btn:hover { border-color: var(--accent); color: var(--accent); }
.table-btn.primary { border-color: var(--accent); color: var(--accent); }
.table-btn.danger { border-color: #ef4444; color: #ef4444; }

/* Status Pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font-mono);
}
.status-pill.pending { background: rgba(251,191,36,0.1); color: #fbbf24; border: 1px solid rgba(251,191,36,0.3); }
.status-pill.shipped { background: rgba(56,189,248,0.1); color: var(--accent); border: 1px solid var(--accent-line); }
.status-pill.done { background: rgba(52,211,153,0.1); color: var(--green); border: 1px solid rgba(52,211,153,0.3); }
.status-pill.dispute { background: rgba(239,68,68,0.1); color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }
.status-pill.wait { background: rgba(148,163,184,0.1); color: #94a3b8; border: 1px solid rgba(148,163,184,0.3); }
.status-pill.review { background: rgba(167,139,250,0.1); color: #a78bfa; border: 1px solid rgba(167,139,250,0.3); }

/* === Admin Layout === */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg-1);
}

.admin-sidebar {
  width: 220px;
  background: #0b1220;
  border-right: 1px solid var(--line);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--text-0);
  font-weight: 700;
  font-size: 15px;
}

.admin-nav { padding: 12px 8px; }

.admin-nav-group { margin-bottom: 16px; }

.admin-nav-group-title {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 8px 12px;
  margin-bottom: 4px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-2);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.admin-nav-item:hover {
  background: var(--surface);
  color: var(--text-0);
}

.admin-nav-item.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.admin-nav-icon {
  width: 20px;
  text-align: center;
  font-weight: 700;
}

.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-topbar {
  height: 56px;
  padding: 0 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.admin-content {
  padding: 24px;
  flex: 1;
  min-width: 0;
}

.admin-page-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-0);
  margin-bottom: 4px;
}

.admin-page-sub {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 24px;
}

.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.admin-metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.admin-metric-label {
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 6px;
}

.admin-metric-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-0);
}

.admin-metric-change {
  font-size: 11px;
  color: var(--green);
  font-family: var(--font-mono);
  margin-top: 4px;
}

.admin-charts-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

/* Timeline */
.timeline-tracker {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.timeline-item {
  position: relative;
  padding-left: 20px;
  padding-bottom: 16px;
  border-left: 2px solid var(--line);
  margin-left: 6px;
}

.timeline-item:last-child { border-left-color: transparent; padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface);
}

.timeline-item.done::before { background: var(--green); }
.timeline-item.pending::before { background: #94a3b8; }

.timeline-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-0);
}

.timeline-item-time {
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--font-mono);
  margin-top: 2px;
}

.live-feed {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  max-height: 400px;
  overflow-y: auto;
}

.feed-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.feed-item:last-child { border-bottom: none; }
.feed-item-type {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  font-family: var(--font-mono);
  margin-right: 8px;
}
.feed-item-type.order { background: var(--accent-soft); color: var(--accent); }
.feed-item-type.user { background: var(--green-soft); color: var(--green); }
.feed-item-type.rfq { background: var(--gold-soft); color: var(--gold); }
.feed-item-text { color: var(--text-1); }
.feed-item-time { color: var(--text-3); margin-left: 6px; font-family: var(--font-mono); }

/* === Developer Portal === */
.dev-header {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dev-header h1 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--text-0);
  margin-bottom: 8px;
}

.dev-header p {
  font-size: 14px;
  color: var(--text-2);
}

.dev-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.dev-metric-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
}

.dev-metric-label { font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.dev-metric-value { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--accent); }

/* Document layout */
.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
}

.docs-sidebar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  position: sticky;
  top: 80px;
  height: fit-content;
}

.docs-nav-group { margin-bottom: 20px; }
.docs-nav-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.docs-nav-item {
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  border-radius: 4px;
  margin-bottom: 2px;
}
.docs-nav-item:hover { background: var(--surface-2); color: var(--text-0); }
.docs-nav-item.active { color: var(--accent); background: var(--accent-soft); font-weight: 500; }

.docs-content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px;
  line-height: 1.8;
}

.docs-content h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-0);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.docs-content h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-0);
  margin: 24px 0 12px;
}

.docs-content p {
  font-size: 14px;
  color: var(--text-1);
  margin-bottom: 12px;
}

.docs-content code {
  background: var(--bg-2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--accent);
}

.docs-content pre {
  background: #0b1220;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  overflow-x: auto;
  font-size: 12px;
  line-height: 1.6;
  font-family: var(--font-mono);
  color: #94a3b8;
  margin: 12px 0;
}

/* World map placeholder */
.world-map-placeholder {
  height: 300px;
  background: var(--bg-2);
  border-radius: 8px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.world-map-dots {
  position: absolute;
  width: 100%;
  height: 100%;
}

.map-dot {
  position: absolute;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.5); }
}

/* Supplier map small */
.supplier-map-small {
  height: 200px;
  background: var(--bg-2);
  border-radius: 8px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
}

/* Word cloud */
.word-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.word-cloud span {
  font-weight: 700;
  color: var(--text-1);
  cursor: pointer;
  transition: all 0.2s;
}
.word-cloud span:hover { color: var(--accent); }

/* Sim window */
.sim-window {
  background: #0b1220;
  border-radius: 8px;
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}

.sim-canvas {
  width: 100%;
  height: 100%;
  position: relative;
}

.sim-robot {
  position: absolute;
  bottom: 30%;
  left: 30%;
  width: 40px;
  height: 60px;
  background: var(--accent);
  border-radius: 4px;
  animation: robotMove 4s ease-in-out infinite;
}

@keyframes robotMove {
  0%, 100% { left: 30%; transform: translateY(0); }
  50% { left: 60%; transform: translateY(-20px); }
}

.sim-controls {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* === Settings === */
.settings-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
}

.settings-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-0);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.settings-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.settings-item:last-child { border-bottom: none; }

.settings-item-label { font-size: 14px; color: var(--text-1); }
.settings-item-desc { font-size: 12px; color: var(--text-3); margin-top: 2px; }

.toggle {
  position: relative;
  width: 44px; height: 24px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.toggle.active { background: var(--accent); border-color: var(--accent); }
.toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: all 0.2s;
}
.toggle.active::after { left: 22px; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(140,170,210,0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(140,170,210,0.4); }

/* Responsive */
@media (max-width: 1200px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-metrics-grid { grid-template-columns: repeat(3, 1fr); }
  .supplier-dashboard-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-bar { grid-template-columns: repeat(4, 1fr); }
  .scenes-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .product-detail-layout { grid-template-columns: 1fr; }
  .ai-chat-layout { grid-template-columns: 1fr; height: auto; }
  .ai-chat-sidebar { display: none; }
  .market-stats-bar { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid, .dev-metrics { grid-template-columns: repeat(2, 1fr); }
  .dashboard-row, .admin-charts-row { grid-template-columns: 1fr; }
  .services-tab-bar { flex-wrap: wrap; }
  .services-tab { flex: none; padding: 10px 14px; font-size: 12px; }
  .service-card-grid, .rental-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .front-header-inner { padding: 0 16px; height: 56px; gap: 12px; }
  .front-nav { display: none; }
  .logo-sub { display: none; }
  .lang-switch { display: none; }
  .currency-switch { display: none; }
  .products-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .categories-bar { grid-template-columns: repeat(2, 1fr); }
  .scenes-grid { grid-template-columns: repeat(2, 1fr); }
  .page-section { padding: 20px 16px; }
  .market-hero { padding: 28px 20px; min-height: 200px; }
  .market-hero h1 { font-size: 24px; }
  .admin-metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .supplier-dashboard-grid { grid-template-columns: 1fr; }
}

/* 新增 reveal 动画（保留原策划页用） */
.reveal { opacity: 1; }

/* ========== Commercial Upgrade Styles ========== */

/* 信任保障条 */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  background: linear-gradient(135deg, rgba(56,189,248,0.08), rgba(129,140,248,0.08));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 24px;
  margin-bottom: 32px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 12px;
  border-right: 1px solid var(--line);
}
.trust-item:last-child { border-right: none; }
.trust-icon { font-size: 24px; }
.trust-text { font-size: 14px; font-weight: 600; color: var(--text-0); }
.trust-desc { font-size: 12px; color: var(--text-3); }

/* 平台服务入口 */
.service-entries {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
.service-entry-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.service-entry-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.service-entry-icon { font-size: 28px; margin-bottom: 8px; }
.service-entry-name { font-size: 13px; font-weight: 600; color: var(--text-0); margin-bottom: 2px; }
.service-entry-desc { font-size: 11px; color: var(--text-3); }

/* 广告标签 */
.ad-label {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* 产品详情-阶梯价 */
.tiered-pricing {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
  gap: 6px;
}
.tier-price-item {
  font-size: 12px;
  color: var(--text-2);
  background: var(--bg-2);
  padding: 2px 8px;
  border-radius: 4px;
}
.tier-price-item em {
  font-style: normal;
  color: var(--gold);
  font-weight: 600;
  margin-left: 2px;
}

/* 价格透明展示 */
.price-breakdown {
  background: var(--bg-2);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 12px 0;
}
.price-breakdown-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 13px;
  color: var(--text-2);
}
.price-breakdown-row.total {
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 8px;
  font-weight: 700;
  color: var(--text-0);
  font-size: 15px;
}
.fee-hint {
  font-size: 11px;
  color: var(--text-3);
  margin-left: 6px;
  cursor: help;
}

/* 贸易保障 */
.trade-guarantee {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 12px 0;
  flex-wrap: wrap;
}
.guarantee-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-1);
}
.guarantee-icon { font-size: 14px; }

/* 购买Tab */
.buy-tabs {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin: 16px 0;
}
.buy-tab-headers {
  display: flex;
  background: var(--bg-2);
}
.buy-tab-btn {
  flex: 1;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.buy-tab-btn.active {
  color: var(--accent);
  background: var(--bg-1);
  border-bottom-color: var(--accent);
}
.buy-tab-body { padding: 16px; }

/* 表单行内 */
.form-inline-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.qty-selector button {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg-2);
  cursor: pointer;
  font-size: 16px;
  color: var(--text-1);
}
.qty-selector span {
  width: 48px;
  text-align: center;
  font-weight: 600;
}

/* 搭配推荐 */
.bundle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.bundle-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}
.bundle-card > div:first-child { margin-bottom: 8px; }
.bundle-name { font-size: 13px; font-weight: 600; color: var(--text-0); margin: 4px 0; }
.bundle-category { font-size: 11px; color: var(--text-3); }
.bundle-price { font-size: 15px; font-weight: 700; color: var(--accent); margin: 6px 0; }

/* AI选型助手浮动按钮 */
.ai-advisor-fab {
  position: fixed;
  right: 24px;
  bottom: 80px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  color: #fff;
  padding: 12px 18px;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(56,189,248,0.3);
  z-index: 100;
  font-weight: 600;
  font-size: 13px;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.ai-fab-icon { font-size: 18px; }

/* AI适配度 */
.fit-score {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}
.fit-score-num {
  font-size: 36px;
  font-weight: 800;
  color: #34d399;
  line-height: 1;
}
.fit-criteria-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 3px 0;
}

/* 订单详情 */
.order-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.order-detail-header h2 { font-size: 20px; margin-bottom: 8px; }
.order-detail-status { display: flex; align-items: center; }

/* 付款进度 */
.payment-progress {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 20px 0;
}
.progress-step {
  flex: 1;
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.progress-step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-3);
  z-index: 2;
  position: relative;
  font-size: 14px;
}
.progress-step.done .progress-step-dot {
  background: #34d399;
  border-color: #34d399;
  color: #fff;
}
.progress-step.current .progress-step-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(56,189,248,0.2);
}
.progress-step-line {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--line);
  z-index: 1;
}
.progress-step.done .progress-step-line, .progress-step.current .progress-step-line {
  background: #34d399;
}
.progress-step-content { margin-top: 8px; }
.progress-step-title { font-size: 12px; font-weight: 600; color: var(--text-0); }
.progress-step-desc { font-size: 11px; color: var(--text-3); margin-top: 2px; max-width: 120px; }
.progress-step-time { font-size: 11px; color: var(--text-3); margin-top: 2px; }

/* 物流时间轴 */
.logistics-timeline { padding: 8px 0; }
.logistics-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  position: relative;
}
.logistics-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--line);
  margin-top: 4px;
  flex-shrink: 0;
}
.logistics-item.done .logistics-dot { background: #34d399; }
.logistics-item.current .logistics-dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(56,189,248,0.2);
}
.logistics-status { font-size: 14px; font-weight: 600; color: var(--text-0); }
.logistics-item:not(.done) .logistics-status { color: var(--text-2); }
.logistics-location { font-size: 12px; color: var(--text-2); margin: 2px 0; }
.logistics-time { font-size: 12px; color: var(--text-3); }

/* 订单条目 */
.order-items { font-size: 14px; }
.order-item-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-weight: 500;
}
.order-item-amount { font-weight: 600; }
.order-fee-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-2);
}
.order-total-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0 0 0;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  font-weight: 700;
  font-size: 16px;
}
.order-total-amount { color: var(--accent); }

/* 售后推荐 */
.after-sale-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.after-sale-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.after-sale-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.after-sale-icon { font-size: 28px; margin-bottom: 8px; }
.after-sale-title { font-size: 13px; font-weight: 600; color: var(--text-0); }
.after-sale-desc { font-size: 11px; color: var(--text-3); margin: 4px 0; }
.after-sale-price { font-size: 14px; font-weight: 700; color: var(--accent); }

/* 我的机器人 */
.myrobots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.myrobot-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.myrobot-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.myrobot-status {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}
.myrobot-serial { font-size: 11px; color: var(--text-3); font-family: monospace; }
.myrobot-card-body {
  padding: 16px;
  display: flex;
  gap: 12px;
}
.myrobot-info { flex: 1; }
.myrobot-name { font-size: 15px; font-weight: 700; color: var(--text-0); }
.myrobot-model { font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.myrobot-meta { font-size: 12px; color: var(--text-2); margin-bottom: 4px; }
.myrobot-skills { margin-top: 8px; font-size: 12px; }
.meta-label { color: var(--text-3); margin-right: 4px; }
.skill-tag-mini {
  display: inline-block;
  background: rgba(129,140,248,0.15);
  color: #a78bfa;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 4px;
  margin-bottom: 2px;
}
.myrobot-card-actions {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
}

/* 买家仪表盘 */
.quick-stats-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.quick-stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.quick-stat-card:hover { border-color: var(--accent); }
.quick-stat-num { font-size: 28px; font-weight: 800; }
.quick-stat-label { font-size: 12px; color: var(--text-2); margin-top: 4px; }

.order-list-mini .order-mini-item,
.rfq-list-mini .rfq-mini-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.order-mini-product { font-weight: 600; color: var(--text-0); }
.order-mini-meta { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.order-mini-amount { font-weight: 700; color: var(--accent); text-align: right; }
.order-mini-status { text-align: right; margin-top: 4px; }
.rfq-mini-title { font-weight: 600; color: var(--text-0); margin-bottom: 4px; }
.rfq-mini-meta { font-size: 12px; color: var(--text-3); display: flex; gap: 10px; }
.rfq-mini-quotes { color: var(--accent); font-weight: 600; }

/* RFQ详情 */
.rfq-detail-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 20px;
  margin-bottom: 20px;
}
.rfq-detail-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.rfq-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 8px;
}
.rfq-detail-desc { font-size: 14px; color: var(--text-1); line-height: 1.6; }
.rfq-quote-count strong { font-size: 28px; color: var(--accent); }
.rfq-quote-count span { color: var(--text-2); margin-left: 4px; }

/* 报价列表 */
.quotes-list { display: flex; flex-direction: column; gap: 12px; }
.quote-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
}
.quote-card:hover, .quote-card.selected {
  border-color: var(--accent);
  background: rgba(56,189,248,0.03);
}
.quote-card.selected { box-shadow: 0 0 0 2px rgba(56,189,248,0.2); }
.quote-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.quote-supplier { font-size: 16px; font-weight: 700; color: var(--text-0); }
.quote-supplier-meta { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.quote-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  text-align: right;
}
.quote-price-unit { font-size: 13px; font-weight: 500; color: var(--text-3); }
.quote-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}
.quote-info-label { font-size: 11px; color: var(--text-3); margin-bottom: 2px; }
.quote-info-value { font-size: 14px; font-weight: 600; color: var(--text-0); }
.quote-notes {
  background: var(--bg-2);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-1);
  line-height: 1.6;
}
.quote-notes p { margin: 0; }
.quote-card-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
}

/* AI比价分析 */
.ai-compare-summary {
  background: linear-gradient(135deg, rgba(56,189,248,0.1), rgba(129,140,248,0.1));
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}
.ai-compare-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 8px;
}
.ai-compare-summary h4 { margin: 0 0 8px 0; font-size: 16px; }
.ai-compare-summary p { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.6; }
.ai-compare-table { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.ai-compare-row {
  display: grid;
  grid-template-columns: 100px repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}
.ai-compare-row:last-child { border-bottom: none; }
.ai-compare-row.header {
  background: var(--bg-2);
  font-weight: 600;
  font-size: 12px;
  color: var(--text-1);
}
.ai-compare-row > div {
  padding: 8px 12px;
  font-size: 13px;
  text-align: center;
}
.ai-compare-label { text-align: left !important; color: var(--text-2); }
.ai-compare-row .highlight { background: rgba(52,211,153,0.08); color: #34d399; font-weight: 600; }

/* 服务商详情 */
.service-detail-hero {
  display: flex;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.service-detail-avatar {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}
.service-detail-name { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.service-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 12px;
}
.service-detail-desc { font-size: 14px; color: var(--text-1); line-height: 1.6; margin: 0; }

.service-price-list { display: flex; flex-direction: column; gap: 8px; }
.service-price-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.service-price-item:last-child { border-bottom: none; }
.service-price-name { font-weight: 600; color: var(--text-0); }
.service-price-desc { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.service-price-value { font-weight: 700; color: var(--accent); }

/* 评价 */
.review-list { display: flex; flex-direction: column; gap: 16px; }
.review-item { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.review-item:last-child { border-bottom: none; }
.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.review-user { font-weight: 600; color: var(--text-0); font-size: 14px; }
.review-time { font-size: 12px; color: var(--text-3); margin-left: auto; }
.review-content { font-size: 13px; color: var(--text-1); line-height: 1.6; margin: 0; }
.review-reply {
  background: var(--bg-2);
  border-radius: 6px;
  padding: 10px 12px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-2);
}

/* 技能详情 */
.skill-detail-hero {
  display: flex;
  gap: 24px;
  background: linear-gradient(135deg, rgba(129,140,248,0.08), rgba(56,189,248,0.08));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.skill-detail-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: linear-gradient(135deg, #a78bfa, #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.skill-detail-title { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.skill-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 12px;
}
.skill-detail-desc { font-size: 14px; color: var(--text-1); line-height: 1.6; margin: 0; }
.skill-detail-buy {
  min-width: 200px;
  text-align: center;
}
.pricing-toggle {
  display: flex;
  background: var(--bg-2);
  border-radius: 6px;
  padding: 2px;
  margin-bottom: 12px;
}
.pricing-btn {
  flex: 1;
  padding: 6px 12px;
  border: none;
  background: none;
  font-size: 12px;
  color: var(--text-2);
  cursor: pointer;
  border-radius: 4px;
  font-weight: 500;
}
.pricing-btn.active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.skill-detail-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
}
.revenue-transparent {
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 12px;
}

.compatibility-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.version-list { display: flex; flex-direction: column; gap: 8px; }
.version-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.version-item:last-child { border-bottom: none; }
.version-tag {
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
}

/* 安装流程 */
.robot-select-list { display: flex; flex-direction: column; gap: 8px; }
.robot-select-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.robot-select-item:hover { border-color: var(--accent); }
.install-progress { margin-top: 16px; }
.install-progress-bar {
  height: 6px;
  background: var(--bg-2);
  border-radius: 3px;
  overflow: hidden;
}
.install-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  animation: progress 2s ease-out forwards;
}
@keyframes progress {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* 租赁结算 */
.rental-duration-select {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.duration-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}
.duration-btn:hover { border-color: var(--accent); }
.duration-btn.active {
  border-color: var(--accent);
  background: rgba(56,189,248,0.08);
}
.duration-label { font-size: 13px; color: var(--text-2); margin-bottom: 4px; }
.duration-price { font-size: 18px; font-weight: 700; color: var(--text-0); }
.duration-btn.active .duration-price { color: var(--accent); }

.addon-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.addon-item:last-child { border-bottom: none; }
.addon-item input { width: 16px; height: 16px; }
.addon-title { font-weight: 600; color: var(--text-0); }
.addon-desc { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.addon-price { margin-left: auto; font-weight: 700; color: var(--accent); }

.rent-to-buy p { font-size: 13px; color: var(--text-2); line-height: 1.6; margin: 0 0 12px 0; }

.sticky-summary { position: sticky; top: 20px; }
.rental-summary-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-1);
}
.rental-summary-divider {
  height: 1px;
  background: var(--line);
  margin: 8px 0;
}
.rental-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.rental-total-amount {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
}
.rental-total-hint { font-size: 12px; color: var(--text-3); text-align: center; margin-top: 8px; }

/* ========== Supplier Layout & Finance ========== */
.supplier-layout {
  display: flex;
  min-height: 100vh;
}
.supplier-sidebar {
  width: 240px;
  background: #0f172a;
  color: #cbd5e1;
  padding: 20px 0;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.supplier-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 20px;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid #1e293b;
  margin-bottom: 16px;
}
.supplier-shop-info {
  padding: 0 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #1e293b;
  margin-bottom: 16px;
}
.shop-avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #0f172a;
  font-size: 16px;
}
.shop-name { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.supplier-nav { padding: 0 8px; }
.supplier-nav-group { margin-bottom: 16px; }
.supplier-nav-group-title {
  font-size: 11px;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 600;
  padding: 0 12px 6px;
  letter-spacing: 0.5px;
}
.supplier-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: #94a3b8;
  transition: all 0.15s;
}
.supplier-nav-item:hover { background: #1e293b; color: #fff; }
.supplier-nav-item.active {
  background: rgba(52,211,153,0.15);
  color: #34d399;
}
.supplier-nav-icon { font-size: 16px; width: 20px; text-align: center; }

.supplier-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.supplier-topbar {
  height: 56px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.supplier-topbar-right { display: flex; align-items: center; gap: 16px; }
.supplier-user {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.supplier-content { padding: 24px; flex: 1; }

/* 财务概览 */
.finance-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.finance-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  position: relative;
}
.finance-card.primary {
  background: linear-gradient(135deg, rgba(56,189,248,0.15), rgba(129,140,248,0.15));
  border-color: rgba(56,189,248,0.3);
}
.finance-card-label { font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
.finance-card-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-0);
  margin-bottom: 8px;
}
.finance-card-value.green { color: #34d399; }
.finance-card-value.gold { color: var(--gold); }
.finance-card-hint { font-size: 12px; color: var(--text-3); }
.finance-card .btn { margin-top: 8px; }

/* 供应链金融 */
.supply-chain-finance {
  background: linear-gradient(135deg, rgba(251,191,36,0.08), rgba(251,146,60,0.08));
  border: 1px solid rgba(251,191,36,0.2);
  margin-bottom: 24px;
}
.scf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.scf-title { font-size: 18px; font-weight: 700; color: var(--text-0); }
.scf-desc { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.scf-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.scf-stat-label { font-size: 12px; color: var(--text-3); margin-bottom: 4px; }
.scf-stat-value { font-size: 20px; font-weight: 700; color: var(--gold); }
.scf-stat-value.green { color: #34d399; }

/* 收入趋势图 */
.revenue-chart-bars {
  display: flex;
  align-items: flex-end;
  height: 200px;
  gap: 24px;
  padding: 0 8px;
}
.revenue-bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  position: relative;
}
.revenue-bar {
  width: 24px;
  border-radius: 4px 4px 0 0;
  transition: all 0.3s;
}
.revenue-bar.revenue { background: linear-gradient(180deg, var(--accent), rgba(56,189,248,0.6)); }
.revenue-bar.commission { background: var(--gold); opacity: 0.7; height: 30% !important; width: 12px !important; }
.revenue-bar-label { margin-top: 8px; font-size: 11px; color: var(--text-3); }

/* 进度条 */
.progress-bar-mini {
  width: 80px;
  height: 4px;
  background: var(--bg-2);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}

/* 会员套餐 */
.membership-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.membership-plan {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  transition: all 0.3s;
}
.membership-plan:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); }
.membership-plan.popular {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(56,189,248,0.05), var(--surface));
}
.membership-plan.current { border-color: #34d399; }
.plan-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--gold));
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}
.plan-current-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #34d399;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 10px;
}
.plan-name { font-size: 20px; font-weight: 700; color: var(--text-0); margin-bottom: 4px; }
.plan-highlights { font-size: 12px; color: var(--text-3); margin-bottom: 16px; }
.plan-price {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 16px;
}
.plan-period { font-size: 14px; font-weight: 500; color: var(--text-2); }
.plan-features { list-style: none; padding: 0; margin: 0 0 20px 0; }
.plan-features li {
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-1);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.check-icon { color: #34d399; font-weight: 700; }

.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td {
  padding: 12px 16px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.compare-table th { background: var(--bg-2); font-weight: 600; }
.compare-table th.highlight, .compare-table td.highlight {
  background: rgba(56,189,248,0.05);
  color: var(--accent);
}
.compare-table .compare-feature { text-align: left; color: var(--text-1); font-weight: 500; }

/* 入驻流程 */
.onboarding-panel { margin-bottom: 24px; }
.onboarding-progress {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 20px 0;
}
.onboard-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}
.onboard-step-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-3);
  margin-bottom: 8px;
}
.onboard-step.done .onboard-step-dot { background: #34d399; border-color: #34d399; color: #fff; }
.onboard-step.current .onboard-step-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(56,189,248,0.2);
}
.onboard-step-title { font-size: 13px; font-weight: 600; color: var(--text-0); }
.onboard-step-desc { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.onboard-step-line {
  position: absolute;
  top: 20px;
  left: 60%;
  width: 80%;
  height: 2px;
  background: var(--line);
  z-index: -1;
}
.onboard-step.done .onboard-step-line { background: #34d399; }

.cert-levels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cert-level-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}
.cert-level-title { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.cert-basic .cert-level-title { color: var(--text-1); }
.cert-silver .cert-level-title { color: #94a3b8; }
.cert-gold .cert-level-title { color: var(--gold); }
.cert-level-features { list-style: none; padding: 0; text-align: left; margin-bottom: 16px; }
.cert-level-features li {
  font-size: 13px;
  color: var(--text-1);
  padding: 4px 0;
}
.cert-level-req { font-size: 12px; color: var(--text-2); text-align: left; padding: 8px 0; border-top: 1px solid var(--line); }
.cert-level-time { font-size: 12px; color: var(--text-3); margin-top: 8px; }

/* 关键词竞价 */
.keyword-bid-list { display: flex; flex-direction: column; gap: 12px; }
.keyword-bid-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.kw-keyword { font-weight: 600; width: 150px; }
.kw-stats { flex: 1; font-size: 12px; color: var(--text-2); display: flex; gap: 16px; }
.kw-bid { display: flex; align-items: center; gap: 12px; }

/* ========== Admin Commercial ========== */
/* 收入构成 */
.revenue-breakdown-chart {
  display: flex;
  gap: 24px;
  align-items: center;
}
.revenue-pie-visual { flex-shrink: 0; display: flex; justify-content: center; align-items: center; }
.revenue-legend { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.revenue-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.legend-label { flex: 1; color: var(--text-1); }
.legend-value { font-weight: 600; color: var(--text-0); }
.legend-row { font-size: 12px; color: var(--text-2); display: flex; gap: 12px; align-items: center; }

/* 收入趋势堆叠 */
.revenue-trend-chart { display: flex; height: 250px; gap: 8px; }
.trend-y-axis {
  width: 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-3);
  text-align: right;
  padding-right: 8px;
  border-right: 1px solid var(--line);
}
.trend-bars-container {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 0 8px;
}
.trend-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}
.trend-stack {
  width: 100%;
  max-width: 48px;
  display: flex;
  flex-direction: column-reverse;
  border-radius: 4px 4px 0 0;
  overflow: hidden;
}
.stack-segment { width: 100%; }
.stack-segment.commission { background: #38bdf8; }
.stack-segment.membership { background: #818cf8; }
.stack-segment.skill { background: #34d399; }
.stack-segment.ads { background: #fbbf24; }
.stack-segment.service { background: #f472b6; }
.stack-segment.finance { background: #fb923c; }
.trend-x-label { margin-top: 8px; font-size: 11px; color: var(--text-3); }

/* 商业模式画布 */
.bmc-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.bmc-col { display: flex; flex-direction: column; gap: 12px; }
.bmc-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  flex: 1;
}
.bmc-block-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-0);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.bmc-list { list-style: none; padding: 0; margin: 0; }
.bmc-list li {
  font-size: 12px;
  color: var(--text-1);
  padding: 3px 0;
  line-height: 1.5;
  padding-left: 14px;
  position: relative;
}
.bmc-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
}
.bmc-value-prop {
  background: linear-gradient(135deg, rgba(56,189,248,0.1), rgba(129,140,248,0.1));
  border-color: rgba(56,189,248,0.3);
}
.bmc-bottom { display: flex; gap: 12px; }
.bmc-wide { flex: 1; }
.bmc-cost-list { display: flex; flex-wrap: wrap; gap: 8px; }
.bmc-cost-list li {
  background: var(--bg-2);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  padding-left: 22px;
}

.revenue-streams-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.revenue-stream-card {
  background: var(--bg-2);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  border-left: 3px solid var(--accent);
}
.revenue-stream-pct { font-size: 20px; font-weight: 800; margin-bottom: 2px; }
.revenue-stream-name { font-size: 12px; color: var(--text-0); font-weight: 600; margin-bottom: 2px; }
.revenue-stream-amount { font-size: 11px; color: var(--text-3); }

/* 四方闭环 */
.four-party-loop {
  position: relative;
  height: 400px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 40px;
  padding: 20px;
}
.fparty-party {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  position: relative;
}
.fparty-party.buyer { grid-column: 1; grid-row: 1; border-color: rgba(56,189,248,0.4); }
.fparty-party.supplier { grid-column: 2; grid-row: 1; border-color: rgba(52,211,153,0.4); }
.fparty-party.dev { grid-column: 2; grid-row: 2; border-color: rgba(167,139,250,0.4); }
.fparty-party.platform { grid-column: 1; grid-row: 2; border-color: rgba(251,191,36,0.4); }
.fparty-icon { font-size: 32px; margin-bottom: 8px; }
.fparty-name { font-size: 18px; font-weight: 700; color: var(--text-0); }
.fparty-value { font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.fparty-party ul { list-style: none; padding: 0; text-align: left; margin: 0; }
.fparty-party li { font-size: 12px; color: var(--text-2); padding: 2px 0; }
.fparty-arrow {
  position: absolute;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  background: var(--bg-1);
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  z-index: 2;
}
.fparty-arrow.br { top: 25%; left: 50%; transform: translate(-50%, -50%); }
.fparty-arrow.sd { top: 50%; right: 8%; transform: translateY(-50%); }
.fparty-arrow.dp { bottom: 25%; left: 50%; transform: translate(-50%, 50%); }
.fparty-arrow.pb { top: 50%; left: 8%; transform: translateY(-50%); }

/* 单位经济模型 */
.unit-economics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.unit-econ-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}
.unit-econ-label { font-size: 12px; color: var(--text-2); margin-bottom: 8px; }
.unit-econ-value { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.unit-econ-note { font-size: 11px; color: var(--text-3); }

/* 三阶段预测 */
.forecast-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.forecast-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  position: relative;
}
.forecast-year {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-0);
  margin-bottom: 4px;
}
.forecast-gmv { font-size: 14px; color: var(--text-2); margin-bottom: 2px; }
.forecast-revenue { font-size: 24px; font-weight: 800; color: var(--accent); margin-bottom: 16px; }
.forecast-breakdown { margin-bottom: 16px; }
.forecast-bd-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 3px 0;
  color: var(--text-2);
}
.forecast-bar {
  height: 8px;
  background: var(--bg-2);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}
.forecast-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: 4px;
  transition: width 0.5s;
}
.forecast-tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 10px;
}

/* 开发者收益 */
.split-explain {
  margin-bottom: 24px;
}
.split-visual { margin-bottom: 20px; }
.split-bar {
  display: flex;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
}
.split-dev {
  background: linear-gradient(90deg, #34d399, #10b981);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}
.split-platform {
  background: linear-gradient(90deg, #818cf8, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.split-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.split-details strong { display: block; margin-bottom: 4px; color: var(--text-0); }
.split-details p { font-size: 13px; color: var(--text-2); margin: 0; line-height: 1.6; }

.earnings-chart {
  display: flex;
  align-items: flex-end;
  height: 220px;
  gap: 20px;
  padding: 0 8px;
}
.earnings-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; }
.earnings-bars {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  height: 180px;
  margin-bottom: 8px;
}
.ebar {
  width: 24px;
  border-radius: 4px 4px 0 0;
  position: relative;
}
.ebar.revenue { background: linear-gradient(180deg, #34d399, #10b981); }
.ebar.downloads { background: linear-gradient(180deg, #818cf8, #6366f1); width: 12px; }
.ebar-value {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--text-2);
  white-space: nowrap;
}
.ebar-label { font-size: 11px; color: var(--text-3); }

/* 广告管理-关键词卡片 */
.keyword-rank-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.kw-rank-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
}
.kw-rank-position {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 6px;
}
.kw-rank-keyword { font-size: 16px; font-weight: 700; color: var(--text-0); margin-bottom: 8px; }
.kw-rank-stats { display: flex; gap: 12px; font-size: 12px; color: var(--text-3); margin-bottom: 12px; }
.kw-rank-bids { display: flex; justify-content: space-between; }
.kw-rank-bids > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
}

/* 响应式补充 */
@media (max-width: 1024px) {
  .trust-bar { grid-template-columns: repeat(3, 1fr); }
  .service-entries { grid-template-columns: repeat(4, 1fr); }
  .bundle-grid { grid-template-columns: repeat(2, 1fr); }
  .after-sale-grid { grid-template-columns: repeat(2, 1fr); }
  .myrobots-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-stats-row { grid-template-columns: repeat(3, 1fr); }
  .finance-overview-grid { grid-template-columns: repeat(2, 1fr); }
  .membership-plans { grid-template-columns: 1fr; }
  .cert-levels-grid { grid-template-columns: 1fr; }
  .unit-economics-grid { grid-template-columns: repeat(2, 1fr); }
  .forecast-grid { grid-template-columns: 1fr; }
  .revenue-streams-grid { grid-template-columns: repeat(2, 1fr); }
  .keyword-rank-grid { grid-template-columns: repeat(2, 1fr); }
  .bmc-grid { grid-template-columns: 1fr; }
  .bmc-bottom { flex-direction: column; }
  .four-party-loop { height: auto; grid-template-columns: 1fr; gap: 16px; }
  .fparty-arrow { display: none; }
}

/* ============================================================
   Immersive 3D Hero Section
   ============================================================ */

.hero3d-section {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 32px;
  min-height: 620px;
  background: linear-gradient(180deg, #060912 0%, #0a1220 60%, #0f1a2e 100%);
  border: 1px solid var(--line);
}

/* Background gradient auras */
.hero3d-bg-aura {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 600px 400px at 20% 30%, rgba(56, 189, 248, 0.12), transparent 70%),
    radial-gradient(ellipse 500px 500px at 80% 50%, rgba(139, 92, 246, 0.1), transparent 70%),
    radial-gradient(ellipse 400px 300px at 60% 90%, rgba(251, 191, 36, 0.06), transparent 70%);
  animation: auraFlow 12s ease-in-out infinite alternate;
}

@keyframes auraFlow {
  0% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0.9; transform: scale(1.02) translate(2%, 1%); }
}

/* Engineering grid */
.hero3d-bg-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

/* Scanline effect */
.hero3d-scanline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(56, 189, 248, 0.015) 2px,
    rgba(56, 189, 248, 0.015) 4px
  );
  mix-blend-mode: screen;
  opacity: 0.5;
}

/* Mouse follower glow */
.hero3d-mouse-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 5;
  transition: opacity 0.3s;
  opacity: 0;
}
.hero3d-section:hover .hero3d-mouse-glow { opacity: 1; }

/* Main content layout */
.hero3d-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  padding: 56px 48px 0;
  min-height: 520px;
}

/* Left text column */
.hero3d-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 20px 0;
}

.hero3d-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  padding: 6px 14px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 20px;
  width: fit-content;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.hero3d-tag-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero3d-title {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--text-0);
  margin: 0;
  letter-spacing: -0.02em;
}

.hero3d-title-line {
  display: block;
}

.hero3d-title-gradient {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  animation: shine 4s ease-in-out infinite;
  background-size: 200% 200%;
}

@keyframes shine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero3d-subtitle {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 480px;
  margin: 0;
}

/* Glass card style */
.glass-card {
  background: rgba(20, 28, 46, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(140, 170, 210, 0.15);
  border-radius: 12px;
}

/* Search bar */
.hero3d-search {
  display: flex;
  max-width: 520px;
  padding: 6px;
  gap: 6px;
}

.hero3d-search input {
  flex: 1;
  padding: 12px 16px;
  font-size: 14px;
  background: rgba(15, 21, 34, 0.6);
  border: 1px solid rgba(140, 170, 210, 0.12);
  border-radius: 8px;
  color: var(--text-0);
  font-family: inherit;
  transition: all 0.2s;
}
.hero3d-search input:focus {
  outline: none;
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.hero3d-search input::placeholder { color: var(--text-3); }

.hero3d-search-btn {
  padding: 0 24px;
  background: linear-gradient(135deg, var(--accent), #22d3ee);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  white-space: nowrap;
}
.hero3d-search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.4);
}

/* CTA buttons */
.hero3d-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-glass-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.8), rgba(34, 211, 238, 0.6));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(125, 211, 252, 0.4);
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.25);
}

.btn-glass-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.4);
  border-color: rgba(125, 211, 252, 0.7);
}

.btn-glass-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: skewX(-20deg);
  animation: shineSweep 3.5s ease-in-out infinite;
}

@keyframes shineSweep {
  0% { left: -100%; }
  50%, 100% { left: 150%; }
}

.btn-glass-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-1);
  background: rgba(26, 36, 56, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(140, 170, 210, 0.2);
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s ease;
}

.btn-glass-secondary:hover {
  color: var(--accent);
  border-color: var(--accent-line);
  background: rgba(56, 189, 248, 0.08);
  transform: translateY(-2px);
}

/* Trust badges */
.hero3d-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 4px;
}

.hero3d-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-3);
}

.hero3d-trust-dot {
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

/* Right column: 3D canvas area */
.hero3d-right {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Shape type tabs */
.hero3d-shape-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(15, 21, 34, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 10px;
  z-index: 10;
}

.shape-tab {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.shape-tab:hover {
  color: var(--text-0);
  background: rgba(255, 255, 255, 0.04);
}

.shape-tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #22d3ee);
  box-shadow: 0 2px 12px rgba(56, 189, 248, 0.3);
}

/* Canvas container */
.hero3d-canvas-container {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 380px;
}

.hero3d-canvas-wrap {
  position: absolute;
  inset: 0;
}

.hero3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}

/* Hotspot detail panel */
.hero3d-hs-panel {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 260px;
  padding: 16px;
  z-index: 10;
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.hero3d-hs-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.hero3d-hs-dot {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--gold);
  flex-shrink: 0;
}

.hero3d-hs-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-0);
  margin-bottom: 2px;
}

.hero3d-hs-desc {
  font-size: 12px;
  color: var(--gold);
  font-weight: 500;
}

.hero3d-hs-detail {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0 0 14px 0;
}

.hero3d-hs-actions {
  display: flex;
  gap: 8px;
}

.btn-sm {
  padding: 6px 12px !important;
  font-size: 12px !important;
}

/* Scroll hint */
.hero3d-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-3);
  font-size: 11px;
  margin-top: 8px;
  animation: floatY 2s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.hero3d-mouse-icon {
  width: 22px;
  height: 34px;
  border: 2px solid var(--text-3);
  border-radius: 11px;
  position: relative;
}

.hero3d-mouse-wheel {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 6px;
  background: var(--text-3);
  border-radius: 2px;
  animation: wheelScroll 1.8s ease-in-out infinite;
}

@keyframes wheelScroll {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* Stats bar */
.hero3d-stats-bar {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 0 48px 32px;
  margin-top: -40px;
}

.hero3d-stat-card {
  padding: 20px 24px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: default;
}

.hero3d-stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.15);
}

.hero3d-stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--text-0);
  line-height: 1.1;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #e0f2fe, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero3d-stat-label {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
}

/* Reveal animations for hero elements */
.reveal-hero {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(8px);
  animation: revealHero 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.reveal-hero.delay-1 { animation-delay: 0.1s; }
.reveal-hero.delay-2 { animation-delay: 0.25s; }
.reveal-hero.delay-3 { animation-delay: 0.4s; }
.reveal-hero.delay-4 { animation-delay: 0.55s; }
.reveal-hero.delay-5 { animation-delay: 0.7s; }

@keyframes revealHero {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero3d-bg-aura { animation: none; }
  .hero3d-title-gradient { animation: none; }
  .btn-glass-shine { animation: none; }
  .reveal-hero {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }
}

/* Responsive hero */
@media (max-width: 1024px) {
  .hero3d-content {
    grid-template-columns: 1fr;
    padding: 40px 24px 0;
    gap: 20px;
    min-height: auto;
  }
  .hero3d-title { font-size: 38px; }
  .hero3d-canvas-container { min-height: 340px; }
  .hero3d-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 24px 24px;
    margin-top: 0;
  }
  .hero3d-stat-num { font-size: 26px; }
  .hero3d-section { min-height: auto; }
}

@media (max-width: 640px) {
  .hero3d-content { padding: 28px 16px 0; }
  .hero3d-title { font-size: 28px; }
  .hero3d-subtitle { font-size: 14px; }
  .hero3d-ctas { flex-direction: column; }
  .btn-glass-primary, .btn-glass-secondary { width: 100%; }
  .shape-tab { padding: 6px 10px; font-size: 12px; }
  .hero3d-canvas-container { min-height: 280px; }
  .hero3d-hs-panel {
    position: absolute;
    top: auto;
    bottom: 16px;
    right: 8px;
    left: 8px;
    width: auto;
  }
  .hero3d-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 16px 16px;
  }
  .hero3d-stat-card { padding: 14px 12px; }
  .hero3d-stat-num { font-size: 20px; }
}
