:root {
  --bg: #f4f0ea;
  --bg-elev: #ffffff;
  --bg-panel: #ffffff;
  --line: rgba(74, 40, 24, 0.12);
  --text: #2a1a12;
  --muted: #8a7466;
  --amber: #c9782c;
  --amber-deep: #9a5418;
  --amber-soft: rgba(201, 120, 44, 0.12);
  --mahogany: #4a2818;
  --danger: #c44d42;
  --ok: #3f8f5a;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(74, 40, 24, 0.08);
  --font-display: "Noto Serif SC", "Songti SC", serif;
  --font-body: "Outfit", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 40% at 8% 0%, rgba(232, 168, 88, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 35% at 100% 10%, rgba(201, 120, 44, 0.08), transparent 50%),
    linear-gradient(180deg, #faf7f2 0%, #f1ebe3 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.75rem;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(74, 40, 24, 0.04), 0 8px 24px rgba(74, 40, 24, 0.04);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brand-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: min(240px, 46vw);
  object-fit: contain;
}

.brand-logo-login {
  height: 56px;
  max-width: min(300px, 82vw);
  margin: 0 auto;
}

.brand-mark {
  margin: 0 0 0.85rem;
  text-align: center;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--mahogany);
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.72;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover {
  color: var(--amber-deep);
  opacity: 1;
}

.nav-fx {
  font-size: 0.88rem;
  color: var(--mahogany);
  white-space: nowrap;
  padding: 0.3rem 0.65rem;
  background: var(--amber-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.nav-fx strong {
  color: var(--amber-deep);
  font-weight: 600;
}

.user-chip {
  font-size: 0.85rem;
  color: var(--mahogany);
  padding: 0.35rem 0.7rem;
  background: var(--amber-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.user-menu {
  position: relative;
}

.user-menu-trigger {
  cursor: pointer;
  font-family: inherit;
  line-height: 1.3;
  white-space: nowrap;
}

.user-menu-trigger:hover,
.user-menu:focus-within .user-menu-trigger {
  border-color: var(--amber);
  background: #fff8f0;
}

.user-menu-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  min-width: 9.5rem;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(74, 40, 24, 0.12);
  z-index: 50;
}

.user-menu-dropdown.is-open {
  display: block;
}

.user-menu-item {
  display: block;
  width: 100%;
  padding: 0.45rem 0.65rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--mahogany);
  font-size: 0.88rem;
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

.user-menu-item:hover {
  background: var(--amber-soft);
  color: var(--amber-deep);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.lang-switch-login {
  justify-content: center;
  margin: 0 auto 1.1rem;
  width: fit-content;
}

.lang-switch-corner {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  z-index: 40;
}

.lang-link {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-decoration: none;
  padding: 0.28rem 0.5rem;
  border-radius: 6px;
}

.lang-link:hover {
  color: var(--mahogany);
}

.lang-link.is-active {
  color: var(--mahogany);
  background: var(--amber-soft);
}

.main {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.main-wide {
  width: min(1480px, calc(100% - 2rem));
}

.main-center {
  display: grid;
  place-items: center;
  min-height: 100vh;
  width: min(440px, calc(100% - 2rem));
}

.login-stage {
  width: 100%;
  animation: rise 0.55s ease both;
}

.login-panel {
  padding: 2.25rem 2rem;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
}

.login-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--mahogany);
}

.login-sub {
  margin: 0.35rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.hint {
  margin: 1.25rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.5rem;
  animation: rise 0.4s ease both;
}

.page-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--mahogany);
}

.page-sub {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.stat-num {
  color: var(--amber-deep);
  font-weight: 600;
  font-size: 1.15rem;
}

.stat-sep {
  opacity: 0.5;
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 1.25rem;
  align-items: start;
}

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
  animation: rise 0.5s ease both;
}

.panel h2 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--mahogany);
}

.panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel-toolbar h2 {
  margin: 0;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field span {
  font-size: 0.85rem;
  color: var(--muted);
}

.choice-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.choice-btn {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.choice-btn input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.choice-btn > span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #faf7f2;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease,
    box-shadow 0.15s ease;
}

.choice-btn:hover > span {
  border-color: rgba(201, 120, 44, 0.45);
}

.choice-btn input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(201, 120, 44, 0.15);
}

.choice-btn input:checked + span {
  border-color: var(--amber);
  background: var(--amber-soft);
  color: var(--amber-deep);
  box-shadow: 0 0 0 1px rgba(201, 120, 44, 0.2);
}

input,
select {
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(201, 120, 44, 0.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.65rem 1.1rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, #e0923a, var(--amber-deep));
  color: #fff;
}

.btn-block {
  width: 100%;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
}

.btn-ghost:hover {
  color: var(--mahogany);
  border-color: var(--amber);
}

.btn-danger {
  background: transparent;
  border-color: rgba(196, 77, 66, 0.35);
  color: var(--danger);
}

.btn-secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--amber-deep);
}

.btn-secondary:hover {
  border-color: var(--amber);
  background: var(--amber-soft);
}
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.status-with-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-sm {
  padding: 0.3rem 0.65rem;
  font-size: 0.8rem;
}

.form-narrow {
  max-width: 420px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

body.modal-open {
  overflow: hidden;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(42, 26, 18, 0.42);
  backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.35rem 1.4rem 1.5rem;
  box-shadow: 0 24px 60px rgba(74, 40, 24, 0.16);
  animation: rise 0.3s ease both;
}

.submit-busy {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  border-radius: inherit;
  background: rgba(255, 252, 248, 0.94);
  backdrop-filter: blur(6px);
  animation: fade-in 0.2s ease both;
}

.submit-busy[hidden] {
  display: none;
}

.submit-busy-card {
  width: min(280px, 100%);
  text-align: center;
}

.submit-busy-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--mahogany);
  letter-spacing: 0.06em;
}

.submit-busy-step {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--text);
  min-height: 1.4em;
}

.submit-busy-hint {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.submit-bar {
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(232, 176, 88, 0.12);
  border: 1px solid rgba(232, 176, 88, 0.22);
}

.submit-bar-fill {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--amber-deep), var(--amber), #f0d09a);
  animation: submit-bar-slide 1.15s ease-in-out infinite;
}

.modal.is-submitting .modal-close {
  opacity: 0.35;
  cursor: not-allowed;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes submit-bar-slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.modal-head h2 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--mahogany);
}

.modal-close {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}

.modal-close:hover {
  color: var(--mahogany);
}

.modal-hint {
  margin: -0.35rem 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.modal-panel-wide {
  width: min(520px, 100%);
}

.modal-detail {
  width: min(640px, 100%);
  padding: 1.5rem 1.5rem 1.35rem;
}

.modal-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--amber-deep);
}

.modal-detail .modal-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text);
}

.detail-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(232, 168, 88, 0.16), #fff8f0);
  border: 1px solid var(--line);
}

.detail-hero-main {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  flex: 1;
}

.detail-hero-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f7f2eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-hero-thumb-link {
  display: block;
  width: 100%;
  height: 100%;
}

.detail-hero-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero-thumb-empty {
  display: block;
  padding: 0.35rem;
  font-size: 0.72rem;
  text-align: center;
  line-height: 1.25;
}

.detail-hero-pnk {
  min-width: 0;
}

.detail-hero-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  flex-shrink: 0;
}

.detail-pnk {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  word-break: break-all;
}

.detail-price {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--amber);
}

.detail-label {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.detail-section {
  margin-bottom: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  background: #f7f2eb;
  border: 1px solid var(--line);
}

.detail-section-title {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mahogany);
  letter-spacing: 0.06em;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
}

.detail-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.detail-grid-2 {
  grid-template-columns: 1fr 1fr;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.detail-item strong {
  font-weight: 500;
  font-size: 0.95rem;
  word-break: break-all;
}

.progress-nodes {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0.4rem 0.2rem 0.15rem;
  display: flex;
  align-items: flex-start;
}

.progress-node {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.progress-track {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 0.65rem;
  height: 28px;
}

.progress-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-elev);
  border: 2px solid rgba(184, 168, 148, 0.35);
  color: var(--muted);
  z-index: 1;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.progress-num {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
}

.progress-line {
  position: absolute;
  left: calc(50% + 16px);
  right: calc(-50% + 16px);
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: rgba(184, 168, 148, 0.28);
  z-index: 0;
}

.progress-node:last-child .progress-line {
  display: none;
}

.progress-meta {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding: 0 0.2rem;
  width: 100%;
}

.progress-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.progress-time {
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--muted);
  word-break: break-word;
}

.progress-node.is-done .progress-dot {
  background: linear-gradient(135deg, var(--amber), var(--amber-deep));
  border-color: transparent;
  color: #1a120a;
  box-shadow: 0 0 0 4px rgba(232, 168, 88, 0.16);
}

.progress-node.is-done .progress-title {
  color: var(--text);
}

.progress-node.is-done .progress-time {
  color: var(--text);
}

.progress-node.is-done .progress-line {
  background: linear-gradient(90deg, var(--amber), rgba(232, 168, 88, 0.45));
}

.progress-node.is-current .progress-dot {
  border-color: var(--amber);
  color: var(--amber);
  box-shadow: 0 0 0 4px rgba(232, 168, 88, 0.12);
}

.progress-node.is-current .progress-title {
  color: var(--amber);
}

@media (max-width: 700px) {
  .progress-nodes {
    flex-direction: column;
    gap: 0;
    padding-left: 0.35rem;
  }

  .progress-node {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.85rem;
    text-align: left;
    min-height: 64px;
  }

  .progress-track {
    width: 28px;
    flex-shrink: 0;
    height: auto;
    min-height: 64px;
    margin-bottom: 0;
    align-items: flex-start;
    padding-top: 0;
  }

  .progress-line {
    left: 50%;
    right: auto;
    top: 30px;
    bottom: -4px;
    width: 2px;
    height: auto;
    transform: translateX(-50%);
  }

  .progress-node.is-done .progress-line {
    background: linear-gradient(180deg, var(--amber), rgba(232, 168, 88, 0.45));
  }

  .progress-meta {
    padding-top: 0.2rem;
    padding-left: 0;
  }
}

.detail-review {
  min-height: 2rem;
}

.detail-actions {
  justify-content: flex-end;
  margin-top: 0.25rem;
}

.detail-list {
  margin: 0 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1.1rem;
}

.detail-list > div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.detail-list .detail-full {
  grid-column: 1 / -1;
}

.detail-list dt {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.detail-list dd {
  margin: 0;
  font-size: 0.95rem;
  word-break: break-all;
}

.detail-list a {
  color: var(--amber);
}

@media (max-width: 600px) {
  .detail-list,
  .detail-grid,
  .detail-grid-3 {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    flex-direction: column;
  }

  .detail-hero-side {
    align-items: flex-start;
  }
}

input[type="file"] {
  padding: 0.55rem 0.7rem;
}

textarea {
  font: inherit;
  color: var(--text);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  outline: none;
  resize: vertical;
  min-height: 96px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(232, 176, 88, 0.15);
}

.review-block {
  margin-bottom: 1rem;
}

.review-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.review-text {
  margin: 0;
  padding: 0.75rem 0.85rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 10px;
  white-space: pre-wrap;
  word-break: break-word;
  font: inherit;
  font-size: 0.92rem;
  max-height: 180px;
  overflow: auto;
}

.review-url {
  margin: 0;
  word-break: break-all;
}

.review-url a,
.detail-list a {
  color: var(--amber);
}

.review-thumb {
  display: block;
  max-width: 100%;
  max-height: 220px;
  border-radius: 10px;
  border: 1px solid var(--line);
  object-fit: contain;
  background: var(--bg-elev);
  margin-top: 0.5rem;
}

.paste-zone {
  border: 1px dashed rgba(201, 120, 44, 0.4);
  border-radius: 12px;
  padding: 1.35rem 1.1rem;
  text-align: center;
  color: var(--muted);
  background:
    linear-gradient(180deg, rgba(232, 168, 88, 0.12), transparent 70%),
    #faf7f2;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.paste-zone:hover {
  border-color: var(--amber);
  color: var(--text);
}

.paste-zone:focus,
.paste-zone.is-ready {
  border-color: var(--amber);
  border-style: solid;
  box-shadow: 0 0 0 3px rgba(201, 120, 44, 0.16);
  color: var(--text);
}

.paste-zone:focus .paste-zone-sub,
.paste-zone.is-ready .paste-zone-sub {
  color: var(--amber-deep);
}

.paste-zone.has-image {
  cursor: default;
  border-style: solid;
  border-color: rgba(232, 176, 88, 0.35);
  min-height: 0;
  padding: 0.9rem;
  background: var(--bg-elev);
  box-shadow: none;
}

.paste-zone-hint {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.paste-zone-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.paste-zone-keys {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.paste-zone-keys kbd {
  display: inline-block;
  min-width: 1.7rem;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  border: 1px solid rgba(232, 176, 88, 0.35);
  background: #f7f2eb;
  color: var(--amber-deep);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 1px 0 rgba(74, 40, 24, 0.08);
}

.paste-zone-sub {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.paste-zone-hint[hidden],
.paste-preview[hidden],
.paste-preview img[hidden] {
  display: none !important;
}

.paste-preview {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
}

.paste-preview img {
  max-width: 100%;
  max-height: 180px;
  border-radius: 10px;
  border: 1px solid var(--line);
  object-fit: contain;
  background: #f7f2eb;
}

.field-secondary {
  opacity: 0.92;
}

.field-secondary > span {
  color: var(--muted);
  font-weight: 400;
}

.review-product {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0 0 1rem;
}

.review-product[hidden] {
  display: none !important;
}

.review-product-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.review-product-img {
  display: block;
  max-width: 160px;
  max-height: 160px;
  border-radius: 10px;
  border: 1px solid var(--line);
  object-fit: contain;
  background: var(--bg-elev);
}


.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  text-align: left;
  padding: 0.75rem 0.6rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

.muted {
  color: var(--muted);
  font-size: 0.85rem;
}

.empty {
  color: var(--muted);
  margin: 0.5rem 0;
}

.tag {
  display: inline-block;
  font-size: 0.78rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: var(--amber-soft);
  color: var(--amber);
  border: 1px solid var(--line);
}

.tag-customer { color: #d4b87a; }
.tag-cs { color: #8ec4b0; }
.tag-overseas { color: #c9a0d4; }

.status {
  display: inline-block;
  font-size: 0.78rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  white-space: nowrap;
}

.status-已发布 {
  color: #9a6a1f;
  background: rgba(232, 176, 88, 0.16);
}

.status-已领取 {
  color: #2f7a5a;
  background: rgba(90, 170, 130, 0.14);
}

.status-已下单 {
  color: #3d5f9a;
  background: rgba(120, 150, 200, 0.14);
}

.status-已评价 {
  color: #6b4d8f;
  background: rgba(160, 130, 200, 0.14);
}

.status-待领取 {
  color: #a86412;
  background: rgba(232, 168, 88, 0.18);
}

.status-已完成 {
  color: #2f7a4a;
  background: rgba(90, 160, 110, 0.16);
}

.task-grid {
  display: grid;
  gap: 1.1rem;
}

.task-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.task-card-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.task-order-no {
  font-size: 0.88rem;
  color: var(--text);
  white-space: nowrap;
}

.task-claim-limit {
  font-size: 0.82rem;
  white-space: nowrap;
}

.task-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
}

.task-card-head h2 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--mahogany);
}

.task-card-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.inline-form {
  margin: 0;
}

.status-select {
  font-size: 0.85rem;
  padding: 0.35rem 0.55rem;
  min-width: 6.5rem;
}

.flash-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.flash {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 0.9rem;
  animation: rise 0.35s ease both;
}

.flash-success {
  background: rgba(63, 143, 90, 0.1);
  border-color: rgba(63, 143, 90, 0.3);
  color: #2f6b45;
}

.flash-error {
  background: rgba(196, 77, 66, 0.1);
  border-color: rgba(196, 77, 66, 0.3);
  color: #a53b33;
}

.toast-stack {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1000;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.55rem;
  width: min(360px, calc(100vw - 2rem));
  pointer-events: none;
}

.toast {
  padding: 0.85rem 1.05rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 0.9rem;
  line-height: 1.45;
  background: #fff;
  color: var(--text);
  box-shadow: 0 12px 36px rgba(74, 40, 24, 0.14);
  animation: toast-in 0.35s ease both;
  pointer-events: auto;
}

.toast-success {
  border-color: rgba(63, 143, 90, 0.35);
  color: #2f6b45;
}

.toast-error {
  border-color: rgba(196, 77, 66, 0.35);
  color: #a53b33;
}

.toast.is-leaving {
  animation: toast-out 0.3s ease forwards;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px) translateX(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) translateX(0);
  }
}

@keyframes toast-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.settings-panel {
  margin-bottom: 1.25rem;
}

.filter-panel {
  margin-bottom: 1.25rem;
}

.filter-panel[hidden] {
  display: none !important;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  margin-bottom: 0.85rem;
}

@media (max-width: 960px) {
  .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .filter-grid {
    grid-template-columns: 1fr;
  }
}

.settings-panel h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--mahogany);
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  margin: 1rem 0;
}

.sync-msg {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  max-width: 220px;
  line-height: 1.35;
}

.sync-msg.ok {
  color: #b8dbb6;
}

.sync-msg.skip {
  color: var(--muted);
}

.sync-msg.err {
  color: #e8a8a0;
}

.thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  display: block;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.thumb-zoom {
  display: inline-block;
  line-height: 0;
  cursor: zoom-in;
}

.thumb-zoom:hover .thumb {
  transform: scale(1.06);
  box-shadow: 0 0 0 2px rgba(196, 122, 42, 0.45);
}

.thumb-zoom-float {
  position: fixed;
  z-index: 1200;
  width: 280px;
  height: 280px;
  padding: 0.4rem;
  pointer-events: none;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 16px 40px rgba(74, 40, 24, 0.18);
  animation: rise 0.15s ease both;
}

.thumb-zoom-float[hidden] {
  display: none !important;
}

.thumb-zoom-float img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  background: var(--bg-elev);
}

.pay-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  line-height: 1.3;
  vertical-align: middle;
}

.fee-cell .pay-tag {
  display: block;
  margin-top: 0.25rem;
  width: fit-content;
}

.pay-paid {
  color: #1f7a45;
  background: rgba(60, 170, 100, 0.14);
  border: 1px solid rgba(60, 170, 100, 0.35);
}

.pay-unpaid {
  color: #b42318;
  background: rgba(220, 60, 50, 0.1);
  border: 1px solid rgba(220, 60, 50, 0.35);
}

.price-cny {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 400;
}

@media (max-width: 800px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .page-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar {
    padding: 0.9rem 1rem;
  }
}
