:root {
  --bg0: #07060a;
  --bg1: #120f18;
  --bg2: #1a1524;
  --panel: rgba(24, 20, 34, 0.72);
  --panel-strong: rgba(28, 23, 40, 0.92);
  --text: #f7f1e8;
  --muted: #a89bb0;
  --gold: #d4b06a;
  --gold-soft: #f0d9a0;
  --gold-deep: #a67c3d;
  --line: rgba(212, 176, 106, 0.22);
  --line-strong: rgba(212, 176, 106, 0.45);
  --danger: #ff8e8e;
  --ok: #8dffb0;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(212, 176, 106, 0.18), transparent 55%),
    radial-gradient(900px 500px at 95% 5%, rgba(120, 80, 180, 0.18), transparent 50%),
    radial-gradient(700px 500px at 50% 110%, rgba(212, 176, 106, 0.08), transparent 55%),
    linear-gradient(165deg, var(--bg0), var(--bg1) 45%, var(--bg2));
  background-attachment: fixed;
  letter-spacing: 0.01em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 85%);
  opacity: 0.35;
  z-index: 0;
}

a { color: var(--gold-soft); text-decoration: none; transition: color .2s ease; }
a:hover { color: #fff; }

.wrap {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 28px 18px 56px;
}

.lang-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.lang-label {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lang-switch {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  max-width: 100%;
}

.lang-btn {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--muted) !important;
  text-decoration: none !important;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  transition: all .2s ease;
}

.lang-btn:hover {
  color: var(--gold-soft) !important;
  background: rgba(212, 176, 106, 0.08);
}

.lang-btn.active {
  color: #1a1208 !important;
  background: linear-gradient(135deg, #f3dfb1, var(--gold));
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(166, 124, 61, 0.25);
}

.hero {
  text-align: center;
  padding: 28px 12px 8px;
  margin-bottom: 22px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(212, 176, 106, 0.08);
  color: var(--gold-soft);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}

.hero h1,
.brand-title {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  background: linear-gradient(120deg, #fff8ea 10%, var(--gold-soft) 45%, #fff 70%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p,
.subtitle {
  margin: 12px auto 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.brand {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: linear-gradient(120deg, #fff, var(--gold-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

.card,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.stack { display: grid; gap: 14px; }

.choice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  min-height: 108px;
  padding: 22px 24px;
  border-radius: 20px;
  text-decoration: none !important;
  color: var(--text) !important;
  background:
    linear-gradient(145deg, rgba(212,176,106,0.12), rgba(255,255,255,0.02) 40%, rgba(0,0,0,0.2)),
    var(--panel-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.choice-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold-deep));
}

.choice-card::after {
  content: "›";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  color: var(--gold);
  opacity: 0.7;
  transition: transform .25s ease, opacity .25s ease;
}

.choice-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 28px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(212,176,106,0.12);
}

.choice-card:hover::after {
  transform: translate(4px, -50%);
  opacity: 1;
}

.choice-card .label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
}

.choice-card .title {
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.choice-card .desc {
  color: var(--muted);
  font-size: 0.9rem;
}

.btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 15px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, #f3dfb1, var(--gold) 45%, var(--gold-deep));
  color: #1a1208;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: 0 10px 28px rgba(166, 124, 61, 0.28);
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  color: #1a1208;
  box-shadow: 0 14px 32px rgba(166, 124, 61, 0.38);
}

.btn.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
  box-shadow: none;
}

.btn.secondary:hover {
  background: rgba(212, 176, 106, 0.08);
  color: var(--gold-soft);
  border-color: var(--line-strong);
  filter: none;
}

.btn.danger {
  background: transparent;
  color: var(--danger);
  border-color: rgba(255, 142, 142, 0.35);
  box-shadow: none;
}

.btn.large {
  padding: 20px 18px;
  font-size: 1.08rem;
  border-radius: 16px;
}

.btn.ghost {
  display: inline-block;
  width: auto;
  padding: 8px 14px;
  font-size: 0.88rem;
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
  box-shadow: none;
  letter-spacing: 0.04em;
}

.btn.ghost:hover {
  color: var(--gold-soft);
  border-color: var(--line-strong);
  filter: none;
  transform: none;
}

.login-box {
  width: min(440px, 100%);
  margin: 14vh auto 0;
  position: relative;
}

.login-box::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius) + 1px);
  background: linear-gradient(135deg, rgba(212,176,106,0.55), transparent 40%, rgba(212,176,106,0.25));
  z-index: -1;
  opacity: 0.7;
}

h1, h2, h3 { margin: 0 0 12px; }
h1 { font-size: 1.55rem; letter-spacing: 0.04em; }
h2 { font-size: 1.2rem; letter-spacing: 0.04em; }

label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

input, select, textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(8, 6, 12, 0.72);
  color: var(--text);
  margin-bottom: 14px;
  font-size: 1rem;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(212, 176, 106, 0.12);
}

textarea { min-height: 90px; resize: vertical; }

.alert {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 14px;
  background: rgba(255, 142, 142, 0.1);
  color: #ffd0d0;
  border: 1px solid rgba(255, 142, 142, 0.28);
}

.alert.ok {
  background: rgba(141, 255, 176, 0.08);
  color: #c9ffda;
  border-color: rgba(141, 255, 176, 0.28);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th, td {
  padding: 12px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(212, 176, 106, 0.12);
  color: var(--gold-soft);
  border: 1px solid var(--line);
}

.badge.off {
  background: rgba(168, 155, 176, 0.1);
  color: var(--muted);
  border-color: rgba(168, 155, 176, 0.2);
}

.actions { display: flex; flex-wrap: wrap; gap: 8px; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.nav a {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: all .2s ease;
}

.nav a.active, .nav a:hover {
  border-color: var(--line-strong);
  color: var(--gold-soft);
  background: rgba(212, 176, 106, 0.08);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.stat .num {
  margin-top: 6px;
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(120deg, #fff, var(--gold-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.crumb {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.03em;
}

.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--gold-soft); }

.footer-note {
  margin-top: 34px;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

.divider {
  height: 1px;
  margin: 8px 0 22px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.back-row {
  margin-top: 18px;
}

.admin-shell .wrap {
  width: min(1100px, 100%);
}

@media (max-width: 640px) {
  .wrap { padding: 20px 14px 40px; }
  .choice-card { min-height: 96px; padding: 18px 20px; }
  .choice-card .title { font-size: 1.08rem; }
  .hero { padding-top: 12px; }
}
