/* ========================================
   设备信息查询系统 - 全局样式 v3
   设计方向：现代 SaaS 风格，干净、明亮、专业
   ======================================== */

:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: #eef2ff;
    --primary-50: #eef2ff;
    --accent: #f59e0b;
    --bg: #f1f5f9;
    --bg-alt: #f8fafc;
    --surface: #ffffff;
    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.03);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.06), 0 4px 6px -4px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-2xl: 24px;
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

/* ============================================
   通用组件
   ============================================ */

.container { max-width: 1280px; margin: 0 auto; padding: 0 28px; }

/* 按钮 */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 18px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 500; font-family: var(--font);
    cursor: pointer; text-decoration: none;
    transition: all 0.2s ease; line-height: 1.4;
    border: 1px solid var(--border); background: var(--surface);
    color: var(--text-secondary);
}
.btn:hover { background: var(--bg); color: var(--text); border-color: #cbd5e1; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.btn-success { background: #10b981; color: #fff; border-color: #10b981; }
.btn-success:hover { background: #059669; border-color: #059669; color: #fff; }
.btn-danger { background: #fef2f2; color: #ef4444; border-color: #fecaca; }
.btn-danger:hover { background: #ef4444; color: #fff; border-color: #ef4444; }
.btn-lg { padding: 12px 28px; font-size: 15px; border-radius: var(--radius); }
.btn-sm { padding: 5px 12px; font-size: 13px; border-radius: 5px; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* 提示 */
.alert {
    padding: 13px 18px; border-radius: var(--radius-sm);
    margin-bottom: 18px; font-size: 14px; font-weight: 500;
    display: flex; align-items: center; gap: 10px;
}
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* 徽章 */
.badge {
    display: inline-block; padding: 4px 12px;
    background: var(--primary-light); color: var(--primary);
    border-radius: 100px; font-size: 12px; font-weight: 600;
}

/* ============================================
   前台 - 头部
   ============================================ */

.site-header {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 30%, #4338ca 70%, #6366f1 100%);
    color: #fff;
    padding: 56px 0 52px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.site-header::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 20% 50%, rgba(255,255,255,0.07) 0%, transparent 100%),
        radial-gradient(ellipse 40% 40% at 80% 40%, rgba(255,255,255,0.05) 0%, transparent 100%);
    pointer-events: none;
}
.site-header .container { position: relative; z-index: 1; }
.site-header h1 { font-size: 34px; font-weight: 750; letter-spacing: -0.8px; }
.site-header .subtitle { font-size: 16px; opacity: 0.78; margin-top: 8px; font-weight: 400; }

/* 头部装饰点 */
.header-dots {
    position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.header-dots span {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    animation: dotPulse 6s ease-in-out infinite;
}
.header-dots span:nth-child(1) { width: 300px; height: 300px; top: -120px; left: -60px; animation-delay: 0s; }
.header-dots span:nth-child(2) { width: 200px; height: 200px; top: 40px; right: -40px; animation-delay: 2s; }
.header-dots span:nth-child(3) { width: 150px; height: 150px; bottom: -50px; left: 50%; animation-delay: 4s; }

@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 0.08; }
    50% { transform: scale(1.3); opacity: 0.15; }
}

/* ============================================
   前台 - 分类导航
   ============================================ */

.category-nav {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
    box-shadow: var(--shadow-xs);
}
.category-nav .container {
    display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
    padding-top: 12px; padding-bottom: 12px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.category-nav .container::-webkit-scrollbar { height: 0; }

.cat-tab {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 8px 18px; border-radius: 100px;
    font-size: 14px; font-weight: 500; color: var(--text-secondary);
    cursor: pointer; transition: all 0.2s ease;
    text-decoration: none; white-space: nowrap;
    background: var(--bg);
}
.cat-tab:hover { background: var(--primary-light); color: var(--primary); }
.cat-tab.active { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(99,102,241,0.3); }

/* ============================================
   前台 - 搜索区
   ============================================ */

.search-section { padding: 36px 0 8px; }

.search-box {
    position: relative;
    max-width: 640px; margin: 0 auto;
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 2px solid transparent;
    transition: all 0.25s ease;
    display: flex; align-items: center;
    z-index: 50;
}
.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: var(--shadow-xl), 0 0 0 6px rgba(99,102,241,0.06);
}
.search-box .search-icon {
    padding-left: 20px;
    font-size: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
    pointer-events: none;
}
.search-box input {
    flex: 1; min-width: 0;
    padding: 16px 16px 16px 12px;
    border: none; font-size: 16px; outline: none;
    background: transparent; color: var(--text);
}
.search-box input::placeholder { color: var(--text-muted); }
.search-box button {
    padding: 10px 22px; margin: 4px 6px 4px 0;
    background: var(--bg); color: var(--text-secondary);
    border: 1px solid var(--border); border-radius: 100px;
    font-size: 14px; font-weight: 500; cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex; align-items: center; gap: 5px;
}
.search-box button:hover { background: #fef2f2; color: #dc2626; border-color: #fecaca; }

/* 实时搜索下拉 */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px); left: 0; right: 0;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    max-height: 420px;
    overflow-y: auto;
    display: none;
    z-index: 200;
}
.search-results-dropdown.show { display: block; }
.search-results-dropdown .result-item {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 18px;
    cursor: pointer;
    transition: background 0.12s ease;
    border-bottom: 1px solid var(--border-light);
}
.search-results-dropdown .result-item:last-child { border-bottom: none; }
.search-results-dropdown .result-item:hover { background: var(--primary-light); }
.search-results-dropdown .result-icon {
    width: 40px; height: 40px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}
.search-results-dropdown .result-info { flex: 1; min-width: 0; }
.search-results-dropdown .result-model { font-size: 15px; font-weight: 600; color: var(--text); }
.search-results-dropdown .result-meta {
    font-size: 13px; color: var(--text-secondary);
    display: flex; gap: 8px; align-items: center; margin-top: 2px;
}
.search-results-dropdown .result-meta .cat-tag {
    font-size: 11px; padding: 2px 8px;
    background: var(--primary-light); color: var(--primary);
    border-radius: 100px; font-weight: 500;
}
.search-results-dropdown .no-results {
    padding: 24px; text-align: center; color: var(--text-muted); font-size: 14px;
}
/* 遮罩层 */
.search-overlay {
    position: fixed; inset: 0; background: rgba(15,23,42,0.15);
    z-index: 150; display: none;
}
.search-overlay.show { display: block; }

/* 搜索信息条 */
.search-info {
    text-align: center; font-size: 14px; color: var(--text-secondary);
    padding: 10px 0 4px;
}
.search-info strong { color: var(--primary); font-weight: 600; }
.clear-search {
    display: inline-block; padding: 5px 14px; background: #fef2f2;
    border-radius: 100px; color: #dc2626; font-size: 13px;
    margin-left: 10px; transition: all 0.2s; border: 1px solid #fecaca;
}
.clear-search:hover { background: #fee2e2; color: #b91c1c; }

/* ============================================
   前台 - 设备列表
   ============================================ */

.category-section { margin-bottom: 40px; }

.category-section-header {
    display: flex; align-items: center; gap: 12px;
    padding-bottom: 14px; margin-bottom: 20px;
    border-bottom: 2px solid var(--border);
    position: relative;
}
.category-section-header::after {
    content: '';
    position: absolute; bottom: -2px; left: 0;
    width: 50px; height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-hover));
    border-radius: 2px;
    transition: width 0.3s ease;
}
.category-section:hover .category-section-header::after { width: 80px; }
.category-title {
    font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: -0.4px;
}
.category-title .count {
    font-size: 13px; color: var(--text-muted); font-weight: 500;
    margin-left: 10px;
    background: var(--bg); padding: 3px 12px; border-radius: 100px;
}

/* 设备卡片网格 */
.device-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 18px;
}

.device-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
    border: 1px solid var(--border);
    display: flex; gap: 16px; align-items: flex-start;
    position: relative; overflow: hidden;
}
.device-card::before {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: var(--primary);
    border-radius: 0 3px 3px 0;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.device-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: #d4d4f0;
}
.device-card:hover::before { opacity: 1; }

.device-icon {
    font-size: 26px;
    width: 50px; height: 50px;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}
.device-card:hover .device-icon { transform: scale(1.1); }

.device-info { flex: 1; min-width: 0; }
.device-brand {
    font-size: 11px; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1px; font-weight: 700;
    margin-bottom: 2px;
}
.device-model {
    font-size: 17px; font-weight: 650; color: var(--text);
    margin-bottom: 4px; line-height: 1.3;
}
.device-notes {
    font-size: 13px; color: var(--text-secondary); line-height: 1.6;
    word-break: break-word; white-space: pre-wrap;
}

/* ============================================
   前台 - 空状态 & 页脚
   ============================================ */

.empty-state {
    text-align: center; padding: 80px 20px; color: var(--text-muted);
}
.empty-state .icon {
    font-size: 64px; margin-bottom: 16px; display: block;
    animation: gentleFloat 3s ease-in-out infinite;
}
@keyframes gentleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.empty-state p { font-size: 16px; }

.site-footer {
    text-align: center; padding: 28px;
    color: var(--text-muted); font-size: 13px;
    border-top: 1px solid var(--border); margin-top: 48px;
    background: var(--surface);
}

/* ============================================
   后台 - 头部 & 导航（更亮）
   ============================================ */

.admin-header {
    background: var(--surface);
    color: var(--text);
    padding: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}
.admin-header .container {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 16px; padding-bottom: 16px;
}
.admin-header h1 {
    font-size: 20px; font-weight: 700; letter-spacing: -0.3px;
    display: flex; align-items: center; gap: 10px;
    color: var(--text);
}
.admin-header h1 .dot {
    width: 9px; height: 9px; background: #10b981;
    border-radius: 50%; display: inline-block;
    box-shadow: 0 0 0 3px rgba(16,185,129,0.15);
    animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(16,185,129,0.15); }
    50% { box-shadow: 0 0 0 8px rgba(16,185,129,0.05); }
}
.admin-header a { color: var(--primary); }
.admin-user {
    font-size: 14px; color: var(--text-secondary);
    display: flex; align-items: center; gap: 6px;
}
.admin-user strong { color: var(--text); font-weight: 600; }
.admin-user .sep { color: var(--border); margin: 0 2px; }

/* 后台导航 - 亮色底 */
.admin-nav {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}
.admin-nav .container {
    display: flex; gap: 2px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.admin-nav .container::-webkit-scrollbar { height: 0; }
.admin-nav a {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 15px 22px;
    color: var(--text-secondary); font-size: 14px; font-weight: 500;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.admin-nav a:hover { color: var(--primary); background: var(--primary-light); }
.admin-nav a.active {
    color: var(--primary); font-weight: 600;
    border-bottom-color: var(--primary);
    background: var(--primary-light);
}

/* ============================================
   后台 - 仪表盘
   ============================================ */

.admin-main { padding: 28px; }

/* 统计卡片 */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
    margin-bottom: 32px;
}
.stat-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 26px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex; align-items: center; gap: 18px;
    transition: all 0.25s ease;
    position: relative; overflow: hidden;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.stat-card .stat-icon {
    width: 54px; height: 54px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; flex-shrink: 0;
}
.stat-card .stat-icon.indigo { background: linear-gradient(135deg, #eef2ff, #e0e7ff); }
.stat-card .stat-icon.emerald { background: linear-gradient(135deg, #ecfdf5, #d1fae5); }
.stat-card .stat-icon.amber { background: linear-gradient(135deg, #fffbeb, #fef3c7); }
.stat-card .stat-icon.rose { background: linear-gradient(135deg, #fff1f2, #ffe4e6); }
.stat-card .stat-info { flex: 1; }
.stat-card .stat-num {
    font-size: 34px; font-weight: 750; color: var(--text);
    line-height: 1.1; letter-spacing: -1.5px;
}
.stat-card .stat-label { font-size: 13px; color: var(--text-muted); margin-top: 2px; font-weight: 500; }

/* 仪表盘区块 */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}
@media (max-width: 900px) { .dashboard-grid { grid-template-columns: 1fr; } }

.dash-panel {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
}
.dash-panel-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    font-size: 16px; font-weight: 650;
    color: var(--text);
    display: flex; align-items: center; justify-content: space-between;
    background: var(--bg-alt);
}
.dash-panel-body { padding: 16px 24px 20px; }
.dash-list-item {
    display: flex; align-items: center; gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border-light);
}
.dash-list-item:last-child { border-bottom: none; }
.dash-list-item .item-icon {
    width: 38px; height: 38px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
}
.dash-list-item .item-info { flex: 1; min-width: 0; }
.dash-list-item .item-title { font-size: 14px; font-weight: 600; color: var(--text); }
.dash-list-item .item-sub { font-size: 12px; color: var(--text-muted); margin-top: 1px; }

/* 快速入口 */
.section-title {
    font-size: 17px; font-weight: 650; color: var(--text);
    margin-bottom: 16px; letter-spacing: -0.3px;
}
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}
.quick-link-card {
    display: flex; align-items: center; gap: 14px;
    background: var(--surface);
    padding: 20px 22px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.25s ease;
}
.quick-link-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: #d4d4f0;
}
.quick-link-card .ql-icon {
    width: 46px; height: 46px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
    background: var(--primary-light);
}
.quick-link-card .ql-info { flex: 1; }
.quick-link-card .label { font-size: 15px; color: var(--text); font-weight: 600; }
.quick-link-card .desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.quick-link-card .arrow {
    color: var(--text-muted); font-size: 16px;
    transition: all 0.25s ease;
}
.quick-link-card:hover .arrow { transform: translateX(4px); color: var(--primary); }

/* ============================================
   后台 - 表格 & 表单
   ============================================ */

.admin-toolbar {
    display: flex; justify-content: space-between; align-items: center;
    gap: 14px; margin-bottom: 20px; flex-wrap: wrap;
}
.toolbar-search { display: flex; gap: 8px; align-items: center; }
.toolbar-search select,
.toolbar-search input {
    padding: 9px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 14px; background: var(--surface); color: var(--text);
    transition: border-color 0.2s; font-family: var(--font);
}
.toolbar-search select:focus,
.toolbar-search input:focus { outline: none; border-color: var(--primary); }
.toolbar-search input { width: 210px; }

.table-wrapper {
    overflow-x: auto; background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.data-table { width: 100%; border-collapse: collapse; }
.data-table thead th {
    background: var(--bg-alt); padding: 13px 16px;
    text-align: left; font-size: 12px; font-weight: 700;
    color: var(--text-secondary); text-transform: uppercase;
    letter-spacing: 0.5px; border-bottom: 2px solid var(--border); white-space: nowrap;
}
.data-table tbody td {
    padding: 13px 16px; border-bottom: 1px solid var(--border-light);
    font-size: 14px; color: var(--text);
}
.data-table tbody tr { transition: background 0.15s; }
.data-table tbody tr:hover td { background: #fafbff; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table .empty-cell { text-align: center; padding: 48px; color: var(--text-muted); }
.data-table .row-brand { font-weight: 500; color: var(--text); }
.data-table .row-model { font-weight: 650; color: var(--text); }
.data-table .action-cell { display: flex; gap: 5px; }

.form-container {
    background: var(--surface); padding: 32px;
    border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
    border: 1px solid var(--border); max-width: 680px;
}
.form-container h2 {
    font-size: 19px; font-weight: 650; margin-bottom: 22px;
    color: var(--text); letter-spacing: -0.3px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--text-secondary); margin-bottom: 6px;
    text-transform: uppercase; letter-spacing: 0.4px;
}
.form-group .required { color: #ef4444; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 10px 14px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 15px; font-family: var(--font); color: var(--text);
    transition: all 0.2s ease; background: var(--surface);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.08);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-actions { display: flex; gap: 10px; margin-top: 22px; }

/* ============================================
   后台 - 登录页
   ============================================ */

.login-page {
    display: flex; justify-content: center; align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #f1f5f9 100%);
}
.login-card {
    background: var(--surface);
    padding: 44px 40px;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    width: 420px; max-width: 92vw; text-align: center;
    border: 1px solid var(--border);
}
.login-card .login-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-size: 26px;
    margin: 0 auto 20px;
}
.login-card h1 { font-size: 24px; font-weight: 700; color: var(--text); letter-spacing: -0.5px; }
.login-card .login-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 26px; }
.login-card .back-link { display: inline-block; margin-top: 20px; font-size: 13px; color: var(--text-muted); }
.login-card .back-link:hover { color: var(--primary); }
.login-card .form-group { text-align: left; }
.login-card .btn-block { margin-top: 6px; }

/* ============================================
   后台 - 分页
   ============================================ */

.pagination {
    display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 22px;
}
.pagination .page-info { font-size: 14px; color: var(--text-secondary); }

/* ============================================
   导入页
   ============================================ */

.import-zone {
    border: 2px dashed #cbd5e1; border-radius: var(--radius-lg);
    padding: 48px; text-align: center; background: var(--surface);
    transition: all 0.25s ease; cursor: pointer;
}
.import-zone:hover { border-color: var(--primary); background: #fafbff; }
.import-zone .icon { font-size: 52px; margin-bottom: 14px; }
.import-zone p { color: var(--text-secondary); margin-bottom: 16px; font-size: 15px; }
.import-zone .hint { font-size: 13px; color: var(--text-muted); }
.import-zone input[type="file"] { display: none; }

.step-indicator {
    display: flex; margin-bottom: 26px; border-radius: var(--radius);
    overflow: hidden; border: 1px solid var(--border);
}
.step-indicator .step {
    flex: 1; text-align: center; padding: 11px;
    background: var(--surface); color: var(--text-muted);
    font-size: 14px; font-weight: 500;
    transition: all 0.2s ease;
    border-right: 1px solid var(--border);
}
.step-indicator .step:last-child { border-right: none; }
.step-indicator .step.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.step-indicator .step.done { background: #ecfdf5; color: #065f46; }

.preview-table { max-height: 500px; overflow-y: auto; }
.tag-new {
    display: inline-block; padding: 2px 10px;
    background: #fffbeb; color: #d97706;
    border-radius: 100px; font-size: 12px; font-weight: 600;
}
.tag-ok {
    display: inline-block; padding: 2px 10px;
    background: #ecfdf5; color: #065f46;
    border-radius: 100px; font-size: 12px; font-weight: 600;
}

/* ============================================
   留言板
   ============================================ */

.message-board {
    margin-top: 48px;
    padding: 36px 32px;
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.msg-board-title {
    font-size: 20px; font-weight: 700; color: var(--text);
    margin-bottom: 6px; letter-spacing: -0.3px;
}
.msg-board-desc {
    font-size: 14px; color: var(--text-muted); margin-bottom: 24px;
}
.msg-form-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 600px) {
    .msg-form-row { grid-template-columns: 1fr; }
}
.msg-form .form-group { margin-bottom: 16px; }
.msg-form .form-group label {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--text-secondary); margin-bottom: 6px;
    text-transform: uppercase; letter-spacing: 0.4px;
}
.msg-form .form-group .required { color: #ef4444; }
.msg-form input,
.msg-form textarea {
    width: 100%; padding: 10px 14px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 15px; font-family: var(--font); color: var(--text);
    transition: all 0.2s ease; background: var(--bg-alt);
}
.msg-form input:focus,
.msg-form textarea:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.08);
    background: var(--surface);
}
.msg-form textarea { resize: vertical; min-height: 100px; }

/* ============================================
   响应式
   ============================================ */

@media (max-width: 768px) {
    .site-header { padding: 36px 0; }
    .site-header h1 { font-size: 24px; }
    .search-box input { font-size: 14px; padding: 14px 12px; }
    .search-box button { padding: 10px 18px; font-size: 14px; }
    .device-grid { grid-template-columns: 1fr; }
    .admin-toolbar { flex-direction: column; align-items: stretch; }
    .toolbar-search { flex-wrap: wrap; }
    .toolbar-search input { width: 100%; flex: 1; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .quick-links { grid-template-columns: 1fr; }
    .admin-header .container { flex-direction: column; gap: 8px; text-align: center; }
    .admin-nav a { padding: 12px 14px; font-size: 13px; }
    .login-card { padding: 32px 24px; }
    .form-container { padding: 22px 18px; }
    .dashboard-grid { grid-template-columns: 1fr; }
}
