/* 许峰声呐AI工作室 · 正视 2.5D 立体江畔码头装备集市（文字 100% 水平清晰 + 立体雨棚展台） */
:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-subtle: #f7f8fa;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --ink: #111827;
  --ink-secondary: #4b5563;
  --ink-muted: #6b7280;
  --primary: #111827;
  --primary-fg: #ffffff;
  --alert: #c8322b;
  --confirm: #15803d;
  --amber: #b45309;
  --blue: #1d4ed8;
  --shadow-md: 0 14px 36px rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; min-height: 100%;
  background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
  font-size: 13.5px; -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
.tabular { font-variant-numeric: tabular-nums; }

/* 顶栏 */
.mkt-header {
  height: 60px; padding: 0 24px; background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 35;
}
.mkt-header-inner {
  max-width: 1360px; height: 100%; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.head-left, .head-right { display: flex; align-items: center; gap: 10px; }
.mkt-logo { height: 26px; width: auto; display: block; object-fit: contain; }
.mkt-title-pill {
  font-size: 12px; font-weight: 600; color: var(--ink-secondary);
  background: var(--surface-subtle); border: 1px solid var(--border);
  padding: 3px 10px; border-radius: 999px;
}

.btn {
  border: 1px solid transparent; border-radius: 7px; padding: 7px 14px;
  font-size: 12.5px; font-weight: 600; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: background 0.14s, border-color 0.14s; white-space: nowrap;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover:not(:disabled) { background: #1f2937; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-secondary:hover:not(:disabled) { background: var(--surface-subtle); }
.btn-ghost { background: transparent; color: var(--ink-secondary); border-color: var(--border); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-subtle); color: var(--ink); }
.btn-danger { background: transparent; color: var(--alert); border-color: rgba(200, 50, 43, 0.35); }
.btn-danger:hover:not(:disabled) { background: rgba(200, 50, 43, 0.08); }
.btn-xs { padding: 4px 9px; font-size: 11.5px; border-radius: 5px; }

.view-switch {
  display: inline-flex; padding: 3px; border-radius: 8px;
  background: var(--surface-subtle); border: 1px solid var(--border);
}
.view-switch button {
  border: none; background: transparent; color: var(--ink-muted);
  padding: 5px 11px; border-radius: 5px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.view-switch button.active {
  background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

/* 主体 */
.mkt-main { max-width: 1360px; margin: 0 auto; padding: 18px 24px 56px; display: flex; flex-direction: column; gap: 14px; }

/* 醒目但克制的交易安全与风险提示横幅 */
.risk-banner {
  background: #fffbeb;
  border: 1px solid #f59e0b;
  border-left: 4px solid #b45309;
  border-radius: 9px;
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  color: #78350f;
  font-size: 12.5px;
  line-height: 1.6;
}
.risk-banner strong { color: #92400e; }
.risk-banner-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
  margin-top: 2px;
}

/* 筛选条 */
.filter-bar {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 16px; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.chip-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--border); background: var(--surface-subtle); color: var(--ink-secondary);
  padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 500; cursor: pointer;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); color: #ffffff; border-color: var(--ink); }
.filter-right { display: flex; align-items: center; gap: 8px; }
.filter-select, .filter-input {
  height: 32px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--ink); font-size: 12.5px;
}
.filter-input { width: 200px; }

/* =========================================================
   正视 2.5D 江畔码头立体集市（无斜歪文字 · 建筑纵深感）
   ========================================================= */
.iso-stage-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  background: #e9edf2;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

/* 顶部江景远山与微光江面天际线 */
@keyframes waterDrift {
  0% { background-position: 0 0; }
  100% { background-position: 140px 0; }
}
.iso-hud-top {
  position: relative; z-index: 4;
  padding: 18px 24px 26px;
  background:
    linear-gradient(180deg, rgba(15, 23, 38, 0.88) 0%, rgba(28, 44, 62, 0.82) 60%, rgba(44, 66, 86, 0.92) 100%);
  color: #f1f5f9;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  border-bottom: 6px solid #475569;
  box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.28);
}
.river-shimmer {
  position: absolute; left: 0; right: 0; top: 0; height: 92px; z-index: 5; pointer-events: none;
  opacity: 0.22;
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.35) 0 1px, transparent 1px 14px);
  animation: waterDrift 14s linear infinite;
}
.iso-hud-title { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.iso-hud-sub { font-size: 12px; color: #cbd5e1; font-weight: 400; }
.iso-legend { display: flex; align-items: center; gap: 14px; font-size: 11.5px; color: #e2e8f0; }
.lg-dot { width: 10px; height: 10px; border-radius: 2px; display: inline-block; margin-right: 5px; vertical-align: middle; }

/* 码头广场地面（浅灰水泥透视铺装 + 警示岸边线） */
.iso-viewport {
  position: relative; z-index: 3;
  padding: 24px 26px 34px;
  background:
    linear-gradient(90deg, rgba(148, 163, 184, 0.14) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(0deg, rgba(148, 163, 184, 0.14) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(180deg, #dde3eb 0%, #eef2f6 100%);
}
.pier-deck {
  width: 100%;
  position: relative;
}
.pier-edge-stripe {
  height: 7px; border-radius: 4px; margin-bottom: 22px;
  background: repeating-linear-gradient(90deg, #d97706 0 22px, #1e293b 22px 44px);
  opacity: 0.78;
}
.pier-water-label { display: none; }

/* 4行分区街道 × 3个2.5D立体摊位 */
.pier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 22px;
}
@media (max-width: 1024px) { .pier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pier-grid { grid-template-columns: 1fr; } }

/* 单个 2.5D 立体摊位（文字完全水平清晰！） */
.iso-stall {
  position: relative;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.iso-stall:hover {
  transform: translateY(-5px);
}
.iso-stall.dimmed { opacity: 0.25; }

/* 2.5D 立体摊位主体结构 */
.booth-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  filter: drop-shadow(0 12px 16px rgba(15, 23, 42, 0.16));
}

/* 1. 立体斜坡遮阳雨棚（梯形 2.5D 透视 + 帆布条纹） */
.booth-awning {
  position: relative;
  height: 40px;
  margin: 0 -4px;
  border-radius: 7px 7px 3px 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  color: #ffffff;
  box-shadow:
    inset 0 -7px 0 rgba(0, 0, 0, 0.22),
    0 5px 8px rgba(15, 23, 42, 0.22);
  z-index: 3;
}
.zone-sonar .booth-awning {
  background: repeating-linear-gradient(90deg, #1e3a5f 0 26px, #274a78 26px 52px);
}
.zone-rov .booth-awning {
  background: repeating-linear-gradient(90deg, #92400e 0 26px, #b45309 26px 52px);
}
.zone-boat .booth-awning {
  background: repeating-linear-gradient(90deg, #334155 0 26px, #475569 26px 52px);
}
.zone-diving .booth-awning {
  background: repeating-linear-gradient(90deg, #14532d 0 26px, #166534 26px 52px);
}

.booth-signboard {
  font-size: 13.5px; font-weight: 700; color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.booth-slot-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px; font-weight: 700;
  background: rgba(0, 0, 0, 0.32); padding: 2px 7px; border-radius: 4px;
  flex-shrink: 0;
}

/* 2. 摊位立柱与实体装备展台橱窗 */
.booth-interior {
  background: #ffffff;
  border-left: 5px solid #cbd5e1;
  border-right: 5px solid #cbd5e1;
  padding: 12px 13px 10px;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 98px;
}
.booth-photo {
  width: 92px; height: 74px; border-radius: 6px; object-fit: cover;
  background: #0c0e12; border: 1px solid #cbd5e1; display: block;
}
.booth-info { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.booth-item-title {
  font-size: 13px; font-weight: 600; color: #111827; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.booth-item-meta {
  font-size: 11.5px; color: #64748b;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 3. 2.5D 立体前展台柜台（含台面厚边 + 价格与交易方式） */
.booth-counter {
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
  border: 1px solid #cbd5e1;
  border-top: 3px solid #94a3b8;
  border-bottom: 5px solid #94a3b8;
  border-radius: 0 0 8px 8px;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.stall-price {
  font-size: 15px; font-weight: 700; color: var(--alert); font-variant-numeric: tabular-nums;
}
.stall-trade-tag {
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 5px;
  background: #ffffff; color: #334155; border: 1px solid #cbd5e1;
}
.stall-trade-tag.free {
  background: rgba(21, 128, 61, 0.12); color: #15803d; border-color: rgba(21, 128, 61, 0.3);
}

/* 空摊位（地面划定的码头虚线展位，点击直接摆摊） */
.booth-empty {
  height: 186px;
  border-radius: 9px;
  border: 2px dashed #94a3b8;
  background: rgba(255, 255, 255, 0.56);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #475569;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.iso-stall.empty:hover .booth-empty {
  background: #ffffff;
  border-color: #111827;
  color: #111827;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}
.empty-slot-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px; font-weight: 700;
  padding: 2px 9px; border-radius: 999px;
  background: #e2e8f0; color: #334155;
}
.empty-slot-cta { font-size: 13.5px; font-weight: 600; }
.empty-slot-hint { font-size: 11.5px; color: #64748b; }

/* 底部合规提示条 */
.iso-hud-foot {
  padding: 11px 22px; border-top: 1px solid #cbd5e1;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 11.5px; color: #475569; background: #ffffff;
}

.stall-tooltip { display: none !important; }

/* 列表视图网格 */
.list-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px;
}
.list-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; cursor: pointer; display: flex; flex-direction: column;
  transition: border-color 0.14s, transform 0.14s;
}
.list-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.list-thumb { aspect-ratio: 16 / 10; background: #0c0e12; position: relative; overflow: hidden; }
.list-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.list-badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(15, 23, 42, 0.85); color: #ffffff;
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 5px;
}
.list-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.list-title { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.list-price { font-size: 16px; font-weight: 700; color: var(--alert); font-variant-numeric: tabular-nums; }
.list-meta { font-size: 12px; color: var(--ink-muted); }
.list-foot {
  margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--ink-muted);
}

/* 弹窗 */
.modal { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.58); backdrop-filter: blur(3px); }
.modal-dialog {
  position: relative; z-index: 2; width: min(680px, 95vw); max-height: 90vh;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow-md);
}
.modal-dialog.wide { width: min(880px, 95vw); }
.modal-head {
  padding: 15px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-head h3 { margin: 0; font-size: 15.5px; font-weight: 600; }
.modal-body { padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }

.detail-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 20px; }
@media (max-width: 760px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-img-box {
  background: #0c0e12; border-radius: 8px; overflow: hidden; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.detail-img-box img { width: 100%; max-height: 400px; object-fit: contain; display: block; }

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .form-grid-2 { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 12px; font-weight: 500; color: var(--ink-secondary); }
.field input[type="text"], .field select, .field textarea {
  width: 100%; padding: 8px 11px; border: 1px solid var(--border-strong);
  border-radius: 7px; font-size: 13px; font-family: inherit; color: var(--ink); background: var(--surface);
}
.field textarea { min-height: 76px; resize: vertical; line-height: 1.55; }
.alert-err {
  padding: 9px 12px; border-radius: 7px; font-size: 12.5px;
  background: rgba(200, 50, 43, 0.08); color: var(--alert); border: 1px solid rgba(200, 50, 43, 0.26);
}
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 95;
  background: var(--ink); color: #ffffff; padding: 9px 18px; border-radius: 7px;
  font-size: 12.5px; font-weight: 500; box-shadow: var(--shadow-md);
}

/* 34 省与摊主实名主页互通微样式 */
.filter-right { flex-wrap: wrap; }
.booth-vendor-row {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  font-size: 11.5px; color: #475569; margin-top: 2px;
}
.booth-vendor-link {
  color: #1d4ed8; font-weight: 600; text-decoration: none; flex-shrink: 0;
}
.booth-vendor-link:hover { text-decoration: underline; }
.v-badge {
  display: inline-block; font-size: 10px; font-weight: 600;
  padding: 1px 5px; border-radius: 3px; vertical-align: middle; margin-left: 3px;
}
.v-badge-cert { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.v-badge-pro { background: #e0f2fe; color: #075985; border: 1px solid #bae6fd; }
.vendor-identity-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 13px; border-radius: 8px;
  background: var(--surface-subtle); border: 1px solid var(--border);
}
.vendor-avatar {
  width: 38px; height: 38px; border-radius: 8px; flex-shrink: 0;
  background: var(--ink); color: #ffffff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700;
}
.btn-my-prov-active {
  background: var(--ink) !important; color: #ffffff !important; border-color: var(--ink) !important;
}
