﻿:root {
  --bg: #EFEBE4;
  --paper: rgba(255, 255, 255, 0.86);
  --paper-solid: #ffffff;
  --text: #171717;
  --muted: #676158;
  --line: rgba(28, 28, 28, 0.08);
  --shadow-soft: 0 18px 45px rgba(28, 28, 28, 0.08);
  --shadow-card: 0 24px 60px rgba(28, 28, 28, 0.12);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --user: #1C1C1C;
  --gold: #C88010;
  --blue: #1E3FA0;
  --green: #2e8b57;
  --red: #b54a4a;
  --gray: #8c877f;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(200, 128, 16, 0.08), transparent 30%),
    radial-gradient(circle at top right, rgba(30, 63, 160, 0.06), transparent 22%),
    linear-gradient(180deg, #F7F4EE 0%, var(--bg) 100%);
}
.page-shell { min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 18px 32px; background: rgba(255, 255, 255, 0.82); border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 24px rgba(28, 28, 28, 0.05); backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.brand-mark {
  width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, #D9EFC8 0%, #A4D28F 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.brand-mark::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 3px solid #1C3E21;
  border-top-width: 6px;
  border-radius: 6px;
  box-sizing: border-box;
}
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 22px; font-weight: 800; letter-spacing: -0.04em; }
.brand-copy span { color: var(--muted); font-size: 12px; }
.nav-links, .nav-actions { display: inline-flex; align-items: center; gap: 10px; }
.nav-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 6px;
  border-radius: 999px; background: rgba(255,255,255,.72); border: 1px solid rgba(28,28,28,.06); box-shadow: var(--shadow-soft);
}
.nav-pill a, .nav-pill button, .nav-actions a, .nav-actions button {
  padding: 12px 18px; border: none; border-radius: 999px; background: transparent; color: var(--muted);
  text-decoration: none; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.nav-pill .active { background: rgba(28, 28, 28, 0.08); color: var(--text); }
.layout { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 72px; }
.card, .panel, .table-card, .hero-card {
  background: var(--paper); border: 1px solid rgba(255,255,255,.78); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card); backdrop-filter: blur(12px);
}
.hero-card, .panel, .table-card { padding: 24px; }
.page-title, .section-title { margin: 0; font-family: "DM Serif Display", "Lora", serif; line-height: 1.08; }
.page-title { font-size: 42px; letter-spacing: -0.04em; }
.section-title { font-size: 34px; }
.page-subtitle, .section-copy { color: var(--muted); line-height: 1.8; }
.page-subtitle { margin: 14px 0 0; font-size: 16px; }
.section-copy { margin: 10px 0 0; }
.grid-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.stack { display: grid; gap: 22px; }
.auth-layout { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 24px; }
.auth-highlight { display: grid; gap: 18px; align-content: start; }
.auth-badge {
  display: inline-flex; width: fit-content; align-items: center; gap: 8px; padding: 8px 12px;
  border-radius: 999px; background: rgba(28, 28, 28, 0.06); color: var(--muted);
  font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
}
.auth-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #C88010;
  box-shadow: 0 0 14px rgba(200, 128, 16, 0.45);
}
.feature-list { display: grid; gap: 14px; margin-top: 8px; }
.feature-item {
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(28,28,28,.06);
}
.feature-item strong { display: block; margin-bottom: 8px; }
.form-grid { display: grid; gap: 16px; margin-top: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 700; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-md); border: 1px solid rgba(28,28,28,.12);
  background: rgba(255,255,255,.94); color: var(--text); font: inherit;
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 52px;
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: rgba(28,28,28,.06);
  color: var(--muted);
  cursor: pointer;
}
.password-toggle:hover {
  background: rgba(28,28,28,.1);
  color: var(--text);
}
.password-toggle svg {
  width: 18px;
  height: 18px;
}
.field textarea { min-height: 120px; resize: vertical; }
.actions-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.auth-secondary-link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.auth-secondary-link a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(30,63,160,.12);
  border: 1px solid rgba(30,63,160,.18);
  color: var(--blue);
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(30,63,160,.12);
}
.auth-secondary-link a:hover {
  background: rgba(30,63,160,.18);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-width: 132px; padding: 14px 20px;
  border: none; border-radius: 999px; color: #fff; font: inherit; font-size: 14px; font-weight: 800; text-decoration: none; cursor: pointer;
}
.btn-user { background: var(--user); box-shadow: 0 16px 32px rgba(28,28,28,.18); }
.btn-gold { background: var(--gold); box-shadow: 0 16px 32px rgba(200,128,16,.24); }
.btn-blue { background: var(--blue); box-shadow: 0 16px 32px rgba(30,63,160,.24); }
.btn-ghost { color: var(--text); background: rgba(28,28,28,.06); box-shadow: none; }
.message { display: none; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-md); font-size: 14px; line-height: 1.6; }
.message.show { display: block; }
.message.success { background: rgba(46,139,87,.12); color: var(--green); }
.message.error { background: rgba(181,74,74,.12); color: var(--red); }
.message.info { background: rgba(30,63,160,.10); color: var(--blue); }
.muted-link, .inline-link { color: var(--blue); text-decoration: none; font-weight: 700; }
.info-list { display: grid; gap: 14px; margin-top: 20px; }
.info-item { padding: 16px 18px; border-radius: var(--radius-lg); background: rgba(255,255,255,.72); border: 1px solid rgba(28,28,28,.06); }
.info-item strong { display: block; margin-bottom: 8px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; min-width: 760px; }
.table th, .table td { padding: 14px 12px; border-bottom: 1px solid rgba(28,28,28,.08); text-align: left; vertical-align: middle; font-size: 14px; }
.table th { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.badge { display: inline-flex; align-items: center; padding: 7px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.badge-active, .badge-unused { background: rgba(46,139,87,.12); color: var(--green); }
.badge-disabled, .badge-used { background: rgba(140,135,127,.16); color: var(--gray); }
.row-disabled { opacity: 0.62; }
.empty-state { padding: 24px; text-align: center; color: var(--muted); }
.search-row { display: flex; gap: 10px; flex-wrap: wrap; }
.search-row input { flex: 1; min-width: 220px; }
@media (max-width: 980px) {
  .grid-two { grid-template-columns: 1fr; }
  .auth-layout { grid-template-columns: 1fr; }
  .topbar { flex-wrap: wrap; justify-content: center; }
  .brand { width: 100%; justify-content: center; }
}
@media (max-width: 720px) {
  .topbar {
    padding: 16px 18px;
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
  .brand {
    width: auto;
    justify-content: center;
  }
  .brand-copy strong {
    font-size: 18px;
  }
  .nav-links,
  .nav-actions {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .nav-pill {
    width: auto;
    max-width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    padding: 6px;
  }
  .nav-actions .nav-pill {
    padding: 4px;
  }
  .nav-pill a,
  .nav-pill button,
  .nav-actions a,
  .nav-actions button {
    padding: 10px 16px;
    font-size: 13px;
  }
  .layout { width: min(100%, calc(100% - 20px)); padding: 20px 0 46px; }
  .hero-card, .panel, .table-card { padding: 20px; }
  .page-title, .section-title { font-size: 30px; }
  .auth-secondary-link {
    justify-content: center;
    flex-wrap: wrap;
  }
}
