/* ============================================================
   华闽恒康 · 公共设计系统
   ============================================================ */
:root {
  --green-950: #2f4a38;
  --green-900: #385741;
  --green-800: #42654b;
  --green-700: #4d7756;
  --green-600: #56815d;
  --green-500: #7c9e7b;
  --green-400: #9cbb97;
  --green-300: #c3d8be;
  --green-100: #e8f1e5;
  --green-50: #f4f8f1;
  --sky-700: #14789f;
  --sky-600: #1b91bd;
  --sky-500: #2fa9d6;
  --sky-400: #66c4e7;
  --sky-100: #e3f6fc;
  --sky-50: #f2fbfe;
  --ink: #1c2e22;
  --ink-2: #34483b;
  --muted: #687e6f;
  --muted-2: #8fa394;
  --line: rgba(28, 46, 34, .09);
  --line-strong: rgba(28, 46, 34, .16);
  --paper: #fbfcfa;
  --white: #ffffff;
  --gold: #c3a570;
  --gold-light: #e7d8b8;
  --orange: #f26b1d;
  --orange-600: #dd5a0c;
  --orange-100: #fff0e6;
  --red: #d94a3d;
  --shadow-sm: 0 6px 20px rgba(36, 61, 45, .06);
  --shadow: 0 18px 50px rgba(36, 61, 45, .10);
  --shadow-lg: 0 30px 80px rgba(36, 61, 45, .16);
  --radius: 18px;
  --radius-lg: 28px;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-sans: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", system-ui, sans-serif;
  --ease: cubic-bezier(.22, .7, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, p { margin: 0; }
[v-cloak] { display: none !important; }
::selection { background: var(--green-300); color: var(--green-950); }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(68, 107, 78, .22); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(68, 107, 78, .38); }

.container {
  width: 100%;
  max-width: 2100px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 88px);
}
.container-narrow { max-width: 1480px; }

/* 按钮 */
.btn {
  --btn-bg: var(--green-600);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s;
  box-shadow: 0 12px 26px rgba(85, 125, 91, .22);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(85, 125, 91, .3); }
.btn:active { transform: translateY(0); }
.btn-light { --btn-bg: #fff; --btn-fg: var(--green-800); box-shadow: 0 10px 30px rgba(2, 20, 15, .18); }
.btn-ghost {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .42);
  box-shadow: none;
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .16); box-shadow: none; }
.btn-gold { --btn-bg: var(--gold); --btn-fg: #2b2413; box-shadow: 0 12px 26px rgba(195, 165, 112, .3); }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* 标签 */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
}
.chip-sky { background: var(--sky-100); color: var(--sky-700); }
.chip-gold { background: rgba(195, 165, 112, .16); color: #8a7038; }
.chip-orange { background: var(--orange-100); color: var(--orange-600); }
.chip-line { background: transparent; border: 1px solid var(--line-strong); color: var(--muted); }

/* 标题 */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--green-600);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}
.section-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(30px, 3.4vw, 56px);
  line-height: 1.24;
  letter-spacing: .02em;
  color: var(--ink);
}
.section-sub { color: var(--muted); font-size: 15px; line-height: 1.9; }

/* 表单 */
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .06em; margin-bottom: 8px; }
.input, .textarea, .select {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color .25s, box-shadow .25s;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(124, 158, 123, .18);
}
.textarea { min-height: 120px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23647b72' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 38px; }

/* 图标 */
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Toast */
.hm-toast-wrap { position: fixed; z-index: 9999; left: 50%; top: 26px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; width: min(92vw, 460px); }
.hm-toast {
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(42, 70, 53, .94);
  color: #fff;
  font-size: 13.5px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  animation: toastIn .35s var(--ease);
  text-align: center;
}
.hm-toast.success { background: rgba(68, 107, 78, .96); }
.hm-toast.error { background: rgba(180, 54, 40, .96); }
.hm-toast.warn { background: rgba(191, 122, 20, .96); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px) scale(.96); } to { opacity: 1; transform: none; } }

/* 骨架 */
.skeleton {
  background: linear-gradient(100deg, #edf3ea 20%, #f7faf4 40%, #edf3ea 60%);
  background-size: 220% 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: 10px;
}
@keyframes shimmer { to { background-position: -220% 0; } }

/* 滚动出现 */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* 弹层 */
.modal-mask {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(30, 49, 36, .55);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn .25s ease;
}
.modal-card {
  background: #fff; border-radius: var(--radius-lg);
  width: min(620px, 100%); max-height: 88vh; overflow: auto;
  padding: 30px;
  box-shadow: var(--shadow-lg);
  animation: modalUp .35s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalUp { from { opacity: 0; transform: translateY(20px) scale(.98); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
