:root {
  --paper: #f2eee9;
  --stone: #e3ddd5;
  --clay: #c9b7a4;
  --sage: #9ba7a0;
  --ink: #35322f;
  --fog: rgba(255, 255, 255, 0.65);
  --shadow: 0 16px 40px rgba(53, 50, 47, 0.12);
  --radius: 18px;
  --mono: "IBM Plex Mono", "SFMono-Regular", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  --serif: "Playfair Display", "Libre Baskerville", "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
}

.bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(201, 183, 164, 0.5), transparent 50%),
    radial-gradient(circle at 80% 10%, rgba(155, 167, 160, 0.45), transparent 45%),
    radial-gradient(circle at 60% 90%, rgba(227, 221, 213, 0.8), transparent 55%),
    linear-gradient(130deg, #f6f1ea, #ede7df);
  z-index: -1;
}

.shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 56px 24px 72px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero {
  padding: 32px 36px;
  border-radius: var(--radius);
  background: var(--fog);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.hero-badge {
  font-family: var(--mono);
  letter-spacing: 0.2em;
  font-size: 12px;
  color: #7a6d5f;
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: 36px;
  margin: 0 0 8px;
}

.sub {
  margin: 0 0 24px;
  color: #6c645b;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  background: var(--ink);
  color: #f8f5f1;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(53, 50, 47, 0.18);
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(53, 50, 47, 0.2);
  color: var(--ink);
}

.panel {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--fog);
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel h2 {
  margin: 0;
  font-size: 20px;
}

.hint {
  font-size: 12px;
  color: #7a6d5f;
  font-family: var(--mono);
}

.auction-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.auction-card {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(53, 50, 47, 0.1);
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-title {
  font-weight: 600;
  font-size: 16px;
}

.card-meta {
  font-size: 13px;
  color: #6c645b;
  line-height: 1.4;
}

.tag {
  font-family: var(--mono);
  font-size: 11px;
  color: #6c645b;
  background: rgba(155, 167, 160, 0.2);
  padding: 4px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.switch input {
  width: 44px;
  height: 24px;
  appearance: none;
  background: rgba(53, 50, 47, 0.25);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease;
}

.switch input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f8f5f1;
  transition: transform 0.2s ease;
}

.switch input:checked {
  background: rgba(155, 167, 160, 0.8);
}

.switch input:checked::after {
  transform: translateX(18px);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.status-card {
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(53, 50, 47, 0.08);
}

.status-card .label {
  font-size: 12px;
  color: #6c645b;
  margin-bottom: 8px;
}

.status-card .value {
  font-size: 22px;
  font-weight: 600;
}

.foot {
  text-align: center;
  font-size: 12px;
  color: #7a6d5f;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: rgba(53, 50, 47, 0.9);
  color: #f8f5f1;
  padding: 12px 16px;
  border-radius: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.2s ease;
  pointer-events: none;
  font-size: 13px;
  max-width: 280px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .hero {
    padding: 24px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .panel-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
