/* ============================================================
 * base.css —— 变量、重置、排版、页头
 * ============================================================ */
:root {
  --brand:   #0d9488;
  --brand-d: #0f766e;
  --brand-l: #e6f5f3;

  --danger:   #dc2626;
  --danger-l: #fef2f2;
  --warn:     #ea580c;
  --warn-l:   #fff7ed;
  --info:     #2563eb;
  --info-l:   #eff6ff;

  --txt:  #1f2937;
  --txt2: #4b5563;
  --txt3: #9ca3af;

  --bg:   #f4f6f7;
  --card: #ffffff;
  --line: #e5e7eb;

  --radius:   14px;
  --radius-s: 10px;
  --shadow:   0 2px 10px rgba(0, 0, 0, .05);
}

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

html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
               "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--txt);
  font-size: 15px;
  line-height: 1.7;
  padding-bottom: env(safe-area-inset-bottom);
}

/* ---------- 页头 ---------- */
header {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #fff;
  padding: 22px 16px 18px;
}
header h1 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .5px;
}
header .sub {
  font-size: 12.5px;
  opacity: .9;
  margin-top: 5px;
}
.disc {
  background: rgba(255, 255, 255, .16);
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 12px;
  font-size: 11.5px;
  line-height: 1.6;
}

/* ---------- 通用文本 ---------- */
mark {
  background: #fde68a;
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
}

.note {
  font-size: 11.5px;
  color: var(--txt3);
  text-align: center;
  margin-top: 20px;
  line-height: 1.7;
  padding: 0 10px;
}

.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--txt3);
  font-size: 14px;
}

/* 云端数据来源标记 */
.srcnote {
  text-align: center;
  font-size: 11.5px;
  color: var(--brand-d);
  background: var(--brand-l);
  border: 1px solid #99f6e4;
  border-radius: 8px;
  padding: 6px 10px;
  margin-top: 14px;
}

/* 后台入口：放最底部，不干扰正常使用 */
.adm-link {
  text-align: center;
  margin-top: 10px;
}
.adm-link a {
  font-size: 11.5px;
  color: var(--txt3);
  text-decoration: none;
}
.adm-link a:hover { color: var(--brand); }
