/* ================= 代扔垃圾服务 - 基础样式（三端共享） ================= */
:root {
  --primary: #00b894;
  --primary-dark: #009874;
  --primary-light: #e6f9f4;
  --accent: #0984e3;
  --warn: #f0932b;
  --danger: #e17055;
  --text: #2d3436;
  --text-sub: #636e72;
  --text-light: #b2bec3;
  --bg: #f5f7fa;
  --card: #ffffff;
  --border: #edf0f2;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
input, textarea, select, button { font-family: inherit; font-size: inherit; outline: none; border: none; }

/* ---------------- 通用按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 20px; border-radius: 10px; cursor: pointer; font-weight: 600;
  transition: all .2s; background: #eef1f4; color: var(--text); white-space: nowrap;
  user-select: none;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; box-shadow: 0 4px 14px rgba(0,184,148,.35); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-accent { background: linear-gradient(135deg, #4aa3f0, var(--accent)); color: #fff; box-shadow: 0 4px 14px rgba(9,132,227,.3); }
.btn-outline { background: transparent; border: 1.5px solid var(--primary); color: var(--primary); }
.btn-ghost { background: var(--primary-light); color: var(--primary-dark); }
.btn-danger { background: #ffece8; color: var(--danger); }
.btn-gray { background: #eef1f4; color: var(--text-sub); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 24px; font-size: 16px; border-radius: 12px; }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------------- 表单 ---------------- */
.field { margin-bottom: 16px; }
.field-label { display: block; font-size: 13px; color: var(--text-sub); margin-bottom: 7px; font-weight: 600; }
.field-label .req { color: var(--danger); margin-left: 3px; }
.input, .textarea, .select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px;
  background: #fff; color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,184,148,.12); }
.textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--text-light); }
.input-row { display: flex; gap: 10px; }
.input-row .input { flex: 1; }
.input-row .btn { flex-shrink: 0; }

/* ---------------- 卡片 ---------------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; }
.card-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.card-title::before { content: ''; width: 4px; height: 16px; background: var(--primary); border-radius: 2px; }

/* ---------------- 标签 ---------------- */
.tag { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 600; line-height: 1.7; }

/* ---------------- 空状态 ---------------- */
.empty { text-align: center; padding: 50px 20px; color: var(--text-light); }
.empty-icon { font-size: 48px; margin-bottom: 10px; opacity: .5; }
.empty-text { font-size: 14px; }

/* ---------------- Toast ---------------- */
.gds-toast {
  position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%) scale(.9);
  background: rgba(0,0,0,.82); color: #fff; padding: 12px 22px; border-radius: 10px;
  font-size: 14px; z-index: 9999; opacity: 0; transition: all .3s; pointer-events: none;
  max-width: 80%; text-align: center; backdrop-filter: blur(4px);
}
.gds-toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.gds-toast-success { background: rgba(0,184,148,.94); }
.gds-toast-error { background: rgba(225,112,85,.94); }

/* ---------------- Loading ---------------- */
.gds-loading { position: fixed; inset: 0; background: rgba(255,255,255,.5); display: none; align-items: center; justify-content: center; z-index: 9998; }
.gds-loading-box { background: rgba(0,0,0,.78); border-radius: 12px; padding: 22px 26px; text-align: center; color: #fff; }
.gds-spinner { width: 30px; height: 30px; border: 3px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: gds-spin .8s linear infinite; margin: 0 auto 10px; }
.gds-loading-text { font-size: 13px; }
@keyframes gds-spin { to { transform: rotate(360deg); } }

/* ---------------- 工具类 ---------------- */
.flex { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-10 { gap: 10px; } .gap-12 { gap: 12px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; }
.text-sub { color: var(--text-sub); } .text-light { color: var(--text-light); }
.text-primary { color: var(--primary); } .text-danger { color: var(--danger); } .text-warn { color: var(--warn); }
.text-sm { font-size: 13px; } .text-xs { font-size: 12px; } .text-lg { font-size: 17px; } .text-xl { font-size: 20px; }
.fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; }
.text-center { text-align: center; } .text-right { text-align: right; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.divider { height: 1px; background: var(--border); margin: 12px 0; }
.price { color: var(--danger); font-weight: 700; }
.hidden { display: none !important; }
