:root {
  --blue: #0085d0;
  --blue-2: #00a6e8;
  --blue-dark: #005f96;
  --ink: #10263a;
  --muted: #6b8199;
  --bg: #f2f6fb;
  --card: #ffffff;
  --line: #e4edf6;
  --green: #12b886;
  --red: #e5484d;
  --amber: #f59f00;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(16, 38, 58, 0.07);
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }

button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ---------- 通用组件 ---------- */

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(228, 237, 246, 0.9);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 6px 16px rgba(0, 133, 208, 0.28);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 9px 22px rgba(0, 133, 208, 0.34); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-ghost {
  background: #fff;
  color: var(--blue);
  border: 1px solid #cfe4f4;
  box-shadow: none;
}
.btn-ghost:hover { background: #f3f9fe; box-shadow: none; }

.btn-plain {
  background: #f1f5fa;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn-plain:hover { background: #e9f0f8; box-shadow: none; }

.btn-danger {
  background: #fff;
  color: var(--red);
  border: 1px solid #f6d5d6;
  box-shadow: none;
}
.btn-danger:hover { background: #fef3f3; box-shadow: none; }

.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 7px;
  letter-spacing: 0.2px;
}
.field label .req { color: var(--red); margin-left: 2px; }

.input, .select, textarea.input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid #dce8f3;
  border-radius: 12px;
  background: #fbfdff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
textarea.input { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, textarea.input:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 133, 208, 0.1);
}
.input::placeholder { color: #a9bccd; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 9px;
  border-radius: 7px;
  background: #eaf5fd;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 600;
}
.chip-green { background: #e6f8f1; color: #0d8a63; }
.chip-gray { background: #eef2f7; color: var(--muted); }
.chip-amber { background: #fff6e5; color: #b57d00; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 20px);
  background: rgba(16, 38, 58, 0.94);
  color: #fff;
  padding: 11px 20px;
  border-radius: 11px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
  z-index: 9999;
  max-width: 82vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.hidden { display: none !important; }
