/* ===== 变量 ===== */
:root {
  --bg: #f5efea;
  --surface: #ffffff;
  --ink: #242323;
  --muted: #7b7470;
  --red: #ba2228;
  --red-dark: #95191e;
  --red-light: #f7ece9;
  --line: #e6e1dd;
  --blue: #6687ba;
  --shadow: 0 5px 24px rgba(40, 25, 20, .035);
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.65;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: var(--red); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid #c96565;
  outline-offset: 3px;
}
h1, h2, h3, h4 { font-family: Georgia, "Times New Roman", serif; line-height: 1.25; }
h1, h2, h3, p { margin-top: 0; }
svg { display: block; }
.container { width: min(1280px, calc(100% - 64px)); margin: 0 auto; }

/* ===== Header ===== */
.header { background: linear-gradient(110deg, #1a1b1c, #101112); color: #fff; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}
.brand {
  padding: 0; border: 0; background: transparent;
  color: #f8f6f3;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px; font-weight: 700; letter-spacing: -.7px;
}
.brand span { color: #d6d0cb; font-weight: 400; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav button {
  position: relative;
  padding: 22px 2px; border: 0; background: transparent;
  color: #d9d4d0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
}
.nav button:hover, .nav button.active { color: #fff; }
.nav button.active::after {
  position: absolute; right: 2px; bottom: 16px; left: 2px;
  height: 2px; background: var(--red); content: "";
}
.version {
  padding: 3px 7px; border: 1px solid #4a4140;
  color: #bdb4af; font-size: 9px; letter-spacing: 1px;
}
.breadcrumb {
  display: flex; gap: 10px; align-items: center;
  padding: 9px 0; color: #948a82; font-size: 11px;
}
.breadcrumb strong { color: #665d56; font-weight: 400; }

/* ===== 通用页面组件 ===== */
.page-content { padding: 8px 0 38px; }
.page-heading {
  display: flex; flex-wrap: wrap; gap: 15px;
  align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.page-heading h1 { margin-bottom: 8px; font-size: 35px; }
.page-heading p { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.panel-head {
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 { margin: 0; font-size: 20px; }
.panel-body { padding: 23px; }
.panel-body > :last-child { margin-bottom: 0; }
.notice {
  margin: 18px 0; padding: 12px 15px;
  border: 1px solid #ebddcf; border-radius: 3px;
  background: #fcf7f1; color: #8c715c; font-size: 12px;
}
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 21px; }
.tabs button {
  padding: 9px 15px; border: 1px solid var(--line);
  border-radius: 3px; background: #fff;
  color: #776d65; font-size: 12px;
}
.tabs button.active { border-color: #dfb8b1; background: var(--red-light); color: var(--red); }
.btn {
  display: inline-flex; gap: 8px; align-items: center; justify-content: center;
  padding: 9px 15px; border: 1px solid var(--red); border-radius: 3px;
  background: var(--red); color: #fff; font-size: 12px; text-decoration: none;
}
.btn:hover { background: var(--red-dark); }
.btn.secondary { border-color: #ddd3cc; background: #fff; color: #6f5e52; }
.text-btn { padding: 0; border: 0; background: transparent; color: var(--red); font-size: 12px; }
.text-btn:hover { color: var(--red-dark); }
.badge {
  display: inline-block; padding: 3px 8px;
  border: 1px solid #e8ded7; border-radius: 3px;
  background: #f6f1ec; color: #917461; font-size: 10px; line-height: 1.5;
}
.badge.red { border-color: #eac8c3; background: #fbefec; color: #ad4744; }

/* ===== 结果列表 ===== */
.result-list { padding: 0 22px; }
.result {
  display: flex; gap: 17px; align-items: start;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.result:last-child { border-bottom: 0; }
.result-mark {
  display: grid; width: 42px; height: 42px; flex-shrink: 0;
  place-items: center; border-radius: 4px;
  background: var(--red-light); color: var(--red);
  font-family: Georgia, serif; font-size: 21px;
}
.result h3 { margin: 0 0 6px; font-size: 19px; }
.result p { margin: 0 0 9px; color: #7d7168; font-size: 12px; }
.result .detail-button { margin-left: auto; }
.result-footer {
  padding: 12px 22px; border-top: 1px solid var(--line);
  color: #908276; font-size: 11px;
}
.empty-results { padding: 46px 20px; text-align: center; color: #87786c; }

/* ===== Footer ===== */
.footer {
  display: flex; gap: 22px; align-items: center; justify-content: space-between;
  margin-top: 30px; padding: 24px 0 31px;
  border-top: 1px solid var(--line);
  color: #928478; font-size: 11px;
}
.footer strong { color: #4d4138; font-family: Georgia, "Times New Roman", serif; font-size: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 17px; }
.footer-links a { font-size: 11px; text-decoration: none; }

/* ===== Dialog ===== */
dialog {
  width: min(590px, calc(100% - 32px));
  max-height: 85vh; padding: 0;
  border: 1px solid #dfd4ca; border-radius: 5px;
  background: #fff; color: var(--ink);
  box-shadow: 0 20px 80px rgba(30, 20, 15, .2);
}
dialog::backdrop { background: rgba(25, 20, 17, .46); }
.dialog-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 19px 23px;
  border-bottom: 1px solid var(--line);
}
.dialog-header h2 { margin: 0; font-size: 25px; }
.close-btn {
  width: 30px; height: 30px; border: 0; background: transparent;
  color: #87796e; font-size: 24px;
}
dl {
  display: grid; grid-template-columns: 110px 1fr; gap: 11px 16px;
  margin: 0; font-size: 12px;
}
dt { color: #918174; }
dd { margin: 0; color: #51453c; }

/* ===== 响应式 ===== */
@media (max-width: 1000px) {
  .container { width: calc(100% - 40px); }
  .nav { gap: 22px; }
  .version { display: none; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 32px); }
  .header-inner { flex-wrap: wrap; gap: 0; padding-top: 13px; }
  .brand { font-size: 26px; }
  .nav { width: 100%; gap: 28px; overflow-x: auto; }
  .nav button { flex-shrink: 0; padding: 13px 0; font-size: 12px; }
  .nav button.active::after { bottom: 8px; }
  .footer { align-items: start; flex-direction: column; }
  .result { flex-wrap: wrap; }
  .result .detail-button { margin-left: 59px; }
}