/* ============================================================
   /dash/dash.css — dash.zhaongu.com（预留的管理台）
   刻意做成「工具」而不是「门面」：更密、更平、更多等宽字。
   ============================================================ */

:root {
  --bg: #F5F6F8;
  --surface: #FFFFFF;
  --line: #DFE2E7;
  --ink: #16181D;
  --ink-2: #4D5560;
  --ink-3: #8B929C;
  --accent: #1B4F8A;
  --warn: #A8641A;
  --radius: 10px;
  --mono: "Noto Sans Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --sans: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body.dash {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }

/* ---------- 顶栏 ---------- */
.dtop {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  min-height: 56px;
  padding: 0 20px;
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-2);
}

.dbrand { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }

.dback { transition: transform .16s; }

.dbrand:hover .dback { transform: translateX(-3px); }

.dtld { color: var(--ink-3); }

.dsep { color: var(--line); }

.dhere { color: var(--ink); font-weight: 600; }

.dnav { display: flex; gap: 6px; }

.dnav a {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color .16s, color .16s;
}

.dnav a:hover { border-color: var(--accent); color: var(--accent); }

.dwho {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  max-width: 100%;
}

.dwho > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dwho-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-3);
}

.dwho.is-in .dwho-dot { background: #2F8B4E; }

.dwho.is-out .dwho-dot { background: #C0492F; }

.dwho.is-out { border-color: #E4C4BB; background: #FBF4F2; }

/* ---------- 主体 ---------- */
.dmain {
  flex: 1;
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 34px 20px 56px;
}

.dkick {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--ink-3);
}

.dhero h1 {
  margin: 0 0 14px;
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.25;
  letter-spacing: -.02em;
}

.dlede {
  margin: 0 0 16px;
  max-width: 46em;
  color: var(--ink-2);
  line-height: 1.85;
}

.dstate {
  margin: 0 0 32px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-3);
}

.dstate b { color: var(--ink); font-weight: 600; }

.dstate a { color: var(--accent); border-bottom: 1px solid currentColor; }

/* ---------- 模块卡 ---------- */
.dgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 34px;
}

.dmod {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .18s, transform .18s;
}

.dmod:hover { border-color: #C6CCD4; transform: translateY(-2px); }

.dmod-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.dmod-ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink-2);
  background: #F7F8FA;
}

.dmod-ico svg { width: 20px; height: 20px; }

.dtag {
  padding: 2px 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--warn);
  background: #FBF3E6;
  border: 1px solid #EBD9BC;
  border-radius: 999px;
}

.dmod h2 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.dmod p {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-2);
}

.downer {
  margin: auto 0 0 !important;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 11.5px !important;
  color: var(--ink-3) !important;
}

.downer b { color: var(--ink); font-weight: 600; }

/* ---------- 说明块 ---------- */
.dnote {
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.dnote h2 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
}

.dnote ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.9;
}

.dnote code {
  font-family: var(--mono);
  font-size: .92em;
  padding: 1px 5px;
  background: #F1F3F6;
  border-radius: 4px;
}

/* ---------- 页脚 ---------- */
.dfoot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
}

.dfoot a:hover { color: var(--accent); }

/* ---------- 窄屏 ---------- */
@media (max-width: 860px) {
  .dgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .dtop { min-height: 52px; padding: 8px 14px; }
  .dnav { display: none; }
  .dwho { margin-left: 0; width: 100%; }
  .dmain { padding: 24px 14px 44px; }
  .dgrid { grid-template-columns: minmax(0, 1fr); }
}
