/* ===========================================================
   后桥识别查询系统 · 绿色主题
   色值严格照抄《架构设计》10.1 节。用色纪律见文件末尾。
   =========================================================== */
:root {
  /* 主色（绿） */
  --green-700: #15803d;
  --green-600: #16a34a;
  --green-500: #22c55e;
  --green-300: #86efac;
  --green-100: #dcfce7;
  --green-50:  #f0fdf4;

  /* 中性 */
  --text-900: #1f2937;
  --text-600: #4b5563;
  --text-400: #9ca3af;
  --bg:       #f7faf8;
  --card:     #ffffff;
  --border:   #e5e7eb;
  --border-strong: #d1d5db;

  /* 语义（克制使用） */
  --amber:    #b45309;
  --amber-bg: #fffbeb;
  --red:      #dc2626;
  --red-bg:   #fef2f2;
  --blue:     #2563eb;

  /* 尺寸 */
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .08);
  --shell-max: 1200px;
  --nav-w: 176px;
  --top-h: 52px;

  --font: "Microsoft YaHei", "微软雅黑", -apple-system, "Segoe UI", sans-serif;
}

/* ------------------------------------------------------------ 基础重置 */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-900);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4 { margin: 0 0 8px; line-height: 1.35; font-weight: 600; }
h1 { font-size: 20px; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }
h4 { font-size: 14px; color: var(--text-600); }
p  { margin: 0 0 8px; }

a { color: var(--green-600); text-decoration: none; }
a:hover { color: var(--green-700); text-decoration: underline; }

code, .mono {
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
}

hr { border: 0; border-top: 1px solid var(--border); margin: 12px 0; }

/* ------------------------------------------------------------ 表单元素 */
input[type="text"], input[type="password"], input[type="number"],
input[type="search"], select, textarea {
  font-family: var(--font);
  font-size: 14px;
  color: var(--text-900);
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  width: 100%;
  min-height: 34px;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px var(--green-100);
}

input::placeholder { color: var(--text-400); }

label { font-size: 13px; color: var(--text-600); }

fieldset { border: 0; margin: 0; padding: 0; }

/* ------------------------------------------------------------ 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.2;
  padding: 8px 14px;
  min-height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--card);
  color: var(--text-900);
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover { border-color: var(--green-300); background: var(--green-50); }

.btn--primary {
  background: var(--green-600);
  border-color: var(--green-600);
  color: #fff;
}
.btn--primary:hover { background: var(--green-700); border-color: var(--green-700); }

.btn--sm { padding: 4px 9px; min-height: 26px; font-size: 13px; }
.btn--block { width: 100%; }

/* 危险操作（删除账号/删除日志）：红色描边，与主色按钮区分 */
.btn--danger { border-color: var(--red); color: var(--red); background: var(--red-bg); }
.btn--danger:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn--danger[disabled] { opacity: .5; cursor: not-allowed; }

.btn[disabled], .btn[aria-disabled="true"] {
  opacity: .5;
  cursor: not-allowed;
}

.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ------------------------------------------------------------ 通用块 */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
}

.card__title { font-size: 15px; font-weight: 600; margin-bottom: 10px; }

.divider { height: 1px; background: var(--border); margin: 12px 0; }

.muted { color: var(--text-600); }
.dim   { color: var(--text-400); }
.small { font-size: 12px; }
.nowrap{ white-space: nowrap; }
.right { text-align: right; }
.center{ text-align: center; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; }

/* 用色纪律：
   - 不做深色主题、不用蓝色主色、不做花哨渐变。
   - 绿色只用于：主按钮、选中态、成功提示、命中高亮、左侧导航当前项竖条。
   - 琥珀色只用于「价格待补」，一处一屏最多 2 处。
   - 阴影只有 --shadow 一档；圆角统一 10px / 6px。
   - 页面最大宽 1200px（PC 查询页表格可全宽）。 */
