/* html.dianaagent.top 托管平台 — Windows 11 风格 */
:root {
  --bg: #f3f3f3;
  --card: #ffffff;
  --card-2: #fafafa;
  --border: #e5e5e5;
  --text: #1b1b1b;
  --text-2: #616161;
  --accent: #0067c0;
  --accent-hover: #005ba1;
  --danger: #c42b1c;
  --danger-hover: #ad2318;
  --ok: #0f7b0f;
  --warn: #9d5d00;
  --radius: 8px;
  --radius-sm: 6px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* 顶栏 */
.topbar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar .logo {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar .logo .mark {
  width: 26px; height: 26px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
.topbar nav { display: flex; gap: 4px; margin-left: 8px; }
.topbar nav a {
  color: var(--text);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.topbar nav a:hover { background: rgba(0,0,0,.05); text-decoration: none; }
.topbar .spacer { flex: 1; }
.topbar .userbox { font-size: 14px; color: var(--text-2); display: flex; align-items: center; gap: 10px; }

/* 主容器 */
.main { flex: 1; width: 100%; max-width: 980px; margin: 0 auto; padding: 32px 24px 64px; }
.main.wide { max-width: 1180px; }

/* 卡片 */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.card h2 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.card .sub { font-size: 13px; color: var(--text-2); margin-bottom: 16px; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #0067c0 0%, #005ba1 60%, #004578 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 48px 40px;
  margin-bottom: 24px;
}
.hero h1 { font-size: 30px; font-weight: 600; line-height: 1.3; margin-bottom: 12px; }
.hero p { font-size: 15px; opacity: .9; max-width: 640px; line-height: 1.7; }
.hero .actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

/* 按钮 — hover 仅轻微变暗 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  transition: background .12s ease, border-color .12s ease;
  text-decoration: none;
}
.btn:hover { background: #f2f2f2; text-decoration: none; }
.btn:active { background: #eaeaea; }
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn.primary:hover { background: var(--accent-hover); }
.btn.primary:active { background: #004578; }
.btn.danger { color: var(--danger); border-color: #e0b1ac; }
.btn.danger:hover { background: #fdf3f2; }
.btn.small { padding: 4px 12px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* 表单 */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  padding: 9px 12px;
  border: 1px solid #d1d1d1;
  border-bottom: 2px solid #8a8a8a;
  border-radius: 4px;
  background: var(--card-2);
  color: var(--text);
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-bottom-color: var(--accent);
  background: #fff;
}

/* 步骤 */
.steps { display: flex; gap: 16px; margin: 24px 0 8px; flex-wrap: wrap; }
.step {
  flex: 1; min-width: 220px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.step .num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
  margin-bottom: 10px;
}
.step h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--text-2); line-height: 1.6; }

/* 表格 */
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.tbl th { font-weight: 600; color: var(--text-2); font-size: 13px; }
.tbl tr:hover td { background: var(--card-2); }

/* 状态徽章 */
.badge {
  display: inline-block;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 4px;
  border: 1px solid;
}
.badge.pending { color: var(--warn); border-color: #e8d4ab; background: #fdf6e8; }
.badge.approved { color: var(--ok); border-color: #bfdcbe; background: #eff7ef; }
.badge.rejected { color: var(--danger); border-color: #e0b1ac; background: #fdf3f2; }

/* 提示 */
.tip {
  background: #eff6fc;
  border: 1px solid #bcd8ee;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 16px;
}
.tip.warn { background: #fdf6e8; border-color: #e8d4ab; }
.tip.error { background: #fdf3f2; border-color: #e0b1ac; }
.tip.ok { background: #eff7ef; border-color: #bfdcbe; }
.tip code {
  background: rgba(0,0,0,.06);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: Consolas, monospace;
  font-size: 12.5px;
}

/* 验证码展示 */
.code-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card-2);
  border: 1px dashed #b5b5b5;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 16px;
}
.code-box .code { font-size: 30px; font-weight: 700; letter-spacing: 6px; font-family: Consolas, monospace; color: var(--accent); }

/* 弹窗 */
.mask {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.35);
  display: none;
  align-items: center; justify-content: center;
  z-index: 100;
}
.mask.show { display: flex; }
.dialog {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  width: 420px;
  max-width: 92vw;
  box-shadow: 0 16px 48px rgba(0,0,0,.24);
}
.dialog h3 { font-size: 16px; margin-bottom: 12px; }
.dialog .row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

/* 页脚 */
.footer {
  border-top: 1px solid var(--border);
  background: var(--card);
  padding: 20px 32px;
  font-size: 13px;
  color: var(--text-2);
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.footer a { color: var(--text-2); }
.footer a:hover { color: var(--accent); }

.preview-frame {
  width: 100%; height: 520px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}
.muted { color: var(--text-2); font-size: 13px; }
.mono { font-family: Consolas, monospace; font-size: 13px; }
