:root {
  --bg: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --accent: #ff6b35;
  --accent-dark: #e85d2a;
  --green: #34c759;
  --red: #ff3b30;
  --radius: 18px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC",
    "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- 通用控件 ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 20px; border-radius: 12px;
  font-size: 15px; font-weight: 600; letter-spacing: .01em;
  background: var(--accent); color: #fff;
  transition: transform .12s ease, opacity .12s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .4; pointer-events: none; }
.btn.ghost { background: rgba(0,0,0,.05); color: var(--text); }
.btn.line { background: transparent; border: 1.5px solid var(--line); color: var(--text); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 9px; }
.btn.block { width: 100%; }
.btn.danger { background: var(--red); }

.input {
  width: 100%; height: 46px; padding: 0 14px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  outline: none; transition: border-color .15s ease;
}
.input:focus { border-color: var(--accent); }
textarea.input { height: auto; padding: 12px 14px; resize: vertical; min-height: 80px; }
select.input { appearance: none; background-image: none; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }

.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 10px; font-size: 12px; font-weight: 600;
  background: var(--accent); color: #fff;
}

/* ---------- 提示 ---------- */

.toast {
  position: fixed; left: 50%; top: 50%; z-index: 200;
  transform: translate(-50%, -50%) scale(.9);
  background: rgba(0,0,0,.82); color: #fff;
  padding: 14px 22px; border-radius: 14px; font-size: 15px;
  opacity: 0; pointer-events: none; transition: all .22s ease;
  max-width: 78vw; text-align: center; backdrop-filter: blur(8px);
}
.toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.empty {
  text-align: center; color: var(--muted); font-size: 14px; padding: 56px 24px;
}
