/* ===============================================
   移动端专用样式文件 - mobile.css
   只在移动端生效，不影响桌面端显示
=============================================== */

/* 只在移动端应用的样式 */
@media (max-width: 768px) {

    /* 页面基础设置 */
    body {
        padding-bottom: 80px !important;
        /* 为底部导航留出空间 */
    }

    /* 移动端欢迎横幅 */
    .mobile-welcome-banner {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        padding: 30px 20px;
        color: white;
        margin-bottom: 20px;
    }

    .mobile-welcome-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .mobile-welcome-text h1 {
        font-size: 22px;
        font-weight: 600;
        margin: 0 0 8px 0;
        line-height: 1.3;
        color: white;
    }

    .mobile-welcome-text p {
        font-size: 14px;
        margin: 0;
        opacity: 0.9;
        color: white;
    }

    .mobile-welcome-icon {
        font-size: 40px;
        opacity: 0.8;
        color: white;
    }

    /* 移动端主要操作按钮 */
    .mobile-main-actions {
        padding: 0 15px 20px;
    }

    .mobile-actions-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .mobile-action-card {
        background: white;
        border-radius: 12px;
        padding: 16px;
        display: flex;
        align-items: center;
        text-decoration: none;
        color: #333 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border-left: 4px solid transparent;
        transition: all 0.3s ease;
    }

    .mobile-action-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        color: #333 !important;
        text-decoration: none;
    }

    .mobile-action-card.primary {
        border-left-color: #667eea;
    }

    .mobile-action-card.secondary {
        border-left-color: #f093fb;
    }

    .mobile-action-card.info {
        border-left-color: #4facfe;
    }

    .mobile-action-card.success {
        border-left-color: #43e97b;
    }

    .mobile-action-icon {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 15px;
        flex-shrink: 0;
    }

    .mobile-action-card.primary .mobile-action-icon {
        background: rgba(102, 126, 234, 0.1);
        color: #667eea;
    }

    .mobile-action-card.secondary .mobile-action-icon {
        background: rgba(240, 147, 251, 0.1);
        color: #f093fb;
    }

    .mobile-action-card.info .mobile-action-icon {
        background: rgba(79, 172, 254, 0.1);
        color: #4facfe;
    }

    .mobile-action-card.success .mobile-action-icon {
        background: rgba(67, 233, 123, 0.1);
        color: #43e97b;
    }

    .mobile-action-icon i {
        font-size: 20px;
    }

    .mobile-action-text {
        flex: 1;
    }

    .mobile-action-text h3 {
        font-size: 16px;
        font-weight: 600;
        margin: 0 0 4px 0;
        color: #333;
    }

    .mobile-action-text p {
        font-size: 13px;
        color: #666;
        margin: 0;
    }

    .mobile-action-arrow {
        color: #ccc;
        font-size: 14px;
    }

    /* 移动端统计面板 */
    .mobile-stats-panel {
        background: white;
        margin: 0 15px 20px;
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .mobile-panel-title {
        font-size: 16px;
        font-weight: 600;
        color: #333;
        margin: 0 0 15px 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-panel-title i {
        color: #667eea;
    }

    .mobile-stats-cards {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .mobile-stat-item {
        display: flex;
        align-items: center;
        padding: 12px;
        background: #f8f9fa;
        border-radius: 8px;
    }

    .mobile-stat-icon {
        width: 40px;
        height: 40px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 12px;
        color: white;
    }

    .mobile-stat-icon.active-tasks {
        background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    }

    .mobile-stat-icon.today-orders {
        background: linear-gradient(45deg, #4facfe, #00f2fe);
    }

    .mobile-stat-icon.categories {
        background: linear-gradient(45deg, #43e97b, #38f9d7);
    }

    .mobile-stat-info {
        flex: 1;
    }

    .mobile-stat-number {
        font-size: 20px;
        font-weight: 700;
        color: #333;
        margin-bottom: 2px;
    }

    .mobile-stat-label {
        font-size: 13px;
        color: #666;
    }

    /* 移动端热门任务区域 */
    .mobile-hot-tasks-section {
        margin-bottom: 25px;
    }

    .mobile-section-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 15px 15px;
    }

    .mobile-section-title {
        font-size: 16px;
        font-weight: 600;
        color: #333;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-section-title i {
        color: #667eea;
    }

    .mobile-more-link {
        font-size: 13px;
        color: #667eea;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .mobile-tasks-container {
        padding: 0 15px;
    }

    .mobile-task-item {
        background: white;
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .mobile-task-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    }

    .mobile-task-main {
        display: flex;
        justify-content: space-between;
        margin-bottom: 12px;
    }

    .mobile-task-info {
        flex: 1;
        margin-right: 15px;
    }

    .mobile-task-title {
        font-size: 15px;
        font-weight: 600;
        color: #333;
        margin: 0 0 8px 0;
        line-height: 1.4;
    }

    .mobile-task-meta {
        display: flex;
        gap: 15px;
        margin-bottom: 8px;
    }

    .mobile-task-publisher,
    .mobile-task-slots {
        font-size: 12px;
        color: #666;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .mobile-task-desc {
        font-size: 13px;
        color: #666;
        line-height: 1.4;
    }

    .mobile-task-price {
        text-align: center;
        flex-shrink: 0;
    }

    .mobile-price-amount {
        font-size: 18px;
        font-weight: 700;
        color: #e74c3c;
        margin-bottom: 2px;
    }

    .mobile-price-label {
        font-size: 11px;
        color: #999;
    }

    .mobile-task-actions {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mobile-task-status {
        padding: 4px 8px;
        border-radius: 12px;
        font-size: 11px;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .mobile-task-status.pending {
        background: #e8f5e8;
        color: #27ae60;
    }

    .mobile-task-category {
        font-size: 11px;
        color: #666;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    /* 移动端最新任务区域 */
    .mobile-new-tasks-section {
        margin-bottom: 25px;
    }

    .mobile-new-tasks-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 15px;
    }

    .mobile-new-task-card {
        background: white;
        border-radius: 12px;
        padding: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .mobile-new-task-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    }

    .mobile-new-task-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 8px;
    }

    .mobile-new-task-badge {
        background: linear-gradient(45deg, #ff6b6b, #ff8e53);
        color: white;
        padding: 2px 6px;
        border-radius: 8px;
        font-size: 10px;
        font-weight: 600;
    }

    .mobile-new-task-price {
        font-size: 14px;
        font-weight: 600;
        color: #e74c3c;
    }

    .mobile-new-task-title {
        font-size: 13px;
        font-weight: 600;
        color: #333;
        margin: 0 0 8px 0;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .mobile-new-task-info {
        display: flex;
        justify-content: space-between;
        font-size: 11px;
        color: #666;
    }

    /* 移动端快速链接 */
    .mobile-quick-links {
        margin: 0 15px 30px;
    }

    .mobile-quick-links-header h2 {
        font-size: 16px;
        font-weight: 600;
        color: #333;
        margin: 0 0 15px 0;
    }

    .mobile-quick-links-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }

    .mobile-quick-link-item {
        background: white;
        border-radius: 12px;
        padding: 16px 8px;
        text-align: center;
        text-decoration: none;
        color: #333 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .mobile-quick-link-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        color: #667eea !important;
        text-decoration: none;
    }

    .mobile-quick-link-item i {
        font-size: 20px;
        color: #667eea;
    }

    .mobile-quick-link-item span {
        font-size: 12px;
        font-weight: 500;
    }

    /* 底部导航栏 */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid #e0e0e0;
        display: flex;
        justify-content: space-around;
        padding: 8px 0;
        z-index: 1000;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #666;
        transition: all 0.3s ease;
        padding: 4px 8px;
        border-radius: 8px;
        min-width: 50px;
    }

    .mobile-nav-item.active {
        color: #667eea;
        background: rgba(102, 126, 234, 0.1);
    }

    .mobile-nav-item i {
        font-size: 20px;
        margin-bottom: 2px;
    }

    .mobile-nav-item span {
        font-size: 10px;
        font-weight: 500;
    }

    .mobile-nav-item:hover {
        color: #667eea;
        text-decoration: none;
    }

    /* 移动端空状态 */
    .mobile-empty-message {
        text-align: center;
        padding: 40px 20px;
        color: #666;
    }

    .mobile-empty-icon {
        font-size: 48px;
        color: #ddd;
        margin-bottom: 15px;
    }

    .mobile-empty-message h3 {
        font-size: 16px;
        color: #333;
        margin: 0 0 8px 0;
    }

    .mobile-empty-message p {
        font-size: 14px;
        margin: 0 0 20px 0;
    }

    .mobile-empty-action {
        background: #667eea;
        color: white;
        padding: 10px 20px;
        border-radius: 20px;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
    }

    /* 小屏幕适配 */
    @media (max-width: 360px) {
        .mobile-new-tasks-grid {
            grid-template-columns: 1fr;
        }

        .mobile-quick-links-grid {
            grid-template-columns: repeat(2, 1fr);
        }

        .mobile-welcome-content {
            flex-direction: column;
            text-align: center;
            gap: 15px;
        }
    }
}