:root { font-family: Inter, "Segoe UI", system-ui, sans-serif; color: #172033; background: #f3f6fb; }
* { box-sizing: border-box; }
body { margin: 0; }
.topbar { min-height: 82px; padding: 18px 28px; color: #fff; background: linear-gradient(120deg, #111827, #1d4ed8); display: flex; justify-content: space-between; align-items: center; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 22px; } h2 { font-size: 16px; margin-bottom: 14px; } h3 { font-size: 13px; margin: 16px 0 8px; }
.topbar p { margin-top: 4px; font-size: 12px; opacity: .8; }
.pill { padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.15); font-size: 12px; }
.layout { display: grid; grid-template-columns: 280px 1fr 1.55fr; gap: 16px; padding: 18px; min-height: calc(100vh - 82px); }
.panel { background: #fff; border: 1px solid #e3e8f0; border-radius: 14px; box-shadow: 0 8px 24px rgba(15, 23, 42, .05); padding: 16px; min-width: 0; }
label { display: block; font-size: 12px; color: #5b6575; margin-bottom: 7px; }
textarea { width: 100%; min-height: 260px; resize: vertical; padding: 10px; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; line-height: 1.5; }
.import-row { display: flex; gap: 8px; margin-top: 8px; }
.import-row button { flex: 1; }
.file-note { color: #6b7280; font-size: 11px; line-height: 1.5; margin-top: 6px; min-height: 17px; }
.filter-box { margin: 10px 0 0; padding: 9px 10px 10px; border: 1px solid #d7deea; border-radius: 8px; }
.filter-box legend { padding: 0 5px; color: #4b5563; font-size: 12px; }
.filter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 10px; }
.check-option { display: flex; align-items: center; gap: 6px; margin: 0; color: #273244; }
.check-option input { margin: 0; }
.region-row { display: grid; grid-template-columns: auto 48px 1fr; gap: 7px; align-items: center; margin-top: 9px; }
.region-row label { margin: 0; }
.region-row input { width: 48px; padding: 5px 6px; border: 1px solid #cbd5e1; border-radius: 6px; text-transform: uppercase; }
.mode-label { color: #047857; font-size: 10px; text-align: right; }
.mode-label.warn { color: #b45309; }
.limit-label { margin-top: 10px; }
input[type="number"] { width: 100%; padding: 9px 10px; border: 1px solid #cbd5e1; border-radius: 9px; font: inherit; }
.button-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
button { border: 0; border-radius: 9px; padding: 10px 8px; cursor: pointer; color: #fff; background: #2563eb; font-weight: 600; }
button.secondary { color: #1f2937; background: #e8eef8; } button:disabled { opacity: .48; cursor: not-allowed; }
.hint { color: #6b7280; font-size: 11px; line-height: 1.5; margin-top: 12px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stats div { padding: 10px; border-radius: 10px; background: #f5f7fb; } .stats span { display:block; font-size: 11px; color: #667085; } .stats strong { display:block; margin-top: 4px; font-size: 22px; }
.status { margin-top: 12px; color: #2563eb; font-weight: 600; font-size: 13px; }
.logs { height: 360px; overflow: auto; padding: 10px; background: #101827; color: #d1d5db; border-radius: 10px; font: 12px/1.6 Consolas, monospace; }
.logs span { color: #93c5fd; }
.section-title { display:flex; justify-content: space-between; align-items: center; } .section-title span { color: #6b7280; font-size: 12px; }
.table-wrap { overflow: auto; max-height: 570px; border: 1px solid #e5e7eb; border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 12px; white-space: nowrap; } th, td { padding: 10px 8px; border-bottom: 1px solid #edf0f5; text-align: left; } th { position: sticky; top: 0; background: #f8fafc; color: #5b6575; font-weight: 600; } a { color: #2563eb; text-decoration: none; } .ok { color: #047857; } .bad { color: #b42318; }
.rejected-number, .filter-rejected { color: #b42318; font-weight: 600; }
.rejected-number { display: block; }
code { background: #eef2ff; color: #3730a3; padding: 1px 4px; border-radius: 4px; }
@media (max-width: 1000px) { .layout { grid-template-columns: 1fr; } .logs { height: 220px; } .table-wrap { max-height: 420px; } }
.top-actions { display: flex; gap: 10px; align-items: center; }
.top-logout { padding: 7px 11px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); font-size: 12px; }
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at top left, #dbeafe 0, transparent 36%), linear-gradient(145deg, #f3f6fb, #e8eef8); }
.auth-card { width: min(100%, 410px); padding: 34px; border: 1px solid #e2e8f0; border-radius: 20px; background: #fff; box-shadow: 0 22px 70px rgba(15, 23, 42, .12); }
.auth-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #111827, #2563eb); font-weight: 800; font-size: 22px; }
.auth-eyebrow { margin-top: 22px; color: #64748b; letter-spacing: .16em; font-size: 10px; font-weight: 700; }
.auth-card h1 { margin-top: 7px; font-size: 23px; }
.auth-description { margin-top: 8px; color: #64748b; font-size: 13px; }
.auth-form { display: grid; gap: 8px; margin-top: 24px; }
.auth-form[hidden] { display: none; }
.auth-form label { margin: 5px 0 0; color: #344054; font-size: 12px; font-weight: 600; }
.auth-form input { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 9px; outline: none; font: inherit; font-size: 14px; }
.auth-form input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.14); }
.cdk-field { display: grid; gap: 7px; margin-top: 9px; padding: 12px; border: 1px solid #bfdbfe; border-radius: 10px; background: #eff6ff; }
.cdk-field[hidden] { display: none; }
.cdk-field span, .setup-callout { color: #52647b; font-size: 11px; line-height: 1.5; }
.auth-submit { min-height: 44px; margin-top: 13px; background: #2563eb; }
.auth-submit:hover { background: #1d4ed8; }
.auth-message { min-height: 20px; margin-top: 14px; color: #b42318; font-size: 12px; }
.setup-callout { margin-bottom: 6px; padding: 10px; border-radius: 8px; background: #f1f5f9; }
@media (max-width: 480px) { .auth-page { padding: 14px; } .auth-card { padding: 26px 22px; } }

/* 推特账号管理样式 */
.twitter-auth-section { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.twitter-auth-section button { font-size: 12px; padding: 9px 8px; }

/* 弹窗样式 */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); }
.modal.show { display: flex; align-items: center; justify-content: center; }
.modal-content { background: #fff; border-radius: 16px; width: min(90%, 700px); max-height: 85vh; overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,0.25); display: flex; flex-direction: column; }
.modal-header { padding: 20px 24px; border-bottom: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; }
.modal-header h2 { font-size: 18px; }
.modal-close { background: none; color: #6b7280; font-size: 28px; padding: 0; width: 32px; height: 32px; border-radius: 6px; line-height: 1; }
.modal-close:hover { background: #f3f4f6; color: #111827; }
.modal-body { padding: 20px 24px; overflow-y: auto; flex: 1; }

/* 账号列表 */
.account-list-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.account-list-header h3 { font-size: 14px; color: #374151; }
.account-list { display: grid; gap: 10px; max-height: 300px; overflow-y: auto; }
.account-item { padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 10px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; background: #fafbfc; }
.account-info { display: flex; flex-direction: column; gap: 4px; }
.account-username { font-weight: 600; font-size: 14px; color: #111827; }
.account-status { font-size: 11px; color: #6b7280; }
.account-status.success { color: #059669; }
.account-status.error { color: #dc2626; }
.account-actions { display: flex; gap: 6px; }
.btn-icon { width: 32px; height: 32px; padding: 0; border-radius: 6px; font-size: 14px; }
.btn-delete { background: #fee; color: #dc2626; }
.btn-delete:hover { background: #fca5a5; }
.btn-verify { background: #e0f2fe; color: #0369a1; }
.btn-verify:hover { background: #bae6fd; }

/* 表单样式 */
.add-account-form { margin-top: 20px; padding: 16px; border: 1px solid #e5e7eb; border-radius: 10px; background: #f9fafb; }
.add-account-form h3 { margin-bottom: 14px; font-size: 14px; }
.form-group { margin-bottom: 12px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; color: #374151; }
.form-group input { width: 100%; padding: 9px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; }
.form-group input:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.form-actions { display: flex; gap: 8px; margin-top: 16px; }
.btn-primary { background: #2563eb; color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.btn-primary:hover { background: #1d4ed8; }
.btn-secondary { background: #e5e7eb; color: #374151; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.btn-secondary:hover { background: #d1d5db; }

/* 导入文本区域 */
.import-text-section { margin-top: 20px; padding-top: 20px; border-top: 1px solid #e5e7eb; }
.import-text-section h3 { margin-bottom: 10px; font-size: 14px; color: #374151; }
.import-text-section textarea { min-height: 100px; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 12px; font-family: monospace; resize: vertical; }
.import-text-section button { width: 100%; margin-top: 10px; }
