:root {
  --bg: #13172e;
  --bg-soft: #1f2544;
  --surface: #fcf8fb;
  --surface-muted: #f3ecf2;
  --primary: #353878;
  --accent: #cc8554;
  --danger: #6c1418;
  --text: #f3edf5;
  --text-dark: #1e1d2e;
  --muted: #b7b0c5;
  --line: rgba(252, 248, 251, 0.18);
  --line-dark: rgba(53, 56, 120, 0.18);
  --radius: 14px;
  --shadow: 0 18px 40px rgba(10, 12, 26, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Avenir Next", "PingFang SC", "Noto Sans SC", sans-serif;
  background:
    radial-gradient(circle at 10% -20%, rgba(204, 133, 84, 0.2), transparent 38%),
    radial-gradient(circle at 100% 0%, rgba(108, 20, 24, 0.35), transparent 40%),
    linear-gradient(155deg, #13172e 0%, #202750 52%, #13172e 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 40;
  width: min(1120px, calc(100% - 48px));
  margin: 14px auto 18px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  background: rgba(19, 23, 46, 0.66);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, #cc8554 0%, #6c1418 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(108, 20, 24, 0.28);
  color: #fff;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 15px;
  letter-spacing: 0.2px;
}

.brand-text span {
  font-size: 11px;
  color: var(--muted);
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #cc8554 0%, #a45d36 100%);
  box-shadow: 0 10px 24px rgba(204, 133, 84, 0.33);
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(252, 248, 251, 0.08);
  color: var(--text);
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(21, 26, 52, 0.72);
  box-shadow: var(--shadow);
}

.card-light {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-dark);
  box-shadow: 0 12px 28px rgba(16, 18, 36, 0.16);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(204, 133, 84, 0.4);
  border-radius: 999px;
  color: #f3d2be;
  background: rgba(204, 133, 84, 0.12);
  padding: 6px 12px;
  font-size: 12px;
}

.muted {
  color: var(--muted);
}

.section-title {
  font-size: clamp(24px, 3.5vw, 34px);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.section-sub {
  margin: 0;
  color: var(--muted);
}

.grid-3 {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-label {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--muted);
}

.input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(19, 23, 46, 0.35);
  color: var(--text);
  padding: 12px 13px;
  font-size: 14px;
  outline: none;
}

.input:focus {
  border-color: rgba(204, 133, 84, 0.8);
}

.message {
  border-radius: 10px;
  border: 1px solid;
  padding: 10px 12px;
  font-size: 13px;
  display: none;
}

.message.error {
  border-color: rgba(108, 20, 24, 0.7);
  color: #ffcdd1;
  background: rgba(108, 20, 24, 0.3);
}

.message.info {
  border-color: rgba(204, 133, 84, 0.6);
  color: #ffe1cb;
  background: rgba(204, 133, 84, 0.2);
}

@media (max-width: 980px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .site-shell,
  .site-nav {
    width: calc(100% - 28px);
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .nav-actions .btn {
    padding: 8px 12px;
    font-size: 13px;
  }

  .brand-text span {
    display: none;
  }
}
