/* 哈佛币代售网站 · 卖家发布 */
.seller-page { background: #f7f8fa; color: #243044; }
.seller-page .chat-launcher { display: none; }

.seller-header { border-bottom: 1px solid var(--line); background: #fff; }

.seller-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.seller-nav { display: flex; align-items: center; gap: 24px; }

.seller-nav a { color: #666; font-size: 13px; }

.seller-nav a:hover { color: var(--brand); }

.seller-main { padding: 38px 0 60px; }

.seller-hero { max-width: 760px; margin-bottom: 26px; }

.seller-hero h1 { margin: 6px 0 10px; font-size: 38px; letter-spacing: -0.8px; }

.seller-hero p { color: #8b97a8; font-size: 13.5px; line-height: 1.8; }

.seller-login-gate {
  max-width: 560px;
  margin: 50px auto;
  padding: 36px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(25, 35, 55, 0.08);
  text-align: center;
}

.seller-gate-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff6b1a, #ff5000);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
}

.seller-login-gate h2 { font-size: 22px; }

.seller-login-gate p { margin: 8px 0 20px; color: #8b97a8; font-size: 12.5px; line-height: 1.8; }

.seller-login-gate .btn { margin: 4px; }

.seller-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}

.seller-form-card,
.seller-side-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(25, 35, 55, 0.05);
}

.seller-form-card { padding: 24px; }

.seller-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.seller-card-head h2 { font-size: 21px; }

.seller-card-head p { margin-top: 5px; color: #8b97a8; font-size: 11.5px; }

.seller-account { flex: none; color: var(--brand); font-size: 11.5px; font-weight: 700; }

.seller-section { padding: 20px 0; border-bottom: 1px solid var(--line); }

.seller-section:last-of-type { border-bottom: 0; }

.seller-section h3 { margin-bottom: 12px; font-size: 14px; }

.seller-section h3 em,
.field label em { color: var(--brand); font-style: normal; margin-left: 2px; }

.seller-hint { margin: -4px 0 12px; color: #99a3b2; font-size: 11px; line-height: 1.7; }

.seller-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }

.seller-grid .span-2 { grid-column: 1 / -1; }

.seller-check {
  display: flex !important;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #e5e8ee;
  border-radius: 9px;
  background: #fafbfc;
  color: #555 !important;
  cursor: pointer;
}

.seller-check input { width: 15px; height: 15px; accent-color: var(--brand); }

.seller-section textarea { min-height: 110px; }

.image-picker {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbfc;
}

.image-preview {
  display: grid;
  place-items: center;
  width: 140px;
  height: 140px;
  overflow: hidden;
  border: 1px dashed #d9dee7;
  border-radius: 12px;
  background: #fff;
  color: #a8b1bf;
  font-size: 11px;
}

.image-preview img { width: 100%; height: 100%; object-fit: cover; }

.image-actions { display: flex; flex-direction: column; gap: 9px; justify-content: center; min-width: 0; }

.image-buttons { display: flex; flex-wrap: wrap; gap: 8px; }

.image-upload { position: relative; overflow: hidden; margin: 0; cursor: pointer; }

.image-upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

.image-url {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e5e8ee;
  border-radius: 9px;
  outline: none;
  background: #fff;
  font-size: 12px;
}

.image-url:focus { border-color: #ffb28a; }

.image-hint { color: #99a3b2; font-size: 10.5px; line-height: 1.7; }

.seller-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 18px;
}

.seller-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 20px; }

.seller-side-card { padding: 20px; }

.seller-side-card h2 { font-size: 17px; }

.seller-side-card h3 { font-size: 14px; }

.seller-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 12px; }

.seller-stats div { padding: 10px; border-radius: 10px; background: #fff6ef; text-align: center; }

.seller-stats strong { display: block; color: var(--brand); font-size: 20px; }

.seller-stats span { color: #a08b7d; font-size: 10px; }

.seller-listings { display: grid; gap: 9px; max-height: 420px; overflow-y: auto; }

.seller-listing {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.seller-listing-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }

.seller-listing strong { display: block; font-size: 12.5px; line-height: 1.5; }

.seller-listing small { display: block; margin-top: 3px; color: #99a3b2; font-size: 10.5px; }

.seller-status { flex: none; padding: 2px 7px; border-radius: 999px; font-size: 9.5px; font-weight: 700; }

.seller-status.pending { background: #fff4dd; color: #b27912; }
.seller-status.approved { background: #eaf9f0; color: #1f9d62; }
.seller-status.rejected { background: #fff0f0; color: #d64545; }

.seller-listing-note { margin-top: 7px; color: #d64545; font-size: 10.5px; line-height: 1.6; }

.seller-listing-actions { display: flex; gap: 6px; margin-top: 8px; }

.seller-listing-actions button {
  padding: 4px 8px;
  border: 1px solid #e5e8ee;
  border-radius: 6px;
  background: #fff;
  color: #6c7788;
  font-size: 10.5px;
  cursor: pointer;
}

.seller-listing-actions button:hover { border-color: #ffb28a; color: var(--brand); }

.seller-empty { padding: 18px 6px; color: #99a3b2; font-size: 11.5px; line-height: 1.8; text-align: center; }

.seller-tips ul { display: grid; gap: 8px; margin-top: 12px; padding-left: 17px; }

.seller-tips li { color: #8b97a8; font-size: 11.5px; line-height: 1.75; }

.seller-footer { margin-top: 0; }

.form-error {
  display: none;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff1f0;
  color: #d64545;
  font-size: 12px;
}

.form-error.is-visible { display: block; }

.seller-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 200;
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(22, 30, 45, 0.9);
  color: #fff;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.seller-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 980px) {
  .seller-layout { grid-template-columns: 1fr; }
  .seller-side { position: static; }
  .seller-listings { max-height: none; }
}

@media (max-width: 680px) {
  .seller-header-inner { min-height: 68px; }
  .seller-nav { gap: 10px; white-space: nowrap; }
  .seller-nav a { font-size: 11.5px; white-space: nowrap; }
  .seller-nav a:nth-child(1),
  .seller-nav a:nth-child(2),
  .seller-nav a:nth-child(4) { display: none; }
  .seller-main { padding: 24px 0 42px; }
  .seller-hero h1 { font-size: 29px; }
  .seller-form-card { padding: 18px; }
  .seller-card-head { flex-direction: column; gap: 6px; }
  .seller-grid { grid-template-columns: 1fr; }
  .seller-grid .span-2 { grid-column: auto; }
  .image-picker { grid-template-columns: 1fr; }
  .image-preview { width: 120px; height: 120px; }
  .seller-form-actions .btn { flex: 1; }
}
