/* 720AI全景系统 - 组件样式 */
/* 按钮 */
.btn { display:inline-flex; align-items:center; gap:4px; padding:8px 16px; border:none; border-radius:var(--radius-sm); cursor:pointer; font-size:14px; font-weight:500; transition:all 0.15s; }
.btn-primary { background:var(--primary); color:#fff; }
.btn-primary:hover { background:var(--primary-light); }
.btn-outline { background:#fff; border:1px solid var(--border); color:var(--text); }
.btn-outline:hover { border-color:var(--primary); color:var(--primary); }
.btn-danger { background:var(--danger); color:#fff; }
.btn-sm { padding:4px 10px; font-size:12px; }
.btn-full { width:100%; justify-content:center; }
.btn-link { background:none; border:none; color:var(--primary); cursor:pointer; font-size:13px; padding:0; }
.btn-x { background:none; border:none; font-size:18px; cursor:pointer; color:var(--text3); padding:4px; line-height:1; }

/* 卡片 */
.card { background:var(--bg-card); border-radius:var(--radius); box-shadow:var(--shadow); padding:20px; margin-bottom:16px; }

/* 标签 */
.tag { display:inline-block; padding:2px 8px; border-radius:10px; font-size:12px; }
.tag-on { background:#dcfce7; color:#166534; }
.tag-off { background:#f3f4f6; color:#6b7280; }

/* 表格 */
.table { width:100%; border-collapse:collapse; }
.table th,.table td { padding:10px 12px; text-align:left; border-bottom:1px solid var(--border); }
.table th { background:var(--bg); font-weight:600; font-size:13px; color:var(--text2); }
.table tr:hover td { background:#f9fafb; }

/* 表单 */
.field { margin-bottom:12px; }
.field label { display:block; font-size:13px; color:var(--text2); margin-bottom:4px; }
.field input,.field select,.field textarea { width:100%; padding:8px 10px; border:1px solid var(--border); border-radius:var(--radius-sm); font-size:14px; outline:none; transition:border-color 0.15s; }
.field input:focus,.field select:focus { border-color:var(--primary); }

/* 弹窗 */
.modal-ov { position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.5); z-index:1000; display:flex; align-items:center; justify-content:center; }
.modal-box { background:#fff; border-radius:var(--radius); width:min(92vw,440px); max-height:80vh; overflow-y:auto; box-shadow:0 20px 60px rgba(0,0,0,0.3); }
.modal-hd { display:flex; align-items:center; justify-content:space-between; padding:16px 20px; border-bottom:1px solid var(--border); }
.modal-hd h3 { font-size:16px; }
.modal-bd { padding:16px 20px; }
.modal-ft { display:flex; gap:8px; justify-content:flex-end; padding:12px 20px; border-top:1px solid var(--border); }

/* 开关 */
.switch { position:relative; display:inline-block; width:40px; height:22px; }
.switch input { opacity:0; width:0; height:0; }
.slider { position:absolute; cursor:pointer; top:0; left:0; right:0; bottom:0; background:#ccc; border-radius:22px; transition:0.3s; }
.slider:before { content:''; position:absolute; height:16px; width:16px; left:3px; bottom:3px; background:#fff; border-radius:50%; transition:0.3s; }
.switch input:checked+.slider { background:var(--primary); }
.switch input:checked+.slider:before { transform:translateX(18px); }

/* 错误消息 */
.err-msg { color:var(--danger); font-size:13px; margin-bottom:8px; }

/* 移动端适配 */
@media(max-width:768px){
  .table { display:block; overflow-x:auto; }
}

/* 登录页 */
.login-page { display:flex; align-items:center; justify-content:center; min-height:100vh; background:var(--primary); }
.login-card { background:#fff; border-radius:12px; padding:32px; width:min(90vw,360px); box-shadow:0 20px 60px rgba(0,0,0,0.3); }
.login-card h2 { text-align:center; margin-bottom:24px; font-size:20px; color:var(--primary); }
