:root {
  --bg: #f6f6ef;
  --card: #fffef9;
  --ink: #1f2a2e;
  --accent: #0d6b5f;
  --accent-2: #f28b30;
  --line: #d8d4c8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 20% 20%, #fff2d8 0%, transparent 45%),
    radial-gradient(circle at 85% 10%, #dff4ee 0%, transparent 40%), var(--bg);
}

.bg-shape {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(45deg, rgba(13, 107, 95, 0.02) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(13, 107, 95, 0.02) 25%, transparent 25%);
  background-size: 24px 24px;
  pointer-events: none;
}

.container {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 16px 24px;
}

.hero {
  padding: 12px 4px;
  animation: slideIn 0.45s ease;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.hero-right {
  margin: 0;
  align-items: center;
}

.hero h1 {
  margin: 0 0 6px;
  font-size: 30px;
  letter-spacing: 0.5px;
}

.hero p {
  margin: 0;
  color: #4d595e;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin-top: 14px;
  box-shadow: 0 6px 22px rgba(19, 31, 33, 0.06);
  animation: fadeUp 0.35s ease;
}

.card h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

input,
select,
textarea,
button,
.btn {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  background: #fff;
}

input,
select,
textarea {
  min-width: 180px;
}

.wide-input {
  min-width: 360px;
  flex: 2;
}

.mono {
  font-family: "Cascadia Code", "Consolas", monospace;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #48565a;
}

.two-col > label {
  min-width: 280px;
  flex: 1;
}

.inline-check {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.compact-check {
  min-height: 42px;
  padding: 0 4px;
}

button,
.btn {
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

button.ghost,
.btn.ghost {
  background: #e8f2ef;
  color: #1f3f3a;
}

button.danger-btn,
.btn.danger-btn {
  background: #b14b3c;
  color: #fff;
}

button[disabled],
.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 10px 8px;
  font-size: 13px;
}

.tip {
  margin: 4px 0 0;
  color: #4d595e;
}

.warning-tip {
  color: #9a4e17;
}

.pager {
  align-items: center;
  justify-content: flex-end;
  margin-top: 8px;
}

.pager .tip {
  margin-right: auto;
}

.pager-input {
  width: 90px;
  min-width: 90px;
}

.small-btn {
  padding: 6px 8px;
  margin-right: 6px;
  font-size: 12px;
}

.small-btn.del {
  background: #b14b3c;
}

.small-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.scope-panel {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.scope-panel strong {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
}

.login-mask {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(13, 21, 22, 0.4);
  z-index: 1000;
}

.login-card {
  width: min(460px, calc(100vw - 24px));
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fffef9;
  box-shadow: 0 16px 28px rgba(18, 27, 28, 0.22);
}

.login-card h2 {
  margin: 0 0 4px;
}

.login-card p {
  margin: 0 0 10px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 700px) {
  .hero h1 {
    font-size: 24px;
  }

  input,
  select,
  textarea,
  button,
  .btn {
    width: 100%;
  }

  .hero-top {
    align-items: flex-start;
    flex-direction: column;
  }
}
