/* ==================== 全局变量 ==================== */
:root {
    --primary-color: #4f6ef7;
    --primary-light: #eef1ff;
    --primary-soft: #f5f7ff;
    --primary-dark: #3a56d4;
    --secondary-color: #6c5ce7;
    --accent-color: #f06292;
    --background-color: #f5f7fb;
    --surface-color: #ffffff;
    --surface-soft: #fafbfd;
    --text-color: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border-color: #eef0f4;
    --border-strong: #e3e6ec;
    --success-color: #22c55e;
    --success-bg: #ecfdf5;
    --warning-color: #f59e0b;
    --warning-bg: #fffbeb;
    --error-color: #ef4444;
    --error-bg: #fef2f2;
    --info-color: #3b82f6;
    --info-bg: #eff6ff;
    --sidebar-bg: #ffffff;
    --sidebar-text: #4b5563;
    --sidebar-text-active: #4f6ef7;
    --sidebar-hover: #f5f7ff;
    --sidebar-active-bg: #eef1ff;
    --sidebar-width: 232px;
    --header-height: 60px;
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.05), 0 2px 4px rgba(15, 23, 42, 0.03);
    --shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.06), 0 4px 10px rgba(15, 23, 42, 0.04);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== 重置与基础 ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    background: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 14px;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    outline: none;
}

input, select, textarea {
    font-family: inherit;
}

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

a:hover {
    color: var(--primary-dark);
}

/* ==================== 登录页面 ==================== */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: #f5f7fb;
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(79, 110, 247, 0.10) 0%, transparent 70%);
    top: -180px;
    right: -120px;
    border-radius: 50%;
    filter: blur(10px);
}

.container::after {
    content: '';
    position: absolute;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.08) 0%, transparent 70%);
    bottom: -140px;
    left: -100px;
    border-radius: 50%;
    filter: blur(10px);
}

.form-container {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    padding: 44px 36px;
    position: relative;
    z-index: 1;
    border: 1px solid var(--border-color);
}

.form-box {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeIn 0.5s ease forwards;
}

.form-box h2 {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.form-box .form-subtitle {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

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

.input-group input {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition);
    background: var(--surface-color);
    color: var(--text-color);
}

.input-group label {
    position: absolute;
    top: -7px;
    left: 10px;
    font-size: 11px;
    color: var(--text-secondary);
    background: var(--surface-color);
    padding: 0 4px;
    pointer-events: none;
    transition: var(--transition);
    font-weight: 500;
}

.input-group input:focus ~ label,
.input-group input:valid ~ label {
    color: var(--primary-color);
}

.input-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.10);
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    margin-top: 12px;
    box-shadow: 0 2px 6px rgba(79, 110, 247, 0.20);
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 110, 247, 0.30);
}

.btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(79, 110, 247, 0.20);
}

/* ==================== 主布局 ==================== */
.layout {
    display: flex;
    min-height: 100vh;
}

/* ==================== 侧边栏 ==================== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
}

.logo {
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(79, 110, 247, 0.25);
}

.logo span {
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.3px;
    color: var(--text-color);
}

.menu-list {
    padding: 14px 12px;
    flex: 1;
    overflow-y: auto;
}

.menu-item {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
    margin: 2px 0;
    border-radius: var(--radius-sm);
    color: var(--sidebar-text);
    font-size: 14px;
    font-weight: 400;
    border: 1px solid transparent;
}

.menu-item:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-text-active);
}

.menu-item.active {
    background: var(--sidebar-active-bg);
    color: var(--sidebar-text-active);
    font-weight: 500;
}

.menu-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* ==================== 主内容区 ==================== */
.main {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--background-color);
}

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

.breadcrumb {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.time-display {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    background: var(--surface-soft);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 18px;
    border-left: 1px solid var(--border-color);
}

.icon-time, .icon-user {
    font-size: 14px;
}

#userName {
    font-weight: 500;
    color: var(--text-color);
    font-size: 13px;
}

#logoutBtn {
    padding: 5px 14px;
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    transition: var(--transition);
}

#logoutBtn:hover {
    background: var(--error-bg);
    border-color: var(--error-color);
    color: var(--error-color);
}

/* ==================== 内容区 ==================== */
.content {
    flex: 1;
    padding: 22px 28px;
    overflow-y: auto;
}

/* ==================== 卡片与面板 ==================== */
.card, .stat-card, .dashboard-section, .data-section, .chart-wrapper {
    background: var(--surface-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.card:hover, .stat-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--border-strong);
}

/* ==================== 仪表盘样式 ==================== */
.dashboard-content h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 18px;
    letter-spacing: 0.2px;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.card {
    padding: 20px;
}

.card h3 {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.card .number {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-color);
    margin: 8px 0;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.card .sub-stats {
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.card .sub-stats span {
    display: block;
    margin-top: 2px;
    color: var(--text-color);
    font-weight: 500;
}

.dashboard-section {
    padding: 20px;
    margin-top: 16px;
}

.dashboard-section h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 14px;
    letter-spacing: 0.2px;
}

.fault-overview, .revenue-overview {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 16px;
    margin-top: 12px;
}

.fault-stats, .revenue-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}

.stat-item {
    text-align: center;
    padding: 14px;
    background: var(--surface-soft);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.stat-item label {
    color: var(--text-secondary);
    font-size: 12px;
    display: block;
    margin-bottom: 4px;
}

.stat-item span {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: -0.2px;
}

.recent-list {
    background: var(--surface-soft);
    border-radius: var(--radius-sm);
    padding: 10px;
    border: 1px solid var(--border-color);
}

.fault-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

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

.fault-item:hover {
    background: var(--surface-color);
}

.device-name {
    font-weight: 500;
    font-size: 14px;
}

.fault-type {
    color: var(--error-color);
    font-size: 13px;
}

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

.revenue-chart {
    height: 300px;
}

/* ==================== 收益查询样式 ==================== */
.revenue-content .header {
    background: var(--surface-color);
    padding: 18px 22px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    margin-bottom: 16px;
    position: relative;
    border: 1px solid var(--border-color);
}

.revenue-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.stat-card {
    padding: 18px;
    border-radius: var(--radius-md);
}

.stat-title {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin: 8px 0;
    letter-spacing: -0.3px;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

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

.trend.up {
    background: var(--success-bg);
    color: var(--success-color);
}

.trend.down {
    background: var(--error-bg);
    color: var(--error-color);
}

.trend-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.stat-compare {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 12px;
}

.stat-compare .label {
    color: var(--text-secondary);
}

.stat-compare .value {
    font-weight: 600;
    color: var(--text-color);
}

.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
    margin: 18px 0;
}

.chart-wrapper {
    padding: 18px;
    border-radius: var(--radius-md);
}

.chart-wrapper h3 {
    color: var(--text-color);
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

#revenueChart,
#deviceRankChart {
    height: 300px;
}

.btn-export {
    background: var(--success-color);
    color: white;
    border: none;
    padding: 7px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-export:hover {
    background: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.30);
}

.data-section {
    padding: 20px;
    margin-top: 16px;
    border-radius: var(--radius-md);
}

.data-section h3 {
    color: var(--text-color);
    margin-bottom: 14px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* ==================== 标签页样式 ==================== */
.tabs {
    background: var(--surface-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.tab-header {
    padding: 0;
    background: var(--surface-soft);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-btn {
    padding: 12px 22px;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.tab-btn:hover {
    color: var(--primary-color);
    background: rgba(79, 110, 247, 0.04);
}

.tab-btn.active {
    color: var(--primary-color);
    font-weight: 600;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px 2px 0 0;
}

.tab-content {
    display: none;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

/* ==================== 数据表格 ==================== */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
    margin-top: 14px;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.data-table th,
.data-table td {
    padding: 11px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

.data-table th {
    background: var(--surface-soft);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 12px;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
    letter-spacing: 0.2px;
}

.data-table tbody tr {
    transition: var(--transition);
}

.data-table tbody tr:hover {
    background: var(--primary-soft);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* ==================== 状态标签 ==================== */
.status {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    display: inline-block;
    letter-spacing: 0.2px;
}

.status.online, .status.active {
    background: var(--success-bg);
    color: var(--success-color);
}

.status.offline, .status.inactive {
    background: #f3f4f6;
    color: #6b7280;
}

.status.fault {
    background: var(--error-bg);
    color: var(--error-color);
}

tr.fault {
    background: #fef9f9;
}

tr.fault:hover {
    background: var(--error-bg);
}

/* ==================== 按钮样式 ==================== */
.btn-add {
    padding: 7px 18px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 1px 3px rgba(79, 110, 247, 0.20);
}

.btn-add:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(79, 110, 247, 0.30);
}

.btn-add:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-warning {
    background: var(--warning-color);
    color: #fff;
    border: none;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-warning:hover {
    background: #d97706;
}

.btn-danger {
    background: var(--error-color);
    color: white;
    border: none;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-danger:hover {
    background: #dc2626;
}

/* 表格内操作按钮 */
.data-table .btn-group {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
}

.data-table .btn-group button {
    padding: 4px 10px;
    margin: 0;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.data-table .btn-group .btn-edit {
    background: var(--primary-soft);
    color: var(--primary-color);
    border-color: transparent;
}

.data-table .btn-group .btn-edit:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.data-table .btn-group .btn-delete {
    background: var(--error-bg);
    color: var(--error-color);
    border-color: transparent;
}

.data-table .btn-group .btn-delete:hover {
    background: var(--error-color);
    color: white;
    border-color: var(--error-color);
}

/* 兼容旧的操作按钮 */
.data-table button {
    padding: 4px 10px;
    margin: 0 3px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: var(--transition);
}

.data-table button:first-child {
    background: var(--primary-soft);
    color: var(--primary-color);
}

.data-table button:last-child {
    background: var(--error-bg);
    color: var(--error-color);
}

.data-table button:first-child:hover {
    background: var(--primary-color);
    color: white;
}

.data-table button:last-child:hover {
    background: var(--error-color);
    color: white;
}

/* ==================== 筛选器 ==================== */
.filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.filter-group select,
.filter-group input {
    padding: 6px 10px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-size: 13px;
    min-width: 120px;
    max-width: 180px;
    flex: 1;
    transition: var(--transition);
    background: var(--surface-color);
}

.filter-group select:focus,
.filter-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.10);
    outline: none;
}

.filter-group .date-range {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.filter-group .date-range input {
    min-width: 130px;
}

/* 日期导航器 */
.date-navigator {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--surface-color);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 2px 4px;
}

.date-navigator .nav-btn {
    background: none;
    border: none;
    padding: 5px 8px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: var(--transition);
    line-height: 1;
}

.date-navigator .nav-btn:hover {
    background: var(--primary-soft);
    color: var(--primary-color);
}

.date-navigator .nav-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color);
    min-width: 80px;
    text-align: center;
    padding: 0 6px;
    white-space: nowrap;
}

.date-navigator .nav-btn-today {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 12px;
    margin-left: 2px;
    border-left: 1px solid var(--border-color);
    padding-left: 10px;
}

.btn-search {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 6px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(79, 110, 247, 0.20);
}

.btn-search:hover {
    background: var(--primary-dark);
    box-shadow: 0 3px 8px rgba(79, 110, 247, 0.30);
}

/* ==================== 设备管理筛选器 ==================== */
.filters {
    display: flex;
    gap: 10px;
    margin: 14px 0;
    flex-wrap: wrap;
}

.filters select {
    padding: 6px 10px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    min-width: 120px;
    font-size: 13px;
    background: var(--surface-color);
    transition: var(--transition);
}

.filters select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.10);
    outline: none;
}

/* ==================== 故障提醒条 ==================== */
.alert {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    background: var(--warning-bg);
    border-radius: var(--radius-sm);
    margin: 14px 0;
    color: #92400e;
    border-left: 3px solid var(--warning-color);
    font-size: 13px;
}

.alert .icon-warning {
    font-size: 16px;
    margin-right: 10px;
}

.alert button {
    margin-left: auto;
    padding: 5px 14px;
    background: var(--warning-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    font-size: 12px;
}

.alert button:hover {
    background: #d97706;
}

.fault-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    background: var(--warning-bg);
    border-radius: var(--radius-sm);
    color: #92400e;
    font-size: 13px;
    border-left: 3px solid var(--warning-color);
}

.fault-alert a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.fault-alert a:hover {
    text-decoration: underline;
}

/* ==================== 表单样式 ==================== */
.form-container {
    max-width: 500px;
    margin: 16px 0;
    padding: 22px;
    background: var(--surface-soft);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 16px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-size: 13px;
    transition: var(--transition);
    background: var(--surface-color);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.10);
    outline: none;
}

.form-section {
    margin: 16px 0;
    padding: 14px;
    background: var(--surface-soft);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.form-section h4 {
    color: var(--text-color);
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
}

.form-actions {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: var(--primary-color);
}

.permissions-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

/* ==================== 页面标题区域 ==================== */
.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.header h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
    margin: 0;
    letter-spacing: 0.2px;
}

.devices-content, .faults-content, .orders-content, .revenue-content, .prices-content, .locations-content, .users-content {
    padding: 18px;
}

.devices-content .header, .faults-content .header, .orders-content .header {
    background: var(--surface-color);
    padding: 18px 22px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
}

/* ==================== 价格管理样式 ==================== */
.current-strategy {
    background: var(--surface-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--border-color);
}

.strategy-info h4 {
    color: var(--text-color);
    margin-bottom: 12px;
}

.price-rules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin: 12px 0;
}

.rule-group {
    padding: 14px;
    background: var(--surface-soft);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.rule-group h5 {
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 12px;
}

.rule-group p {
    margin: 4px 0;
    color: var(--text-color);
    font-size: 13px;
}

.save-tip {
    color: var(--warning-color) !important;
    font-weight: 500;
}

.time-tip {
    font-size: 12px;
    color: var(--text-secondary) !important;
}

.validity {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 13px;
}

/* ==================== 订单统计卡片 ==================== */
.stats-cards {
    display: flex;
    gap: 10px;
    margin-left: 14px;
    white-space: nowrap;
    flex-wrap: wrap;
}

.stat-card {
    background: var(--surface-color);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    box-shadow: var(--shadow-xs);
    min-width: 120px;
    border: 1px solid var(--border-color);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 2px;
}

.stat-value {
    color: var(--text-color);
    font-size: 15px;
    font-weight: 600;
}

/* ==================== 分页样式 ==================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 18px;
    padding: 6px 0;
    flex-wrap: wrap;
}

.page-btn {
    padding: 5px 11px;
    border: 1px solid var(--border-strong);
    background: var(--surface-color);
    cursor: pointer;
    border-radius: var(--radius-sm);
    font-size: 13px;
    transition: var(--transition);
    color: var(--text-color);
    min-width: 30px;
    text-align: center;
}

.page-btn:hover:not(:disabled) {
    background: var(--primary-soft);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 1px 3px rgba(79, 110, 247, 0.25);
}

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

.page-ellipsis {
    color: var(--text-secondary);
    font-size: 13px;
    padding: 0 2px;
}

/* ==================== 模态框 ==================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    z-index: 1000;
    padding: 40px 16px;
    overflow-y: auto;
}

.modal-content {
    background: var(--surface-color);
    padding: 0;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 540px;
    max-height: 85vh;
    overflow-y: auto;
    margin: 0 auto;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(-16px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-content .modal-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--surface-color);
    z-index: 1;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-content .modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: 0.2px;
}

.modal-content .modal-close {
    width: 30px;
    height: 30px;
    border: none;
    background: var(--surface-soft);
    border-radius: 50%;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.modal-content .modal-close:hover {
    background: var(--error-bg);
    color: var(--error-color);
}

.modal-content .modal-body {
    padding: 22px;
}

.modal-content .modal-footer {
    padding: 14px 22px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: var(--surface-soft);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ==================== 消息提示 ==================== */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 13px;
    z-index: 2000;
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    min-width: 240px;
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
}

.message.error {
    background: var(--error-color);
}

.message.success {
    background: var(--success-color);
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.message .close-btn {
    margin-left: 12px;
    cursor: pointer;
    opacity: 0.85;
    font-size: 18px;
    line-height: 1;
}

.message .close-btn:hover {
    opacity: 1;
}

.message .icon {
    margin-right: 8px;
    font-size: 15px;
}

/* ==================== 设备详情样式 ==================== */
.device-details {
    margin: 16px 0;
}

.detail-group {
    margin-bottom: 18px;
}

.detail-group h3 {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
    font-weight: 600;
}

.detail-group p {
    margin: 8px 0;
    display: flex;
    align-items: center;
    font-size: 13px;
}

.detail-group label {
    color: var(--text-secondary);
    width: 100px;
    flex-shrink: 0;
}

.detail-actions {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-actions button {
    flex: 1;
    min-width: 100px;
}

/* ==================== 订单信息卡片 ==================== */
.order-info {
    background: var(--surface-soft);
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    border-left: 3px solid var(--primary-color);
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--primary-color);
}

.order-info p {
    margin: 4px 0;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 13px;
}

/* ==================== 文本域优化 ==================== */
textarea {
    width: 100%;
    min-height: 80px;
    padding: 9px 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    resize: vertical;
    transition: var(--transition);
    font-family: inherit;
    font-size: 13px;
    background: var(--surface-color);
}

textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.10);
    outline: none;
}

/* ==================== 单选按钮组 ==================== */
.radio-group {
    display: flex;
    gap: 12px;
    margin: 8px 0;
    flex-wrap: wrap;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 13px;
}

.radio-group label:hover {
    background: var(--surface-soft);
}

.radio-group input[type="radio"] {
    width: auto;
    margin: 0;
    accent-color: var(--primary-color);
}

/* ==================== 按钮组 ==================== */
.btn-group {
    display: flex;
    gap: 6px;
    margin: 8px 0;
    flex-wrap: wrap;
}

.btn-group button {
    padding: 5px 11px;
    font-size: 12px;
    white-space: nowrap;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    border: 1px solid transparent;
    font-weight: 500;
    background: var(--surface-soft);
    color: var(--text-color);
}

.btn-group button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    background: var(--surface-color);
    border-color: var(--border-strong);
}

/* ==================== 表格操作列 ==================== */
.data-table td:last-child {
    min-width: 180px;
}

/* ==================== 进度条 ==================== */
.progress-container {
    margin: 16px 0;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.progress-inner {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.5s ease-in-out;
    border-radius: 3px;
}

.progress-text {
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 12px;
}

/* ==================== 重连按钮 ==================== */
.btn-reconnect {
    padding: 2px 9px;
    margin-left: 6px;
    background: var(--success-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 1px 2px rgba(34, 197, 94, 0.20);
}

.btn-reconnect:hover {
    background: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.30);
}

.btn-reconnect:active {
    transform: translateY(0);
}

/* ==================== 表单辅助文本 ==================== */
.form-text {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.4;
}

/* ==================== 输入验证 ==================== */
input:invalid {
    border-color: var(--error-color);
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.08);
}

input:invalid + .form-text {
    color: var(--error-color);
    font-weight: 500;
}

.error-text {
    color: var(--error-color);
    margin: 14px 0;
    padding: 9px 14px;
    background: var(--error-bg);
    border-left: 3px solid var(--error-color);
    border-radius: var(--radius-sm);
    animation: shake 0.5s ease;
    font-size: 13px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.no-data {
    text-align: center;
    color: var(--text-secondary);
    padding: 36px 20px;
    font-size: 13px;
}

/* ==================== 错误消息 ==================== */
.error-message {
    background: var(--error-color);
    color: white;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    text-align: center;
    animation: fadeIn 0.3s ease;
    font-size: 13px;
}

/* ==================== 退款金额组 ==================== */
#refundAmountGroup {
    animation: fadeIn 0.3s ease forwards;
}

#refundAmountGroup input {
    width: 200px;
}

#refundAmountGroup input:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* ==================== 订单按钮 ==================== */
.order-btn {
    padding: 5px 12px !important;
    margin: 0 3px !important;
    border: none !important;
    border-radius: var(--radius-sm) !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

.order-btn.btn-primary { background: var(--primary-color) !important; color: white !important; }
.order-btn.btn-warning { background: var(--warning-color) !important; color: #000 !important; }
.order-btn.btn-danger { background: var(--error-color) !important; color: white !important; }
.order-btn.btn-primary:hover { background: var(--primary-dark) !important; }
.order-btn.btn-warning:hover { background: #d97706 !important; }
.order-btn.btn-danger:hover { background: #dc2626 !important; }

/* ==================== 刷新按钮 ==================== */
.btn-refresh {
    padding: 8px 16px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    color: var(--text-color);
}

.btn-refresh:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ==================== 动画 ==================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== 全局输入框增强 ==================== */
input, select {
    padding: 6px 10px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-size: 13px;
    transition: var(--transition);
    background: var(--surface-color);
    color: var(--text-color);
}

input:focus, select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.10);
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

/* ==================== 移动端底部导航 ==================== */
.mobile-nav,
.mobile-page-header {
    display: none;
}

/* ==================== 移动端首页组件 ==================== */
.m-home {
    display: none;
}

.m-hero {
    background: linear-gradient(135deg, #4f6ef7 0%, #6c5ce7 60%, #8b5cf6 100%);
    border-radius: 0 0 20px 20px;
    padding: 16px 16px 28px;
    margin: -16px -16px 0;
    color: #fff;
}

.m-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.m-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
}

.m-brand-icon {
    font-size: 22px;
    line-height: 1;
}

.m-hero-actions {
    display: flex;
    gap: 8px;
}

.m-hero-btn,
.m-header-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.m-hero-btn:active,
.m-header-btn:active {
    background: rgba(255,255,255,0.35);
}

.m-quick-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.m-quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
}

.m-quick-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.95);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.m-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    margin: -18px 0 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    position: relative;
    z-index: 2;
}

.m-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f6ef7, #6c5ce7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.m-user-info {
    flex: 1;
    min-width: 0;
}

.m-user-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
}

.m-user-role {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.m-user-badge {
    font-size: 12px;
    font-weight: 600;
    color: #b8860b;
    background: #fff8e6;
    padding: 4px 12px;
    border-radius: 20px;
    flex-shrink: 0;
}

.m-func-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.m-func-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 8px;
}

.m-func-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-color);
}

.m-func-icon {
    width: 52px;
    height: 52px;
    background: #f0f3ff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #4f6ef7;
}

.m-func-label {
    font-size: 12px;
    color: #4b5563;
    text-align: center;
}

.m-alert-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 12px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.m-alert-icon {
    width: 28px;
    height: 28px;
    background: #fff1f0;
    color: #ff4d4f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.m-alert-text {
    font-size: 13px;
    color: #ff4d4f;
}

.m-alert-text strong {
    font-weight: 700;
}

.m-kanban-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.m-kanban-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.m-kanban-title {
    font-size: 15px;
    font-weight: 700;
    color: #4f6ef7;
}

.m-kanban-meta {
    font-size: 11px;
    color: var(--text-secondary);
}

.m-kanban-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.m-kanban-value {
    font-size: 32px;
    font-weight: 700;
    color: #4f6ef7;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.m-kanban-sub {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 6px;
}

.m-trend-up {
    color: #22c55e;
    font-weight: 600;
    margin-left: 4px;
}

.m-trend-down {
    color: #ff4d4f;
    font-weight: 600;
    margin-left: 4px;
}

.m-kanban-split {
    display: flex;
    align-items: stretch;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.m-kanban-stat {
    flex: 1;
    text-align: center;
}

.m-kanban-divider {
    width: 1px;
    background: #f0f0f0;
    margin: 4px 0;
}

.m-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.m-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.3px;
}

.m-stat-online {
    color: #22c55e;
}

.m-stat-fault {
    color: #ff4d4f;
}

.m-kanban-extra {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed #f0f0f0;
}

.m-extra-item {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
    border-radius: 8px;
    padding: 10px 12px;
}

.m-extra-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.m-extra-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
}

.dashboard-desktop {
    display: block;
}

/* ==================== 移动端适配 ==================== */
@media screen and (max-width: 768px) {
    :root {
        --mobile-primary: #4f6ef7;
        --mobile-bg: #f5f7fb;
    }

    body {
        background: var(--mobile-bg);
    }

    .sidebar {
        display: none;
    }

    .main {
        margin-left: 0;
        margin-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
        min-height: 100vh;
        background: var(--mobile-bg);
    }

    /* 移动端页面标题栏 */
    .mobile-page-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        background: linear-gradient(135deg, #4f6ef7 0%, #6c5ce7 100%);
        color: #fff;
        position: sticky;
        top: 0;
        z-index: 40;
        box-shadow: 0 2px 8px rgba(79, 110, 247, 0.15);
    }

    .mobile-page-header.hidden {
        display: none;
    }

    .mobile-page-title {
        font-size: 17px;
        font-weight: 700;
    }

    .m-header-btn {
        background: rgba(255,255,255,0.2);
    }

    body.on-dashboard .mobile-page-header {
        display: none;
    }

    .mobile-nav {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: calc(56px + env(safe-area-inset-bottom, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0px);
        background: #fff;
        box-shadow: 0 -1px 0 rgba(0,0,0,0.06), 0 -4px 16px rgba(0,0,0,0.04);
        z-index: 100;
    }

    .mobile-nav-list {
        display: flex;
        height: 56px;
        padding: 0 2px;
        justify-content: space-around;
        align-items: stretch;
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1;
        max-width: 64px;
        color: #8c8c8c;
        text-decoration: none;
        padding: 4px 1px;
        transition: color 0.2s ease;
        position: relative;
    }

    .mobile-nav-item.active {
        color: var(--mobile-primary);
    }

    .mobile-nav-item.active .mobile-nav-icon {
        transform: scale(1.05);
    }

    .mobile-nav-icon {
        font-size: 18px;
        line-height: 1;
        margin-bottom: 2px;
        transition: transform 0.2s ease;
    }

    .mobile-nav-text {
        font-size: 9px;
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        letter-spacing: -0.3px;
    }

    /* 顶部栏：移动端隐藏桌面顶栏 */
    .header {
        display: none;
    }

    .breadcrumb {
        font-size: 16px;
    }

    .header-right {
        gap: 12px;
    }

    .time-display {
        display: none;
    }

    .user-info {
        padding-left: 12px;
        gap: 8px;
    }

    .icon-user {
        display: none;
    }

    #userName {
        font-size: 13px;
        max-width: 60px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #logoutBtn {
        padding: 4px 10px;
        font-size: 12px;
    }

    /* 内容区适配 */
    .content {
        padding: 16px;
        padding-bottom: 8px;
    }

    /* 移动端首页 */
    .m-home {
        display: block;
    }

    .dashboard-desktop {
        display: none;
    }

    .dashboard-content h2 {
        display: none;
    }

    /* 子页面卡片化 */
    .devices-content,
    .faults-content,
    .orders-content,
    .revenue-content,
    .prices-content,
    .locations-content,
    .users-content {
        padding: 0;
    }

    /* 子页面标题由顶部蓝条展示，仅隐藏页内 h2 */
    .devices-content > .header h2,
    .faults-content > .header h2,
    .orders-content > .header h2,
    .revenue-content > .header h2,
    .prices-content > .header h2,
    .locations-content > .header h2,
    .users-content > .header h2 {
        display: none;
    }

    .devices-content > .header,
    .faults-content > .header,
    .orders-content > .header,
    .revenue-content > .header,
    .prices-content > .header,
    .locations-content > .header,
    .users-content > .header {
        background: transparent;
        box-shadow: none;
        border: none;
        padding: 0;
        margin-bottom: 12px;
        flex-direction: column;
        align-items: stretch;
    }

    .orders-content .filter-group,
    .revenue-content .filter-group {
        flex-wrap: wrap;
    }

    .revenue-content .header-right {
        margin-top: 8px;
    }

    .filters,
    .filter-group {
        background: #fff;
        border-radius: 12px;
        padding: 12px;
        margin-bottom: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    }

    .card,
    .stat-card,
    .dashboard-section,
    .data-section,
    .chart-wrapper,
    .tabs {
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        border: none;
    }

    .table-wrapper {
        background: #fff;
        border-radius: 12px;
        margin: 12px 0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        border: none;
    }

    .btn-add,
    .btn-search,
    .btn-export,
    .btn-refresh {
        border-radius: 8px;
    }

    /* 仪表盘适配 */
    .dashboard-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .card {
        padding: 16px;
    }

    .card .number {
        font-size: 26px;
    }

    .dashboard-section {
        padding: 16px;
    }

    .fault-overview, .revenue-overview {
        grid-template-columns: 1fr;
    }

    /* 收益概览适配 */
    .revenue-overview {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-value {
        font-size: 22px;
    }

    /* 图表适配 */
    .charts-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    #revenueChart, #deviceRankChart {
        height: 260px;
    }

    /* 筛选器适配 */
    .filter-group {
        gap: 8px;
    }

    .filter-group select,
    .filter-group input {
        min-width: 100px;
        max-width: none;
        flex: 1 1 calc(50% - 8px);
    }

    .filter-group .date-range {
        width: 100%;
        flex: 1 1 100%;
    }

    .filter-group .date-range input {
        min-width: 0;
        flex: 1;
    }

    .filter-group .btn-search {
        flex: 1 1 100%;
    }

    .filters {
        gap: 8px;
    }

    .filters select {
        min-width: 0;
        flex: 1;
    }

    /* 表格水平滚动 */
    .table-wrapper {
        margin: 12px -12px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .data-table {
        min-width: 700px;
    }

    .data-table th, .data-table td {
        padding: 10px 12px;
        font-size: 13px;
    }

    /* 模态框适配 */
    .modal {
        padding: 0;
        align-items: flex-end;
    }

    .modal-content {
        max-width: 100%;
        max-height: 90vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }

    .form-container {
        max-width: 100%;
    }

    /* Tab 适配 */
    .tab-header {
        gap: 0;
    }

    .tab-btn {
        padding: 12px 16px;
        font-size: 14px;
    }

    .tab-content {
        padding: 16px;
    }

    /* 分页适配 */
    .pagination {
        gap: 4px;
    }

    .page-btn {
        padding: 5px 8px;
        font-size: 13px;
    }

    /* 订单统计卡片 */
    .stats-cards {
        margin-left: 0;
        margin-top: 12px;
        flex-wrap: wrap;
    }

    .stat-card {
        min-width: 100px;
        padding: 8px 12px;
    }

    /* 故障提醒适配 */
    .fault-alert {
        flex-wrap: wrap;
        font-size: 13px;
    }

    /* 消息提示适配 */
    .message {
        left: 12px;
        right: 12px;
        min-width: auto;
        top: 12px;
    }
}

/* ==================== 小屏幕适配 (≤480px) ==================== */
@media screen and (max-width: 480px) {
    .content {
        padding: 12px;
    }

    .devices-content, .faults-content, .orders-content, .revenue-content, .prices-content, .locations-content, .users-content {
        padding: 8px;
    }

    .card .number {
        font-size: 22px;
    }

    .stat-value {
        font-size: 20px;
    }

    .header h2 {
        font-size: 16px;
    }

    .data-table th, .data-table td {
        padding: 8px 10px;
        font-size: 12px;
    }

    .data-table td:last-child {
        min-width: 160px;
    }

    .btn-add {
        padding: 6px 14px;
        font-size: 13px;
    }

    #revenueChart, #deviceRankChart {
        height: 220px;
    }

    /* 登录页适配 */
    .form-container {
        padding: 32px 24px;
        max-width: 100%;
    }

    .form-box h2 {
        font-size: 20px;
        margin-bottom: 24px;
    }

    .stat-card {
        min-width: 80px;
        padding: 6px 10px;
    }

    .stat-value {
        font-size: 14px;
    }

    .stat-label {
        font-size: 11px;
    }
}

/* ==================== 移动端子页面通用 ==================== */
.m-page-view {
    display: none;
}

.page-desktop-only {
    display: block;
}

.m-select-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.m-toolbar {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.m-search-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.m-search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f5f7fa;
    border-radius: 8px;
    padding: 0 10px;
    border: 1px solid #e8e8e8;
}

.m-search-icon {
    font-size: 14px;
    opacity: 0.5;
    margin-right: 6px;
}

.m-search-input-wrap input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 0;
    font-size: 14px;
    outline: none;
}

.m-search-btn {
    padding: 0 16px;
    background: #4f6ef7;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.m-status-tabs {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    margin: 0 -12px 10px;
    padding: 0 4px;
}

.m-tab-item {
    flex: 1;
    border: none;
    background: none;
    padding: 10px 4px;
    font-size: 13px;
    color: #8c8c8c;
    cursor: pointer;
    position: relative;
    border-bottom: 2px solid transparent;
}

.m-tab-item em {
    font-style: normal;
    font-size: 12px;
    margin-left: 2px;
}

.m-tab-item.active {
    color: #4f6ef7;
    font-weight: 600;
    border-bottom-color: #4f6ef7;
}

.m-filter-row {
    display: flex;
    gap: 8px;
}

.m-filter-row-2 .m-select {
    flex: 1;
}

.m-select {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-size: 13px;
    background: #fff;
    color: #333;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}

.m-hint-bar {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #999;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #f0f0f0;
}

.m-date-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.m-date-row span {
    color: #999;
    font-size: 12px;
}

.m-date-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-size: 13px;
}

.m-summary-bar {
    margin-top: 10px;
    padding: 8px 12px;
    background: #f0f3ff;
    border-radius: 8px;
    font-size: 13px;
    color: #4f6ef7;
    font-weight: 600;
}

.m-sub-tabs {
    display: flex;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.m-sub-tab {
    flex: 1;
    border: none;
    background: #fff;
    padding: 14px;
    font-size: 14px;
    color: #8c8c8c;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.m-sub-tab.active {
    color: #4f6ef7;
    font-weight: 700;
    border-bottom-color: #4f6ef7;
}

.m-sub-tab:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

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

.m-empty {
    text-align: center;
    padding: 48px 20px;
    color: #999;
    font-size: 14px;
    background: #fff;
    border-radius: 12px;
}

/* 设备分组卡片 */
.m-group-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.m-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f5f5f5;
}

.m-group-title {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
}

.m-group-meta {
    font-size: 12px;
    font-weight: 600;
}

.m-group-meta.online {
    color: #22c55e;
}

.m-device-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #f8f8f8;
    cursor: pointer;
    transition: background 0.15s;
}

.m-device-card:last-child {
    border-bottom: none;
}

.m-device-card:active {
    background: #fafafa;
}

.m-device-name {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 6px;
}

.m-device-sub {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.m-device-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.m-device-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-end;
    max-width: 120px;
}

.m-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
}

.m-badge-warn {
    background: #fff7e6;
    color: #fa8c16;
    border: 1px solid #ffd591;
}

.m-badge-net {
    background: #f0fdf4;
    color: #22c55e;
    border: 1px solid #bbf7d0;
}

.m-badge-danger {
    background: #fff1f0;
    color: #ff4d4f;
}

.m-badge-gray {
    background: #f5f5f5;
    color: #8c8c8c;
}

.m-chevron {
    font-size: 20px;
    color: #d9d9d9;
    line-height: 1;
}

/* 订单卡片 */
.m-order-card {
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.m-order-head {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f5f5f5;
}

.m-order-loc {
    color: #4f6ef7;
    font-weight: 500;
}

.m-order-body {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.m-order-status-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.m-order-status-icon.paid {
    background: #f0fdf4;
    color: #22c55e;
    border: 2px solid #bbf7d0;
}

.m-order-status-icon.refunded {
    background: #f5f5f5;
    color: #8c8c8c;
}

.m-order-status-icon.pending {
    background: #fffbe6;
    color: #faad14;
}

.m-order-info {
    flex: 1;
    min-width: 0;
}

.m-order-device {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
}

.m-order-no {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
    word-break: break-all;
}

.m-copy-btn {
    color: #4f6ef7;
    margin-left: 6px;
    font-size: 11px;
}

.m-order-tag {
    display: inline-block;
    margin-top: 6px;
    font-size: 11px;
    color: #4f6ef7;
    border: 1px solid #c7d6ff;
    padding: 1px 6px;
    border-radius: 4px;
}

.m-order-status-text {
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.m-order-status-text.paid { color: #22c55e; }
.m-order-status-text.refunded { color: #8c8c8c; }
.m-order-status-text.pending { color: #faad14; }

.m-order-line {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
    padding: 8px 0;
    border-top: 1px dashed #f0f0f0;
}

.m-order-pay {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.m-order-footer {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
    padding-top: 8px;
    border-top: 1px solid #f5f5f5;
}

.m-order-amount {
    font-weight: 700;
    color: #1f2937;
}

.m-order-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.m-btn-outline,
.m-btn-solid,
.m-btn-disabled {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.m-btn-outline {
    background: #fff;
    border: 1px solid #d9d9d9;
    color: #666;
}

.m-btn-solid {
    background: #595959;
    border: none;
    color: #fff;
}

.m-btn-disabled {
    background: #f5f5f5;
    border: 1px solid #e8e8e8;
    color: #bfbfbf;
    cursor: not-allowed;
}

/* 通用列表卡片 */
.m-list-card {
    background: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.m-list-card:active {
    background: #fafafa;
}

.m-list-main {
    flex: 1;
    min-width: 0;
}

.m-list-title {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
}

.m-list-sub {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.m-list-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.m-list-actions button {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
    border: 1px solid #d9d9d9;
    background: #fff;
    color: #4f6ef7;
}

.m-fault-card {
    border-left: 3px solid #ff4d4f;
}

.m-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 16px 0;
}

.m-page-btn {
    padding: 8px 12px;
    border: 1px solid #e8e8e8;
    background: #fff;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
}

.m-page-btn.active {
    background: #4f6ef7;
    color: #fff;
    border-color: #4f6ef7;
}

.m-page-btn:disabled {
    opacity: 0.4;
}

.m-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #4f6ef7;
    margin: 16px 0 10px;
    padding-left: 4px;
}

.m-stat-grid .stat-card {
    border-radius: 12px;
}

.m-filter-row-wrap {
    flex-wrap: wrap;
}

.m-filter-row-wrap .m-select {
    min-width: calc(50% - 4px);
}

.m-date-nav {
    justify-content: center;
    margin-top: 8px;
}

.m-toolbar-compact {
    padding: 10px;
}

.m-toolbar-tip {
    font-size: 12px;
    color: #8c8c8c;
    margin: 0;
    line-height: 1.5;
}

.m-select-block {
    width: 100%;
    margin-top: 8px;
}

.m-toolbar-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.m-toolbar-actions .m-search-btn {
    flex: 1;
}

.m-btn-export {
    flex-shrink: 0;
    padding: 0 16px;
    min-width: 72px;
}

.m-data-title {
    font-size: 15px;
    font-weight: 700;
    color: #4f6ef7;
    margin: 0 0 12px;
    padding: 0 4px;
}

.m-chart {
    width: 100%;
    height: 260px;
}

.m-revenue-card {
    background: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.m-revenue-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f5f5f5;
}

.m-revenue-date {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}

.m-revenue-net {
    font-size: 18px;
    font-weight: 700;
    color: #4f6ef7;
}

.m-revenue-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 4px 0;
}

.m-revenue-row .label {
    color: #8c8c8c;
}

.m-revenue-row .value {
    color: #333;
    font-weight: 500;
    text-align: right;
    max-width: 60%;
}

.m-revenue-foot {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #f0f0f0;
    font-size: 12px;
    color: #8c8c8c;
}

.m-revenue-foot .refund {
    color: #ff4d4f;
}

.m-settings-card {
    background: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.m-settings-package {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding: 10px 12px;
    background: #f5f7fa;
    border-radius: 8px;
}

.m-settings-label {
    font-size: 12px;
    color: #8c8c8c;
}

.m-settings-value {
    font-size: 14px;
    font-weight: 600;
    color: #8c8c8c;
}

.m-settings-value.has-package {
    color: #4f6ef7;
}

.m-settings-prices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    font-size: 12px;
    color: #666;
}

.m-btn-primary-sm {
    background: #4f6ef7 !important;
    color: #fff !important;
    border-color: #4f6ef7 !important;
}

.m-stat-card .stat-value {
    font-size: 26px;
}

@media screen and (max-width: 768px) {
    .m-page-view {
        display: block;
    }

    .page-desktop-only {
        display: none !important;
    }

    .revenue-overview,
    .m-stat-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .revenue-overview .stat-card,
    .m-stat-card {
        padding: 16px;
    }

    .m-charts .chart-wrapper {
        padding: 12px;
        margin-bottom: 12px;
    }

    .m-charts .chart-wrapper h3 {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .m-chart,
    #revenueChart,
    #deviceRankChart {
        height: 240px !important;
    }

    .data-section {
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
    }

    .data-section h3 {
        display: none;
    }

    .m-data-title {
        display: block;
    }

    .date-navigator.m-date-nav {
        background: #f5f7fa;
        border-radius: 8px;
        padding: 6px;
    }

    .date-navigator.m-date-nav .nav-btn {
        min-width: 36px;
        height: 36px;
    }

    .date-navigator.m-date-nav .nav-label {
        flex: 1;
        text-align: center;
        font-weight: 600;
        color: #4f6ef7;
    }

    .prices-content .tab-content.active .m-page-view {
        display: block;
    }

    .tabs .tab-header {
        background: #fff;
        border-radius: 12px 12px 0 0;
        overflow: hidden;
    }

    .prices-content .tab-content,
    .locations-content .tab-content,
    .users-content .tab-content {
        padding: 0;
        background: transparent;
        box-shadow: none;
        border: none;
    }
}

/* ==================== 打印样式 ==================== */
@media print {
    .sidebar, .mobile-nav, .header {
        display: none !important;
    }

    .main {
        margin-left: 0 !important;
    }

    .content {
        padding: 0 !important;
    }
}
