/* 招聘宝 控制台 —— 极简样式 */

:root {
    --bg: #f7f8fa;
    --card: #ffffff;
    --text: #1a1a1a;
    --muted: #888;
    --border: #e5e7eb;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --danger: #dc2626;
    --warning: #d97706;
    --success: #16a34a;
    --code-bg: #f3f4f6;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

.nav {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 2rem;
}
.nav-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 2rem; }
.brand { font-weight: 700; color: var(--text); text-decoration: none; font-size: 1.05rem; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--primary); }

.main { max-width: 1100px; margin: 2rem auto; padding: 0 2rem; }
h1 { font-size: 1.5rem; margin: 0 0 1.5rem; }

.actions { margin-bottom: 1rem; display: flex; gap: 0.5rem; }

.table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.table th, .table td { padding: 0.7rem 1rem; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.table th { background: #f9fafb; font-weight: 600; color: var(--muted); text-transform: uppercase; font-size: 0.75rem; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover { background: #f9fafb; }

.badge { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 4px; font-size: 0.8rem; font-weight: 600; }
.badge-trial { background: #e0e7ff; color: #3730a3; }
.badge-pro { background: #fef3c7; color: #92400e; }
.badge-enterprise { background: #fce7f3; color: #9d174d; }
.badge-risk-ok { background: #dcfce7; color: #166534; }
.badge-risk-captcha_required, .badge-risk-captcha { background: #fed7aa; color: #9a3412; }
.badge-risk-risk_halted { background: #fee2e2; color: #991b1b; }
.badge-risk-banned_24h { background: #1e293b; color: #fef3c7; }
.badge-risk-recovering { background: #fef9c3; color: #854d0e; }

.btn { display: inline-block; padding: 0.45rem 1rem; border-radius: 6px; border: 1px solid var(--border); background: var(--card); color: var(--text); font-size: 0.9rem; cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn-primary { background: var(--primary); color: white; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); color: white; }
.btn-danger { background: var(--danger); color: white; border-color: var(--danger); }
.btn-danger:hover { background: #b91c1c; color: white; }
.btn-small { padding: 0.25rem 0.6rem; font-size: 0.8rem; }
.btn-link { color: var(--primary); text-decoration: none; padding: 0; border: none; background: none; }
.btn-link:hover { text-decoration: underline; }

.form { background: var(--card); padding: 1.5rem; border-radius: 8px; max-width: 600px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.form label { display: block; margin-bottom: 1rem; font-size: 0.9rem; color: var(--muted); }
.form input, .form select, .form textarea { display: block; width: 100%; padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: 6px; font-size: 0.95rem; margin-top: 0.25rem; }
.form input:focus, .form select:focus { outline: 2px solid var(--primary); outline-offset: -1px; }

.kv { background: var(--card); padding: 1.5rem; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.5rem; margin-bottom: 1.5rem; }
.kv dt { color: var(--muted); font-size: 0.9rem; }
.kv dd { margin: 0; }

.muted { color: var(--muted); }
code { background: var(--code-bg); padding: 0.1rem 0.4rem; border-radius: 4px; font-size: 0.85em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* CAPTCHA 弹窗 */
.captcha-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 100; }
.captcha-card { background: var(--card); border-radius: 12px; padding: 2rem; max-width: 480px; width: 90%; }
.captcha-card h2 { margin-top: 0; }
.captcha-img { max-width: 100%; border: 1px solid var(--border); border-radius: 6px; margin: 1rem 0; }
.placeholder { background: #f3f4f6; border: 2px dashed var(--border); padding: 3rem 1rem; text-align: center; color: var(--muted); border-radius: 6px; margin: 1rem 0; }
