* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Microsoft YaHei", sans-serif; background: #f0f2f5; color: #333; }
a { color: #1890ff; text-decoration: none; }
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 220px; background: #001529; color: #fff; display: flex; flex-direction: column; }
.brand { padding: 20px 16px; font-size: 16px; font-weight: 600; }
.sidebar nav a { display: block; padding: 10px 20px; color: rgba(255,255,255,.75); font-size: 13px; }
.nav-group { padding: 14px 20px 6px; font-size: 11px; color: rgba(255,255,255,.45); text-transform: none; }
.sidebar nav a:hover, .sidebar nav a.active { background: #1890ff; color: #fff; }
.sidebar-foot { margin-top: auto; padding: 16px; font-size: 12px; border-top: 1px solid #0d2847; display: flex; justify-content: space-between; }
.main { flex: 1; padding: 24px; }
.page-header h1 { font-size: 20px; margin-bottom: 20px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.card { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.card .num { font-size: 28px; font-weight: 700; color: #1890ff; margin-top: 8px; }
.panel { background: #fff; border-radius: 8px; padding: 20px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 12px; border-bottom: 1px solid #f0f0f0; text-align: left; }
th { background: #fafafa; }
.btn { display: inline-block; padding: 6px 14px; border-radius: 4px; border: none; cursor: pointer; font-size: 14px; }
.btn-primary { background: #1890ff; color: #fff; }
.btn-default { background: #fff; border: 1px solid #d9d9d9; color: #333; }
.form-row { margin-bottom: 12px; }
.form-row label { display: block; margin-bottom: 4px; font-size: 13px; color: #666; }
.form-row input, .form-row select { width: 100%; max-width: 400px; padding: 8px; border: 1px solid #d9d9d9; border-radius: 4px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 16px; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-box { background: #fff; padding: 40px; border-radius: 8px; width: 360px; }
.alert-success { background: #f6ffed; border: 1px solid #b7eb8f; padding: 10px; margin-bottom: 16px; }
.tag-green { background: #f6ffed; color: #52c41a; padding: 2px 8px; border-radius: 3px; font-size: 12px; }
.tag-red { background: #fff1f0; color: #f5222d; padding: 2px 8px; border-radius: 3px; font-size: 12px; }
pre.json-view { background: #f5f5f5; padding: 16px; overflow: auto; max-height: 500px; font-size: 12px; }
table code { background: #f5f5f5; padding: 2px 6px; font-size: 12px; }
.tip-bar { background: #e6f7ff; border: 1px solid #91d5ff; padding: 10px 14px; border-radius: 4px; margin-bottom: 16px; font-size: 13px; color: #0050b3; }
.tag-gray { background: #f5f5f5; color: #999; padding: 2px 8px; border-radius: 3px; font-size: 12px; }
.config-card h3 { margin-bottom: 12px; font-size: 16px; }
.config-card h3 small { font-weight: normal; color: #999; font-size: 12px; margin-left: 8px; }
.config-table td { padding: 8px 12px; }
.empty-config { color: #999; font-size: 14px; padding: 8px 0; }
code.config-value { word-break: break-all; white-space: pre-wrap; user-select: all; }
.status-badge { display:inline-block;padding:4px 12px;border-radius:4px;font-size:13px;font-weight:600; }
.status-on { background:#f6ffed;color:#389e0d;border:1px solid #b7eb8f; }
.status-off { background:#fff2f0;color:#cf1322;border:1px solid #ffccc7; }
.status-mixed { background:#fffbe6;color:#d48806;border:1px solid #ffe58f; }
.status-unknown { background:#f5f5f5;color:#999;border:1px solid #d9d9d9; }
.hub-switch { position:relative;display:inline-flex;align-items:center;gap:10px;cursor:pointer;user-select:none; }
.hub-switch-input { opacity:0;width:0;height:0;position:absolute; }
.hub-switch-slider { width:52px;height:28px;background:#ff4d4f;border-radius:14px;position:relative;transition:.2s;flex-shrink:0; }
.hub-switch-slider::after { content:'';position:absolute;width:22px;height:22px;left:3px;top:3px;background:#fff;border-radius:50%;transition:.2s;box-shadow:0 1px 3px rgba(0,0,0,.2); }
.hub-switch-input:checked + .hub-switch-slider { background:#52c41a; }
.hub-switch-input:checked + .hub-switch-slider::after { transform:translateX(24px); }
.hub-switch-text { font-size:14px;font-weight:600;min-width:32px;color:#333; }
.switch-table td { vertical-align:middle; }
.wechat-switch-card { border:1px solid #e8e8e8;border-radius:8px;padding:20px 24px;margin-bottom:16px;max-width:480px; }
.wechat-switch-card-head { display:flex;align-items:center;justify-content:space-between;margin-bottom:16px; }
.wechat-switch-host { font-size:14px;color:#666; }
.wechat-switch-warn { color:#cf1322;font-size:12px;margin:-8px 0 12px; }
.hub-switch-large .hub-switch-slider { width:64px;height:34px; }
.hub-switch-large .hub-switch-slider::after { width:26px;height:26px; }
.hub-switch-large .hub-switch-input:checked + .hub-switch-slider::after { transform:translateX(30px); }
.hub-switch-caption { font-size:15px;font-weight:600;color:#333;margin-left:12px; }
.hub-switch-large { padding:8px 0; }
.alert-error { background: #fff2f0; border: 1px solid #ffccc7; padding: 10px; margin-bottom: 12px; color: #cf1322; }
