/* Zeen 客户管理后台 - 共享样式 */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #f5f6f8; color: #222; font-size: 14px;
}
a { color: #f73437; text-decoration: none; }
a:hover { text-decoration: underline; }

/* 顶栏 */
.admin-topbar {
  background: #111; color: #fff; padding: 0 24px; height: 56px;
  display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 10;
}
.admin-topbar .brand { font-size: 16px; font-weight: 700; }
.admin-topbar .brand span { color: #f73437; }
.admin-topbar .nav a { color: #ccc; margin-left: 20px; font-size: 14px; }
.admin-topbar .nav a.active, .admin-topbar .nav a:hover { color: #fff; text-decoration: none; }
.admin-topbar .user { color: #aaa; font-size: 13px; }
.admin-topbar .user button {
  margin-left: 12px; background: #f73437; color: #fff; border: none; border-radius: 4px;
  padding: 6px 12px; cursor: pointer; font-size: 13px;
}

/* 容器 */
.admin-container { max-width: 1200px; margin: 0 auto; padding: 24px; }
.page-title { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.muted { color: #888; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mb16 { margin-bottom: 16px; }

/* 卡片 */
.card { background: #fff; border: 1px solid #e5e5e5; border-radius: 8px; padding: 20px; margin-bottom: 16px; }
.card h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #eee; }

/* 表格 */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eee; font-size: 13px; }
th { background: #fafafa; font-weight: 600; color: #555; white-space: nowrap; }
tbody tr:hover { background: #fafafa; }
tr.clickable { cursor: pointer; }

/* 标签 */
.badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-red { background: #fdeaea; color: #c0392b; }
.badge-green { background: #e8f7ee; color: #1e8e5a; }
.badge-blue { background: #e8f1fd; color: #2471c4; }
.badge-orange { background: #fef4e6; color: #d88918; }
.badge-gray { background: #f0f0f0; color: #666; }

/* 表单 */
label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 4px; color: #333; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], select, textarea {
  width: 100%; padding: 9px 12px; border: 1px solid #d9d9d9; border-radius: 4px; font-size: 14px; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: #f73437; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
textarea { min-height: 70px; resize: vertical; }

/* 按钮 */
.btn {
  display: inline-block; padding: 10px 18px; border: none; border-radius: 4px;
  font-size: 14px; font-weight: 600; cursor: pointer; background: #f73437; color: #fff;
}
.btn:hover { background: #d62f32; }
.btn-secondary { background: #fff; color: #333; border: 1px solid #ccc; }
.btn-secondary:hover { background: #f5f5f5; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* 筛选条 */
.filter-bar { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.filter-bar select, .filter-bar input { width: auto; min-width: 140px; }

/* 登录页 */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #111; }
.login-box { background: #fff; border-radius: 10px; padding: 40px; width: 360px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.login-box h1 { font-size: 20px; text-align: center; margin-bottom: 4px; }
.login-box .sub { text-align: center; color: #888; font-size: 13px; margin-bottom: 24px; }
.login-error { color: #c0392b; font-size: 13px; margin-top: 12px; text-align: center; }

/* 详情布局 */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.detail-grid .card { margin-bottom: 0; }
.detail-item { display: flex; margin-bottom: 8px; font-size: 13px; }
.detail-item .k { width: 110px; color: #888; flex-shrink: 0; }
.detail-item .v { flex: 1; word-break: break-all; }

/* 服务追踪时间线 */
.timeline { list-style: none; }
.timeline li { position: relative; padding-left: 22px; margin-bottom: 14px; }
.timeline li::before {
  content: ""; position: absolute; left: 5px; top: 6px; width: 8px; height: 8px;
  background: #f73437; border-radius: 50%;
}
.timeline li .t-type { font-weight: 600; font-size: 13px; }
.timeline li .t-time { color: #999; font-size: 12px; margin-left: 8px; }
.timeline li .t-content { color: #555; font-size: 13px; margin-top: 4px; }

/* 产品行 */
.prod-row { display: grid; grid-template-columns: 2fr 1.5fr 0.6fr 0.8fr 0.4fr; gap: 8px; margin-bottom: 8px; }
.prod-row input { padding: 8px 10px; font-size: 13px; }
.prod-row .rm { color: #c0392b; cursor: pointer; background: none; border: none; font-size: 18px; }

.empty { text-align: center; color: #999; padding: 40px 0; }
.hidden { display: none; }

/* 统计卡片 */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 16px; }
.stat-card { background: #fff; border: 1px solid #e5e5e5; border-radius: 8px; padding: 20px; }
.stat-card .stat-label { font-size: 13px; color: #888; margin-bottom: 8px; }
.stat-card .stat-value { font-size: 20px; font-weight: 700; line-height: 1.5; }
.stat-card .stat-value.sm { font-size: 15px; font-weight: 600; }

@media (max-width: 768px) {
  .form-grid, .detail-grid { grid-template-columns: 1fr; }
  .prod-row { grid-template-columns: 1fr; }
}
