:root {
  --bg: #eef4fb;
  --card: #ffffff;
  --primary: #8ea8db;
  --primary-deep: #6f8fcf;
  --line: #d9e5f5;
  --text: #2f3a4f;
  --muted: #73819b;
  --success: #2a9d5b;
  --warning: #c58a18;
  --error: #cc4d4d;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #f6f9fd 0%, var(--bg) 100%);
  color: var(--text);
}
.page {
  max-width: 760px;
  margin: 22px auto;
  padding: 0 14px 30px;
}
.page.narrow { max-width: 480px; }
.admin-page { max-width: 980px; }
.card {
  background: var(--card);
  border: 1px solid rgba(142, 168, 219, .25);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(95, 119, 165, .08);
  margin-bottom: 16px;
}
.hero { padding-top: 22px; }
.hero-title-row, .admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.brand-row { display: flex; gap: 14px; align-items: center; }
.brand-icon {
  width: 34px; height: 34px; border-radius: 12px;
  background: linear-gradient(180deg, #294f86, #17355f);
}
h1, h2, h3 { margin: 0 0 8px; }
p { margin: 0; color: var(--muted); }
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.top-grid { margin-top: 16px; }
.mini-card, .inner-card, .status-card {
  background: #f9fbff;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.mini-card { padding: 14px 16px; }
.mini-label, .section-title, label {
  font-size: 13px;
  color: #4f5f7d;
  font-weight: 700;
}
.mini-title {
  margin-top: 10px;
  font-size: 22px;
  font-weight: 700;
  color: #273246;
}
.mini-desc { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.field { margin-bottom: 14px; }
label { display: block; margin-bottom: 8px; }
input, textarea, button {
  font: inherit;
}
input[type="text"], input[type="password"], input[type="datetime-local"], textarea {
  width: 100%;
  border: 1px solid #d7e3f1;
  border-radius: 18px;
  padding: 13px 15px;
  background: #fff;
  color: var(--text);
  outline: none;
}
textarea { min-height: 110px; resize: vertical; }
input[readonly] {
  background: #f5f7fb;
  color: #59667d;
}
.query-bar {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 12px;
}
.query-tip, .muted, .footer-note {
  color: var(--muted);
  font-size: 13px;
}
.query-tip { margin-top: 10px; }
.btn, .admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 20px;
  cursor: pointer;
  transition: .2s ease;
}
.btn:hover, .admin-link:hover { transform: translateY(-1px); }
.btn.primary {
  background: linear-gradient(180deg, #9cb3e4, #7f9dd6);
  color: #fff;
  box-shadow: 0 8px 20px rgba(126, 150, 205, .35);
}
.btn.secondary, .admin-link {
  background: #eaf1fc;
  color: #3e5d96;
  border: 1px solid #cfe0f5;
}
.btn.ghost {
  background: #fff;
  color: #6d7a91;
  border: 1px solid #e1e8f2;
}
.btn.mini { padding: 10px 14px; }
button:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}
.inner-card { padding: 16px; margin: 10px 0 18px; }
.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.alert {
  padding: 13px 16px;
  border-radius: 16px;
  margin-bottom: 14px;
  font-weight: 600;
}
.alert.success { background: #e9f8ef; color: var(--success); border: 1px solid #bfeacc; }
.alert.warning { background: #fff6e6; color: var(--warning); border: 1px solid #f1ddb0; }
.alert.error { background: #fff0f0; color: var(--error); border: 1px solid #f3c6c6; }
.success-lite { color: var(--success); }
.warning-lite { color: var(--warning); }
.service-card { background: #f7fbff; }
.log-list { display: grid; gap: 10px; }
.log-item {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e2ebf7;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.log-item span, .log-item time { color: var(--muted); font-size: 13px; }
.empty-box {
  text-align: center;
  padding: 18px;
  border: 1px solid #dbe7f7;
  border-radius: 18px;
  background: white;
  color: var(--muted);
}
.footer-note { text-align: center; margin: 10px 0; }
.footer-chip {
  background: #dfeefe;
  color: #486a9f;
  border-radius: 999px;
  padding: 10px 14px;
  text-align: left;
  font-size: 14px;
}
.table-wrap { overflow: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 14px;
  overflow: hidden;
}
th, td {
  padding: 12px;
  border-bottom: 1px solid #ebf0f7;
  text-align: left;
  font-size: 14px;
}
th { background: #f6f9fd; }
@media (max-width: 720px) {
  .info-grid, .query-bar, .action-row { grid-template-columns: 1fr; }
  .hero-title-row, .admin-head, .log-item { flex-direction: column; align-items: stretch; }
}

.brand-image{width:42px;height:42px;border-radius:12px;object-fit:cover;border:1px solid var(--line);background:#fff}
.top-photo{width:100%;height:120px;object-fit:cover;border-radius:16px;margin-bottom:12px;border:1px solid var(--line);background:#fff}
.with-photo .mini-title{font-size:20px}
.field-no-margin{margin-bottom:0}
.admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.preview-image{display:block;width:100%;max-height:160px;object-fit:cover;border-radius:14px;border:1px solid var(--line);margin:0 0 10px;background:#fff}
.upload-box{padding:14px;border:1px dashed var(--line);border-radius:18px;background:#f9fbff}
.checkline{display:flex;align-items:center;gap:8px;margin-top:10px}
@media (max-width: 720px){.admin-grid,.info-grid,.query-bar,.action-row{grid-template-columns:1fr}.hero-title-row,.admin-head{flex-direction:column;align-items:flex-start}}
