/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    overflow-x: hidden;
}

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

.app-container {
    position: relative;
    min-height: 100vh;
    padding-bottom: 60px;
}


.upload-preview{
    display: flex;
    gap: 10px;
}

/* 页面样式 */
.page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #f5f5f5;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    background-color: #2196F3;
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.page-header h1 {
    font-size: 18px;
    font-weight: normal;
}

.back-btn {
    position: absolute;
    left: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.page-content {
    padding: 15px;
    padding-bottom: 80px;
    overflow-y: auto;
    overflow-x: hidden;
    height: auto;
    min-height: calc(100vh - 110px);
}

/* 快速操作区 */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

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

.action-item i {
    font-size: 30px;
    margin-bottom: 10px;
    color: #2196F3;
}

.action-item span {
    font-size: 14px;
}

/* 任务概览 */
.task-summary {
    margin-bottom: 20px;
}

.task-summary h2 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #666;
}

.summary-cards {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}

/* 带grid类的summary-cards使用grid布局 */
.summary-cards[class*="grid"] {
    display: grid;
    justify-content: unset;
}

.summary-card {
    flex: 1;
    padding: 20px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.extended-summary-cards {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.extended-summary-cards .summary-card.large {
    flex: 1;
    padding: 25px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.summary-number {
    font-size: 24px;
    font-weight: bold;
    color: #2196F3;
    margin-bottom: 5px;
}

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

/* 消息列表样式 */
.message-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message-item {
    padding: 15px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

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

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.message-title {
    font-size: 14px;
    font-weight: bold;
}

.message-time {
    font-size: 12px;
    color: #999;
}

.message-content {
    font-size: 14px;
    margin-bottom: 10px;
    color: #666;
}

.message-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 12px;
    color: white;
}

/* 订单列表样式 */
.order-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-item {
    padding: 15px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

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

/* 订单卡片样式 */
.order-card {
    padding: 15px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.order-card.clickable-order-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.order-card.clickable-order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: #f8f9fa;
}

.order-card.clickable-order-card:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.order-body {
    margin: 10px 0;
}

.order-body .order-item {
    padding: 8px 0;
    background: none;
    box-shadow: none;
    cursor: default;
    transition: none;
    margin: 0;
}

.order-body .order-item:hover {
    transform: none;
    box-shadow: none;
}

.order-body .order-item .label {
    color: #666;
    font-size: 14px;
    margin-right: 8px;
}

.order-body .order-item .value {
    color: #333;
    font-size: 14px;
}

.order-actions {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.order-number {
    font-size: 14px;
    font-weight: bold;
}

.order-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 12px;
    color: white;
}

.status-pending {
    background-color: #FFC107;
}

.status-processing {
    background-color: #2196F3;
}

.status-waiting-confirm {
    background-color: #FF9800;
}

.status-assigned {
    background-color: #00BCD4;
}

.status-completed {
    background-color: #4CAF50;
}

.status-rejected {
    background-color: #F44336;
}

/* 紧急标签样式 */
.urgency-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    background-color: #F44336;
    margin-left: 8px;
}

.urgency-badge.urgent {
    background-color: #F44336;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.order-info {
    font-size: 14px;
    margin-bottom: 5px;
    color: #666;
}

.order-meta {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #999;
}

/* 搜索栏和筛选栏 */
.search-bar {
    position: relative;
    margin-bottom: 15px;
}

.search-bar i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.search-bar input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
}

.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.filter-btn {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background-color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.filter-btn.active {
    background-color: #2196F3;
    color: white;
    border-color: #2196F3;
}

.filter-btn:hover:not(.active) {
    background-color: #f5f5f5;
}

/* 底部导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: white;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    text-decoration: none;
    position: relative;
}

.nav-item.active {
    color: #2196F3;
}

.nav-item i {
    font-size: 24px;
    margin-bottom: 5px;
}

.nav-item span {
    font-size: 12px;
}

/* 消息徽章样式 */
.badge {
    position: absolute;
    top: 8px;
    right: 30%;
    background-color: #F44336;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* 订单详情页面样式 */
.order-info-section {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.order-info-section h2 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

.order-detail-item {
    display: flex;
    margin-bottom: 10px;
}

.order-detail-label {
    width: 80px;
    font-size: 14px;
    color: #666;
}

.order-detail-value {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.repair-form-section {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.repair-form-section h2 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

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

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

.form-group textarea,
.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: 'Microsoft YaHei', sans-serif;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 30px;
    padding: 10px 0;
}

.form-actions .btn-primary,
.form-actions .btn-secondary {
    flex: 1;
}

/* 报修表单特殊处理 */
#repair-submit-form {
    padding-bottom: 30px;
}

#repair-form-page .page-content {
    padding-bottom: 100px;
}

.photo-upload-section {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.photo-upload-section h2 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

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

.upload-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 14px;
}

.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    padding: 20px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    background-color: #fafafa;
    cursor: pointer;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: #2196F3;
    background-color: #f0f8ff;
}

.upload-area i {
    font-size: 30px;
    color: #999;
    margin-bottom: 10px;
}

.upload-area span {
    font-size: 14px;
    color: #999;
}

.photo-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 15px;
}

.preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.preview-item .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(255, 0, 0, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* 隐藏文件输入 */
input[type="file"] {
    display: none;
}

/* 提交按钮 */
.submit-section {
    text-align: center;
    margin-bottom: 20px;
}

/* 待处理订单操作区域 */
.pending-actions-section {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* 拒绝原因操作区域 */
.reject-reason-section {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.reject-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.btn-primary {
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #1976D2;
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* 次要按钮样式 */
.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-secondary:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* 个人中心样式补充 */
.profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #2196F3;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

/* 登录页面样式 */
#login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #f5f5f5;
}

.login-logo {
    text-align: center;
    margin-bottom: 20px;
}

.login-logo img {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.login-container h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
}

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

.login-form .form-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.login-form input,
.login-form select {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.login-form select {
    padding-left: 15px;
}

.login-form .btn-primary {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    margin-top: 20px;
}

.login-options {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 14px;
}

.login-options a {
    color: #2196F3;
    text-decoration: none;
    transition: color 0.2s;
}

.login-options a:hover {
    color: #1976D2;
    text-decoration: underline;
}

.avatar i {
    font-size: 40px;
    color: white;
}

.user-info {
    text-align: center;
}

.user-info h2 {
    font-size: 20px;
    margin-bottom: 5px;
    text-align: center;
}

.user-info p {
    font-size: 14px;
    color: #666;
    text-align: center;
}

.menu-list {
    margin-top: 20px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: white;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.menu-item:hover {
    background-color: #f5f5f5;
}

.menu-item i {
    font-size: 20px;
    margin-right: 15px;
    color: #2196F3;
}

.menu-item span {
    font-size: 14px;
}

.menu-item {
    justify-content: space-between;
}

.menu-value {
    font-size: 14px;
    color: #999;
    margin-left: auto;
}

.profile-logout {
    margin-top: 20px;
    padding: 0 15px;
}

.logout-btn {
    width: 100%;
    padding: 15px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.logout-btn:hover {
    background-color: #d32f2f;
}

.logout-btn:active {
    background-color: #c62828;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-content {
        padding: 10px;
        padding-bottom: 90px;
    }
    
    #repair-form-page .page-content {
        padding-bottom: 120px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    .photo-preview {
        gap: 8px;
    }
    
    .preview-item {
        width: 90px;
        height: 90px;
    }
    
    .form-actions {
        margin-bottom: 40px;
    }
}

@media (max-width: 320px) {
    .page-content {
        padding: 8px;
        padding-bottom: 100px;
    }
    
    #repair-form-page .page-content {
        padding-bottom: 130px;
    }
    
    .action-item {
        height: 80px;
    }
    
    .action-item i {
        font-size: 24px;
    }
    
    .summary-card {
        padding: 10px;
    }
    
    .summary-number {
        font-size: 20px;
    }
    
    .photo-preview {
        gap: 6px;
    }
    
    .preview-item {
        width: 75px;
        height: 75px;
    }
    
    .preview-item .remove-btn {
        width: 20px;
        height: 20px;
        font-size: 14px;
    }
}

/* 进度详情页样式 */
.progress-detail-section {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.detail-order-number {
    font-weight: bold;
    font-size: 16px;
}

.detail-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

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

.detail-item {
    display: flex;
    margin-bottom: 15px;
    line-height: 1.5;
}

.detail-item label {
    width: 100px;
    font-weight: bold;
    color: #666;
}

.detail-content-area {
    white-space: pre-wrap;
    word-break: break-word;
}

/* 详情页照片展示 */
.detail-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.detail-section h2 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

.photo-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.photo-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* 图片查看器样式 */
.image-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.image-viewer.active {
    display: flex;
}

.image-viewer-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-viewer-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 5px;
}

.image-viewer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: transform 0.2s;
}

.image-viewer-close:hover {
    transform: scale(1.1);
}

.preview-item img {
    cursor: pointer;
}

/* 签名弹窗样式 */
.signature-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.signature-container {
    background: white;
    border-radius: 10px;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.signature-container h3 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 18px;
    color: #333;
}

.signature-tip {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

#signature-canvas {
    display: block;
    width: 100%;
    height: 300px;
    border: 2px solid #2196F3;
    border-radius: 8px;
    background-color: white;
    cursor: crosshair;
    touch-action: none;
}

.signature-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.signature-actions .btn-secondary,
.signature-actions .btn-primary {
    flex: 1;
    max-width: 120px;
}

@media (max-width: 480px) {
    .signature-container {
        width: 95%;
        padding: 15px;
    }
    
    #signature-canvas {
        height: 250px;
    }
    
    .signature-actions {
        flex-direction: column;
    }
    
    .signature-actions .btn-secondary,
    .signature-actions .btn-primary {
        max-width: 100%;
    }
}

/* ========== 管理员移动端样式 ========== */

/* 头部操作按钮 */
.header-action-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-action-btn:active {
    background: rgba(255, 255, 255, 0.3);
}

/* 快捷操作卡片 */
.quick-actions {
    margin: 20px 0;
}

.quick-actions h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 500;
}

.action-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.action-card {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.action-card:active {
    transform: scale(0.95);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.action-card i {
    font-size: 32px;
    color: #3498db;
}

.action-card span {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* 待处理订单列表 */
.pending-orders-list {
    margin: 20px 0;
}

.pending-orders-list h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 500;
}

/* 筛选标签 */
.filter-tabs {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: transparent;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
}

.filter-tab {
    padding: 8px 20px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: white;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.filter-tab.active {
    background: #3498db;
    border-color: #3498db;
    color: white;
}

/* 管理员人员管理页面 - 筛选区域去掉白色背景 */
#admin-users-page .filter-section {
    background: transparent;
}

#admin-users-page .filter-section .filter-tabs {
    background: transparent;
    padding: 15px 0;
}

/* 订单列表 */
.orders-list {
    padding: 15px;
}

/* 分配订单弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideUp 0.3s ease;
}

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

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 18px;
    color: #333;
    font-weight: 500;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.order-info-brief {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.order-info-brief p {
    margin: 8px 0;
    font-size: 14px;
    color: #666;
}

.order-info-brief strong {
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* 统计卡片 */
.stats-summary {
    margin: 20px 0;
}

.stats-summary h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 500;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stat-card {
    background: white;
    padding: 20px 15px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 8px;
}

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

/* 科室排行 */
.department-stats {
    margin: 20px 0;
}

.department-stats h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 500;
}

.ranking-item {
    background: white;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.ranking-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #3498db;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.ranking-item:nth-child(1) .ranking-number {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.ranking-item:nth-child(2) .ranking-number {
    background: linear-gradient(135deg, #C0C0C0 0%, #A9A9A9 100%);
}

.ranking-item:nth-child(3) .ranking-number {
    background: linear-gradient(135deg, #CD7F32 0%, #8B4513 100%);
}

.ranking-content {
    flex: 1;
}

.ranking-name {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    margin-bottom: 5px;
}

.ranking-stats {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #999;
}

/* 空消息 */
.empty-message {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}

/* 按钮尺寸 */
.btn-small {
    padding: 8px 16px !important;
    font-size: 13px !important;
}

/* 管理员首页新样式 */
.summary-cards.grid-4 {
    grid-template-columns: repeat(2, 1fr);
}

.summary-cards.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.summary-cards.grid-2 {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 12px;
}

.summary-cards.grid-1 {
    grid-template-columns: 1fr;
    margin-top: 12px;
}

.summary-card.wide {
    padding: 15px;
}

.summary-card.wide .summary-label {
    font-size: 14px;
    margin-bottom: 8px;
}

.summary-card.wide .summary-number {
    font-size: 24px;
}

/* 可点击的任务概览卡片 */
.summary-card.clickable-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.summary-card.clickable-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: #f8f9fa;
}

.summary-card.clickable-card:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 统计分析 */
.stats-analysis {
    margin: 20px 0;
}

.stats-analysis > h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 500;
}

.analysis-section {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.analysis-section h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 12px;
    font-weight: 500;
}

.department-list,
.equipment-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dept-item,
.equip-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.dept-item-name,
.equip-item-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.dept-item-stats,
.equip-item-stats {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #666;
}

.dept-item-stats span,
.equip-item-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 标签页容器 */
.tabs-container {
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    padding: 15px 15px 0;
    margin: -15px -15px 15px;
}

.tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #f0f0f0;
}

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

.tab-btn.active {
    color: #3498db;
    font-weight: 500;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #3498db;
}

.tab-content {
    padding: 15px 0;
}

/* 用户列表 */
.users-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-card {
    background: white;
    padding: 12px 15px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.user-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.user-role-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.user-role-badge.medical {
    background: #e3f2fd;
    color: #1976d2;
}

.user-role-badge.technician {
    background: #f3e5f5;
    color: #7b1fa2;
}

.user-role-badge.admin {
    background: #fff3e0;
    color: #f57c00;
}

.user-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 5px;
}

.user-info-item {
    display: flex;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.user-info-item i {
    width: 16px;
    color: #999;
}

.user-card-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.action-icon-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.action-icon-btn.edit {
    background: #e3f2fd;
    color: #1976d2;
}

.action-icon-btn.delete {
    background: #ffebee;
    color: #d32f2f;
}

.action-icon-btn:active {
    transform: scale(0.9);
}

/* 标签页操作按钮 */
.tab-actions {
    padding: 0 0 15px 0;
}

.add-user-btn {
    width: 100%;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* 科室列表 */
.departments-container {
    padding: 15px 0;
}

.add-dept-btn {
    width: 100%;
    margin-bottom: 15px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

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

.form-group .required {
    color: #e74c3c;
}

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

.dept-card {
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dept-card-content {
    flex: 1;
}

.dept-card-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.dept-card-info {
    font-size: 13px;
    color: #999;
}

.dept-card-actions {
    display: flex;
    gap: 8px;
}

/* 消息列表 */
.message-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message-item {
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
}

.message-item.unread {
    border-left: 4px solid #3498db;
}

.message-item.unread::before {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 8px;
    height: 8px;
    background: #e74c3c;
    border-radius: 50%;
}

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

.message-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.message-time {
    font-size: 12px;
    color: #999;
}

.message-content {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.message-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin-top: 8px;
}

.message-type-badge.system {
    background: #e3f2fd;
    color: #1976d2;
}

.message-type-badge.order {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* 待确认订单操作区域 */
.confirm-actions-section {
    margin-top: 20px;
    padding: 20px;
    background: #fff3cd;
    border-radius: 12px;
    border-left: 4px solid #ffc107;
}

.confirm-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #856404;
    font-size: 14px;
}

.confirm-hint i {
    font-size: 18px;
}

.confirm-buttons {
    display: flex;
    gap: 12px;
}

.confirm-btn,
.reject-confirm-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

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

.btn-success:active {
    background: #218838;
    transform: scale(0.98);
}

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

.btn-danger:active {
    background: #c82333;
    transform: scale(0.98);
}

/* 拒绝确认区域 */
.reject-confirm-section {
    margin-top: 20px;
    padding: 20px;
    background: #f8d7da;
    border-radius: 12px;
}

/* 提交拒绝按钮 - 保持btn-secondary样式，只改变颜色为红色 */
#submit-reject-confirm-btn {
    background-color: #dc3545 !important;
}

#submit-reject-confirm-btn:hover {
    background-color: #c82333 !important;
}
    border-left: 4px solid #dc3545;
}

.reject-confirm-section .form-group {
    margin-bottom: 15px;
}

.reject-confirm-section label {
    display: block;
    font-size: 14px;
    color: #721c24;
    margin-bottom: 8px;
    font-weight: 500;
}

.reject-confirm-section textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

.reject-confirm-section textarea:focus {
    outline: none;
    border-color: #dc3545;
}
