:root {
    --primary-color: #1976d2;
    --secondary-color: #2196F3;
    --background-color: #f5f6fa;
    --text-color: #2c3e50;
    --error-color: #e74c3c;
    --success-color: #2ecc71;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--background-color);
    color: var(--text-color);
    line-height: 1.5;
}

/* 登录页面样式 */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.form-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    padding: 40px;
    position: relative;
}

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

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

.input-group input {
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    border: none;
    border-bottom: 2px solid #ddd;
    outline: none;
    transition: 0.3s;
}

.input-group label {
    position: absolute;
    top: 10px;
    left: 0;
    font-size: 16px;
    color: #999;
    pointer-events: none;
    transition: 0.3s;
}

.input-group input:focus ~ label,
.input-group input:valid ~ label {
    top: -20px;
    font-size: 12px;
    color: var(--primary-color);
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

.btn-submit:hover {
    background: #388E3C;
}

/* 主页面样式 */
.layout {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏样式 */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #2c3e50 0%, #3498db 100%);
    color: white;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: width 0.3s;
}

.logo {
    padding: 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    height: 70px;
}

.logo span {
    font-size: 20px;
    font-weight: 600;
    white-space: nowrap;
}

.menu-list {
    padding: 20px 0;
    flex: 1;
}

.menu-item {
    padding: 12px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s;
    margin: 5px 10px;
    border-radius: 6px;
    color: rgba(255,255,255,0.8);
}

.menu-item:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    transform: translateX(5px);
}

.menu-item.active {
    background: rgba(255,255,255,0.2);
    color: white;
    font-weight: 500;
}

.menu-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* 主内容区样式 */
.main {
    flex: 1;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
}

/* 顶部栏样式 */
.header {
    height: 70px;
    background: white;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.breadcrumb {
    font-size: 18px;
    font-weight: 500;
    color: #2c3e50;
}

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

.time-display {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-left: 30px;
    border-left: 1px solid #eee;
}

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

#userName {
    font-weight: 500;
    color: #2c3e50;
}

#logoutBtn {
    padding: 6px 15px;
    background: transparent;
    border: 1px solid #dc3545;
    color: #dc3545;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

#logoutBtn:hover {
    background: #dc3545;
    color: white;
}

/* 内容区样式 */
.content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }
    
    .logo span {
        display: none;
    }
    
    .menu-item span {
        display: none;
    }
    
    .menu-item {
        justify-content: center;
        padding: 12px;
    }
    
    .menu-icon {
        margin: 0;
    }
}

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

/* 添加错误消息样式 */
.error-message {
    background-color: var(--error-color);
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

button {
    cursor: pointer;
}

/* 标签页样式 */
.tabs {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.tab-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 20px;
}

.tab-btn {
    padding: 8px 20px;
    border: none;
    background: none;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    position: relative;
}

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

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

.tab-content {
    display: none;
    padding: 20px;
}

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

/* 表单样式 */
.form-container {
    max-width: 500px;
    margin: 20px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

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

/* 子账户管理页面样式 */
.users-content {
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* 标签页样式 */
.tab-header {
    margin: -20px -20px 20px;
    padding: 0;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    padding: 15px 30px;
    font-size: 15px;
    border: none;
    background: none;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: var(--primary-color);
}

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

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

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

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

/* 表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 500;
    color: #666;
}

.data-table tr:hover {
    background: #f8f9fa;
}

/* 按钮样式 */
.btn-add {
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-add:hover {
    background: #1565c0;
}

/* 表单样式 */
.form-container {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-actions {
    margin-top: 30px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-warning {
    background: #ffc107;
    color: #000;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-primary:hover { background: #1565c0; }
.btn-warning:hover { background: #ffb300; }
.btn-danger:hover { background: #c82333; }

/* 操作按钮样式 */
.data-table button {
    padding: 6px 12px;
    margin: 0 4px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.data-table button:first-child {
    background: #e3f2fd;
    color: #1976d2;
}

.data-table button:last-child {
    background: #ffebee;
    color: #d32f2f;
}

.data-table button:first-child:hover {
    background: #1976d2;
    color: white;
}

.data-table button:last-child:hover {
    background: #d32f2f;
    color: white;
}

/* 页面标题样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header h2 {
    font-size: 20px;
    font-weight: 500;
    color: #2c3e50;
}

/* 设备管理页面样式 */
.devices-content {
    padding: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.filter-group {
    display: flex;
    gap: 10px;
}

.filter-group select {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 120px;
}

/* 故障提醒样式 */
.alert {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: #fff3e0;
    border-radius: 4px;
    margin: 20px 0;
    color: #e65100;
}

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

.alert button {
    margin-left: auto;
    padding: 6px 12px;
    background: #ff9800;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

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

/* 设备状态样式 */
.status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.status.online {
    background: #e8f5e9;
    color: #2e7d32;
}

.status.offline {
    background: #f5f5f5;
    color: #616161;
}

.status.fault {
    background: #ffebee;
    color: #c62828;
}

/* 故障设备行样式 */
tr.fault {
    background: #fff8f8;
}

tr.fault:hover {
    background: #fff1f1;
}

/* 价格管理页面样式 */
.prices-content {
    padding: 20px;
}

.current-strategy {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.strategy-card {
    margin-top: 15px;
}

.strategy-info h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

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

.rule-group {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.rule-group h5 {
    color: #666;
    margin-bottom: 10px;
}

.rule-group p {
    margin: 5px 0;
    color: #2c3e50;
}

.save-tip {
    color: #e65100 !important;
    font-weight: 500;
}

.time-tip {
    font-size: 12px;
    color: #666 !important;
}

.validity {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    color: #666;
}

.form-section {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.form-section h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

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

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* 状态标签样式 */
.status.active {
    background: #e8f5e9;
    color: #2e7d32;
}

.status.inactive {
    background: #f5f5f5;
    color: #616161;
}

/* 收益查询页面样式 */
.revenue-content {
    padding: 20px;
}

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

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.stat-title {
    color: #666;
    font-size: 14px;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin: 10px 0;
}

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

.trend {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.trend.up {
    background: #e8f5e9;
    color: #2e7d32;
}

.trend.down {
    background: #ffebee;
    color: #c62828;
}

.trend-label {
    font-size: 12px;
    color: #666;
}

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

.chart-wrapper {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.chart-wrapper h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

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

.btn-export {
    background: #4caf50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-export:hover {
    background: #43a047;
}

.data-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.data-section h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

/* 仪表盘样式补充 */
.dashboard-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

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

.stat-item {
    text-align: center;
}

.stat-item label {
    color: #666;
    font-size: 14px;
}

.stat-item span {
    display: block;
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-top: 5px;
}

.recent-list {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
}

.fault-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

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

.device-name {
    font-weight: 500;
}

.fault-type {
    color: #e74c3c;
}

.fault-time {
    color: #666;
    font-size: 14px;
}

.revenue-chart {
    height: 300px;
}

.trend.up {
    color: #2ecc71;
}

.trend.down {
    color: #e74c3c;
}

.no-data {
    text-align: center;
    color: #666;
    padding: 20px;
}

/* 订单页面统计卡片样式 */
.stats-cards {
    display: flex;
    gap: 20px;
    margin-left: 20px;
}

.stat-card {
    background: white;
    border-radius: 6px;
    padding: 12px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    min-width: 120px;
}

.stat-label {
    color: #666;
    font-size: 13px;
    margin-bottom: 4px;
}

.stat-value {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

/* 修改订单页面头部样式 */
.orders-content .header {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    width: 100%;
}

.orders-content .header-left {
    flex: 1;
    min-width: 0;
}

.orders-content .header h2 {
    margin: 0;
    font-size: 18px;
    color: #2c3e50;
    white-space: nowrap;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    width: 100%;
}

.filter-group select,
.filter-group input {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 120px;
    max-width: 200px;
    flex: 1;
}

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

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

.btn-search {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

/* 修改统计卡片样式 */
.stats-cards {
    display: flex;
    gap: 15px;
    margin-left: 20px;
    white-space: nowrap;
}

.stat-card {
    background: #f8f9fa;
    border-radius: 4px;
    padding: 8px 16px;
    min-width: 140px;
    flex-shrink: 0;
}

/* 调整整体布局 */
.orders-content {
    padding: 20px;
    width: 100%;
}

/* 响应式布局调整 */
@media screen and (max-width: 1200px) {
    .orders-content .header {
        flex-direction: column;
    }
    
    .stats-cards {
        margin-left: 0;
        margin-top: 15px;
    }
    
    .filter-group {
        flex-wrap: wrap;
    }
    
    .filter-group .date-range {
        width: 100%;
    }
}

/* 消息提示样式 */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 24px;
    border-radius: 4px;
    color: white;
    font-size: 14px;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    min-width: 250px;
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.message.error {
    background: #e74c3c;
}

.message.success {
    background: #2ecc71;
}

/* 消息动画 */
@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.8;
    font-size: 18px;
    line-height: 1;
}

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

/* 消息图标 */
.message .icon {
    margin-right: 8px;
    font-size: 16px;
}

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

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

.detail-group h3 {
    color: #666;
    font-size: 16px;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

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

.detail-group label {
    color: #666;
    width: 100px;
    flex-shrink: 0;
}

/* 删除按钮样式 */
.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
}

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

.card .sub-stats {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    display: flex;
    justify-content: space-between;
}

.card .sub-stats span {
    display: block;
    margin-top: 5px;
}

.card .number {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 10px 0;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.page-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 4px;
}

.page-btn:hover:not(:disabled) {
    background: #f0f0f0;
}

.page-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

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

.page-ellipsis {
    color: #666;
}

/* 修改模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: flex-start;  /* 改为顶部对齐 */
    z-index: 1000;
    padding: 20px;  /* 添加内边距 */
    overflow-y: auto;  /* 允许整个模态框滚动 */
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;  /* 限制最大宽度 */
    max-height: 90vh;  /* 限制最大高度为视窗高度的90% */
    overflow-y: auto;  /* 允许内容滚动 */
    margin: 20px auto;  /* 添加上下边距 */
    position: relative;  /* 相对定位 */
}

/* 表单分组样式优化 */
.form-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.form-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 16px;
}

/* 表单组样式优化 */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

/* 按钮组样式 */
.form-actions {
    position: sticky;  /* 使按钮固定在底部 */
    bottom: 0;
    background: white;
    padding: 15px 0;
    margin-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* 订单按钮样式 */
.order-btn {
    padding: 6px 12px !important;
    margin: 0 4px !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 13px !important;
}

.order-btn.btn-primary {
    background: var(--primary-color) !important;
    color: white !important;
}

.order-btn.btn-warning {
    background: #ffc107 !important;
    color: #000 !important;
}

.order-btn.btn-danger {
    background: #dc3545 !important;
    color: white !important;
}

.order-btn.btn-primary:hover { background: #1565c0 !important; }
.order-btn.btn-warning:hover { background: #ffb300 !important; }
.order-btn.btn-danger:hover { background: #c82333 !important; }

/* 默认隐藏移动端导航 */
.mobile-nav {
    display: none;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    /* 显示移动端导航栏 */
    .mobile-nav {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: linear-gradient(90deg, #2c3e50 0%, #3498db 100%);
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    /* 侧边栏适配 */
    .layout {
        flex-direction: column;
    }
    
    /* 移动端底部导航栏 */
    .mobile-nav::-webkit-scrollbar {
        display: none;
    }

    .mobile-nav {
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    
    .mobile-nav-list {
        display: flex;
        height: 100%;
        padding: 0 10px;
        min-width: max-content;  /* 确保内容不会被压缩 */
    }
    
    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: rgba(255,255,255,0.8);
        text-decoration: none;
        padding: 5px 15px;  /* 增加水平内边距 */
        border-radius: 4px;
        white-space: nowrap;  /* 防止文字换行 */
        transition: all 0.3s ease;
    }
    
    .mobile-nav-item.active {
        color: white;
        background: rgba(255,255,255,0.2);
    }
    
    .mobile-nav-icon {
        font-size: 24px;
        margin-bottom: 2px;
    }
    
    .mobile-nav-text {
        font-size: 12px;
    }
    
    /* 添加滑动指示器 */
    .mobile-nav::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 20px;
        background: linear-gradient(to right, transparent, rgba(0,0,0,0.2));
        pointer-events: none;  /* 允许点击穿透 */
    }
    
    /* 隐藏原侧边栏 */
    .sidebar {
        display: none;
    }
    
    /* 主内容区适配 */
    .main {
        margin-left: 0;
        margin-bottom: 70px;
        min-height: calc(100vh - 70px);
    }
    
    .content {
        padding: 15px;
    }
}

/* 针对更小屏幕的优化 - 响应式适配 */
@media screen and (max-width: 480px) {
    .menu-item span {
        font-size: 10px;
        transition: font-size 0.2s ease; /* 平滑过渡 */
    }
    
    .stat-card {
        padding: 10px;
        margin-bottom: 12px; /* 紧凑布局 */
    }
    
    .stat-value {
        font-size: 20px;
        line-height: 1.2; /* 优化行高 */
    }
    
    .header h2 {
        font-size: 18px;
        letter-spacing: 0.5px; /* 增强可读性 */
    }
    
    .data-table th,
    .data-table td {
        padding: 8px;
        font-size: 12px;
        white-space: nowrap; /* 防止内容折行 */
    }
}

/* 重连按钮 - 强调交互感 */
.btn-reconnect {
    padding: 2px 8px;
    margin-left: 8px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease; /* 统一过渡效果 */
    box-shadow: 0 1px 2px rgba(0,0,0,0.1); /* 细微阴影增强层次 */
}

.btn-reconnect:hover {
    background: #45a049;
    transform: translateY(-1px); /* 轻微上浮 */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-reconnect:active {
    background: #3d8b40;
    transform: translateY(0); /* 点击回落 */
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

/* 表单辅助文本 */
.form-text {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    line-height: 1.4; /* 优化行高 */
    transition: color 0.2s ease; /* 平滑变色 */
}

/* 输入验证反馈 */
input:invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1); /* 微妙高亮 */
}

input:invalid + .form-text {
    color: #dc3545;
    font-weight: 500; /* 增强提示 */
}

/* 订单信息卡片 */
.order-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 3px solid #007bff; /* 左侧装饰线增强识别 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* 卡片阴影 */
}

.order-info p {
    margin: 5px 0;
    color: #666;
    line-height: 1.5;
}

/* 文本区域优化 */
textarea {
    width: 100%;
    min-height: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit; /* 继承字体 */
}

textarea:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1); /* 聚焦效果 */
    outline: none;
}

/* 单选按钮组美化 */
.radio-group {
    display: flex;
    gap: 20px;
    margin: 10px 0;
    flex-wrap: wrap; /* 小屏幕自动换行 */
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 4px 8px; /* 增大点击区域 */
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

.radio-group label:hover {
    background-color: rgba(0,0,0,0.03); /* 悬停反馈 */
}

.radio-group input[type="radio"] {
    width: auto;
    margin: 0;
    accent-color: #007bff; /* 统一单选按钮颜色 */
}

/* 退款金额组动画 */
#refundAmountGroup {
    animation: fadeIn 0.3s ease forwards;
    opacity: 0; /* 初始透明 */
}

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

#refundAmountGroup input {
    width: 200px;
    transition: border-color 0.2s ease;
}

#refundAmountGroup input:focus {
    border-color: #80bdff;
    outline: none;
}

/* 按钮组样式 */
.btn-group {
    display: flex;
    gap: 5px;
    margin: 10px 0;
    flex-wrap: wrap; /* 小屏幕自动换行 */
}

.btn-group button {
    padding: 4px 8px;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 3px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-group button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 表格操作列调整 */
.data-table td:last-child {
    min-width: 280px;
    text-align: center; /* 操作按钮居中 */
}

/* 进度条样式优化 */
.progress-container {
    margin: 20px 0;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px; /* 更纤细的进度条 */
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1); /* 内阴影增强质感 */
}

.progress-inner {
    height: 100%;
    background-color: #2196F3;
    transition: width 0.5s ease-in-out; /* 更平滑的动画 */
    border-radius: 4px; /* 与容器匹配 */
}

.progress-text {
    margin-top: 10px;
    color: #666;
    font-size: 13px;
}

/* 错误文本样式 */
.error-text {
    color: #f44336;
    margin: 20px 0;
    padding: 10px 15px;
    background-color: rgba(244, 67, 54, 0.05); /* 错误背景色 */
    border-left: 3px solid #f44336; /* 左侧错误标识线 */
    border-radius: 3px;
    animation: shake 0.5s ease; /* 错误抖动动画 */
}

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

/* 补充全局样式增强一致性 */
input, select {
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}