:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-soft: #fefcf8;
  --primary: #7fae9b;
  --primary-dark: #5e8e7a;
  --primary-light: #e6f2ef;
  --primary-soft: #bdd8ce;
  --accent: #e9b35f;
  --accent-light: #fbe9d2;
  --text-dark: #2c3e4e;
  --text-soft: #5f7f8c;
  --border-light: #e3eef0;
  --danger: #c86a6a;
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.03), 0 0 0 1px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 20px 32px rgba(0, 0, 0, 0.05);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-dark);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(1280px, calc(100% - 48px)); margin: 0 auto; }
.site-shell { min-height: 100vh; }
.section-block { margin: 48px 0 64px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head.compact { margin-bottom: 18px; }
.section-head h2, .page-hero h1, .hero h1, .detail-card h1, .article-detail-card h1 { margin: 0 0 8px; line-height: 1.2; }
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: var(--accent-light);
  color: #b87a2a;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}
.card-soft, .detail-card, .side-card, .knowledge-card, .report-highlight, .report-advice, .article-detail-card, .quiz-card, .form-card {
  background: var(--surface);
  border: 1px solid rgba(189, 216, 206, 0.35);
  border-radius: 32px;
  box-shadow: var(--shadow);
}
.flash {
  padding: 14px 18px;
  border-radius: 16px;
  margin: 20px 0;
  font-size: 14px;
}
.flash-success { background: #eef8f2; color: #2c6b4c; border: 1px solid #cfead7; }
.flash-error { background: #fff1f1; color: #9d4040; border: 1px solid #f0caca; }
.flash-warning { background: #fff7e8; color: #98661f; border: 1px solid #f2ddb0; }
.flash-info { background: #eef6fb; color: #35637c; border: 1px solid #cddfea; }
.btn-primary, .btn-outline, .btn-soft, .btn-secondary, .btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 11px 22px;
  cursor: pointer;
  transition: 0.2s ease;
  border: none;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 10px rgba(127, 174, 155, 0.24); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary-dark); border: 1px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-soft { background: var(--primary-light); color: #2c5f4a; }
.btn-soft:hover { background: var(--primary); color: #fff; }
.btn-secondary { background: #fff; color: var(--text-soft); border: 1px solid var(--border-light); }
.btn-secondary:hover { background: #f0f4f2; }
.btn-danger { background: #fff2f2; color: #b64c4c; border: 1px solid #efcccc; }
.btn-danger:hover { background: #ffe3e3; }
.btn-large { padding: 13px 30px; }
.text-link { color: var(--primary-dark); font-weight: 600; }
.text-link:hover { color: var(--primary); }
.field-grid { display: grid; gap: 16px; }
.field-grid.two-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stack-form { display: flex; flex-direction: column; gap: 16px; }
.stack-form label { display: flex; flex-direction: column; gap: 8px; font-weight: 600; }
.stack-form input, .stack-form textarea, .stack-form select, .inline-query-form input {
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 14px 16px;
  background: #fff;
  color: var(--text-dark);
}
.stack-form textarea { resize: vertical; }
.checkbox-row { flex-direction: row !important; align-items: center; gap: 10px !important; font-weight: 500 !important; }
.breadcrumb { display: flex; gap: 10px; flex-wrap: wrap; margin: 28px 0 16px; color: var(--text-soft); font-size: 14px; }
.breadcrumb a { color: var(--primary-dark); }
.helper-copy { color: var(--text-soft); font-size: 14px; }
.is-hidden { display: none !important; }
@media (max-width: 900px) {
  .field-grid.two-cols, .section-head { grid-template-columns: 1fr; display: grid; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 32px, 1280px); }
  .section-block { margin: 36px 0 48px; }
}
