/* ===== 退市股票口袋宝典 · 浅色简约样式（架构仿《豌豆历史口袋宝典》） ===== */
:root {
  --bg: #f3f4f6;
  --bg-grad: #eef0f3;
  --card: #ffffff;
  --border: #e6e8ec;
  --border-soft: #eef0f3;
  --text: #2b2f36;
  --muted: #8a909c;
  --dim: #b3b9c4;
  --ink: #3b4252;
  --accent: #4a5568;
  --shadow: 0 6px 24px rgba(40, 48, 64, 0.08);
  --shadow-sm: 0 2px 8px rgba(40, 48, 64, 0.06);
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", "宋体", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background:
    radial-gradient(1100px 520px at 50% -8%, #ffffff 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-grad), var(--bg));
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.wrap { max-width: 1360px; margin: 0 auto; padding: 44px 20px 80px; }

/* ---------- Header ---------- */
.site-head { text-align: center; margin-bottom: 30px; }
.site-head .seal {
  display: inline-block; font-family: var(--serif); font-size: 13px;
  letter-spacing: 2px; color: var(--accent);
  border: 1px solid var(--dim); border-radius: 4px;
  padding: 4px 13px; margin-bottom: 16px; background: #fff;
}
.site-head h1 {
  font-family: var(--serif); font-weight: 700; font-size: 34px;
  letter-spacing: 6px; margin: 0 0 10px; color: var(--ink);
}
.site-head p { color: var(--muted); margin: 4px 0; letter-spacing: 1px; font-size: 14px; }
.site-head .rule {
  width: 72px; height: 2px; margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, var(--dim), transparent);
}

/* ---------- Toolbar ---------- */
.toolbar {
  display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center;
  justify-content: space-between;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 18px; margin: 30px 0;
  box-shadow: var(--shadow);
}
.tool-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tool-group .lbl { color: var(--dim); font-size: 12px; letter-spacing: 2px; margin-right: 2px; }

.chip {
  border: 1px solid var(--border); background: #fff; color: var(--muted);
  border-radius: 999px; padding: 6px 14px; cursor: pointer; font-size: 13px;
  letter-spacing: 1px; transition: all .18s ease; white-space: nowrap;
}
.chip[data-active="1"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip:hover { color: var(--ink); }
.chip[data-active="1"]:hover { color: #fff; }
.chip .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

.search-box {
  border: 1px solid var(--border); border-radius: 9px; padding: 8px 12px;
  font-size: 14px; font-family: var(--sans); color: var(--ink); min-width: 220px;
  background: #fff; outline: none; transition: border-color .18s ease;
}
.search-box:focus { border-color: var(--accent); }

button.ctl {
  background: #fff; color: var(--ink); border: 1px solid var(--border);
  border-radius: 9px; padding: 8px 14px; font-size: 13px; cursor: pointer;
  transition: all .18s ease; font-family: var(--sans);
}
button.ctl:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* ---------- Tier legend ---------- */
.legend-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 20px; margin: 26px 0;
  box-shadow: var(--shadow);
}
.legend-card h2 { font-family: var(--serif); font-size: 18px; margin: 0 0 14px; color: var(--ink); letter-spacing: 2px; }
.legend-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.legend-item {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--border-soft); border-radius: 10px; padding: 12px 14px; background: #fcfcfd;
}
.legend-badge {
  flex: 0 0 auto; font-size: 13px; font-weight: 600; color: #fff;
  border-radius: 999px; padding: 5px 12px; letter-spacing: 1px; white-space: nowrap;
}
.legend-desc { font-size: 13px; line-height: 1.6; color: var(--muted); }

/* ---------- Table card ---------- */
.events-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px 20px 14px; box-shadow: var(--shadow);
  overflow: hidden; margin-bottom: 30px;
}
.events-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.events-head h2 { font-family: var(--serif); font-weight: 700; font-size: 20px; margin: 0; color: var(--ink); letter-spacing: 3px; }
.events-head .tbl-no { font-size: 13px; color: var(--dim); margin-left: 8px; letter-spacing: 1px; }
.head-actions { display: flex; gap: 8px; }

.events-scroll { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 1080px; }
thead th {
  text-align: left; color: var(--accent); font-weight: 600; font-size: 13px;
  letter-spacing: 1px; padding: 12px 12px; border-bottom: 2px solid var(--border);
  background: #fafbfc; white-space: nowrap; position: sticky; top: 0; z-index: 2;
}
thead th.sortable { cursor: pointer; user-select: none; }
thead th.sortable:hover { color: var(--ink); }
thead th .arr { color: var(--dim); margin-left: 4px; font-size: 11px; }
tbody td {
  padding: 12px 12px; border-bottom: 1px solid var(--border-soft);
  vertical-align: top; color: var(--text); line-height: 1.6;
}
tbody tr:hover { background: #fafbfd; }
.code-cell { font-family: var(--mono, "SFMono-Regular", Consolas, monospace); color: var(--muted); font-size: 13px; white-space: nowrap; }
.name-cell { font-weight: 600; color: var(--ink); font-size: 15px; white-space: nowrap; }
.former-cell { color: var(--muted); font-size: 13px; }
.date-cell { white-space: nowrap; color: var(--ink); }
.reason-cell, .result-cell { font-size: 13.5px; }
.verdict-cell { white-space: nowrap; }

.badge {
  display: inline-block; font-size: 13px; font-weight: 600; color: #fff;
  border-radius: 999px; padding: 5px 12px; letter-spacing: 1px; white-space: nowrap;
}

/* ---------- Market badge ---------- */
.market-cell { white-space: nowrap; }
.mkt-badge {
  display: inline-block; font-size: 11px; font-weight: 600;
  border-radius: 4px; padding: 3px 7px; letter-spacing: 1px; white-space: nowrap;
}
.mkt-a { background: #e8eef5; color: #4a6fa5; border: 1px solid #c8d6e8; }
.mkt-hk { background: #fdf0e6; color: #c0602a; border: 1px solid #e8d0bc; }

.empty-row td { text-align: center; color: var(--dim); padding: 30px; font-size: 14px; }

footer.site-foot { text-align: center; color: var(--dim); font-size: 12.5px; margin-top: 36px; line-height: 1.8; letter-spacing: 1px; }
footer.site-foot .rule { width: 60px; height: 1px; margin: 0 auto 14px; background: linear-gradient(90deg, transparent, var(--dim), transparent); }

/* ---------- Disclaimer ---------- */
.disclaimer {
  margin: 8px 0 22px; text-align: left;
  background: #fcfcfd; border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 22px; box-shadow: var(--shadow-sm);
}
.disclaimer h3 {
  font-family: var(--serif); font-size: 16px; letter-spacing: 3px; margin: 0 0 12px;
  color: var(--ink); text-align: center; position: relative;
}
.disclaimer h3::before, .disclaimer h3::after {
  content: ""; display: inline-block; width: 38px; height: 1px; vertical-align: middle;
  background: var(--dim); margin: 0 12px;
}
.disclaimer p { font-size: 13px; line-height: 1.85; color: var(--muted); margin: 0 0 10px; }
.disclaimer p:last-child { margin-bottom: 0; }
.disclaimer strong { color: var(--accent); font-weight: 600; }
footer.site-foot .foot-meta { margin-top: 6px; }

@media (max-width: 640px) {
  .site-head h1 { font-size: 26px; letter-spacing: 3px; }
  .toolbar { flex-direction: column; align-items: stretch; }
}
