/* ============================================
   信息查询平台 - 全局样式
   配色: 深蓝 #0f172a | 青绿 #06b6d4 | 白色 #ffffff
   ============================================ */

:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #06b6d4;
    --accent-light: #67e8f9;
    --accent-dark: #0891b2;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --bg: #f1f5f9;
    --card-bg: #ffffff;
    --text: #334155;
    --text-light: #64748b;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ========== 登录页 ========== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

#bgCanvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
}

.login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 40px 36px;
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header .logo {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(6,182,212,0.3);
}

.login-header .logo i {
    font-size: 32px;
    color: #fff;
}

.login-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.login-header p {
    color: var(--text-light);
    font-size: 13px;
    letter-spacing: 2px;
}

.login-form .form-group {
    margin-bottom: 20px;
    position: relative;
}

.login-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.login-form label i {
    color: var(--accent);
    margin-right: 6px;
    width: 16px;
}

.login-form input {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: var(--transition);
    background: #fff;
}

.login-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(6,182,212,0.1);
}

.login-form .toggle-password {
    position: absolute;
    right: 14px;
    bottom: 14px;
    color: var(--text-light);
    cursor: pointer;
    font-size: 14px;
}

.login-form .toggle-password:hover { color: var(--accent); }

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-light);
    cursor: pointer;
}

.remember input {
    width: 16px; height: 16px;
    accent-color: var(--accent);
}

.btn-login {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(6,182,212,0.35);
}

.btn-login.loading {
    opacity: 0.8;
    pointer-events: none;
}

.btn-login i { transition: transform 0.3s; }
.btn-login:hover i { transform: translateX(4px); }

.login-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.login-footer p {
    font-size: 12px;
    color: var(--text-light);
}

/* ========== 主控制台布局 ========== */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏 */
.sidebar {
    width: 260px;
    background: var(--primary);
    color: #fff;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar.collapsed { width: 72px; }

.sidebar-header {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-header .logo i {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.sidebar-header .logo-text {
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.sidebar.collapsed .logo-text { opacity: 0; width: 0; min-width: 0; overflow: hidden; }
.sidebar.collapsed .sidebar-header { justify-content: center; padding: 0; position: relative; }
.sidebar.collapsed .sidebar-header .logo { gap: 0; }
.sidebar.collapsed .collapse-btn { position: absolute; right: -14px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); border-radius: 50%; color: #fff; box-shadow: 0 2px 8px rgba(6,182,212,0.4); z-index: 101; }

.collapse-btn {
    width: 28px; height: 28px;
    background: rgba(255,255,255,0.08);
    border: none;
    border-radius: 6px;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.collapse-btn:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* 菜单 */
.sidebar-menu {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
    overflow-x: hidden;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    color: rgba(255,255,255,0.6);
    margin-bottom: 4px;
    white-space: nowrap;
}

.menu-item:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.menu-item.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    box-shadow: 0 4px 12px rgba(6,182,212,0.25);
}

.menu-item i {
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.menu-item span {
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s;
}

.sidebar.collapsed .menu-item span { opacity: 0; width: 0; min-width: 0; overflow: hidden; }
.sidebar.collapsed .menu-item { justify-content: center; padding: 12px; gap: 0; }

/* 侧边栏底部 */
.sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow-x: hidden;
}

.user-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.user-mini img {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.15);
    flex-shrink: 0;
}

.user-mini .user-info {
    transition: opacity 0.2s;
}

.user-mini .name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.user-mini .level {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 500;
}

.level.base { background: rgba(148,163,184,0.2); color: #94a3b8; }
.level.vip { background: rgba(245,158,11,0.2); color: #f59e0b; }
.level.svip { background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff; }

.sidebar.collapsed .user-mini .user-info { opacity: 0; width: 0; min-width: 0; overflow: hidden; }
.sidebar.collapsed .user-mini { gap: 0; justify-content: center; }

.logout-btn {
    width: 32px; height: 32px;
    background: rgba(239,68,68,0.15);
    border: none;
    border-radius: 8px;
    color: var(--danger);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.logout-btn:hover {
    background: var(--danger);
    color: #fff;
}

/* 主内容区 */
.main-content {
    flex: 1;
    margin-left: 260px;
    transition: margin-left 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed ~ .main-content { margin-left: 72px; }

/* 顶部栏 */
.top-bar {
    height: 70px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.page-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 13px;
}

.search-box input {
    width: 260px;
    height: 40px;
    padding: 0 14px 0 38px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    background: var(--bg);
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
    width: 300px;
}

.notify-btn {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.notify-btn:hover { background: var(--border); }

.notify-btn .badge {
    position: absolute;
    top: -4px; right: -4px;
    width: 18px; height: 18px;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 页面内容 */
.page-content {
    flex: 1;
    padding: 24px 28px;
}

/* 通用卡片 */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.card-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header h3 i { color: var(--accent); }

.card-header a {
    font-size: 13px;
    color: var(--accent);
    cursor: pointer;
    font-weight: 500;
}

.card-header a:hover { text-decoration: underline; }

.card-body { padding: 24px; }

/* 按钮 */
.btn-primary {
    height: 42px;
    padding: 0 24px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(6,182,212,0.3);
}

.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-default {
    height: 42px;
    padding: 0 20px;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-default:hover {
    background: var(--border);
    border-color: #cbd5e1;
}

/* 表单 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: #fff;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(6,182,212,0.08);
}

.form-row {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.form-row .form-group { flex: 1; min-width: 180px; margin-bottom: 0; }
.form-row .btn-group { flex: 0 0 auto; display: flex; gap: 10px; }

/* ========== 首页 ========== */
.welcome-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius);
    padding: 32px 36px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(6,182,212,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.welcome-text h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.welcome-text p {
    opacity: 0.7;
    font-size: 14px;
}

.level-card {
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.level-card.base { background: rgba(148,163,184,0.2); color: #94a3b8; }
.level-card.vip { background: rgba(245,158,11,0.2); color: #f59e0b; }
.level-card.svip { background: linear-gradient(135deg, rgba(245,158,11,0.3), rgba(239,68,68,0.3)); color: #fbbf24; }

/* 统计卡片 */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
}

.stat-icon.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.stat-icon.green { background: linear-gradient(135deg, #10b981, #059669); }
.stat-icon.orange { background: linear-gradient(135deg, #f59e0b, #d97706); }
.stat-icon.cyan { background: linear-gradient(135deg, #06b6d4, #0891b2); }

.stat-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-info p {
    font-size: 13px;
    color: var(--text-light);
}

/* 首页网格 */
.home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.action-item {
    padding: 20px;
    border-radius: var(--radius-sm);
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.action-item:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(6,182,212,0.25);
}

.action-item i {
    font-size: 24px;
}

.action-item span {
    font-size: 13px;
    font-weight: 500;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: var(--bg);
    transition: var(--transition);
}

.history-item:hover {
    background: #e2e8f0;
}

.history-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
}

.history-info p {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.history-info span {
    font-size: 12px;
    color: var(--text-light);
}

/* ========== 查询页 ========== */
.query-form-card { margin-bottom: 20px; }
.query-result-card { animation: fadeIn 0.4s ease; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-count {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}

.result-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-export {
    height: 34px;
    padding: 0 14px;
    background: #fff;
    color: var(--accent-dark, #0e7490);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-export:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(6, 182, 212, 0.06);
}

.btn-export:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.result-table-wrap { overflow-x: auto; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th {
    background: var(--bg);
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text);
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.source-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed var(--accent);
    cursor: pointer;
}

.source-link:hover {
    color: var(--accent-dark, #0891b2);
    border-bottom-style: solid;
}

.data-table tbody tr:hover { background: rgba(6,182,212,0.03); }

.tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--bg);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-dark);
    font-family: monospace;
}

.badge-category {
    display: inline-block;
    padding: 3px 10px;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1d4ed8;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.badge-category.goods {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

.badge-category.service {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
}
    font-size: 12px;
    font-weight: 500;
}

.status-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-dot.active { background: var(--success); box-shadow: 0 0 0 3px rgba(16,185,129,0.2); }
.status-dot.inactive { background: var(--text-light); }

/* ========== 历史页 ========== */
.history-timeline {
    position: relative;
    padding-left: 28px;
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--accent-light));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-dot {
    position: absolute;
    left: -24px;
    top: 6px;
    width: 14px; height: 14px;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--accent);
}

.timeline-content {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.timeline-type {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

.timeline-time {
    font-size: 12px;
    color: var(--text-light);
}

.timeline-body {
    margin-bottom: 10px;
}

.timeline-body p {
    font-size: 13px;
    color: var(--text);
    margin-bottom: 4px;
}

.timeline-body strong {
    color: var(--text-light);
    font-weight: 600;
}

.ip-tag {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

.filter-input {
    height: 36px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    font-size: 13px;
    width: 200px;
    transition: var(--transition);
}

.filter-input:focus {
    outline: none;
    border-color: var(--accent);
    width: 240px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ========== 个人中心 ========== */
.profile-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 20px;
}

.profile-card .profile-header {
    text-align: center;
    padding: 32px 24px 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    position: relative;
    overflow: hidden;
}

.profile-card .profile-header::before {
    content: '';
    position: absolute;
    top: -30%; right: -20%;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(6,182,212,0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.profile-card .profile-header img {
    width: 90px; height: 90px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.2);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.profile-card .profile-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.level-badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.level-badge.base { background: rgba(148,163,184,0.25); color: #cbd5e1; }
.level-badge.vip { background: rgba(245,158,11,0.25); color: #fbbf24; }
.level-badge.svip { background: linear-gradient(135deg, rgba(245,158,11,0.4), rgba(239,68,68,0.4)); color: #fde047; }

.profile-body {
    padding: 20px 24px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.info-item:last-child { border-bottom: none; }

.info-item label {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}

.info-item span {
    font-size: 14px;
    color: var(--text);
    font-weight: 600;
}

.password-card .card-body {
    max-width: 480px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-state p {
    font-size: 14px;
}

/* Toast */
.toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    z-index: 9999;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.success { background: linear-gradient(135deg, var(--success), #059669); }
.toast.error { background: linear-gradient(135deg, var(--danger), #dc2626); }

/* ========== 响应式 ========== */
@media (max-width: 1200px) {
    .stat-cards { grid-template-columns: repeat(2, 1fr); }
    .home-grid { grid-template-columns: 1fr; }
    .profile-grid { grid-template-columns: 1fr; }
}

.stat-cards.query-stat {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
    width: 100%;
}

.stat-cards.query-stat .stat-card {
    min-width: 0;
    width: 100%;
}

.form-group-date {
    min-width: 280px !important;
    flex: 1.3 !important;
}

.date-range-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.date-range-input {
    width: 100%;
    height: 42px;
    padding: 0 36px 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
}

.date-range-input:hover,
.date-range-input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.12);
}

.date-clear-btn {
    position: absolute;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.date-clear-btn:hover {
    background: var(--bg);
    color: var(--text);
}

.flatpickr-calendar {
    font-family: inherit;
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.flatpickr-day.inRange {
    background: rgba(6, 182, 212, 0.12);
    border-color: transparent;
    box-shadow: none;
}

.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months:hover {
    background: transparent;
}

.ui-build-tag {
    font-size: 12px;
    color: #fff;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 600;
}

.pagination-bar {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.pagination-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-light);
}

.pagination-left select {
    height: 32px;
    padding: 0 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    font-size: 13px;
}

.page-info {
    margin-left: 8px;
    color: var(--text);
    font-weight: 500;
}

.pagination-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 36px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.page-btn:hover:not(:disabled):not(.ellipsis) {
    border-color: var(--accent);
    color: var(--accent);
}

.page-btn.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-color: transparent;
    color: #fff;
    font-weight: 600;
}

.page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.page-btn.ellipsis {
    border: none;
    background: transparent;
    cursor: default;
    min-width: 24px;
    padding: 0 4px;
}

@media (max-width: 768px) {
    .stat-cards.query-stat {
        grid-template-columns: 1fr;
    }
    .pagination-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .pagination-right {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .sidebar { width: 72px; }
    .sidebar .logo-text,
    .sidebar .menu-item span,
    .sidebar .user-mini .user-info {
        display: none;
    }
    .sidebar .collapse-btn {
        display: none;
    }
    .main-content { margin-left: 72px; }
    .stat-cards { grid-template-columns: 1fr; }
    .top-bar { padding: 0 16px; }
    .search-box { display: none; }
    .page-content { padding: 16px; }
    .form-row { flex-direction: column; align-items: stretch; }
    .form-row .form-group { width: 100%; }
    .form-row .btn-group { justify-content: flex-end; }
}
