/* ══════════════════════════════════════
 * KamiSystem Base Stylesheet
 * 所有页面共享：Reset / 排版 / 表单 / 亮暗主题
 * ══════════════════════════════════════ */

/* ── Reset ── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

/* ── Body (暗色默认) ── */
body{min-height:100vh;display:flex;align-items:center;justify-content:center;background:#0d0d0d;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#bbb;padding:16px}

/* ── 排版 ── */
a{color:#666;text-decoration:none}a:hover{color:#999}
code{background:#1a1a1a;padding:2px 6px;border-radius:3px;color:#888;font-size:12px}
.mono{font-family:"SF Mono",Monaco,Menlo,monospace;font-size:11px}
.dim{color:#555}
.ft{text-align:center;font-size:11px;color:#2a2a2a;margin-top:6px}

/* ── 表单元素 ── */
input,select,textarea{padding:8px 12px;border-radius:4px;border:1px solid #2a2a2a;background:#0d0d0d;color:#ddd;font-size:13px;outline:none;font-family:inherit;transition:border-color .2s}
input:focus,select:focus,textarea:focus{border-color:#555}
input::placeholder{color:#333}
select option{background:#111}
textarea{width:100%;resize:vertical;line-height:1.6}
label{display:block;font-size:11px;color:#555;margin-bottom:4px}

/* Autofill 暗色覆盖 */
input:-webkit-autofill,input:-webkit-autofill:hover,input:-webkit-autofill:focus,
input:-internal-autofill-selected,input:-webkit-autofill-strong-password{
  -webkit-box-shadow:0 0 0 30px #0d0d0d inset!important;-webkit-text-fill-color:#bbb!important;transition:background-color 9999s ease-in-out 0s!important
}

/* ── 按钮 ── */
button{padding:8px 18px;border-radius:4px;border:none;background:#2a2a2a;color:#aaa;font-size:13px;cursor:pointer;transition:all .15s;white-space:nowrap}
button:hover{background:#3a3a3a;color:#ccc}button:disabled{opacity:.4;cursor:not-allowed}

/* ── 卡片 ── */
.card{background:#141414;border:1px solid #1f1f1f;border-radius:6px;padding:16px 18px;margin-bottom:10px}

/* ── 提示框 ── */
.err{background:#1a1111;border:1px solid #2a1a1a;color:#e5534b;padding:10px 14px;border-radius:4px;margin-bottom:16px;font-size:12px;line-height:1.5}
.ok-box{background:#111a11;border:1px solid #1f3a1f;color:#7eb87e;padding:14px 18px;border-radius:6px;font-size:13px;line-height:1.7}
.ok-box code{background:#1a2a1a;color:#7eb87e}

/* ── 标签/徽章 ── */
.tag{display:inline-block;padding:1px 7px;border-radius:2px;font-size:10px}
.tag-ok{color:#7eb87e;background:#112211}.tag-no{color:#e5534b;background:#221111}.tag-wait{color:#b0904e;background:#221a11}

/* ═════════ 亮色主题覆盖 ═════ */
[data-theme="light"] body{background:#eef1f5;color:#333}
[data-theme="light"] a{color:#999}[data-theme="light"] a:hover{color:#555}
[data-theme="light"] code{background:#eee;color:#888}
[data-theme="light"] .dim{color:#bbb}
[data-theme="light"] .ft{color:#bbb}
[data-theme="light"] input,[data-theme="light"] select,[data-theme="light"] textarea{background:#fff;border-color:#ccc;color:#333}
[data-theme="light"] input:focus,[data-theme="light"] select:focus,[data-theme="light"] textarea:focus{border-color:#aaa}
[data-theme="light"] input::placeholder{color:#aaa}
[data-theme="light"] select option{background:#fff}
[data-theme="light"] button{background:#e0e0e0;color:#555}
[data-theme="light"] button:hover{background:#d0d0d0;color:#333}
[data-theme="light"] .card{background:#fff;border-color:#ddd}
[data-theme="light"] .err{background:#fdecea;border-color:#f5c6cb}
[data-theme="light"] .ok-box{background:#e8f5e9;border-color:#c8e6c9}
[data-theme="light"] .tag-ok{background:#e8f5e9}[data-theme="light"] .tag-no{background:#fdecea}[data-theme="light"] .tag-wait{background:#fff8e1}
[data-theme="light"] input:-webkit-autofill,[data-theme="light"] input:-webkit-autofill:hover,[data-theme="light"] input:-webkit-autofill:focus,
[data-theme="light"] input:-internal-autofill-selected,[data-theme="light"] input:-webkit-autofill-strong-password{
  -webkit-box-shadow:0 0 0 30px #fff inset!important;-webkit-text-fill-color:#333!important;transition:background-color 9999s ease-in-out 0s!important
}
