/* ============================================================
 * 标易通 · 基础样式与设计令牌（前后台共用）
 * ============================================================ */
:root {
  --primary: #2A4FD7;
  --primary-600: #1F3FB8;
  --primary-700: #17308F;
  --primary-50: #EEF2FF;
  --primary-100: #DDE5FF;

  --gold: #B8862F;
  --gold-50: #FBF3E2;

  --ink: #0F172A;
  --ink-2: #475467;
  --ink-3: #8A93A6;
  --ink-4: #B4BAC7;

  --line: #EBEDF2;
  --line-2: #E1E5EC;
  --bg: #F5F6FA;
  --white: #FFFFFF;

  --red: #E03E3E;
  --green: #12A66A;
  --amber: #E0952F;
  --blue: #2A4FD7;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 20px;

  --sh-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --sh: 0 2px 12px rgba(16, 24, 40, .06);
  --sh-md: 0 8px 24px rgba(16, 24, 40, .09);
  --sh-lg: 0 18px 48px rgba(16, 24, 40, .16);

  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
img { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; }

/* ---------- 通用组件 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 16px; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 500; white-space: nowrap;
  background: var(--white); color: var(--ink); border: 1px solid var(--line-2);
  transition: all .16s ease;
}
.btn:hover { border-color: var(--ink-4); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-600); border-color: var(--primary-600); }
.btn-ghost { background: var(--primary-50); color: var(--primary); border-color: transparent; }
.btn-ghost:hover { background: var(--primary-100); }
.btn-danger { color: var(--red); border-color: #F3C9C9; background: #FEF2F2; }
.btn-danger:hover { background: #FDE8E8; border-color: #EAB0B0; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 12.5px; border-radius: 6px; }
.btn-lg { height: 46px; padding: 0 26px; font-size: 15px; border-radius: var(--r); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-block { width: 100%; }

.pill {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 8px; border-radius: 5px;
  font-size: 12px; font-weight: 500; line-height: 1;
  background: var(--bg); color: var(--ink-2);
}
.pill-blue { background: var(--primary-50); color: var(--primary); }
.pill-gold { background: var(--gold-50); color: var(--gold); }
.pill-green { background: #E6F7F0; color: var(--green); }
.pill-red { background: #FDEDED; color: var(--red); }
.pill-amber { background: #FEF4E6; color: var(--amber); }
.pill-gray { background: #F1F3F7; color: var(--ink-3); }

.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 6px; font-weight: 500; }
.input, .select, .textarea {
  width: 100%; height: 38px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: #fff; outline: none; transition: border-color .16s, box-shadow .16s;
}
.textarea { height: auto; min-height: 88px; padding: 10px 12px; line-height: 1.6; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(42, 79, 215, .1); }
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }

.empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 56px 20px; color: var(--ink-3); font-size: 13px; gap: 10px;
}
.empty .ico { width: 56px; height: 56px; opacity: .5; }

/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #D5DAE3; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #BAC1CE; }
::-webkit-scrollbar-track { background: transparent; }
