* { box-sizing: border-box; }
body { margin: 0; font-family: "Microsoft YaHei", "PingFang SC", sans-serif; background: #0f0f12; color: #e4e4e7; min-height: 100vh; }

/* 登录页 */
#login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, #0f0f12 0%, #1a1a20 100%); }
.login-box { background: #18181b; padding: 2rem 2.5rem; border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.4); width: 100%; max-width: 360px; border: 1px solid #27272a; }
.login-box h1 { margin: 0 0 1.5rem; font-size: 1.25rem; text-align: center; color: #fafafa; }
.login-box input { width: 100%; padding: 10px 12px; margin-bottom: 12px; border: 1px solid #3f3f46; border-radius: 8px; background: #27272a; color: #fff; font-size: 14px; }
.login-box input::placeholder { color: #71717a; }
.login-box button { width: 100%; padding: 12px; border: none; border-radius: 8px; background: #3b82f6; color: #fff; font-size: 14px; cursor: pointer; }
.login-box button:hover { background: #2563eb; }
.login-box .err { color: #f87171; font-size: 13px; margin-top: 8px; min-height: 20px; }

/* 管理页 */
.header { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; background: #18181b; border-bottom: 1px solid #27272a; }
.header .title { font-size: 1.1rem; font-weight: 600; }
.main { padding: 24px; max-width: 1200px; margin: 0 auto; }
.toolbar { margin-bottom: 20px; }
.table-wrap { overflow-x: auto; background: #18181b; border-radius: 10px; border: 1px solid #27272a; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #27272a; }
.table th { background: #27272a; color: #a1a1aa; font-weight: 600; font-size: 13px; }
.table td { font-size: 14px; }
.table tbody tr:hover { background: #1f1f23; }
.table .status { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 12px; }
.table .status.running { background: #166534; color: #86efac; }
.table .status.stopped { background: #374151; color: #9ca3af; }
.table .status.creating { background: #1e3a5f; color: #93c5fd; }
.table .status.error { background: #7f1d1d; color: #fca5a5; }
.btn { padding: 8px 16px; border-radius: 8px; font-size: 14px; cursor: pointer; border: none; }
.btn-primary { background: #3b82f6; color: #fff; }
.btn-primary:hover { background: #2563eb; }
.btn-outline { background: transparent; color: #a1a1aa; border: 1px solid #3f3f46; }
.btn-outline:hover { background: #27272a; color: #fff; }
.btn-sm { padding: 4px 10px; font-size: 12px; margin-right: 6px; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-success { background: #16a34a; color: #fff; }
.btn-success:hover { background: #15803d; }
.btn-warning { background: #ca8a04; color: #000; }
.btn-warning:hover { background: #a16207; color: #fff; }

/* 弹窗 */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 100; }
.modal-content { background: #18181b; border-radius: 12px; width: 100%; max-width: 420px; border: 1px solid #27272a; overflow: hidden; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #27272a; }
.modal-header h2 { margin: 0; font-size: 1.1rem; }
.modal-close { background: none; border: none; color: #71717a; font-size: 24px; cursor: pointer; line-height: 1; padding: 0 4px; }
.modal-close:hover { color: #fff; }
#form-phone { padding: 20px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 13px; color: #a1a1aa; }
.form-group input { width: 100%; padding: 10px 12px; border: 1px solid #3f3f46; border-radius: 8px; background: #27272a; color: #fff; font-size: 14px; }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 20px; }
