/* ===== 后台管理系统样式（运营/中介共用） ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "PingFang SC", "Microsoft YaHei", sans-serif; background: #f0f2f7; color: #1f2937; }
.layout { display: flex; min-height: 100vh; }
.sider { width: 220px; background: #17203a; color: #b8c2d9; flex-shrink: 0; display: flex; flex-direction: column; }
.sider .brand { padding: 22px 20px 18px; color: #fff; font-size: 17px; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.07); }
.sider .brand .brand-logo { width: 28px; height: 28px; border-radius: 7px; object-fit: contain; vertical-align: -7px; margin-right: 8px; background: #fff; padding: 2px; box-sizing: border-box; }
.sider .brand small { display: block; font-size: 12px; color: #7c88a0; font-weight: 400; margin-top: 4px; }
.menu { padding: 12px 10px; flex: 1; }
.menu .item { padding: 11px 14px; border-radius: 9px; cursor: pointer; font-size: 14px; margin-bottom: 4px; display: flex; align-items: center; gap: 9px; }
.menu .item:hover { background: rgba(255,255,255,.06); }
.menu .item.on { background: linear-gradient(135deg,#4f8cff,#6a78ff); color: #fff; font-weight: 600; }
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar { height: 58px; background: #fff; border-bottom: 1px solid #e8ebf2; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; }
.topbar h2 { font-size: 16px; }
.content { padding: 20px 24px; flex: 1; overflow-y: auto; }
.panel { background: #fff; border-radius: 12px; padding: 18px 20px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(23,32,58,.05); }
.panel h3 { font-size: 15px; margin-bottom: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 10px 10px; border-bottom: 1px solid #f0f2f7; white-space: nowrap; }
th { color: #7c88a0; font-weight: 600; background: #fafbfd; }
td { color: #374151; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 14px; border-radius: 8px; border: none; font-size: 13px; cursor: pointer; background: #eef1f6; color: #4a5568; }
.btn.primary { background: linear-gradient(135deg,#4f8cff,#6a78ff); color: #fff; font-weight: 600; }
.btn.green { background: #34c9a3; color: #fff; }
.btn.warn { background: #fff3e0; color: #e67e22; }
.btn.danger { background: #fdecea; color: #d64545; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; background: #eef4ff; color: #4f8cff; margin-right: 4px; }
.tag.gray { background: #f0f2f5; color: #8a93a6; }
.tag.green { background: #e6f9f3; color: #18a37d; }
.tag.orange { background: #fff3e0; color: #e67e22; }
.tag.red { background: #fdecea; color: #d64545; }
.tag.purple { background: #f0e9ff; color: #7c5cff; }
.muted { color: #98a0b3; font-size: 12px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: #5a6478; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; height: 38px; border: 1px solid #e3e7ee; border-radius: 8px; padding: 0 12px; font-size: 13px; outline: none; background: #fff; }
.field textarea { height: 64px; padding: 8px 12px; resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 16px; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.stat-card { background: #fff; border-radius: 12px; padding: 16px 18px; }
.stat-card .k { font-size: 12px; color: #7c88a0; }
.stat-card .v { font-size: 24px; font-weight: 700; color: #17203a; margin-top: 4px; }
.notice { background: #f0f6ff; border: 1px solid #d8e6ff; color: #3567c4; font-size: 12px; border-radius: 8px; padding: 8px 12px; margin-bottom: 14px; line-height: 1.6; }
.notice.warn { background: #fff8ec; border-color: #ffe3b8; color: #b06f1a; }
.login-box { width: 380px; margin: 12vh auto 0; background: #fff; border-radius: 16px; padding: 32px 30px; box-shadow: 0 8px 30px rgba(23,32,58,.08); }
.login-box h2 { text-align: center; margin-bottom: 6px; font-size: 20px; }
.login-box .sub { text-align: center; color: #98a0b3; font-size: 13px; margin-bottom: 22px; }
.modal-mask { position: fixed; inset: 0; background: rgba(15,20,35,.45); z-index: 90; display: flex; align-items: center; justify-content: center; }
.modal { background: #fff; border-radius: 14px; width: 480px; max-height: 84vh; overflow-y: auto; padding: 22px 24px; }
.modal h3 { font-size: 16px; margin-bottom: 16px; }
.toast { position: fixed; left: 50%; top: 40px; transform: translateX(-50%); background: rgba(20,25,40,.88); color: #fff; padding: 10px 20px; border-radius: 8px; font-size: 13px; z-index: 99; }
.empty { text-align: center; color: #98a0b3; padding: 30px 0; font-size: 13px; }
