/* 清新乡土风格 · 公共样式 */
:root {
  --green: #07c160;
  --green-dark: #059a4c;
  --green-light: #e8f8ef;
  --orange: #e6a23c;
  --orange-light: #fdf3e3;
  --earth: #8d6e63;
  --bg: #f6f4ef;
  --card: #ffffff;
  --text: #2f3a32;
  --muted: #8a948c;
  --line: #e8e4dc;
  --danger: #e8403c;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(60, 70, 60, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 15px; color: var(--text); }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: 999px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; transition: opacity .15s;
}
.btn:active { opacity: .8; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:disabled { background: #b5d9c4; cursor: not-allowed; }
.btn-outline { border-color: var(--green); color: var(--green); background: #fff; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-gray { background: #ece9e2; color: var(--text); }

/* 卡片 */
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
}

/* 表单 */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.input, .textarea, .select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; outline: none;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--green); }
.textarea { resize: vertical; min-height: 80px; line-height: 1.6; }

/* Toast */
#toastBox { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 99999; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  background: rgba(0, 0, 0, .78); color: #fff; padding: 10px 20px; border-radius: 999px;
  font-size: 14px; max-width: 86vw; animation: toastIn .2s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* 骨架屏 */
.skeleton { background: linear-gradient(90deg, #eee 25%, #f6f6f6 40%, #eee 55%); background-size: 400% 100%; animation: sk 1.2s infinite; border-radius: 8px; }
@keyframes sk { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* 工具 */
.muted { color: var(--muted); }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; }
.hidden { display: none !important; }
.price { color: var(--danger); font-weight: 700; }
