:root {
  --bg: #f5efe1;
  --panel: rgba(255, 250, 242, 0.9);
  --panel-border: rgba(20, 41, 74, 0.12);
  --ink: #132946;
  --muted: #5d6879;
  --accent: #c4562b;
  --accent-soft: rgba(196, 86, 43, 0.14);
  --sea: #0f5b74;
  --sea-soft: rgba(15, 91, 116, 0.14);
  --sand: #efe2bf;
  --shadow: 0 24px 80px rgba(18, 35, 58, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 999px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(15, 91, 116, 0.16), transparent 32%),
    radial-gradient(circle at top right, rgba(196, 86, 43, 0.18), transparent 28%),
    linear-gradient(180deg, #f9f3e6 0%, #f1eadc 100%);
  font-family: "Aptos", "PingFang SC", "Microsoft YaHei", sans-serif;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1320px, calc(100vw - 32px));
  margin: 24px auto 40px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
  gap: 24px;
  padding: 28px;
  border: 1px solid rgba(19, 41, 70, 0.08);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(140deg, rgba(255, 247, 233, 0.95), rgba(255, 250, 244, 0.82)),
    linear-gradient(180deg, rgba(15, 91, 116, 0.06), transparent);
  box-shadow: var(--shadow);
}

.eyebrow,
.panel-kicker,
.source-strategy,
.notice-date {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.panel h2,
.source-card h3,
.result-card h3 {
  margin: 0;
  font-family: "Georgia", "Songti SC", serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(34px, 4.8vw, 56px);
  line-height: 0.94;
}

.hero-text {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.hero-panel,
.panel,
.source-card,
.result-card {
  backdrop-filter: blur(16px);
}

.hero-panel {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(15, 91, 116, 0.12);
  background: rgba(255, 255, 255, 0.7);
}

.hero-badge,
.summary-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 20px;
}

.stat-card {
  padding: 14px;
  border-radius: 18px;
  background: rgba(19, 41, 70, 0.04);
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

.hero-actions,
.source-foot,
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.primary-btn,
.ghost-btn,
.mini-btn {
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
}

.primary-btn,
.mini-btn {
  background: linear-gradient(135deg, var(--accent), #dc7a3c);
  color: #fffaf2;
}

.primary-btn {
  padding: 12px 18px;
  box-shadow: 0 12px 26px rgba(196, 86, 43, 0.22);
}

.ghost-btn {
  padding: 12px 18px;
  color: var(--sea);
  background: rgba(15, 91, 116, 0.08);
}

.mini-btn {
  padding: 9px 14px;
}

.primary-btn:disabled,
.mini-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.run-meta {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.dashboard {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

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

.panel h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.filter-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-chip,
.tag,
.attachment-pill,
.status-chip,
.mini-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.filter-chip {
  padding: 10px 14px;
  border: 0;
  color: var(--ink);
  background: rgba(19, 41, 70, 0.06);
  cursor: pointer;
  font-weight: 700;
}

.filter-chip.is-active {
  color: #fff8f0;
  background: linear-gradient(135deg, var(--sea), #147999);
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.source-card,
.result-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(19, 41, 70, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

.source-top,
.result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.source-card h3,
.result-card h3 {
  font-size: 24px;
  line-height: 1.08;
}

.source-note,
.notice-summary {
  color: var(--muted);
  line-height: 1.75;
}

.tag-wrap,
.attachment-wrap {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--sea);
  background: var(--sea-soft);
}

.source-foot {
  margin-top: 16px;
}

.source-link,
.mini-link,
.notice-title {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.mini-link {
  padding: 9px 14px;
  background: rgba(19, 41, 70, 0.05);
}

.status-chip {
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
}

.status-supported {
  color: #0f6b51;
  background: rgba(15, 107, 81, 0.14);
}

.status-browser {
  color: #8a4b10;
  background: rgba(193, 132, 34, 0.18);
}

.status-pending {
  color: #5b4f70;
  background: rgba(91, 79, 112, 0.14);
}

.status-manual {
  color: #7b2232;
  background: rgba(123, 34, 50, 0.12);
}

.result-list {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.notice-list {
  display: grid;
  gap: 14px;
  padding: 0;
  list-style: none;
  margin: 14px 0 0;
}

.notice-item {
  padding: 14px;
  border-radius: 18px;
  background: rgba(19, 41, 70, 0.04);
}

.notice-date {
  margin-bottom: 6px;
}

.notice-title {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.45;
}

.notice-section {
  margin: 0;
  color: var(--sea);
  font-size: 13px;
  font-weight: 700;
}

.attachment-wrap {
  margin-top: 12px;
}

.attachment-pill {
  padding: 7px 10px;
  color: var(--ink);
  background: rgba(196, 86, 43, 0.1);
  font-size: 12px;
  font-weight: 700;
}

.empty-state,
.empty-inline {
  padding: 24px;
  border-radius: 22px;
  background: rgba(19, 41, 70, 0.04);
}

.empty-state h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.empty-state p,
.empty-inline p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

@media (max-width: 900px) {
  .page-shell {
    width: min(100vw - 20px, 1320px);
    margin: 10px auto 28px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .panel {
    padding: 18px;
  }
}
