/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

/* 移动端基础优化 */
html {
    overflow-x: hidden;
    width: 100%;
}

:root {
    /* 现代化色彩系统 */
    --primary-color: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary-color: #f59e0b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #3b82f6;
    
    /* 中性色 */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* 阴影系统 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* 圆角系统 */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* 间距系统 */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--gray-800);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* 容器基础设置 */
.container, .main-content, .header-container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* 现代化头部导航 */
.modern-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.logo-icon {
    font-size: 2rem;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gray-800), var(--gray-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-section {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.user-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.95rem;
}

.user-role {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    padding: var(--space-2);
    border-radius: var(--radius-md);
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-btn:hover {
    background: var(--gray-100);
    color: var(--primary-color);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--error-color);
    color: white;
    font-size: 0.7rem;
    padding: 0.1rem 0.3rem;
    border-radius: 50%;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-btn {
    background: none;
    border: none;
    padding: var(--space-2);
    border-radius: var(--radius-md);
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.logout-btn:hover {
    background: var(--error-color);
    color: white;
}

/* 主要内容区域 */
.main-content {
    max-width: 1900px;
    margin: 0 auto;
    padding: var(--space-8) var(--space-6);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas: 
        "welcome welcome welcome"
        "stats stats stats"
        "actions orders orders"
        "profile orders orders";
    gap: var(--space-6);
}

/* 现代化卡片样式 */
.modern-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
}

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

/* 欢迎区域 */
.welcome-section {
    grid-area: welcome;
}

.welcome-card {
    padding: var(--space-8);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    position: relative;
    overflow: hidden;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.welcome-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.welcome-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.welcome-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.welcome-illustration {
    font-size: 4rem;
    opacity: 0.3;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* 统计卡片区域 */
.stats-section {
    grid-area: stats;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

.stat-card {
    padding: var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-icon.total {
    background: linear-gradient(135deg, var(--info-color), #60a5fa);
}

.stat-icon.pending {
    background: linear-gradient(135deg, var(--warning-color), #fbbf24);
}

.stat-icon.completed {
    background: linear-gradient(135deg, var(--success-color), #34d399);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: var(--space-1);
}

.stat-label {
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* 快速操作区域 */
.actions-section {
    grid-area: actions;
}

.actions-card {
    padding: var(--space-6);
}

.section-title {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--space-6);
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
}

.action-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.action-btn.secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.action-btn.secondary:hover {
    background: var(--gray-200);
    transform: translateY(-1px);
}

/* 任务列表区域 */
.orders-section {
    grid-area: orders;
}

.orders-card {
    padding: var(--space-6);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
}

.section-actions {
    display: flex;
    gap: var(--space-2);
}

.filter-btn {
    padding: var(--space-2) var(--space-4);
    border: 1px solid var(--gray-300);
    background: white;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.filter-btn:hover:not(.active) {
    background: var(--gray-50);
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-5);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: all 0.2s ease;
}

.order-item:hover {
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.order-left {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.order-id {
    font-family: 'Monaco', 'Menlo', monospace;
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
}

.order-details p {
    margin-bottom: var(--space-1);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.9rem;
}

.order-account {
    color: var(--gray-800);
    font-weight: 500;
}

.order-time {
    color: var(--gray-600);
}

.order-right {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.status-badge {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
    font-weight: 500;
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-completed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-processing {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info-color);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* 已取消任务状态样式 */
.status-cancelled {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.status-cancelled i {
    color: white;
}

.order-actions {
    display: flex;
    gap: var(--space-1);
}

.action-icon-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--gray-600);
}

.action-icon-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

/* 空状态和错误状态 */
.empty-state, .error-state {
    text-align: center;
    padding: var(--space-12);
    color: var(--gray-500);
}

.empty-state i, .error-state i {
    font-size: 3rem;
    margin-bottom: var(--space-4);
    opacity: 0.5;
}

.empty-state h4 {
    font-size: 1.2rem;
    margin-bottom: var(--space-2);
    color: var(--gray-700);
}

/* 用户信息区域 */
.profile-section {
    grid-area: profile;
}

.profile-card {
    padding: var(--space-6);
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.info-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}

.info-item i {
    width: 20px;
    color: var(--primary-color);
}

.info-content {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: var(--space-1);
}

.info-value {
    font-weight: 500;
    color: var(--gray-800);
}

/* 现代化弹窗样式 */
.modern-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fafbfc !important;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-6);
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.modal-title {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gray-800);
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--gray-600);
}

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

.modal-form {
    padding: var(--space-6);
    flex: 1;
    overflow-y: auto;
}

.form-row {
    margin-bottom: var(--space-5);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: var(--space-2);
}

.form-group input {
    padding: var(--space-4);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.query-btn {
    width: 100%;
    padding: 0.75rem;
    background: #17a2b8;
    color: white;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: var(--space-2);
}

.query-btn:hover {
    background: #138496;
    transform: translateY(-1px);
}

.query-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.form-hint {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    color: var(--gray-500);
    font-size: 0.85rem;
}



/* 响应式设计 */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: 
            "welcome welcome"
            "stats stats"
            "actions orders"
            "profile orders";
    }
}

@media (max-width: 768px) {
    /* 基础容器优化 */
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    .header-container {
        padding: 0 1rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .user-details {
        display: none;
    }
    
    .main-content {
        padding: 1rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        margin: 0;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "welcome"
            "stats"
            "actions"
            "orders"
            "profile";
        gap: 1rem;
        width: 100%;
        max-width: 100%;
    }
    
    /* 卡片容器优化 */
    .modern-card {
        width: 100%;
        max-width: 100%;
        margin: 0;
        overflow-x: hidden;
        border-radius: 0.75rem;
    }
    
    /* 统计卡片优化 */
    .stats-section {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        width: 100%;
    }
    
    .stat-card {
        padding: 1rem;
        width: 100%;
        max-width: 100%;
    }
    
    /* 欢迎区域优化 */
    .welcome-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 0;
    }
    
    .welcome-card {
        padding: 1.5rem 1rem;
        width: 100%;
        max-width: 100%;
    }
    
    .welcome-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .welcome-subtitle {
        font-size: 0.95rem;
    }
    
    .welcome-illustration {
        font-size: 2rem;
    }
    
    /* 任务列表优化 */
    .orders-card {
        padding: 1rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .order-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .order-left {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .order-right {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .order-details {
        width: 100%;
        overflow-x: hidden;
    }
    
    .order-details p {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    /* 操作按钮优化 */
    .action-buttons {
        width: 100%;
        gap: 0.75rem;
    }
    
    /* 快速操作区域按钮 - 仪表盘专用 */
    .actions-section .action-btn {
        width: 100% !important;
        max-width: 100% !important;
        min-width: auto !important;
        padding: 0.875rem !important;
        text-align: center !important;
        justify-content: center !important;
        font-size: 0.95rem !important;
        gap: var(--space-3) !important;
    }
    
    /* 用户信息卡片优化 */
    .profile-card {
        padding: 1rem;
        width: 100%;
        max-width: 100%;
    }
    
    .info-item {
        padding: 0.75rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .info-content {
        width: 100%;
        overflow-x: hidden;
    }
    
    .info-value {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* 模态框优化 */
    .modal-container {
        width: 95%;
        max-width: 95vw;
        margin: 1rem auto;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-form {
        width: 100%;
        max-width: 100%;
    }
    
    .form-group {
        width: 100%;
        max-width: 100%;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* 移除移动端添加任务界面的重复样式，使用mobile-order-modal.css中的样式 */
}

/* 超小屏幕进一步优化 */
@media (max-width: 480px) {
    .main-content {
        padding: 0.75rem;
    }
    
    .dashboard-grid {
        gap: 0.75rem;
    }
    
    .modern-card {
        border-radius: 0.5rem;
    }
    
    .welcome-card {
        padding: 1rem 0.75rem;
    }
    
    .welcome-title {
        font-size: 1.25rem;
    }
    
    .stat-card {
        padding: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .order-item {
        padding: 0.75rem;
    }
    
    .section-title {
        font-size: 1rem;
    }
}

/* 极小屏幕优化 */
@media (max-width: 360px) {
    .main-content {
        padding: 0.5rem;
    }
    
    .header-container {
        padding: 0 0.75rem;
    }
    
    .welcome-title {
        font-size: 1.1rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .modal-container {
        width: 98%;
        margin: 0.5rem auto;
    }
}

/* 动画效果 */
.modern-card {
    animation: fadeInUp 0.6s ease-out;
}

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

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 旧版本兼容样式 */
.container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.alert {
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    text-align: center;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* 地点查询相关样式 */
.location-list-container {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    border: 1px solid #e9ecef;
}

/* 地点列表头部样式 */
.location-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.location-list-title {
    margin: 0;
    color: #495057;
    font-size: 1rem;
    font-weight: 600;
    flex: 1;
}

/* 搜索功能样式 */
.location-search-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.location-list {
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.location-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.location-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1);
}

.location-info {
    flex: 1;
}

.location-name {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.25rem;
}

.location-details {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.location-city {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.location-distance {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.select-location-btn {
    padding: 0.5rem 1rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.select-location-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.select-location-btn.selected {
    background: #28a745;
}

.select-location-btn.selected:hover {
    background: #1e7e34;
}

/* 搜索结果样式 */
.location-item.search-result {
    border-left: 3px solid var(--primary-color);
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.05) 0%, white 100%);
}

.location-item.search-result:hover {
    border-left-color: var(--primary-dark);
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.1) 0%, white 100%);
}

/* 搜索加载状态 */
.location-search-btn .fa-spinner {
    animation: spin 1s linear infinite;
}

/* 无结果提示样式增强 */
.no-results-message {
    display: none;
    text-align: center;
    padding: 2rem 1rem;
    color: var(--gray-500);
    font-size: 0.875rem;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    border: 2px dashed var(--gray-300);
    margin-top: 1rem;
}

.no-results-message i {
    margin-right: 0.5rem;
    opacity: 0.7;
    font-size: 1.2em;
}

/* 日历选择器样式 */
.date-picker-container {
    position: relative;
}

.calendar-widget {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 1001;
    padding: 0.5rem;
    margin-top: 0.25rem;
    animation: fadeInUp 0.2s ease-out;
    width: 280px;
    font-size: 0.875rem;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.calendar-title {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.9rem;
}

.calendar-nav {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.calendar-nav:hover {
    background: #f3f4f6;
    color: #374151;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-bottom: 0.25rem;
}

.weekday {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 500;
    color: #6b7280;
    padding: 0.25rem 0;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-bottom: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    transition: all 0.15s ease;
    position: relative;
    min-height: 28px;
    font-weight: 500;
}

.calendar-day:hover {
    background: #f3f4f6;
}

.calendar-day.other-month {
    color: #d1d5db;
}





.calendar-day.range-start,
.calendar-day.range-end {
    background: var(--primary-color);
    color: white;
}

.calendar-day.range-middle {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

/* 日期状态样式 */
.date-status-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.date-status-item {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.date-status-item.status-pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.date-status-item.status-completed {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.calendar-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f3f4f6;
    gap: 0.5rem;
}

.btn-clear-dates,
.btn-confirm-dates {
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
    flex: 1;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.btn-clear-dates {
    background: #f9fafb;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.btn-clear-dates:hover {
    background: #f3f4f6;
    color: #374151;
    border-color: #d1d5db;
}

.btn-confirm-dates {
    background: linear-gradient(135deg, var(--primary-color) 0%, #5b21b6 100%);
    color: white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-confirm-dates:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #4c1d95 100%);
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        max-width: 420px;
        max-height: 85vh;
    }
    
    .calendar-widget {
        position: fixed;
        top: 50%;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
        width: 300px;
        max-width: 85vw;
    }
    
    .modal-form {
        padding: var(--space-4);
    }
    
    .calendar-day {
        min-height: 26px;
        font-size: 0.7rem;
    }
    
    .weekday {
        font-size: 0.65rem;
        padding: 0.2rem 0;
    }
    
    .calendar-title {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .modal-container {
        width: 98%;
        max-height: 90vh;
    }
    
    .calendar-widget {
        width: 280px;
        max-width: 90vw;
    }
    
    .calendar-day {
        min-height: 24px;
        font-size: 0.65rem;
    }
    
    .calendar-nav {
        width: 20px;
        height: 20px;
    }
    
    .btn-clear-dates,
    .btn-confirm-dates {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }
}

/* 日历微交互动画 */
.calendar-day:active {
    transform: scale(0.95);
}

.calendar-day.selected {
    animation: pulseSelect 0.3s ease-out;
}

@keyframes pulseSelect {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.calendar-widget {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 今日标记优化 */
.calendar-day.today {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    font-weight: 600;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.calendar-day.today.selected {
    background: linear-gradient(135deg, var(--primary-color) 0%, #5b21b6 100%);
    color: white;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
}

/* 选中状态优化 */
.calendar-day.selected {
    background: linear-gradient(135deg, var(--primary-color) 0%, #5b21b6 100%);
    color: white;
    box-shadow: 0 2px 4px 0 rgba(99, 102, 241, 0.3);
    font-weight: 600;
}

.calendar-day.selected:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #4c1d95 100%);
    box-shadow: 0 4px 6px 0 rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

/* 自定义滚动条样式 */
.modal-container::-webkit-scrollbar,
.modal-form::-webkit-scrollbar,
.calendar-widget::-webkit-scrollbar {
    width: 6px;
}

.modal-container::-webkit-scrollbar-track,
.modal-form::-webkit-scrollbar-track,
.calendar-widget::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.modal-container::-webkit-scrollbar-thumb,
.modal-form::-webkit-scrollbar-thumb,
.calendar-widget::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.modal-container::-webkit-scrollbar-thumb:hover,
.modal-form::-webkit-scrollbar-thumb:hover,
.calendar-widget::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 半宽度表单组样式 */
.form-group.half-width {
    flex: 0 0 48%;
}

.form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.form-row .form-group.half-width:only-child {
    flex: 0 0 100%;
}

.form-row .form-group.half-width:first-child {
    margin-right: 4%;
}

/* 图标颜色 */
.form-group label i.fa-fire {
    color: #ff6b35;
}

.form-group label i.fa-heartbeat {
    color: #e74c3c;
}

/* 输入框焦点状态 */
#calories:focus,
#cadence:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* 数字输入框样式 */
input[type="number"],
input[type="time"] {
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}

input[type="number"]:focus,
input[type="time"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 时间输入框特殊样式 */
input[type="time"]::-webkit-calendar-picker-indicator {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23667eea" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><polyline points="12,6 12,12 16,14"></polyline></svg>') no-repeat;
    background-size: 16px;
    cursor: pointer;
}

@media (max-width: 480px) {
    .form-group.half-width {
        flex: 0 0 100%;
    }
}

/* 配速输入框样式 */
.form-group input[name="pace"] {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
}

.form-group input[name="pace"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    background: #fff;
}

.form-group input[name="pace"]:valid {
    border-color: #28a745;
}

/* 配速提示样式 */
.pace-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    padding: 8px 12px;
    background: #e3f2fd;
    border-radius: 6px;
    font-size: 0.85em;
    color: #1976d2;
}

.pace-hint i {
    color: #2196f3;
}

/* 配速显示样式 */
.pace-display {
    color: #667eea;
    font-weight: 600;
    font-size: 0.9em;
    margin-left: 8px;
    padding: 2px 8px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.pace-range-display {
    text-align: center;
    margin: 8px 0;
}

.pace-range-display .pace-display {
    font-size: 1.1em;
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 1px solid rgba(102, 126, 234, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .location-list-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .location-search-container {
        justify-content: stretch;
    }
}

/* 管理员界面样式 */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: #f8f9fa;
    min-height: 100vh;
}

.admin-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.admin-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0.5rem 0 0 0;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.admin-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.admin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.admin-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.admin-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.admin-card-icon {
    width: 24px;
    height: 24px;
    color: #667eea;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.setting-label {
    font-weight: 500;
    color: #495057;
}

.setting-description {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #667eea;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.price-input {
    width: 100px;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    text-align: center;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.users-table th,
.users-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.users-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    border-top: 1px solid #dee2e6;
}

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

.user-status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.user-status.active {
    background-color: #d4edda;
    color: #155724;
}

.user-status.disabled {
    background-color: #f8d7da;
    color: #721c24;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-warning {
    background-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

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

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

.btn-info {
    background-color: #17a2b8;
    color: white;
}

.btn-info:hover {
    background-color: #138496;
}

/* 点数记录页面样式 */
.balance-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: #f8f9fa;
    min-height: 100vh;
}

.balance-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.balance-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.current-balance {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 1rem 0 0 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.balance-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.balance-table {
    width: 100%;
    border-collapse: collapse;
}

.balance-table th,
.balance-table td {
    padding: 1rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.balance-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    border-top: 1px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 10;
}

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

.transaction-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.transaction-type.recharge {
    background-color: #d4edda;
    color: #155724;
}

.transaction-type.consume {
    background-color: #f8d7da;
    color: #721c24;
}

.transaction-type.refund {
    background-color: #d1ecf1;
    color: #0c5460;
}

.transaction-amount {
    font-weight: 600;
    font-size: 1.1rem;
}

.transaction-amount.positive {
    color: #28a745;
}

.transaction-amount.negative {
    color: #dc3545;
}

.no-records {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.no-records-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

/* 在header-actions中的返回按钮不需要底部边距 */
.header-actions .back-btn {
    margin-bottom: 0;
}

.back-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: white;
}

/* 充值弹窗增强样式 */
.recharge-modal .modal-container {
    max-width: 450px;
}

.amount-display {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 2px solid #e9ecef;
}

.amount-label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.amount-value {
    font-size: 2rem;
    font-weight: 700;
    color: #28a745;
    margin: 0;
}

.quick-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.quick-amount-btn {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: center;
}

.quick-amount-btn:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-1px);
}

.quick-amount-btn.selected {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

/* 表单分区样式优化 */
.form-section {
    margin-bottom: 1rem;
    background: #fafbfc !important;
    border-radius: 16px; /* 减小圆角 */
    padding: 1.5rem; /* 减小内边距 */
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04); /* 减弱阴影 */
    min-height: 160px; /* 减小最小高度 */
}

.form-section:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15); /* 增强悬停效果 */
    transform: translateY(-2px);
}

/* 紧凑型表单分区 */
.form-section.compact {
    margin-bottom: 1rem;
    background: #fafbfc !important;
    border-radius: 16px;
    padding: 1.25rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-section.compact:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.section-header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

/* 优化section header */
.form-section.compact .section-header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.form-section.compact .section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-700);
}

.section-title i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.optional-badge {
    background: #17a2b8;
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
    margin-left: 0.5rem;
}

/* 表单网格布局优化 */
.form-grid {
    display: grid;
    gap: 2rem; /* 增大间距 */
    grid-template-columns: 1fr;
}

.form-grid.two-columns {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* 优化表单组样式 */
.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
    margin-bottom: 1.5rem; /* 增大间距 */
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 1rem; /* 增大标签间距 */
    font-size: 1.1rem; /* 增大字体 */
}

.form-group label i {
    width: 16px;
    text-align: center;
    color: var(--primary-color);
}

.form-group input,
.form-group select {
    padding: 1.25rem 1.5rem; /* 增大内边距 */
    border: 2px solid #e9ecef;
    border-radius: 12px; /* 增大圆角 */
    font-size: 1.1rem; /* 增大字体 */
    transition: all 0.3s ease;
    background: white;
    min-height: 56px; /* 确保最小高度 */
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1); /* 增强焦点效果 */
    transform: translateY(-1px);
}

.form-group input:valid {
    border-color: #28a745;
}

.form-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.form-hint i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* 地点选择方式优化 */
.location-method-selector {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.8rem;
    margin-top: -0.5rem;
}

.method-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 0.6rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    font-weight: 500;
    color: #495057;
    font-size: 0.9rem;
}

.method-option:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-1px);
}

.method-option.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.method-option input[type="radio"] {
    display: none;
}

.method-option i {
    font-size: 1.1rem;
}

/* 地点按钮组 - 已移至location-query.css */
/*
.location-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.query-btn,
.draw-trajectory-btn {
    padding: 0.875rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.query-btn {
    background: #17a2b8;
    color: white;
}

.query-btn:hover {
    background: #138496;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

.draw-trajectory-btn {
    background: #28a745;
    color: white;
}

.draw-trajectory-btn:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}
*/

/* 时间浮动开关优化 */
.time-float-group {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 1rem;
}

.time-float-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem !important;
}

.switch-container {
    margin-left: auto;
}

/* 模态框动作按钮优化 - 改为悬浮固定 */
.modal-actions {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1760px; /* 与模态框宽度保持一致 */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-top: 2px solid #e9ecef;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    border-radius: 12px 12px 0 0;
}

/* 移动端保持原有样式 */
@media (max-width: 768px) {
    .modal-actions {
        position: sticky;
        bottom: 0;
        left: auto;
        transform: none;
        width: auto;
        max-width: none;
        background: white;
        padding: 1rem;
        margin: 1rem -1rem -1rem -1rem;
        border-top: 1px solid #e9ecef;
        display: flex;
        gap: 0.75rem;
        border-radius: 0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .btn-cancel,
    .btn-submit {
        flex: 1;
        height: 48px;
        border-radius: 8px;
        font-size: 1rem;
        font-weight: 500;
        padding: 0;
        min-width: auto;
    }
}

.btn-cancel,
.btn-submit {
    padding: 1rem 2.5rem; /* 增大按钮尺寸 */
    border: none;
    border-radius: 12px; /* 增大圆角 */
    font-size: 1.1rem; /* 增大字体 */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 140px; /* 增大最小宽度 */
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.btn-cancel {
    background: var(--gray-200);
    color: var(--gray-700);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.2);
}

.btn-cancel:hover {
    background: var(--gray-300);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 117, 125, 0.3);
}

/* 时间浮动按钮样式 */
.time-float-button-container {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.time-float-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    background: #f8f9fa;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    user-select: none;
}

.time-float-btn:hover {
    border-color: #d0d0d0;
    background: #f0f1f2;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.time-float-btn.active {
    border-color: #4CAF50;
    background: #4CAF50;
    color: white;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.time-float-btn.active:hover {
    background: #45a049;
    border-color: #45a049;
    box-shadow: 0 3px 12px rgba(76, 175, 80, 0.4);
}

.time-float-btn i {
    font-size: 12px;
}

.time-float-button-container .form-hint {
    font-size: 11px;
    color: #666;
    margin-left: 4px;
}

/* 时间浮动范围容器样式 */
.time-float-range-container {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.time-float-range-container .form-group {
    margin-bottom: 0;
}

.time-float-range-container label {
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
}

.time-float-range-container input[type="number"] {
    width: 100px;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
}

.time-float-range-container input[type="number"]:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
    outline: none;
}

.time-float-btn .status-on {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 5px;
}

/* 任务页面轨迹模板列表样式 */
.trajectory-template-list-container {
    margin-top: -10px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
}

.trajectory-template-list-container .template-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 8px 8px 0 0;
}

.trajectory-template-list-container .template-list-header h5 {
    margin: 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.trajectory-template-list-container .refresh-btn {
    padding: 6px 10px;
    border: 1px solid #ddd;
    background: #fff;
    color: #6c757d;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.trajectory-template-list-container .refresh-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.template-list-content {
    /* 移除滚动，改为分页显示 */
    padding: 8px;
}

/* 分页控件样式 */
.template-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    border-radius: 0 0 8px 8px;
}

.pagination-info {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
}

.pagination-controls {
    display: flex;
    gap: 8px;
}

.pagination-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: #fff;
    color: #495057;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination-btn:hover:not(:disabled) {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
}

.pagination-btn:disabled {
    background: #f8f9fa;
    color: #adb5bd;
    cursor: not-allowed;
    border-color: #e9ecef;
}

.pagination-btn i {
    font-size: 10px;
}

/* 优化后的模板项布局 - 卡片式设计 */
.order-template-item {
    position: relative;
    display: block;
    padding: 8px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    background: #fff;
    border-radius: 6px;
    margin-bottom: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.order-template-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.order-template-item:hover {
    background: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.order-template-item.selected {
    background: #e3f2fd;
    border-left: 4px solid #007bff;
    box-shadow: 0 2px 12px rgba(0, 123, 255, 0.2);
}

/* 模板信息区域 */
.order-template-item .template-info {
    position: relative;
    padding-right: 60px; /* 为右上角归属人标签留出空间 */
    padding-bottom: 30px; /* 为右下角操作按钮留出空间 */
}

/* 模板头部布局 */
.order-template-item .template-header {
    display: block;
    margin-bottom: 6px;
}

/* 模板名称样式 */
.order-template-item .template-name {
    margin: 0 0 4px 0;
    color: #333;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: flex-start;
    gap: 3px;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 归属人标签 - 右上角定位 */
.order-template-item .template-owner,
.order-template-item .template-owner-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 9px;
    padding: 3px 5px;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 2;
}

.order-template-item .template-owner {
    background: #e9ecef;
    color: #6c757d;
}

.order-template-item .template-owner-badge {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.order-template-item .template-owner-badge i {
    margin-right: 3px;
    font-size: 8px;
}

/* 模板统计信息 */
.order-template-item .template-stats {
    display: flex;
    gap: 6px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.order-template-item .template-stats span {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 9px;
    color: #6c757d;
    background: #f8f9fa;
    padding: 2px 4px;
    border-radius: 4px;
}

.order-template-item .template-stats i {
    font-size: 8px;
    color: #999;
}

/* 模板日期 */
.order-template-item .template-date {
    font-size: 8px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 2px;
}

/* 操作按钮 - 右下角定位 */
.order-template-item .template-actions {
    position: absolute;
    bottom: 6px;
    right: 6px;
    display: flex;
    gap: 3px;
    z-index: 2;
}

/* 模板操作按钮样式 */
.order-template-item .template-action-btn {
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.order-template-item .template-action-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.order-template-item .template-action-btn.use-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.order-template-item .template-action-btn.use-btn:hover {
    background: linear-gradient(135deg, #218838, #1ea085);
}

.order-template-item .template-action-btn.preview-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.order-template-item .template-action-btn.preview-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
}

.order-template-item .template-action-btn.delete-btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.order-template-item .template-action-btn.delete-btn:hover {
    background: linear-gradient(135deg, #c82333, #a71e2a);
}

.use-template-btn {
    padding: 6px 12px;
    border: 1px solid #28a745;
    background: #fff;
    color: #28a745;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.use-template-btn:hover {
    background: #28a745;
    color: white;
}

.template-empty,
.template-loading,
.template-error {
    text-align: center;
    padding: 30px 15px;
    color: #6c757d;
}

.template-empty i,
.template-loading i,
.template-error i {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
}

.template-empty p,
.template-error p {
    margin: 5px 0;
    font-size: 14px;
}

.template-error {
    color: #dc3545;
}

.template-error .retry-btn {
    margin-top: 10px;
    padding: 6px 12px;
    border: 1px solid #dc3545;
    background: #fff;
    color: #dc3545;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.template-error .retry-btn:hover {
    background: #dc3545;
    color: white;
}

/* 任务操作按钮样式 */
.order-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.cancel-order-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.cancel-order-btn:hover {
    background: linear-gradient(135deg, #ff5252, #e53935);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.cancel-order-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cancel-order-btn i {
    margin-right: 8px;
}

/* 退款按钮样式 - 使用红色X样式 */
.refund-order-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.refund-order-btn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.refund-order-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.refund-order-btn i {
    font-size: 0.875rem;
}

/* 确保X图标居中显示 */
.refund-order-btn .fa-times {
    display: inline-block;
    text-align: center;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid #4caf50;
    color: #2e7d32;
}

.notification-error {
    border-left: 4px solid #f44336;
    color: #c62828;
}

.notification-info {
    border-left: 4px solid #2196f3;
    color: #1565c0;
}

.notification i {
    font-size: 18px;
}

/* 管理员返回按钮样式 */
.admin-return-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

.admin-return-btn:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.3);
}

.admin-return-btn i {
    font-size: 1rem;
}

/* 添加任务专用的大容器样式 - 恢复原始尺寸 */
.add-order-modal .modal-container {
    max-width: 1400px;
    width: 98%;
    max-height: 90vh;
}

.add-order-modal .modal-form {
    padding: var(--space-3); /* 保持紧凑的内边距 */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4); /* 保持紧凑的间距 */
    max-height: calc(90vh - 140px); /* 恢复原始高度计算 */
    overflow-y: auto;
}

/* 添加任务专用的超大容器样式 - 恢复原始尺寸 */
#orderModal .modal-container {
    max-width: 1800px; /* 恢复原始超大宽度 */
    width: 99%; /* 恢复原始几乎全屏宽度 */
    max-height: 98vh; /* 恢复原始几乎全屏高度 */
    min-height: 80vh; /* 恢复原始最小高度 */
}

/* 为模态框内容添加底部间距，避免被固定按钮遮挡 */
#orderModal .modal-form {
    padding: var(--space-3) var(--space-3) 120px var(--space-3); /* 底部增加120px间距 */
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr; /* 改为四列布局 */
    gap: var(--space-3); /* 减少间距以适应四列 */
    max-height: calc(98vh - 200px); /* 调整高度计算 */
    overflow-y: auto;
}

/* 表单区域进一步紧凑化 */
.add-order-modal .form-section,
#orderModal .form-section {
    padding: 0.75rem; /* 从1rem进一步减少到0.75rem */
    margin-bottom: 0.75rem; /* 从1rem减少到0.75rem */
    border-radius: 8px; /* 从12px减少到8px */
}

/* 表单组间距进一步优化 */
.add-order-modal .form-group,
#orderModal .form-group {
    margin-bottom: 0.75rem; /* 从1rem减少到0.75rem */
}

/* 区域标题进一步优化 */
.add-order-modal .section-header,
#orderModal .section-header {
    margin-bottom: 0.75rem; /* 从1rem减少到0.75rem */
    padding-bottom: 0.375rem; /* 从0.5rem减少到0.375rem */
}

.add-order-modal .section-title,
#orderModal .section-title {
    font-size: 1rem; /* 从1.1rem减少到1rem */
    margin: 0;
}

/* 表单网格间距进一步优化 */
.add-order-modal .form-grid,
#orderModal .form-grid {
    gap: 0.5rem; /* 从0.75rem减少到0.5rem */
}

/* 输入框进一步优化 */
.add-order-modal input,
.add-order-modal select,
.add-order-modal textarea,
#orderModal input,
#orderModal select,
#orderModal textarea {
    padding: 0.375rem 0.5rem; /* 从0.5rem 0.75rem减少到0.375rem 0.5rem */
    font-size: 0.85rem; /* 从0.9rem减少到0.85rem */
    line-height: 1.3; /* 减少行高 */
}

/* 标签进一步优化 */
.add-order-modal label,
#orderModal label {
    font-size: 0.8rem; /* 从0.85rem减少到0.8rem */
    margin-bottom: 0.2rem; /* 从0.25rem减少到0.2rem */
    font-weight: 500; /* 减少字体粗细 */
}

/* 提示文字进一步优化 */
.add-order-modal .form-hint,
#orderModal .form-hint {
    font-size: 0.7rem; /* 从0.75rem减少到0.7rem */
    margin-top: 0.2rem; /* 从0.25rem减少到0.2rem */
    line-height: 1.2;
}

/* 按钮优化 */
.add-order-modal .btn-cancel,
.add-order-modal .btn-submit,
.add-order-modal .query-btn,
.add-order-modal .verify-account-btn,
#orderModal .btn-cancel,
#orderModal .btn-submit,
#orderModal .query-btn,
#orderModal .verify-account-btn {
    padding: 0.5rem 1rem; /* 减少按钮内边距 */
    font-size: 0.85rem; /* 减少按钮字体 */
}

/* 日历组件优化 */
.add-order-modal .calendar-widget,
#orderModal .calendar-widget {
    font-size: 0.8rem;
}

/* 地点选择器优化 */
.add-order-modal .location-method-selector .method-option,
#orderModal .location-method-selector .method-option {
    padding: 0.5rem; /* 减少选项内边距 */
    font-size: 0.8rem;
}

/* 开关组件优化 */
.add-order-modal .simple-switch,
#orderModal .simple-switch {
    font-size: 0.8rem;
}

/* 时间输入组件优化 */
.add-order-modal .time-input-group input,
#orderModal .time-input-group input {
    padding: 0.25rem 0.375rem;
    font-size: 0.8rem;
}

.add-order-modal .quick-time-btn,
#orderModal .quick-time-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* 表单列样式 */
.form-column-one,
.form-column-two,
.form-column-three,
.form-column-four {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

/* 左侧列 - 基础信息 */
.form-column-left {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

/* 右侧列 - 详细设置 */
.form-column-right {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

/* 全宽元素跨越两列 */
.form-section.full-width {
    grid-column: 1 / -1;
}

/* 平板设备优化 */
@media (max-width: 1024px) {
    .add-order-modal .modal-container {
        max-width: 95%;
    }
    
    .add-order-modal .modal-form {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    
    #orderModal .modal-form {
        grid-template-columns: 1fr 1fr; /* 平板设备改为两列 */
        gap: var(--space-3);
    }
    
    .form-column-left,
    .form-column-right,
    .form-column-one,
    .form-column-two,
    .form-column-three,
    .form-column-four {
        width: 100%;
    }
}

/* 响应式设计增强 */
@media (max-width: 768px) {
    .admin-container,
    .balance-container {
        padding: 1rem;
    }
    
    .admin-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .users-table,
    .balance-table {
        font-size: 0.875rem;
    }
    
    .users-table th,
    .users-table td,
    .balance-table th,
    .balance-table td {
        padding: 0.5rem 0.25rem;
    }
    
    .user-actions {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .quick-amounts {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-title {
        font-size: 1.5rem;
    }
    
    .balance-title {
        font-size: 1.25rem;
    }
    
    .current-balance {
        font-size: 2rem;
    }
    
    .form-grid.two-columns {
        grid-template-columns: 1fr;
    }
    
    .location-method-selector {
        grid-template-columns: 1fr;
    }
    
    .location-buttons {
        grid-template-columns: 1fr;
    }
    
    .form-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    

    
    .time-float-button-container {
        width: 100%;
        align-items: center;
    }
    
    .time-float-btn {
        width: auto;
        min-width: 120px;
        justify-content: center;
    }
    
    .order-template-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 15px;
    }
    
    .order-template-item .template-info {
        width: 100%;
    }
    
    .order-template-item .template-name {
        font-size: 15px;
        line-height: 1.3;
        -webkit-line-clamp: 3;
    }
    
    .order-template-item .template-actions {
        margin-left: 0;
        align-self: flex-end;
    }
    
    .order-template-item .template-stats {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .admin-return-btn span {
        display: none;
    }
    
    .admin-return-btn {
        padding: 0.5rem;
        min-width: 2.5rem;
        justify-content: center;
    }
    
    /* 移动端样式已移至 mobile-order-modal.css 组件文件 */
    
    .btn-cancel,
    .btn-submit {
        flex: 1;
        height: 48px;
        border-radius: 8px;
        font-size: 1rem;
        font-weight: 500;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        transition: all 0.3s ease;
        touch-action: manipulation;
    }
    
    .btn-cancel {
        background: #6c757d;
        color: white;
        border: none;
    }
    
    .btn-submit {
        background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
        color: white;
        border: none;
    }
    
    /* 两列布局在移动端改为单列 */
    .form-grid.two-columns {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* 四列布局在移动端改为单列 */
    #orderModal .modal-form {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    
    /* 地点查询结果优化 */
    .location-results-container {
        margin-top: 1rem;
        border-radius: 8px;
        border: 1px solid #e9ecef;
        background: white;
    }
    
    .location-list {
        max-height: 200px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .form-column-left,
    .form-column-right,
    .form-column-one,
    .form-column-two,
    .form-column-three,
    .form-column-four {
        gap: var(--space-3);
    }
    
    .form-section.compact {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-amounts {
        grid-template-columns: 1fr;
    }
    
    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .users-table,
    .balance-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .section-title {
        font-size: 1rem;
    }
    
    .optional-badge {
        font-size: 0.6rem;
        padding: 0.15rem 0.4rem;
    }
    
    .form-group input {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .add-order-modal .modal-form {
        padding: 0.75rem;
    }
    
    .form-section {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .section-title {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group select {
        font-size: 16px; /* 保持16px防止缩放 */
        padding: 0.625rem 0.75rem;
    }
    
    .cost-preview-fixed {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .modal-actions {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .btn-cancel,
    .btn-submit {
        height: 44px;
        font-size: 0.9rem;
    }
}

/* 验证账号密码按钮样式 */
.verify-account-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    width: 100%;
    justify-content: center;
}

/* 轨迹循环和动态数据开关现代化样式 */
.section-switch {
    display: flex;
    align-items: center;
}

.simple-switch {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-size: 0.875rem;
    color: #6c757d;
    transition: color 0.3s ease;
    font-weight: 500;
}

.simple-switch:hover {
    color: #495057;
}

.switch-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background-color: #e9ecef;
    border-radius: 24px;
    margin-right: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.switch-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.simple-switch input:checked + .switch-slider {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-color: #6366f1;
}

.simple-switch input:checked + .switch-slider::before {
    transform: translateX(20px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.simple-switch input {
    display: none;
}

/* 动态数据开关样式优化 */
.dynamic-data-switch-container .simple-switch {
    margin-bottom: 15px;
}

/* 确保开关在不同屏幕尺寸下的一致性 */
@media (max-width: 768px) {
    .simple-switch {
        font-size: 0.8rem;
    }
    
    .switch-slider {
        width: 40px;
        height: 22px;
        margin-right: 10px;
    }
    
    .switch-slider::before {
        width: 14px;
        height: 14px;
    }
    
    .simple-switch input:checked + .switch-slider::before {
        transform: translateX(18px);
    }
}

/* 邀请码验证样式 */
.invitation-validation {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    font-weight: 500;
}

.form-group input.valid {
    border-color: #4CAF50 !important;
}

.form-group input.invalid {
    border-color: #e74c3c !important;
}

/* 动态数据开关样式 */
.dynamic-data-switch-container {
    margin-bottom: 15px;
}

.dynamic-data-btn {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    color: #6c757d;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dynamic-data-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.dynamic-data-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.dynamic-data-btn .status-on {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.verify-account-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.verify-account-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.verify-account-btn.verifying {
    background: #ffc107;
    cursor: wait;
}

.verify-account-btn.verified {
    background: #28a745;
}

.verify-account-btn.error {
    background: #dc3545;
}

/* 验证状态显示 */
.verify-status {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.verify-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.verify-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.verify-status.loading {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.verify-message {
    display: flex;
    align-items: center;
    gap: 6px;
}

.verify-message i {
    font-size: 12px;
}

/* 通知模态框样式 */
.notification-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.preview-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    margin-left: 12px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.preview-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.preview-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.preview-btn:hover::before {
    left: 100%;
}

.preview-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.preview-btn i {
    margin-right: 0;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.preview-btn:hover i {
    transform: scale(1.1);
}

/* 小尺寸变体 */
.preview-btn.small {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* 次要样式变体 */
.preview-btn.secondary {
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.preview-btn.secondary:hover {
    background: linear-gradient(135deg, var(--gray-200), var(--gray-300));
    color: var(--gray-800);
}

.notification-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: notificationSlideIn 0.3s ease-out;
}

@keyframes notificationSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.notification-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.notification-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.notification-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.notification-body {
    padding: 24px;
    max-height: 400px;
    overflow-y: auto;
}

.notification-body #notificationContent {
    line-height: 1.6;
    color: #374151;
    font-size: 15px;
}

.notification-footer {
    padding: 16px 24px 24px;
    text-align: right;
    border-top: 1px solid #e5e7eb;
    background-color: #f9fafb;
}

.notification-footer .btn {
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
}

/* 动画增强 */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.admin-card {
    animation: slideInRight 0.3s ease-out;
}

.admin-card:nth-child(2) {
    animation-delay: 0.1s;
}

.admin-card:nth-child(3) {
    animation-delay: 0.2s;
}

.admin-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* 表格加载状态 */
.table-loading {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

/* 成功/错误消息样式 */
.message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* 点数预览固定样式 */
.cost-preview-fixed {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: var(--space-4);
    margin: 0 -var(--space-6) var(--space-4) -var(--space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cost-preview-fixed .cost-info,
.cost-preview-fixed .balance-info {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 600;
}