/* 大锤公告 (/updates/) — 浅色珠光与深色曜石自适应 */
.updates-page {
  --up-bg: #f6f8fc;
  --up-surface: #ffffff;
  --up-surface-soft: #f1f5fb;
  --up-border: rgba(15, 23, 42, 0.09);
  --up-text: #0f172a;
  --up-muted: #475569;
  --up-subtle: #64748b;
  --up-accent: #1d4ed8;
  --up-accent-soft: rgba(29, 78, 216, 0.09);
  --up-am-bg: #fff7ed;
  --up-am-text: #c2410c;
  --up-pm-bg: #eef2ff;
  --up-pm-text: #3730a3;
  --up-preview-bg: #ecfdf5;
  --up-preview-text: #047857;
  background: var(--up-bg);
  color: var(--up-text);
}

@media (prefers-color-scheme: dark) {
  .updates-page {
    --up-bg: #0b0f19;
    --up-surface: #121826;
    --up-surface-soft: #1a2234;
    --up-border: rgba(148, 163, 184, 0.16);
    --up-text: #f1f5f9;
    --up-muted: #cbd5e1;
    --up-subtle: #94a3b8;
    --up-accent: #60a5fa;
    --up-accent-soft: rgba(96, 165, 250, 0.14);
    --up-am-bg: rgba(251, 146, 60, 0.16);
    --up-am-text: #fdba74;
    --up-pm-bg: rgba(129, 140, 248, 0.18);
    --up-pm-text: #c7d2fe;
    --up-preview-bg: rgba(16, 185, 129, 0.16);
    --up-preview-text: #6ee7b7;
  }
}

.updates-main {
  padding-block: 2rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.updates-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
  background: var(--up-surface);
  border: 1px solid var(--up-border);
  border-radius: 1.25rem;
  padding: 1.6rem 1.75rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.updates-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.65rem;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  background: var(--up-accent-soft);
  color: var(--up-accent);
  font-size: 0.82rem;
  font-weight: 600;
}

.updates-pulse {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.updates-hero h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.updates-lead {
  margin: 0;
  color: var(--up-muted);
  font-size: 0.96rem;
  line-height: 1.72;
}

.updates-schedule-card {
  background: var(--up-surface-soft);
  border: 1px solid var(--up-border);
  border-radius: 1rem;
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.68rem;
}

.updates-slot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.updates-slot-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.updates-slot-badge--am {
  background: var(--up-am-bg);
  color: var(--up-am-text);
}

.updates-slot-badge--pm {
  background: var(--up-pm-bg);
  color: var(--up-pm-text);
}

.updates-slot-badge--preview {
  background: var(--up-preview-bg);
  color: var(--up-preview-text);
}

.updates-slot-window {
  font-size: 0.84rem;
  color: var(--up-muted);
}

.updates-schedule-note {
  margin: 0.15rem 0 0;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--up-border);
  font-size: 0.82rem;
  color: var(--up-subtle);
}

.updates-broadcast {
  background: var(--up-surface);
  border: 1px solid var(--up-border);
  border-radius: 1.25rem;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.updates-broadcast-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.updates-section-eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--up-accent);
  margin-bottom: 0.25rem;
}

.updates-broadcast-head h2,
.updates-filter-bar h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.35;
}

.updates-mode-tabs {
  display: inline-flex;
  padding: 0.22rem;
  border-radius: 0.75rem;
  background: var(--up-surface-soft);
  border: 1px solid var(--up-border);
  gap: 0.2rem;
}

.updates-mode-tab {
  border: 0;
  background: transparent;
  color: var(--up-muted);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.42rem 0.78rem;
  border-radius: 0.55rem;
  cursor: pointer;
  min-height: 36px;
}

.updates-mode-tab.is-active {
  background: var(--up-surface);
  color: var(--up-text);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.updates-edition-picker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.updates-edition-picker label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--up-muted);
}

.updates-select {
  flex: 1 1 16rem;
  max-width: 100%;
  min-height: 42px;
  padding: 0.45rem 0.75rem;
  border-radius: 0.65rem;
  border: 1px solid var(--up-border);
  background: var(--up-surface-soft);
  color: var(--up-text);
  font: inherit;
  font-size: 16px;
}

.updates-textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 0.9rem;
  border: 1px solid var(--up-border);
  background: var(--up-surface-soft);
  color: var(--up-text);
  padding: 1rem 1.1rem;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.68;
  resize: vertical;
  min-height: 13.5rem;
}

.updates-broadcast-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.updates-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.55rem 1.15rem;
  border-radius: 0.75rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.14s ease, opacity 0.14s ease;
}

.updates-btn:active {
  transform: scale(0.98);
}

.updates-btn--primary {
  background: #111827;
  color: #ffffff;
}

@media (prefers-color-scheme: dark) {
  .updates-btn--primary {
    background: #3b82f6;
    color: #ffffff;
  }
}

.updates-btn--secondary {
  background: var(--up-surface-soft);
  color: var(--up-text);
  border-color: var(--up-border);
}

.updates-btn--ghost {
  background: transparent;
  color: var(--up-muted);
  border-color: var(--up-border);
}

.updates-toast {
  font-size: 0.86rem;
  font-weight: 600;
  color: #059669;
}

.updates-timeline-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.updates-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.updates-slot-filters,
.updates-product-filters {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.updates-chip {
  border: 1px solid var(--up-border);
  background: var(--up-surface);
  color: var(--up-muted);
  font: inherit;
  font-size: 0.83rem;
  font-weight: 600;
  padding: 0.38rem 0.78rem;
  border-radius: 999px;
  cursor: pointer;
  min-height: 36px;
  white-space: nowrap;
}

.updates-chip.is-active {
  background: var(--up-accent);
  border-color: var(--up-accent);
  color: #ffffff;
}

.updates-search-wrap {
  flex: 1 1 15rem;
  max-width: 22rem;
}

.updates-search {
  width: 100%;
  box-sizing: border-box;
  min-height: 40px;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--up-border);
  background: var(--up-surface);
  color: var(--up-text);
  font: inherit;
  font-size: 16px;
}

.updates-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.updates-card {
  background: var(--up-surface);
  border: 1px solid var(--up-border);
  border-radius: 1.2rem;
  padding: 1.35rem 1.5rem;
}

.updates-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--up-border);
}

.updates-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.updates-card-window {
  font-size: 0.82rem;
  color: var(--up-subtle);
}

.updates-card h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.38;
}

.updates-card-summary {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--up-muted);
}

.updates-card-copy-btn {
  border: 1px solid var(--up-border);
  background: var(--up-surface-soft);
  color: var(--up-text);
  border-radius: 0.65rem;
  padding: 0.42rem 0.8rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 38px;
  white-space: nowrap;
}

.updates-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 0.85rem;
}

.updates-item {
  background: var(--up-surface-soft);
  border: 1px solid var(--up-border);
  border-radius: 0.9rem;
  padding: 0.95rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
}

.updates-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.updates-item-product {
  font-weight: 700;
  font-size: 0.95rem;
}

.updates-item-tag {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.14rem 0.52rem;
  border-radius: 999px;
  background: var(--up-accent-soft);
  color: var(--up-accent);
}

.updates-item-headline {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--up-text);
}

.updates-item-points {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--up-muted);
  font-size: 0.85rem;
  line-height: 1.62;
}

.updates-item-link {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--up-accent);
  text-decoration: none;
}

.updates-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--up-muted);
  background: var(--up-surface);
  border-radius: 1rem;
  border: 1px dashed var(--up-border);
}

@media (max-width: 52rem) {
  .updates-hero {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }

  .updates-broadcast,
  .updates-card {
    padding: 1.15rem;
  }

  .updates-search-wrap {
    max-width: 100%;
    flex-basis: 100%;
  }

  .updates-product-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 30rem) {
  .updates-mode-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .updates-mode-tab {
    padding-inline: 0.35rem;
    font-size: 0.78rem;
  }

  .updates-broadcast-actions .updates-btn {
    width: 100%;
  }
}
