/* ============================================================
 *  算力货源平台 · 高级感视觉系统
 * ============================================================ */

:root {
  --ink: #0b1120;
  --ink-2: #1e293b;
  --ink-3: #475569;
  --ink-4: #94a3b8;
  --bg: #f4f5f9;
  --card: #ffffff;
  --brand: #4338ca;
  --brand-light: #6366f1;
  --brand-grad: linear-gradient(135deg, #4338ca 0%, #6366f1 55%, #818cf8 100%);
  --accent-gold: #c8a95b;
  --spot: #10b981;
  --spot-bg: #ecfdf5;
  --futures: #f59e0b;
  --futures-bg: #fffbeb;
  --rent: #2563eb;
  --rent-bg: #eff6ff;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow-card: 0 1px 3px rgba(11, 17, 32, 0.04), 0 4px 16px rgba(11, 17, 32, 0.06);
  --shadow-float: 0 8px 32px rgba(11, 17, 32, 0.12);
}

* {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "SF Pro Display",
    "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* ===================== 手机外壳 ===================== */
.phone-shell {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  display: flex;
  flex-direction: column;
}

/* ===================== 顶部 Header ===================== */
.app-header {
  background: var(--ink);
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 30;
  overflow: hidden;
}
.app-header::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, transparent 70%);
  pointer-events: none;
}
.app-header::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(67, 56, 202, 0.2) 0%, transparent 70%);
  pointer-events: none;
}
.header-inner {
  position: relative;
  z-index: 1;
  padding: 14px 20px 0;
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #818cf8);
  display: grid;
  place-items: center;
  font-size: 18px;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.4);
}
.brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.brand-sub {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 1px;
}

/* ===================== 分类 Tab ===================== */
.cat-tabs {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 6px;
  padding: 16px 20px 14px;
}
.cat-tab {
  flex: 1;
  padding: 11px 0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.cat-tab.active {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.cat-tab .cat-count {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.15);
}
.cat-tab.active .cat-count {
  background: var(--brand-light);
  color: #fff;
}

/* ===================== 主内容区 ===================== */
.app-main {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}
.hide-scroll::-webkit-scrollbar {
  display: none;
}
.hide-scroll {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ===================== 瀑布流 ===================== */
.masonry {
  column-count: 2;
  column-gap: 10px;
  padding: 14px 14px 100px;
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: 10px;
}

/* ===================== 货源卡片 ===================== */
.gpu-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(11, 17, 32, 0.04);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  animation: cardIn 0.3s ease backwards;
}
.gpu-card:active {
  transform: scale(0.97);
}
@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 卡片分类标识 */
.card-cat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.card-cat.spot {
  background: var(--spot-bg);
  color: var(--spot);
}
.card-cat.futures {
  background: var(--futures-bg);
  color: var(--futures);
}
.card-cat.rent {
  background: var(--rent-bg);
  color: var(--rent);
}
.card-cat .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

/* 卡片正文 */
.card-content {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-2);
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 卡片底部 */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}
.card-seller {
  font-size: 11px;
  color: var(--ink-4);
}
.card-date {
  font-size: 10px;
  color: var(--ink-4);
}

/* ===================== 空状态 ===================== */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--ink-4);
}
.empty-state .emoji {
  font-size: 40px;
  margin-bottom: 12px;
}
.empty-state .text {
  font-size: 14px;
}

/* ===================== 底部导航 ===================== */
.app-nav {
  display: flex;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-top: 1px solid rgba(11, 17, 32, 0.05);
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0));
  position: sticky;
  bottom: 0;
  z-index: 30;
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 0 4px;
  font-size: 10px;
  color: var(--ink-4);
  transition: color 0.2s ease;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  transition: all 0.25s ease;
  margin-bottom: 2px;
}
.nav-svg {
  width: 20px;
  height: 20px;
}
.nav-label {
  font-size: 10px;
  line-height: 1;
  font-weight: 500;
}
/* 激活态 */
.nav-item.active {
  color: var(--brand);
}
.nav-item.active .nav-label {
  font-weight: 600;
}
.nav-item.active .nav-icon-box {
  background: rgba(99, 102, 241, 0.1);
}
/* 发布按钮 — 常态微品牌底色，激活时渐变 */
.nav-publish .nav-icon-box {
  background: rgba(99, 102, 241, 0.06);
}
.nav-publish.active .nav-icon-box {
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 3px 12px rgba(99, 102, 241, 0.3);
}

/* ===================== 期货周期子标签 ===================== */
.period-tabs {
  display: flex;
  gap: 6px;
  padding: 0 14px 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.period-tabs::-webkit-scrollbar {
  display: none;
}
.period-tab {
  white-space: nowrap;
  padding: 5px 13px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: var(--ink-3);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.period-tab.active {
  background: var(--futures);
  color: #fff;
  border-color: var(--futures);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* 期货周期标签（卡片上） */
.card-tag.period {
  background: var(--futures-bg);
  color: var(--futures);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

/* 管理后台周期选择 */
.classify-period-row {
  display: flex;
  gap: 5px;
  margin-top: 8px;
  margin-bottom: 10px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.classify-period-row::-webkit-scrollbar {
  display: none;
}
.classify-period-btn {
  white-space: nowrap;
  padding: 5px 11px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: var(--ink-3);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.classify-period-btn.selected {
  background: var(--futures);
  color: #fff;
  border-color: var(--futures);
}

/* ===================== 发布页 ===================== */
.publish-wrap {
  padding: 20px 16px 100px;
}
.publish-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-card);
}
.publish-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.publish-hint {
  font-size: 12px;
  color: var(--ink-4);
  margin-bottom: 16px;
  line-height: 1.6;
}
.publish-textarea {
  width: 100%;
  min-height: 200px;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 14px;
  line-height: 1.7;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease;
  font-family: inherit;
  color: var(--ink);
  background: #fafbfc;
}
.publish-textarea:focus {
  border-color: var(--brand-light);
  background: #fff;
}
.publish-textarea::placeholder {
  color: var(--ink-4);
}
.publish-contacts {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.publish-input {
  flex: 1;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
  background: #fafbfc;
}
.publish-input:focus {
  border-color: var(--brand-light);
  background: #fff;
}
.publish-input::placeholder {
  color: var(--ink-4);
}
.publish-submit {
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--brand-grad);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}
.publish-submit:active {
  transform: scale(0.98);
}

/* 我的发布记录 */
.my-section {
  margin-top: 24px;
}
.my-section-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.my-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.my-item {
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(11, 17, 32, 0.03);
}
.my-item-content {
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.my-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.status-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}
.status-pending {
  background: #fef3c7;
  color: #92400e;
}
.status-approved {
  background: #d1fae5;
  color: #065f46;
}
.status-rejected {
  background: #fee2e2;
  color: #991b1b;
}

/* ===================== 管理后台 ===================== */
.admin-wrap {
  padding: 16px 16px 100px;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.stat-card {
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(11, 17, 32, 0.03);
}
.stat-num {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}
.stat-label {
  font-size: 10px;
  color: var(--ink-4);
  margin-top: 4px;
}
.stat-pending .stat-num {
  color: #f59e0b;
}
.stat-approved .stat-num {
  color: #10b981;
}
.stat-rejected .stat-num {
  color: #ef4444;
}

/* 管理筛选 */
.admin-filter-row {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  overflow-x: auto;
}
.admin-chip {
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: var(--ink-3);
  cursor: pointer;
  transition: all 0.2s ease;
}
.admin-chip.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* 审核卡片 */
.review-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-card);
  margin-bottom: 10px;
  border: 1px solid rgba(11, 17, 32, 0.03);
}
.review-content {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
  word-break: break-word;
}
.review-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--ink-4);
}
.review-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}
/* 分类选择按钮 */
.classify-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.classify-btn {
  flex: 1;
  padding: 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: var(--ink-3);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.classify-btn.selected.spot {
  border-color: var(--spot);
  background: var(--spot-bg);
  color: var(--spot);
}
.classify-btn.selected.futures {
  border-color: var(--futures);
  background: var(--futures-bg);
  color: var(--futures);
}

.btn-approve {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: #10b981;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.btn-reject {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: #f1f5f9;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.btn-delete {
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  background: #fef2f2;
  color: #ef4444;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.btn-restore {
  padding: 10px 14px;
  border: 1px solid #fde68a;
  border-radius: 10px;
  background: #fffbeb;
  color: #b45309;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.btn-restore:active {
  background: #fef3c7;
}

/* 非待审核卡片的状态文字 — 与编辑/删除按钮同等字号 */
.review-status {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  border-radius: 10px;
}
.review-status.is-approved {
  background: #ecfdf5;
  color: #059669;
}
.review-status.is-rejected {
  background: #fef2f2;
  color: #dc2626;
}

/* ===================== 弹窗 ===================== */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(11, 17, 32, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 50;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.modal-sheet {
  width: 100%;
  max-width: 430px;
  background: #fff;
  border-radius: 24px 24px 0 0;
  animation: sheetUp 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  max-height: 80vh;
  overflow-y: auto;
}
@keyframes sheetUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f1f5f9;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--ink-4);
  cursor: pointer;
  border: none;
}
.modal-body {
  padding: 24px 20px 30px;
  position: relative;
}

/* 详情卡片 */
.detail-cat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.detail-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
  word-break: break-word;
  margin-bottom: 16px;
}
.detail-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  background: #f8fafc;
  border-radius: 12px;
  margin-bottom: 16px;
}
.detail-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.detail-meta-row .label {
  color: var(--ink-4);
}
.detail-meta-row .value {
  color: var(--ink-2);
  font-weight: 500;
}
.detail-contact-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: var(--brand-grad);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}

/* ===================== Toast ===================== */
.toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 90px;
  z-index: 60;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 24px;
  box-shadow: var(--shadow-float);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* ===================== 搜索栏 ===================== */
.search-bar {
  padding: 0 14px 10px;
}
.search-input {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 13px;
  outline: none;
  background: #fff;
  box-shadow: var(--shadow-card);
  color: var(--ink);
}
.search-input::placeholder {
  color: var(--ink-4);
}

/* ===================== 分割标题 ===================== */
.section-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px 10px;
  font-size: 12px;
  color: var(--ink-4);
}
.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

/* ===================== 型号/城市标签 ===================== */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}
.card-tag {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  line-height: 1.5;
}
.card-tag.model {
  background: #eef2ff;
  color: #4338ca;
}
.card-tag.city {
  background: #f0f9ff;
  color: #0369a1;
}
.card-tag.city::before {
  content: "\1F4CD";
  font-size: 9px;
  margin-right: 2px;
}

/* ===================== 留言板 ===================== */
.msg-board {
  display: flex;
  flex-direction: column;
  max-height: 50vh;
}
.msg-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 120px;
}
.msg-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.6;
  word-break: break-word;
  animation: cardIn 0.2s ease;
}
.msg-bubble.user {
  align-self: flex-start;
  background: #f1f5f9;
  color: var(--ink-2);
  border-bottom-left-radius: 4px;
}
.msg-bubble.admin {
  align-self: flex-end;
  background: var(--brand-grad);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg-sender {
  font-size: 10px;
  color: var(--ink-4);
  margin-bottom: 3px;
}
.msg-bubble.admin .msg-sender {
  color: rgba(255, 255, 255, 0.7);
}
.msg-time {
  font-size: 9px;
  color: var(--ink-4);
  margin-top: 4px;
}
.msg-bubble.admin .msg-time {
  color: rgba(255, 255, 255, 0.6);
}
.msg-empty {
  text-align: center;
  color: var(--ink-4);
  font-size: 13px;
  padding: 30px 0;
}
.msg-input-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}
.msg-input {
  flex: 1;
  border: 1.5px solid #e2e8f0;
  border-radius: 22px;
  padding: 10px 16px;
  font-size: 13px;
  outline: none;
  background: #fafbfc;
  transition: border-color 0.2s ease;
}
.msg-input:focus {
  border-color: var(--brand-light);
  background: #fff;
}
.msg-send-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--brand-grad);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.msg-send-btn:active {
  transform: scale(0.92);
}

/* ===================== 管理员登录 ===================== */
.admin-login {
  padding: 30px 24px;
  text-align: center;
}
.admin-login-icon {
  font-size: 40px;
  margin-bottom: 12px;
}
.admin-login-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.admin-login-hint {
  font-size: 12px;
  color: var(--ink-4);
  margin-bottom: 20px;
}
.admin-login-input {
  width: 100%;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  text-align: center;
  letter-spacing: 4px;
  outline: none;
  transition: border-color 0.2s ease;
  margin-bottom: 12px;
}
.admin-login-input:focus {
  border-color: var(--brand-light);
}
.admin-login-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: var(--brand-grad);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}

/* ===================== 管理页留言区 ===================== */
.admin-msg-section {
  margin-top: 20px;
}
.admin-msg-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.admin-msg-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 20px;
  background: #ef4444;
  color: #fff;
}
.admin-msg-card {
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 14px;
  box-shadow: var(--shadow-card);
  margin-bottom: 8px;
  border: 1px solid rgba(11, 17, 32, 0.03);
}
.admin-msg-listing {
  font-size: 11px;
  color: var(--ink-4);
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}
.admin-msg-content {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
}
.admin-msg-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 10px;
  color: var(--ink-4);
}
.admin-msg-reply {
  margin-top: 8px;
  display: flex;
  gap: 6px;
}
.admin-msg-reply input {
  flex: 1;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  outline: none;
}
.admin-msg-reply input:focus {
  border-color: var(--brand-light);
}
.admin-msg-reply button {
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

/* ===================== 管理员退出 ===================== */
.admin-logout {
  margin-top: 12px;
  width: 100%;
  border: none;
  background: none;
  color: var(--ink-4);
  font-size: 12px;
  padding: 8px;
  cursor: pointer;
}

/* ===================== 发布模式切换 ===================== */
.publish-mode-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 3px;
}
.publish-mode-tab {
  flex: 1;
  padding: 9px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  background: none;
  color: var(--ink-4);
  cursor: pointer;
  transition: all 0.2s ease;
}
.publish-mode-tab.active {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* ===================== 我的发布类型标签 ===================== */
.my-type-tag {
  font-size: 9px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1.4;
}
.my-type-tag.spot { background: var(--spot-bg); color: var(--spot); }
.my-type-tag.futures { background: var(--futures-bg); color: var(--futures); }
.my-type-tag.rent { background: var(--rent-bg); color: var(--rent); }
.my-type-tag.pending { background: #f1f5f9; color: var(--ink-4); }

/* ===================== 编辑按钮 ===================== */
.btn-edit {
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.btn-edit:active {
  background: #f8fafc;
}

/* ===================== 编辑弹窗文本框 ===================== */
.edit-textarea {
  width: 100%;
  min-height: 160px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  font-size: 14px;
  line-height: 1.7;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease;
  font-family: inherit;
  color: var(--ink);
  background: #fafbfc;
}
.edit-textarea:focus {
  border-color: var(--brand-light);
  background: #fff;
}
