* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --ne-primary: #0f76ff;
  --ne-primary-light: #2c8cff;
  --ne-primary-lighter: #7ab8ff;
  --ne-primary-dark: #0b55c5;
  --ne-primary-bg: #e9f4ff;
  --ne-accent: #00a9c7;
  --ne-bg: #eef4f8;
  --ne-card: #ffffff;
  --ne-text: #172033;
  --ne-text-secondary: #64748b;
  --ne-border: #dce5ef;
  --ne-sidebar: #0b1324;
  --ne-danger: #ef4444;
  --ne-success: #13b981;
  --ne-warning: #f59e0b;
  --ne-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  --ne-shadow-hover: 0 14px 34px rgba(15, 23, 42, 0.11);
  --ne-radius: 8px;
  --ne-radius-sm: 8px;
}
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif; background: var(--ne-bg); color: var(--ne-text); min-height: 100vh; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--ne-primary); text-decoration: none; }

/* 滚动条 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ========== 查询首页 ========== */
.query-page { display: flex; flex-direction: column; align-items: center; min-height: 100vh; padding: 48px 20px 28px; background: #eef2f7; }
.query-card { background: #fff; border-radius: var(--ne-radius); box-shadow: 0 16px 40px rgba(15,23,42,0.08); border: 1px solid var(--ne-border); width: 100%; max-width: 520px; overflow: hidden; }
.query-header { text-align: left; padding: 28px 28px 18px; border-bottom: 1px solid #edf1f6; }
.query-header .logo { width: 52px; height: 52px; border-radius: 8px; vertical-align: middle; object-fit: contain; }
.query-header h1 { font-size: 22px; color: var(--ne-text); margin: 14px 0 4px; font-weight: 700; letter-spacing: 0; }
.query-header p { font-size: 14px; color: var(--ne-text-secondary); }
.query-body { padding: 22px 28px 28px; }

/* Tab切换 */
.tab-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid var(--ne-border); border-radius: var(--ne-radius); background: #f8fafc; margin-bottom: 22px; }
.tab-item { display: flex; align-items: center; justify-content: center; min-height: 38px; font-size: 14px; color: var(--ne-text-secondary); cursor: pointer; border-radius: 6px; transition: all 0.2s; }
.tab-item.active { color: var(--ne-primary); background: #fff; box-shadow: var(--ne-shadow); font-weight: 600; }

/* 表单 */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; color: var(--ne-text-secondary); margin-bottom: 7px; font-weight: 600; }
.form-input { width: 100%; height: 42px; padding: 0 14px; border: 1px solid var(--ne-border); border-radius: var(--ne-radius-sm); font-size: 14px; color: var(--ne-text); outline: none; transition: all 0.2s; background: #fff; line-height: 42px; }
textarea.form-input { height: auto; min-height: 96px; padding: 10px 14px; line-height: 1.5; resize: vertical; }
.form-input:focus { border-color: var(--ne-primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.form-input::placeholder { color: #94a3b8; }
.code-row { display: flex; gap: 10px; }
.code-row .form-input { flex: 1; }
.code-btn { min-width: 112px; height: 42px; padding: 0 16px; background: var(--ne-primary); color: #fff; border: none; border-radius: var(--ne-radius-sm); font-size: 14px; cursor: pointer; white-space: nowrap; transition: background 0.2s; line-height: 42px; }
.code-btn:hover:not(:disabled) { background: var(--ne-primary-light); }
.code-btn:disabled { background: #94a3b8; cursor: not-allowed; }

/* 滑动验证 */
.captcha-box { position: relative; height: 40px; background: #e2e8f0; border-radius: var(--ne-radius-sm); margin-bottom: 18px; overflow: hidden; user-select: none; }
.captcha-track { position: absolute; top: 0; left: 0; height: 100%; width: 100%; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--ne-text-secondary); }
.captcha-fill { position: absolute; top: 0; left: 0; height: 100%; background: linear-gradient(90deg, var(--ne-primary-light), var(--ne-primary)); border-radius: var(--ne-radius-sm); width: 0; transition: none; }
.captcha-slider { position: absolute; top: 2px; left: 0; width: 44px; height: 36px; background: #fff; border-radius: 6px; box-shadow: 0 2px 6px rgba(0,0,0,0.15); cursor: grab; display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--ne-primary); }
.captcha-slider:active { cursor: grabbing; }
.captcha-box.passed { background: #dcfce7; }
.captcha-box.passed .captcha-track { color: #16a34a; }

/* 按钮 */
.btn-primary { width: 100%; height: 44px; padding: 0 16px; background: var(--ne-primary); color: #fff; border: none; border-radius: var(--ne-radius-sm); font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.2s; line-height: 44px; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary:hover:not(:disabled) { background: var(--ne-primary-dark); box-shadow: 0 4px 12px rgba(37,99,235,0.24); }

/* 页脚 */
.query-footer { margin-top: 24px; text-align: center; color: #64748b; font-size: 12px; }
.query-footer p { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.query-footer a { color: #475569; }
.footer-separator { color: #cbd5e1; }
.result-footer { max-width: 960px; margin: 20px auto 0; }

/* ========== 结果页 ========== */
.result-page { min-height: 100vh; background: var(--ne-bg); padding: 24px 20px; }
.result-container { max-width: 960px; margin: 0 auto; }
.result-header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 16px 18px; background: #fff; border-radius: var(--ne-radius); border: 1px solid var(--ne-border); box-shadow: var(--ne-shadow); }
.result-header .logo { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.result-header .logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.result-header h2 { font-size: 18px; color: var(--ne-text); line-height: 1.2; }
.result-header p { font-size: 12px; color: var(--ne-text-secondary); margin-top: 4px; }
.result-header .back-link { margin-left: auto; font-size: 14px; flex-shrink: 0; }
.result-header .result-action { height: 34px; padding: 0 12px; border: 1px solid var(--ne-border); border-radius: var(--ne-radius-sm); background: #fff; color: var(--ne-primary); font-size: 14px; cursor: pointer; flex-shrink: 0; }
.result-header .result-action:hover:not(:disabled) { border-color: var(--ne-primary-light); background: var(--ne-primary-bg); }
.result-header .result-action:disabled { color: #94a3b8; cursor: not-allowed; background: #f8fafc; }
.result-card { background: #fff; border-radius: var(--ne-radius); padding: 18px; margin-bottom: 14px; border: 1px solid var(--ne-border); box-shadow: var(--ne-shadow); }
.result-card h3 { font-size: 14px; color: var(--ne-text); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #edf1f6; font-weight: 700; }
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
.result-item { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; align-items: start; padding: 8px 0; font-size: 14px; border-bottom: 1px solid #f3f6fa; min-width: 0; }
.result-item:last-child { border-bottom: none; }
.result-item .label { color: var(--ne-text-secondary); white-space: nowrap; }
.result-item .value { color: var(--ne-text); font-weight: 600; overflow-wrap: anywhere; text-align: left; }

/* 质保 */
.warranty-card { position: relative; overflow: hidden; }
.warranty-status-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin-top: 12px; }
.warranty-status-block { min-width: 0; padding-top: 2px; }
.warranty-status-title { font-size: 13px; color: var(--ne-text-secondary); font-weight: 600; margin-bottom: 2px; }
.warranty-status { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.warranty-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.warranty-badge.active { background: rgba(34,197,94,0.1); color: #16a34a; }
.warranty-badge.expired { background: rgba(239,68,68,0.1); color: #dc2626; }
.warranty-badge.none { background: #f1f5f9; color: #94a3b8; }
.warranty-progress { height: 6px; background: #e2e8f0; border-radius: 3px; margin-top: 8px; overflow: hidden; }
.warranty-progress-bar { height: 100%; border-radius: 3px; transition: width 0.5s; }

/* 维修记录 */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 4px; bottom: 4px; width: 2px; background: #e2e8f0; }
.timeline-item { position: relative; padding: 10px 0 10px 16px; }
.timeline-item::before { content: ''; position: absolute; left: -20px; top: 16px; width: 10px; height: 10px; border-radius: 50%; background: var(--ne-primary-light); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--ne-primary-light); }
.timeline-date { font-size: 12px; color: #94a3b8; }
.timeline-type { font-size: 14px; font-weight: 600; color: var(--ne-text); margin: 2px 0; }
.timeline-desc { font-size: 13px; color: var(--ne-text-secondary); }

/* 查询次数 */
.query-count { text-align: center; padding: 14px; font-size: 13px; color: #94a3b8; }

/* 无结果 */
.no-result { text-align: center; padding: 48px 20px; }
.no-result h3 { font-size: 18px; color: #475569; margin-bottom: 8px; }
.no-result p { font-size: 14px; color: #94a3b8; }
.back-link-inline { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 14px; margin-top: 16px; border: 1px solid var(--ne-border); border-radius: var(--ne-radius-sm); background: #fff; }

/* ========== 管理后台 - 整体布局 ========== */
.admin-page { display: flex; min-height: 100vh; background: #eef4f8; }

/* 侧边栏 */
.admin-sidebar {
  width: 246px;
  color: #e5edf7;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #0b1324 0%, #101a2c 54%, #0b1324 100%);
  border-right: 1px solid rgba(122,184,255,0.16);
  box-shadow: 12px 0 30px rgba(15,23,42,0.16);
}
.admin-sidebar .logo-area {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 24px 18px 22px;
  border-bottom: 1px solid rgba(226,232,240,0.1);
}
.admin-sidebar .logo-area .logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(122,184,255,0.24);
}
.admin-sidebar .logo-area .logo-icon img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.admin-sidebar .logo-area h3 { font-size: 16px; font-weight: 700; letter-spacing: 0; line-height: 1.2; }
.admin-sidebar .logo-area p { font-size: 12px; color: #8fb3d8; margin-top: 5px; overflow-wrap: anywhere; }
.sidebar-section-label {
  padding: 18px 18px 8px;
  font-size: 11px;
  color: #6e8eaf;
  font-weight: 700;
  letter-spacing: 0;
}
.admin-menu { display: flex; flex-direction: column; gap: 4px; }
.admin-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 14px;
  margin: 0 10px;
  font-size: 14px;
  color: #a9bdd5;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  user-select: none;
  border: 1px solid transparent;
}
.admin-menu-item:hover { background: rgba(15,118,255,0.12); color: #f8fbff; border-color: rgba(122,184,255,0.16); }
.admin-menu-item.active { background: rgba(15,118,255,0.2); color: #ffffff; border-color: rgba(122,184,255,0.32); box-shadow: inset 3px 0 0 var(--ne-accent); }
.admin-menu-item .menu-icon { font-size: 16px; width: 22px; text-align: center; flex-shrink: 0; color: #7ab8ff; }
.admin-menu-item.logout-item { margin-top: auto; margin-bottom: 14px; color: #fca5a5; }
.admin-menu-item.logout-item:hover { background: rgba(239,68,68,0.12); color: #fecaca; border-color: rgba(239,68,68,0.2); }

/* 主内容区 */
.admin-main { flex: 1; padding: 24px; overflow-y: auto; background: radial-gradient(circle at top right, rgba(0,169,199,0.1), transparent 340px), var(--ne-bg); }
.admin-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.admin-main h2 { font-size: 22px; font-weight: 750; color: var(--ne-text); margin-bottom: 6px; letter-spacing: 0; }
.page-desc { color: var(--ne-text-secondary); font-size: 13px; margin-bottom: 0; }

/* ========== 管理登录 ========== */
.admin-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background: linear-gradient(135deg, #edf7fb 0%, #f8fbff 48%, #eaf2ff 100%);
}
.admin-login-card {
  background: rgba(255,255,255,0.92);
  padding: 34px;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(15,23,42,0.14);
  width: min(420px, calc(100vw - 32px));
  text-align: left;
  border: 1px solid rgba(122,184,255,0.34);
  backdrop-filter: blur(12px);
}
.admin-login-brand { display: flex; align-items: center; gap: 12px; color: var(--ne-primary); font-size: 12px; font-weight: 800; letter-spacing: 0; }
.admin-login-card .login-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--ne-border);
  background: #fff;
}
.admin-login-card .login-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.admin-login-card h2 { margin: 18px 0 6px; color: var(--ne-text); font-size: 22px; font-weight: 750; }
.login-subtitle { margin-bottom: 24px; color: var(--ne-text-secondary); font-size: 13px; }
.admin-login-card .form-group { text-align: left; }
.runtime-alert {
  margin: -8px 0 18px;
  padding: 12px 14px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.runtime-alert[hidden] { display: none; }

/* ========== 管理卡片 ========== */
.ne-card {
  background: rgba(255,255,255,0.96);
  border-radius: 8px;
  border: 1px solid var(--ne-border);
  box-shadow: var(--ne-shadow);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.ne-card:hover { box-shadow: var(--ne-shadow-hover); border-color: #c7d6e7; }
.ne-card-header {
  padding: 14px 18px;
  background: #f7fbff;
  border-bottom: 1px solid var(--ne-border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ne-card-header .card-dot { width: 4px; height: 16px; border-radius: 2px; background: var(--ne-accent); flex-shrink: 0; }
.ne-card-header h3 { font-size: 15px; font-weight: 700; color: var(--ne-text); }
.ne-card-body { padding: 18px; }
.settings-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.footer-preview {
  margin: 2px 0 16px;
  padding: 14px 16px;
  border: 1px solid #cfe0f3;
  border-radius: 8px;
  background: #f8fbff;
  color: var(--ne-text-secondary);
  font-size: 13px;
  text-align: center;
  overflow-wrap: anywhere;
}

/* ========== 管理表格 ========== */
.table-scroll { width: 100%; overflow-x: auto; }
.admin-table { width: 100%; min-width: 620px; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.admin-table thead th {
  background: #f6faff;
  padding: 12px 18px;
  text-align: left;
  font-size: 12px;
  color: #637893;
  font-weight: 750;
  border-bottom: 1px solid var(--ne-border);
  white-space: nowrap;
}
.admin-table tbody td { padding: 14px 18px; border-bottom: 1px solid #edf3f9; color: var(--ne-text); vertical-align: middle; }
.admin-table tbody tr:hover { background: #f1f8ff; }
.admin-table tbody tr:last-child td { border-bottom: none; }
.center-col { width: 108px; text-align: center !important; }
.action-col { width: 150px; text-align: right !important; white-space: nowrap; }
.action-col .btn-sm + .btn-sm { margin-left: 6px; }
.count-col { width: 120px; text-align: right !important; }
.table-sub { color: #8a9bb0; font-size: 12px; margin-top: 4px; overflow-wrap: anywhere; }
.code-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #eef6ff;
  color: #0b55c5;
  border: 1px solid #d4e7ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

/* ========== 开关 ========== */
.toggle { position: relative; display: inline-block; width: 46px; height: 24px; cursor: pointer; vertical-align: middle; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle .slider { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: #c8d3df; border-radius: 24px; transition: 0.25s; box-shadow: inset 0 1px 3px rgba(15,23,42,0.12); }
.toggle .slider::before { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: 0.25s; box-shadow: 0 2px 5px rgba(15,23,42,0.18); }
.toggle input:checked + .slider { background: var(--ne-primary); box-shadow: inset 0 1px 3px rgba(15,118,255,0.32); }
.toggle input:checked + .slider::before { transform: translateX(22px); }
.toggle input:disabled + .slider { opacity: 0.55; cursor: wait; }
.toggle input:focus-visible + .slider { outline: 2px solid #7ab8ff; outline-offset: 2px; }

/* ========== 操作按钮 ========== */
.btn-sm {
  min-height: 34px;
  padding: 0 14px;
  font-size: 13px;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  font-weight: 650;
  white-space: nowrap;
}
.btn-sm:disabled, .btn-primary:disabled, .btn-confirm:disabled, .btn-cancel:disabled { opacity: 0.58; cursor: not-allowed; }
.btn-blue { background: #e8f4ff; color: var(--ne-primary-dark); border-color: #cae2ff; }
.btn-blue:hover:not(:disabled) { background: #dcedff; border-color: #a9d2ff; box-shadow: 0 6px 16px rgba(15,118,255,0.13); }
.btn-red { background: rgba(239,68,68,0.08); color: #dc2626; border-color: rgba(239,68,68,0.18); }
.btn-red:hover:not(:disabled) { background: #fee2e2; border-color: #fecaca; }
.btn-green { background: rgba(19,185,129,0.1); color: #047857; border-color: rgba(19,185,129,0.22); }
.btn-green:hover:not(:disabled) { background: #d9fbee; border-color: rgba(19,185,129,0.34); }

/* ========== 弹窗 ========== */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(7,13,24,0.58); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; animation: fadeIn 0.15s ease; }
.modal { background: #fff; border-radius: 8px; width: 500px; max-width: 92vw; max-height: 84vh; overflow-y: auto; box-shadow: 0 24px 70px rgba(0,0,0,0.26); border: 1px solid rgba(122,184,255,0.24); animation: slideUp 0.2s ease; }
.modal-header { padding: 18px 22px; border-bottom: 1px solid var(--ne-border); background: #f7fbff; }
.modal-header h3 { font-size: 16px; font-weight: 750; color: var(--ne-text); }
.modal-body { padding: 22px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--ne-border); background: #f7fbff; border-radius: 0 0 8px 8px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.btn-cancel { padding: 8px 18px; background: #fff; color: var(--ne-text-secondary); border: 1px solid var(--ne-border); border-radius: 7px; cursor: pointer; font-size: 14px; transition: all 0.2s; }
.btn-cancel:hover:not(:disabled) { background: #f8fafc; border-color: #cbd5e1; }
.btn-confirm { padding: 8px 18px; background: var(--ne-primary); color: #fff; border: none; border-radius: 7px; cursor: pointer; font-size: 14px; font-weight: 650; transition: all 0.2s; }
.btn-confirm:hover:not(:disabled) { background: var(--ne-primary-dark); box-shadow: 0 8px 18px rgba(15,118,255,0.22); }

/* ========== 统计卡片 ========== */
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(160px, 1fr)); gap: 16px; }
.stat-card { background: var(--ne-card); border-radius: 8px; padding: 20px; text-align: left; border: 1px solid var(--ne-border); box-shadow: var(--ne-shadow); transition: all 0.2s; }
.stat-card:hover { box-shadow: var(--ne-shadow-hover); transform: translateY(-1px); border-color: #c7d6e7; }
.stat-card .stat-icon { width: 40px; height: 40px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 14px; }
.stat-card .stat-icon.blue { background: var(--ne-primary-bg); color: var(--ne-primary); }
.stat-card .stat-icon.green { background: rgba(19,185,129,0.12); color: #059669; }
.stat-card .stat-icon.amber { background: rgba(245,158,11,0.14); color: #d97706; }
.stat-number { font-size: 30px; font-weight: 800; line-height: 1; color: var(--ne-primary); }
.stat-green { color: #059669; }
.stat-amber { color: #d97706; }
.stat-label { font-size: 13px; color: var(--ne-text-secondary); margin-top: 8px; }

/* ========== 柱状图 ========== */
.chart-container { display: flex; align-items: flex-end; gap: 10px; height: 200px; background: var(--ne-card); border-radius: 8px; padding: 28px 20px 14px; border: 1px solid var(--ne-border); box-shadow: var(--ne-shadow); }
.chart-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; min-width: 28px; }
.chart-bar { width: 100%; max-width: 52px; background: linear-gradient(180deg, var(--ne-accent), var(--ne-primary)); border-radius: 6px 6px 0 0; min-height: 20px; position: relative; transition: height 0.5s ease; }
.chart-bar-val { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 700; color: #475569; white-space: nowrap; }
.chart-bar-label { font-size: 11px; color: #8a9bb0; margin-top: 6px; }

/* ========== 搜索栏和表单辅助 ========== */
.search-bar { position: relative; margin-bottom: 16px; }
.search-bar .form-input { padding-left: 36px; }
.search-bar .search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #8a9bb0; font-size: 14px; pointer-events: none; }
.wide-search { max-width: 460px; }
.compact-input { width: 180px; max-width: 100%; }
.select-input { width: 320px; max-width: 100%; }
.value-input { width: 240px; max-width: 100%; }
.form-hint { margin: -6px 0 16px; color: #8a9bb0; font-size: 12px; }
.data-panel { margin-top: 16px; }
.action-row-end { margin-bottom: 0; justify-content: flex-end; }

/* ========== 空状态 ========== */
.empty-state { text-align: center; padding: 48px 20px; color: #8a9bb0; }
.empty-state .empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-bottom: 12px; border-radius: 8px; background: #edf6ff; color: var(--ne-primary); font-size: 22px; font-weight: 800; }
.empty-state p { font-size: 14px; margin-bottom: 12px; }
.compact-empty { padding: 28px 16px; }
.compact-empty p { margin-bottom: 0; }
.loading-state .empty-icon { background: #eef6ff; }
.error-state .empty-icon { background: #fee2e2; color: #dc2626; }

/* ========== 页面区块间距 ========== */
.section-title { font-size: 15px; font-weight: 750; color: var(--ne-text); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ''; display: inline-block; width: 4px; height: 16px; border-radius: 2px; background: var(--ne-accent); }
.section-gap { margin-bottom: 22px; }

/* ========== 操作行 ========== */
.action-row { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }

/* ========== 响应式 ========== */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: 1fr; }
  .settings-form-grid { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 768px) {
  .admin-sidebar { width: 68px; }
  .admin-sidebar .logo-area { padding: 16px 12px; justify-content: center; }
  .admin-sidebar .logo-area h3, .admin-sidebar .logo-area p, .sidebar-section-label, .admin-menu-item span:not(.menu-icon) { display: none; }
  .admin-sidebar .logo-area .logo-icon { width: 40px; height: 40px; }
  .admin-menu-item { justify-content: center; padding: 0; margin: 0 8px; }
  .admin-menu-item .menu-icon { width: 20px; }
  .admin-main { padding: 16px; }
  .admin-page-head { display: block; }
  .admin-main h2 { font-size: 20px; }
  .action-row { align-items: stretch; }
  .action-row .form-input, .action-row .btn-sm, .compact-input, .select-input, .value-input { width: 100%; }
  .query-page { padding: 20px 16px; }
  .result-container { padding: 0; }
  .result-header { align-items: flex-start; }
  .result-grid { grid-template-columns: 1fr; }
  .result-item { grid-template-columns: 96px minmax(0, 1fr); }
  .warranty-status-list { grid-template-columns: 1fr; }
  .code-row { flex-direction: column; }
  .code-btn { width: 100%; }
}

@media (max-width: 480px) {
  .admin-login { padding: 16px; }
  .admin-login-card { padding: 26px 22px; }
  .admin-main { padding: 14px; }
  .ne-card-body { padding: 16px; }
  .admin-table { min-width: 560px; }
  .modal-footer { flex-direction: column-reverse; }
  .modal-footer button { width: 100%; }
}
