/* SubDNS — 浅蓝扁平风格，无渐变 / 无毛玻璃 / 无大圆角粗体滥用 */

:root {
  --bg: #eef5fc;
  --panel: #ffffff;
  --panel-alt: #f6fafe;
  --line: #d9e6f5;
  --line-strong: #c3d8ef;
  --blue: #1e6ef5;
  --blue-dark: #1557c9;
  --blue-soft: #e7f0ff;
  --blue-softer: #f2f7ff;
  --ink: #10243e;
  --ink-2: #33495f;
  --muted: #6b8299;
  --ok: #12855f;
  --ok-bg: #e6f6f0;
  --warn: #9a6400;
  --warn-bg: #fdf3df;
  --danger: #cc3d3d;
  --danger-bg: #fdecec;
  --r: 6px;
  --r-lg: 8px;
  --shadow: 0 1px 2px rgba(16, 52, 96, .06), 0 4px 14px rgba(16, 52, 96, .05);
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

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

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

h1, h2, h3, h4 { font-weight: 600; line-height: 1.35; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: 30px; letter-spacing: -.01em; }
h2 { font-size: 21px; }
h3 { font-size: 16px; }
p { margin: 0 0 .8em; }

code, .mono { font-family: var(--mono); font-size: .9em; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶栏 ---------- */
.topbar {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar .container {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 56px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 26px; height: 26px;
  border-radius: var(--r);
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 600;
}
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a {
  color: var(--ink-2);
  padding: 6px 11px;
  border-radius: var(--r);
  font-size: 14px;
}
.nav a:hover { background: var(--blue-soft); text-decoration: none; color: var(--blue-dark); }
.nav a.active { background: var(--blue-soft); color: var(--blue-dark); }
.topbar .spacer { flex: 1; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border-radius: var(--r);
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn:hover { border-color: var(--blue); color: var(--blue-dark); text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-danger { color: var(--danger); border-color: #f0c7c7; background: #fff; }
.btn-danger:hover { background: var(--danger-bg); border-color: var(--danger); color: var(--danger); }
.btn-sm { height: 30px; padding: 0 11px; font-size: 13px; }
.btn-lg { height: 44px; padding: 0 24px; font-size: 15px; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--blue-soft); border-color: transparent; color: var(--blue-dark); }

/* ---------- 公告条（滚动，字号偏大，单条单份） ---------- */
.announce {
  background: var(--blue-softer);
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 15.5px;
  padding: 9px 0;
  overflow: hidden;
}
.announce .container { display: flex; gap: 12px; align-items: center; }
.announce b { color: var(--blue-dark); font-weight: 600; flex: none; }
.announce .scroll { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.announce .track {
  display: inline-block;
  white-space: nowrap;
  animation: announce-marquee 26s linear infinite;
}
.announce .track span {
  display: inline-block;
  padding-left: 100%; /* 文字从右侧进入，单份始终只显示一个 */
}
.announce:hover .track { animation-play-state: paused; }
@keyframes announce-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* ---------- Hero：左对齐 + 域名查询 ---------- */
.hero { padding: 56px 0 44px; }
.hero .grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 40px;
  align-items: start;
}
.hero h1 { font-size: 34px; margin-bottom: 14px; }
.hero .lead { font-size: 16px; color: var(--ink-2); max-width: 34em; }
.hero .points { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.hero .points li {
  display: flex; gap: 9px; align-items: baseline;
  color: var(--ink-2); font-size: 14.5px;
}
.hero .points li::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--blue);
  border-radius: 2px;
  flex: none;
  transform: translateY(-1px);
}

/* 查询器 */
.checker {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 18px;
}
.checker h3 { font-size: 14px; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.checker .row { display: flex; gap: 8px; }
.checker input[type=text] {
  flex: 1 1 auto;
  min-width: 0;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  padding: 0 12px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
}
.checker input[type=text]:focus,
select:focus, input:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 110, 245, .13);
}
.checker select {
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: #fff;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  padding: 0 8px;
  max-width: 46%;
}
.checker .btn { height: 42px; }
.checker .result {
  margin-top: 12px;
  font-size: 14px;
  border-radius: var(--r);
  padding: 10px 12px;
  border: 1px solid transparent;
  display: none;
}
.checker .result.show { display: block; }
.checker .result.ok { background: var(--ok-bg); border-color: #bfe6d8; color: var(--ok); }
.checker .result.bad { background: var(--danger-bg); border-color: #f3cccc; color: var(--danger); }
.checker .result.neutral { background: var(--panel-alt); border-color: var(--line); color: var(--ink-2); }
.checker .hint { margin-top: 10px; font-size: 12.5px; color: var(--muted); }

/* 预览面板（示例 DNS 记录，非玻璃） */
.preview {
  background: #10243e;
  color: #cfe0f5;
  border-radius: var(--r-lg);
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.9;
  overflow-x: auto;
}
.preview .head {
  color: #7f9ab8;
  font-size: 12px;
  border-bottom: 1px solid #23405f;
  padding-bottom: 8px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  font-family: inherit;
}
.preview .k { color: #6fb1ff; }
.preview .v { color: #eaf3ff; }
.preview .dim { color: #5f7c9d; }

/* ---------- 区块 ---------- */
.section { padding: 40px 0; border-top: 1px solid var(--line); }
.section > .container > h2 { margin-bottom: 6px; }
.section .sub { color: var(--muted); font-size: 14.5px; margin-bottom: 24px; }

/* 步骤：编号行，非图标卡 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); background: var(--panel); border-radius: var(--r-lg); overflow: hidden; }
.steps .step { padding: 22px 22px; border-right: 1px solid var(--line); }
.steps .step:last-child { border-right: none; }
.steps .num {
  font-family: var(--mono);
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}
.steps .step h3 { font-size: 15.5px; margin-bottom: 6px; }
.steps .step p { color: var(--muted); font-size: 14px; margin: 0; }

/* 积分规则表 */
.rules { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.rules th, .rules td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.rules th { background: var(--panel-alt); color: var(--muted); font-weight: 600; font-size: 13px; }
.rules tr:last-child td { border-bottom: none; }
.rules td.num { font-family: var(--mono); color: var(--blue-dark); font-weight: 600; }

/* 功能列表：两栏 + 分隔线，非六宫格卡片 */
.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 36px;
}
.feature {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line-strong);
}
.feature svg { flex: none; margin-top: 3px; color: var(--blue); }
.feature h4 { font-size: 15px; margin: 0 0 3px; font-weight: 600; }
.feature p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* FAQ */
.faq { border: 1px solid var(--line); background: var(--panel); border-radius: var(--r-lg); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: none; }
.faq summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 500;
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-family: var(--mono); }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { color: var(--blue-dark); }
.faq .answer { padding: 0 18px 15px; color: var(--muted); font-size: 14.5px; }

/* 数据条 */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stats .cell { padding: 18px 20px; border-right: 1px solid var(--line); }
.stats .cell:last-child { border-right: none; }
.stats .v { font-size: 24px; font-weight: 600; font-family: var(--mono); color: var(--blue-dark); }
.stats .l { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: 13.5px; margin-top: 24px; }
.footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--blue); }

/* ---------- 表单页 ---------- */
.auth-wrap { min-height: calc(100vh - 56px); display: grid; place-items: center; padding: 40px 20px; }
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 30px 30px 26px;
}
.auth-card.wide { max-width: 460px; }
.auth-card h1 { font-size: 21px; margin-bottom: 4px; }
.auth-card .sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.auth-card .foot { text-align: center; margin-top: 16px; font-size: 14px; color: var(--muted); }

.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13.5px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input[type=text],
.field input[type=password],
.field input[type=number],
.field textarea,
.field select {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  padding: 0 11px;
  font-size: 14.5px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
}
.field textarea { height: auto; padding: 9px 11px; resize: vertical; min-height: 74px; line-height: 1.6; }
.field .help { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.btn-block { width: 100%; height: 42px; }

.alert {
  border-radius: var(--r);
  padding: 10px 13px;
  font-size: 14px;
  margin-bottom: 15px;
  border: 1px solid transparent;
  display: none;
}
.alert.show { display: block; }
.alert.error { background: var(--danger-bg); border-color: #f3cccc; color: var(--danger); }
.alert.ok { background: var(--ok-bg); border-color: #bfe6d8; color: var(--ok); }
.alert.info { background: var(--blue-softer); border-color: var(--line-strong); color: var(--ink-2); }

.tag {
  display: inline-block;
  font-size: 12px;
  padding: 1px 7px;
  border-radius: 4px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  border: 1px solid #cfe0ff;
}
.tag.ok { background: var(--ok-bg); color: var(--ok); border-color: #bfe6d8; }
.tag.warn { background: var(--warn-bg); color: var(--warn); border-color: #f0dcb4; }
.tag.danger { background: var(--danger-bg); color: var(--danger); border-color: #f3cccc; }
.tag.gray { background: #eef2f7; color: var(--muted); border-color: var(--line); }

/* ---------- 控制台布局 ---------- */
.console { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; padding: 26px 0 50px; align-items: start; }
.side {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: sticky;
  top: 80px;
}
.side .who { padding: 15px 16px; border-bottom: 1px solid var(--line); }
.side .who .name { font-weight: 600; font-size: 15px; word-break: break-all; }
.side .who .meta { font-size: 13px; color: var(--muted); }
.side .who .credit {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 19px;
  color: var(--blue-dark);
  font-weight: 600;
}
.side .who .credit small { font-family: inherit; font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 4px; }
.side nav { padding: 8px; display: grid; gap: 2px; }
.side nav a {
  padding: 8px 11px;
  border-radius: var(--r);
  color: var(--ink-2);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.side nav a:hover { background: var(--blue-softer); text-decoration: none; color: var(--blue-dark); }
.side nav a.active { background: var(--blue-soft); color: var(--blue-dark); font-weight: 500; }
.side nav a .n { font-family: var(--mono); font-size: 12px; color: var(--muted); }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 20px;
}
.panel > header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel > header h2 { font-size: 15.5px; margin: 0; }
.panel > header .side-note { font-size: 13px; color: var(--muted); }
.panel .body { padding: 18px; }
.panel .body.flush { padding: 0; }

.view { display: none; }
.view.active { display: block; }

/* 表格 */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left;
  padding: 10px 16px;
  background: var(--panel-alt);
  color: var(--muted);
  font-weight: 600;
  font-size: 12.5px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--blue-softer); }
.table .mono { font-family: var(--mono); font-size: 13px; }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; }
.table .empty { text-align: center; color: var(--muted); padding: 34px 16px !important; }

.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.toolbar input, .toolbar select {
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  padding: 0 10px;
  font-size: 13.5px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
}

/* 表单行（后台设置） */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; }
.form-grid .full { grid-column: 1 / -1; }
fieldset.group {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px 18px 6px;
  margin: 0 0 18px;
}
fieldset.group legend {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-dark);
  padding: 0 8px;
}

.inline-note { font-size: 13px; color: var(--muted); }
.mono-box {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--panel-alt);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 9px 12px;
  word-break: break-all;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%) translateY(10px);
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 200;
  max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.spin {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: sp .7s linear infinite;
}
.btn:not(.btn-primary) .spin { border-color: rgba(30,110,245,.3); border-top-color: var(--blue); }
@keyframes sp { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .hero .grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps .step { border-right: none; border-bottom: 1px solid var(--line); }
  .steps .step:last-child { border-bottom: none; }
  .feature-list { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .cell:nth-child(2) { border-right: none; }
  .console { grid-template-columns: 1fr; }
  .side { position: static; }
  .form-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
}

/* =========================================================
   Cloudflare 风格主题 —— 仅作用于 body.cf-dash（用户/管理后台）
   特征：浅灰底 #f9f9fa、白面板、#e1e3e6 细边、CF 橙主按钮、
   蓝色链接、小圆角、紧凑表格、无阴影无渐变
   ========================================================= */
body.cf-dash {
  background: #f9f9fa;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: #1d1d1d;
}
body.cf-dash h1, body.cf-dash h2, body.cf-dash h3, body.cf-dash h4 { color: #1d1d1d; }

/* 顶栏 */
body.cf-dash .topbar { background: #fff; border-bottom: 1px solid #e1e3e6; }
body.cf-dash .brand { color: #1d1d1d; font-weight: 600; }
body.cf-dash .brand .mark { background: #f68219; border-radius: 4px; }
body.cf-dash .nav a { color: #595959; border-radius: 4px; }
body.cf-dash .nav a:hover { background: #f1f2f3; color: #1d1d1d; text-decoration: none; }
body.cf-dash .nav a.active { background: #fff0e6; color: #b3540a; }

/* 按钮：CF 橙主色 */
body.cf-dash .btn { border-radius: 4px; border-color: #c9cbd1; background: #fff; color: #1d1d1d; font-weight: 500; height: 34px; }
body.cf-dash .btn:hover { border-color: #8f939c; background: #f7f7f8; color: #1d1d1d; text-decoration: none; }
body.cf-dash .btn-primary,
body.cf-dash .btn-primary:hover { background: #f68219; border-color: #e07010; color: #fff; }
body.cf-dash .btn-primary:hover { background: #e07010; }
body.cf-dash .btn-danger { color: #c0392b; border-color: #e5c4c0; background: #fff; }
body.cf-dash .btn-danger:hover { background: #fdf1f0; border-color: #c0392b; color: #a93226; }
body.cf-dash .btn-ghost { background: transparent; border-color: transparent; color: #595959; }
body.cf-dash .btn-ghost:hover { background: #f1f2f3; color: #1d1d1d; }
body.cf-dash .btn-sm { height: 28px; font-size: 13px; padding: 0 10px; }

/* 链接 */
body.cf-dash a { color: #0051c3; }
body.cf-dash a:hover { text-decoration: underline; }

/* 侧栏 */
body.cf-dash .side { background: #fff; border: 1px solid #e1e3e6; border-radius: 6px; box-shadow: none; }
body.cf-dash .side .who { background: #fff; border-bottom: 1px solid #e1e3e6; }
body.cf-dash .side .who .credit { color: #f68219; }
body.cf-dash .side .who .credit small { color: #8f939c; }
body.cf-dash .side nav a { color: #4a4a4a; border-radius: 4px; }
body.cf-dash .side nav a:hover { background: #f1f2f3; color: #1d1d1d; text-decoration: none; }
body.cf-dash .side nav a.active { background: #fff0e6; color: #b3540a; font-weight: 500; }
body.cf-dash .side nav a .n { color: #8f939c; }

/* 面板 */
body.cf-dash .panel { background: #fff; border: 1px solid #e1e3e6; border-radius: 6px; box-shadow: none; }
body.cf-dash .panel > header { border-bottom: 1px solid #e1e3e6; background: #fff; padding: 12px 16px; }
body.cf-dash .panel > header h2 { font-size: 15px; font-weight: 600; color: #1d1d1d; }
body.cf-dash .panel > header .side-note { color: #8f939c; font-size: 13px; }
body.cf-dash .panel .body { padding: 16px; }

/* 表格 */
body.cf-dash .table th {
  background: #f9f9fa;
  color: #6b7280;
  font-weight: 500;
  font-size: 12.5px;
  border-bottom: 1px solid #e1e3e6;
  padding: 9px 14px;
}
body.cf-dash .table td { border-bottom: 1px solid #f0f1f3; padding: 11px 14px; color: #1d1d1d; }
body.cf-dash .table tr:last-child td { border-bottom: none; }
body.cf-dash .table tr:hover td { background: #f9f9fa; }
body.cf-dash .table .empty { color: #8f939c; }
body.cf-dash .toolbar input, body.cf-dash .toolbar select { border-radius: 4px; border-color: #c9cbd1; }

/* 标签 / 徽章：小圆角矩形，非胶囊 */
body.cf-dash .tag { border-radius: 4px; border: 1px solid #c9cbd1; background: #f1f2f3; color: #4a4a4a; font-weight: 500; }
body.cf-dash .tag.ok { background: #eaf7ef; border-color: #b7e0c6; color: #1e7e46; }
body.cf-dash .tag.warn { background: #fff7e6; border-color: #f2d9a8; color: #9a6400; }
body.cf-dash .tag.danger { background: #fdf1f0; border-color: #e5c4c0; color: #c0392b; }
body.cf-dash .tag.gray { background: #f1f2f3; border-color: #d9dbdf; color: #6b7280; }

/* 表单 */
body.cf-dash .field label { color: #4a4a4a; font-weight: 500; }
body.cf-dash .field input, body.cf-dash .field select, body.cf-dash .field textarea {
  border: 1px solid #c9cbd1;
  border-radius: 4px;
  background: #fff;
  color: #1d1d1d;
}
body.cf-dash .field input:focus, body.cf-dash .field select:focus, body.cf-dash .field textarea:focus {
  border-color: #0051c3;
  box-shadow: 0 0 0 2px rgba(0, 81, 195, .15);
}
body.cf-dash .field input::placeholder, body.cf-dash .field textarea::placeholder { color: #a0a4ab; }
body.cf-dash fieldset.group { border: 1px solid #e1e3e6; border-radius: 6px; background: #fff; }
body.cf-dash fieldset.group legend { color: #0051c3; }
body.cf-dash .mono-box { background: #f9f9fa; border: 1px solid #e1e3e6; border-radius: 4px; }

/* 统计条 */
body.cf-dash .stats { border: 1px solid #e1e3e6; border-radius: 6px; background: #fff; }
body.cf-dash .stats .cell { border-right: 1px solid #e1e3e6; }
body.cf-dash .stats .v { color: #1d1d1d; font-weight: 600; }
body.cf-dash .stats .l { color: #8f939c; }

/* 提示条 / toast */
body.cf-dash .toast { background: #1d1d1d; border-radius: 4px; }
body.cf-dash .alert.error { border-color: #e5c4c0; }
body.cf-dash .inline-note { color: #8f939c; }

/* 顶栏搜索/输入等杂项 */
body.cf-dash .checker input, body.cf-dash .checker select { border-radius: 4px; }

@media (max-width: 900px) {
  body.cf-dash .console { grid-template-columns: 1fr; }
}
