* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", Arial, sans-serif; background: #f0f4f8; color: #222; }
.admin-login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.admin-login-card { background: #fff; border-radius: 12px; padding: 32px 28px; width: 360px; box-shadow: 0 8px 32px rgba(0,0,0,.12); }
.admin-login-card h1 { font-size: 20px; color: #0a5cad; margin-bottom: 20px; text-align: center; }
.admin-body { padding: 20px; }
.admin-wrap { max-width: 900px; margin: 0 auto; }
.admin-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.admin-head h1 { font-size: 18px; color: #0a5cad; }
.card { background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 2px 12px rgba(0,0,0,.06); margin-bottom: 16px; }
.form-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.form-row label { font-size: 13px; color: #555; min-width: 130px; }
.form-row input, .form-row select, .form-row textarea { flex: 1; min-width: 180px; padding: 8px 10px; border: 1px solid #d9d9d9; border-radius: 6px; font-size: 13px; outline: none; font-family: inherit; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { border-color: #0a5cad; }
.form-row textarea { resize: vertical; }
.form-actions { text-align: right; margin-top: 12px; }
.btn { padding: 8px 20px; background: #0a5cad; color: #fff; border: none; border-radius: 6px; cursor: pointer; font-size: 14px; }
.btn:hover { background: #084d8a; }
.btn.gray { background: #f5f5f5; color: #555; border: 1px solid #d9d9d9; }
.btn.gray:hover { background: #e8e8e8; }
.tip { font-size: 12px; color: #999; margin-top: 8px; min-height: 16px; }
.tip.ok { color: #16a34a; }
.tip.err { color: #cf1322; }
.check { font-size: 13px; color: #333; display: inline-flex; align-items: center; gap: 6px; }
.tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.tab { padding: 8px 16px; background: #fff; border: 1px solid #d9d9d9; border-radius: 6px; cursor: pointer; font-size: 13px; }
.tab.active { background: #0a5cad; color: #fff; border-color: #0a5cad; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; font-size: 13px; }
.admin-table th, .admin-table td { padding: 8px 10px; border-bottom: 1px solid #f0f0f0; text-align: left; }
.admin-table th { background: #fafafa; color: #666; font-weight: normal; }
@media (max-width: 768px) {
    .admin-body { padding: 10px; }
    .form-row { flex-direction: column; align-items: stretch; }
    .form-row label { min-width: 0; }
}
.toast {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-20px);
    background: #333; color: #fff; padding: 10px 20px; border-radius: 6px;
    font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
    z-index: 99999;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { background: #16a34a; }
.toast.err { background: #cf1322; }
.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
    font-size: 13px;
    color: #666;
}
.pager .btn { padding: 6px 14px; font-size: 13px; }
.pager .btn:disabled { color: #bbb; cursor: not-allowed; background: #fafafa; }
.share-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.45);
    display: none; align-items: center; justify-content: center; z-index: 999;
}
.share-overlay.show { display: flex; }
.share-dialog {
    background: #fff; border-radius: 8px; padding: 20px;
    width: 520px; max-width: 92vw; box-shadow: 0 12px 48px rgba(0,0,0,.3);
    max-height: 90vh; overflow-y: auto;
}
.share-dialog .popup-title { font-size: 15px; font-weight: bold; color: #0a5cad; margin-bottom: 12px; }
.share-dialog-footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.share-close-btn { padding: 8px 18px; background: #f5f5f5; border: 1px solid #d9d9d9; border-radius: 6px; cursor: pointer; font-size: 13px; }
.copy-btn { padding: 8px 18px; background: #0a5cad; color: #fff; border: none; border-radius: 6px; cursor: pointer; font-size: 13px; }
.copy-btn:hover { background: #084d8a; }
.room-admin-form { display: flex; flex-direction: column; gap: 4px; }
.room-admin-form label { font-size: 12px; color: #666; margin-top: 8px; margin-bottom: 2px; }
.room-admin-form input, .room-admin-form select, .room-admin-form textarea {
    padding: 7px 10px; border: 1px solid #d9d9d9; border-radius: 4px;
    font-size: 13px; outline: none; font-family: inherit; width: 100%;
}
.room-admin-form input:focus, .room-admin-form textarea:focus, .room-admin-form select:focus { border-color: #0a5cad; }
.room-admin-form textarea { resize: vertical; }
.room-admin-form .check { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #333; margin: 0; cursor: pointer; }
.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
    font-size: 13px;
    color: #666;
}
.pager .btn { padding: 6px 14px; font-size: 13px; }
.pager .btn:disabled { color: #bbb; cursor: not-allowed; background: #fafafa; }