body {
  margin: 0;
  font-family: "MiSans", "HarmonyOS Sans SC", "PingFang SC", "Noto Sans SC", "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.12px;
  background: #f5f7fb;
  color: #111827;
}
.wrap {
  max-width: 1180px;
  margin: 18px auto;
  padding: 0 14px;
}
.card {
  background: #fff;
  border: 1px solid #e6eaf0;
  border-radius: 12px;
  padding: 11px 12px;
  margin-bottom: 10px;
  box-shadow: 0 4px 18px rgba(17, 24, 39, 0.04);
}
h1, h2, h3 { margin: 0 0 10px 0; font-weight: 600; }
h1 { font-size: 21px; letter-spacing: 0.1px; }
h2 { font-size: 16px; letter-spacing: 0.08px; }
h3 { font-size: 14px; letter-spacing: 0.06px; }
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
}
th, td {
  border: 1px solid #e8edf3;
  padding: 6px 7px;
  font-size: 12px;
  vertical-align: top;
}
th { background: #f8fafc; font-weight: 600; color: #334155; }
input, select, textarea, button {
  font: inherit;
  padding: 6px 8px;
  margin: 2px;
  border-radius: 8px;
  border: 1px solid #d5dbe6;
}
input, select, textarea {
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #7c9cff;
  box-shadow: 0 0 0 3px rgba(124, 156, 255, 0.14);
}
button {
  cursor: pointer;
  background: #111827;
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.16);
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
button:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(17, 24, 39, 0.2);
}
button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.16);
}
button.secondary { background: #6b7280; color: #fff; }
button.danger { background: #dc2626; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}
.ok { color: #16a34a; font-weight: 700; }
.bad { color: #dc2626; font-weight: 700; }
.msg { padding: 7px 9px; border-radius: 8px; background: #eff6ff; margin-bottom: 8px; border: 1px solid #bfdbfe; }
.muted { color: #6b7280; font-size: 12px; }
.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 7px;
  background: #ecfeff;
  border: 1px solid #99f6e4;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.clean-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 5px;
}
.clean-form .full {
  grid-column: 1 / -1;
}
details.card summary {
  cursor: pointer;
  font-weight: 600;
}
details.card[open] summary {
  margin-bottom: 10px;
}

/* 紧凑商务版：深色硬朗风格，信息密度高 */
body.theme-compact {
  background: #e8f8f1;
  color: #0f3b2e;
}
body.theme-compact .wrap {
  max-width: 1160px;
}
body.theme-compact .card {
  background: linear-gradient(180deg, #f4fffa 0%, #ecfff6 100%);
  border: 1px solid #8fd8b8;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.16);
}
body.theme-compact h1,
body.theme-compact h2,
body.theme-compact h3,
body.theme-compact th,
body.theme-compact td,
body.theme-compact .muted {
  color: #1f5c49;
}
body.theme-compact th {
  background: #dcf7ea;
  border-color: #8fd8b8;
}
body.theme-compact td {
  border-color: #a9e6cb;
}
body.theme-compact input,
body.theme-compact select,
body.theme-compact textarea {
  background: #ffffff;
  border: 1px solid #92dbbb;
  color: #0f3b2e;
}
body.theme-compact input:focus,
body.theme-compact select:focus,
body.theme-compact textarea:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}
body.theme-compact button {
  background: linear-gradient(180deg, #34d399, #10b981);
  box-shadow: 0 6px 14px rgba(16, 185, 129, 0.26);
}
body.theme-compact button.secondary {
  background: linear-gradient(180deg, #6ee7b7, #34d399);
}

/* 轻奢留白版：更大字号与更宽松间距 */
body.theme-luxury {
  font-size: 15px;
  line-height: 1.62;
  letter-spacing: 0.14px;
  background: #f8fafd;
  color: #1e293b;
}
body.theme-luxury .wrap {
  max-width: 1260px;
  margin: 24px auto;
  padding: 0 16px;
}
body.theme-luxury .card {
  background: linear-gradient(180deg, #ffffff 0%, #fdfdff 100%);
  border: 1px solid #e8edf6;
  border-radius: 14px;
  padding: 16px 17px;
  margin-bottom: 14px;
  box-shadow: 0 14px 34px rgba(148, 163, 184, 0.22);
}
body.theme-luxury h1 { font-size: 24px; }
body.theme-luxury h2 { font-size: 18px; }
body.theme-luxury h3 { font-size: 16px; }
body.theme-luxury th,
body.theme-luxury td {
  padding: 9px 10px;
  font-size: 13px;
}
body.theme-luxury input,
body.theme-luxury select,
body.theme-luxury textarea,
body.theme-luxury button {
  padding: 9px 11px;
  margin: 4px;
  border-radius: 10px;
}
body.theme-luxury .grid { gap: 14px; }
body.theme-luxury .clean-form { gap: 9px; }

/* 奶白蓝调版：奶白底 + 深蓝主调 */
body.theme-milkblue {
  background: #f7f8fc;
  color: #1f2a44;
}
body.theme-milkblue .wrap {
  max-width: 1220px;
}
body.theme-milkblue .card {
  background: linear-gradient(180deg, #fffefc 0%, #f8fafd 100%);
  border: 1px solid #dbe3f3;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(30, 58, 138, 0.12);
}
body.theme-milkblue h1,
body.theme-milkblue h2,
body.theme-milkblue h3,
body.theme-milkblue th,
body.theme-milkblue td,
body.theme-milkblue .muted {
  color: #1e3a8a;
}
body.theme-milkblue th {
  background: #eef2ff;
  border-color: #c7d2fe;
}
body.theme-milkblue td {
  border-color: #d6ddf5;
}
body.theme-milkblue input,
body.theme-milkblue select,
body.theme-milkblue textarea {
  background: #fffefc;
  border: 1px solid #b6c2ee;
  color: #1f2a44;
}
body.theme-milkblue input:focus,
body.theme-milkblue select:focus,
body.theme-milkblue textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}
body.theme-milkblue button {
  background: linear-gradient(180deg, #1d4ed8, #1e40af);
  box-shadow: 0 6px 14px rgba(30, 64, 175, 0.28);
}
body.theme-milkblue button.secondary {
  background: linear-gradient(180deg, #64748b, #475569);
}
