:root {
  --bg-base: #f4efe7;
  --bg-surface: rgba(255, 252, 248, 0.92);
  --bg-panel: rgba(255, 255, 255, 0.82);
  --bg-strong: #16312b;
  --bg-soft: #eef3ef;
  --line-soft: rgba(22, 49, 43, 0.12);
  --line-strong: rgba(22, 49, 43, 0.22);
  --text-main: #13231f;
  --text-muted: #5f706c;
  --text-light: rgba(255, 255, 255, 0.76);
  --brand: #1d6b57;
  --brand-strong: #154c3f;
  --brand-warm: #d7a25e;
  --danger: #c74f45;
  --shadow-soft: 0 22px 50px rgba(19, 35, 31, 0.08);
  --shadow-strong: 0 24px 60px rgba(14, 28, 24, 0.14);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-main);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(215, 162, 94, 0.18), transparent 32%),
    radial-gradient(circle at top right, rgba(29, 107, 87, 0.16), transparent 30%),
    linear-gradient(180deg, #fbf7f1 0%, #f4efe7 38%, #eef2ee 100%);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.22;
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: auto auto -160px -140px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(29, 107, 87, 0.18), transparent 68%);
  filter: blur(24px);
  pointer-events: none;
  z-index: -1;
}

.hidden {
  display: none !important;
}

.page-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.card {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

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

button:active {
  transform: translateY(0);
}

input,
select,
textarea {
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(29, 107, 87, 0.5);
  box-shadow: 0 0 0 4px rgba(29, 107, 87, 0.12);
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
}

.primary-btn {
  border: none;
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, #27826b 45%, var(--brand-warm) 140%);
  box-shadow: 0 16px 32px rgba(29, 107, 87, 0.22);
}

.primary-btn:hover {
  box-shadow: 0 20px 34px rgba(29, 107, 87, 0.28);
}

.secondary-btn {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line-soft);
}

.secondary-btn:hover,
.ghost-btn:hover {
  border-color: rgba(29, 107, 87, 0.24);
  background: rgba(255, 255, 255, 0.95);
}

.ghost-btn {
  color: var(--brand-strong);
  background: rgba(29, 107, 87, 0.08);
  border: 1px solid rgba(29, 107, 87, 0.12);
}

@media (max-width: 640px) {
  .page-shell {
    padding: 16px;
  }

  body::before {
    opacity: 0.14;
  }
}
