* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "PingFang SC", "Microsoft YaHei", sans-serif; background: #f5f6fa; color: #2d3436; }

/* ===== 登录页 ===== */
.login-body {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}
.login-card {
  width: 360px; padding: 40px 32px; background: #fff; border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
}
.login-card h1 { font-size: 20px; color: #2d3436; text-align: center; margin-bottom: 6px; }
.subtitle { text-align:center; color:#888; font-size:13px; margin-bottom:24px; }
.form-row { margin-bottom: 16px; }
.form-row label { display:block; font-size: 13px; color: #636e72; margin-bottom: 6px; }
.form-row input, .form-row textarea, .form-row select {
  width:100%; padding: 10px 12px; border: 1px solid #dfe6e9; border-radius: 8px;
  font-size: 14px; outline: none; transition: border .2s;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { border-color:#4facfe; }
.alert { background:#ffe0e0; color:#c0392b; padding:10px 12px; border-radius:8px; margin-bottom:16px; font-size:13px; }
.tip { text-align:center; font-size:12px; color:#b2bec3; margin-top:14px; }

/* ===== 通用按钮 ===== */
.btn { display:inline-block; padding:8px 16px; border:none; border-radius:8px; cursor:pointer;
  font-size:13px; text-decoration:none; transition: all .2s; line-height:1; }
.btn-primary { background:#4facfe; color:#fff; }
.btn-primary:hover { background:#3a92e0; }
.btn-ghost { background:#eee; color:#636e72; }
.btn-ghost:hover { background:#dfe6e9; }
.btn-danger { background:#eb4d4b; color:#fff; }
.btn-danger:hover { background:#d63d3b; }
.btn-block { width:100%; padding:12px; }

/* ===== 顶栏 ===== */
.topbar { height:58px; background:#fff; box-shadow:0 1px 4px rgba(0,0,0,.05);
  display:flex; align-items:center; justify-content:space-between; padding:0 24px; position:sticky; top:0; z-index:10; }
.brand { font-weight:600; color:#2d3436; }
.topbar-right { display:flex; align-items:center; gap:12px; }
.topbar-right span { font-size:13px; color:#636e72; }

/* ===== 布局 ===== */
.layout { display:flex; min-height:calc(100vh - 58px); }
.sidebar { width:200px; background:#fff; border-right:1px solid #ecf0f1; padding:12px 8px; }
.nav { display:block; padding:10px 14px; color:#636e72; text-decoration:none; border-radius:8px;
  font-size:14px; cursor:pointer; margin-bottom:4px; transition:all .15s; }
.nav:hover { background:#f5f6fa; }
.nav.active { background:#4facfe; color:#fff; }
.content { flex:1; padding:24px; overflow:auto; }

.tab-panel { display:none; }
.tab-panel.active { display:block; }

.panel-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.panel-head h2 { font-size:18px; }
.hint { background:#fff8e1; color:#b8860b; padding:10px 14px; border-radius:8px; margin-bottom:16px; font-size:13px; }

/* ===== 表格 ===== */
.table { width:100%; background:#fff; border-radius:10px; overflow:hidden;
  box-shadow:0 1px 4px rgba(0,0,0,.04); border-collapse:collapse; }
.table th, .table td { padding:11px 12px; text-align:left; font-size:13px; border-bottom:1px solid #ecf0f1; }
.table th { background:#f5f6fa; color:#636e72; font-weight:600; }
.table tr:last-child td { border-bottom:none; }
.table tr:hover td { background:#fafbfc; }
.tag { display:inline-block; padding:2px 8px; border-radius:10px; font-size:11px; }
.tag.ok { background:#dff5e0; color:#2ecc71; }
.tag.no { background:#ffe0e0; color:#e74c3c; }
.yes { color:#2ecc71; font-weight:600; }
.no { color:#b2bec3; }

/* ===== 素材卡片 ===== */
.media-card { background:#fff; padding:20px; border-radius:10px; box-shadow:0 1px 4px rgba(0,0,0,.04); margin-bottom:16px; }
.media-card h3 { margin-bottom:4px; }
.media-card .meta { color:#b2bec3; font-size:12px; margin-bottom:14px; }
.media-flex { display:flex; gap:24px; flex-wrap:wrap; }
.media-item { flex:1; min-width:240px; }
.media-item label { display:block; font-size:13px; color:#636e72; margin-bottom:6px; }
.prev-box { width:100%; height:160px; border:1px dashed #dfe6e9; border-radius:8px;
  display:flex; align-items:center; justify-content:center; background:#fdfdfe; color:#b2bec3; margin-bottom:10px; overflow:hidden; }
.prev-box img, .prev-box audio { max-width:100%; max-height:100%; }
.media-item audio { width:100%; }
.media-item .mi-status { font-size:12px; color:#b2bec3; margin-top:4px; }
.media-item .mi-status.has { color:#2ecc71; }
.upload-line { display:flex; gap:8px; margin-top:6px; }
.upload-line input[type=file] { flex:1; font-size:12px; }
.media-item .text-area { width:100%; }

/* ===== 弹窗 ===== */
.modal { position:fixed; inset:0; background:rgba(0,0,0,.4); display:flex; align-items:center; justify-content:center; z-index:99; }
.hidden { display:none !important; }
.modal-card { background:#fff; padding:24px; border-radius:12px; width:480px; max-width:92vw; max-height:90vh; overflow:auto; }
.modal-card h3 { margin-bottom:16px; }
.modal-foot { display:flex; justify-content:flex-end; gap:10px; margin-top:18px; }

/* ===== 接入指引 ===== */
.guide { background:#fff; padding:24px; border-radius:10px; line-height:1.8; font-size:14px; }
.guide h3 { margin:18px 0 6px; color:#2d3436; }
.guide h3:first-child { margin-top:0; }
.guide ol, .guide ul { padding-left:24px; }
.guide code { background:#f5f6fa; padding:2px 6px; border-radius:4px; color:#e17055; }
.guide a { color:#4facfe; text-decoration:none; }

/* 测试发送 */
.test-box { margin-top:16px; padding-top:16px; border-top:1px dashed #dfe6e9; }
.test-box input { padding:8px 10px; border:1px solid #dfe6e9; border-radius:6px; width:280px; margin-right:8px; font-size:13px; }
