* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.phone-container {
    width: 375px;
    height: 812px;
    background: #000;
    border-radius: 40px;
    padding: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.status-bar {
    height: 44px;
    background: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.status-left {
    display: flex;
    align-items: center;
}

.status-right {
    display: flex;
    align-items: center;
    gap: 5px;
}

.battery {
    width: 25px;
    height: 12px;
    border: 1px solid #fff;
    border-radius: 2px;
    position: relative;
}

.battery::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 3px;
    width: 2px;
    height: 6px;
    background: #fff;
    border-radius: 0 1px 1px 0;
}

.battery-level {
    height: 100%;
    width: 80%;
    background: #fff;
    border-radius: 1px;
}

.main-content {
    flex: 1;
    background: #f5f5f5;
    overflow-y: auto;
    padding: 12px;
}

/* 顶部导航栏 */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 5px;
}

.nav-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.nav-actions {
    display: flex;
    align-items: center;
}

.notification-icon {
    position: relative;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.notification-icon:hover {
    background: rgba(102, 126, 234, 0.1);
}

.notification-icon .icon {
    font-size: 20px;
    color: #666;
}

.notification-icon .badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff4757;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    font-weight: 600;
    border: 2px solid #fff;
}

/* 用户信息区域 */
.user-info-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.user-avatar {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    backdrop-filter: blur(10px);
}

.avatar-icon {
    font-size: 30px;
}

.user-details {
    flex: 1;
}

.user-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.user-id, .user-phone {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 2px;
}

.user-status {
    text-align: right;
}

.status-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    backdrop-filter: blur(10px);
}

/* 工单任务区域 */
.work-order-section {
    background: #fff;
    border-radius: 12px;
    margin: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.task-count {
    font-size: 14px;
    color: #666;
}

/* 状态切换标签 */
.status-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 16px;
}

.status-tabs .tab-item {
    flex: 1;
    padding: 12px 16px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    color: #666;
}

.status-tabs .tab-item.active {
    background: #667eea;
    color: #fff;
}

.status-tabs .tab-text {
    font-size: 14px;
    font-weight: 500;
}

.status-tabs .tab-count {
    position: absolute;
    top: -5px;
    right: 8px;
    background: #ff4757;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 8px;
    min-width: 16px;
    text-align: center;
}

/* 工单列表 */
.work-order-list {
    max-height: 400px;
    overflow-y: auto;
}

.work-order-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.work-order-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.order-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.order-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.order-status.pending {
    background: #fff3cd;
    color: #856404;
}

.order-status.processing {
    background: #d1ecf1;
    color: #0c5460;
}

.progress-badge {
    background: #667eea;
    color: #fff;
    padding: 6px 12px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
    white-space: nowrap;
}

.order-status.completed {
    background: #d4edda;
    color: #155724;
}

/* 工单信息 */
.order-info {
    margin-bottom: 16px;
}

.info-row {
    display: flex;
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.4;
}

.label {
    color: #666;
    min-width: 80px;
    flex-shrink: 0;
}

.value {
    color: #333;
    flex: 1;
}

/* 操作按钮 */
.order-actions {
    display: flex;
    gap: 12px;
}

.btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #667eea;
    color: #fff;
}

.btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f8f9fa;
    color: #667eea;
    border: 1px solid #667eea;
}

.btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

/* 底部Tabbar */
.tabbar {
    height: 60px;
    background: #fff;
    border-top: 1px solid #e9ecef;
    display: flex;
    flex-shrink: 0;
}

.tabbar .tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #999;
}

.tabbar .tab-item.active {
    color: #667eea;
}

.tabbar .tab-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

.tabbar .tab-text {
    font-size: 12px;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 400px) {
    .phone-container {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        padding: 0;
    }
    
    .phone-screen {
        border-radius: 0;
    }
}

/* 自定义对话框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-dialog {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    width: 300px;
    max-width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    text-align: center;
}

.modal-content {
    margin-bottom: 20px;
}

.modal-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.modal-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.modal-buttons {
    display: flex;
    gap: 12px;
}

.modal-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn.primary {
    background: #667eea;
    color: #fff;
}

.modal-btn.primary:hover {
    background: #5a6fd8;
}

.modal-btn.secondary {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e9ecef;
}

.modal-btn.secondary:hover {
    background: #e9ecef;
}

/* 滚动条样式 */
.work-order-list::-webkit-scrollbar {
    width: 4px;
}

.work-order-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.work-order-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.work-order-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 项目管理区域 */
.project-section {
    background: #fff;
    border-radius: 12px;
    margin: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 主切换标签 */
.main-tabs {
    display: flex;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 16px;
}

.main-tabs .tab-item {
    flex: 1;
    text-align: center;
    padding: 12px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.main-tabs .tab-item.active {
    background: #007bff;
    color: #fff;
}

.main-tabs .tab-item:not(.active) {
    color: #666;
}

.main-tabs .tab-item:not(.active):hover {
    background: #e9ecef;
}

/* Tab内容区域 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 项目列表 */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.project-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.project-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.project-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.project-status.active {
    background: #e3f2fd;
    color: #1976d2;
}

.project-status.completed {
    background: #e8f5e8;
    color: #2e7d32;
} 