﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    width: 100%;
    max-width: 800px;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.header {
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .header::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></svg>');
        opacity: 0.3;
    }

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.logo-text {
    font-size: 28px;
    font-weight: bold;
}

.system-title {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 500;
}

.system-description {
    font-size: 16px;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.5;
}

.login-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    color: #2c3e50;
    font-weight: 500;
    font-size: 16px;
}

.input-with-button {
    display: flex;
    height: 55px;
}

.form-input {
    flex: 1;
    padding: 0 18px;
    border: 2px solid #e1e8ed;
    border-radius: 12px 0 0 12px;
    font-size: 16px;
    transition: all 0.3s;
    background-color: #f8f9fa;
}

    .form-input:focus {
        border-color: #3498db;
        outline: none;
        background-color: white;
    }

.user-select-btn {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 0 12px 12px 0;
    padding: 0 25px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: bold;
    font-size: 16px;
    min-width: 100px;
}

    .user-select-btn:active {
        background-color: #2980b9;
        transform: scale(0.98);
    }

.password-input {
    width: 100%;
    padding: 0 18px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
    height: 55px;
    background-color: #f8f9fa;
}

    .password-input:focus {
        border-color: #3498db;
        outline: none;
        background-color: white;
    }

.login-btn {
    width: 100%;
    padding: 16px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
    box-shadow: 0 4px 0 #2980b9;
    height: 60px;
}

    .login-btn:active {
        background-color: #2980b9;
        transform: translateY(2px);
        box-shadow: 0 2px 0 #2471a3;
    }

/* 用户选择对话框样式 */
.user-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.user-dialog {
    width: 90%;
    max-width: 500px;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}

.dialog-header {
    padding: 20px;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: white;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
}

.user-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    max-height: 400px;
}

.user-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

    .user-item:active {
        background-color: #f8f9fa;
        transform: scale(0.98);
    }

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #3498db;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
    margin-right: 15px;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 500;
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 5px;
}

.user-department {
    font-size: 14px;
    color: #7f8c8d;
}

.dialog-footer {
    padding: 15px;
    text-align: center;
    border-top: 1px solid #e1e8ed;
}

.close-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 30px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: bold;
    font-size: 16px;
    width: 100%;
}

    .close-btn:active {
        background-color: #c0392b;
        transform: scale(0.98);
    }

/* 主界面样式 */
.main-container {
    width: 100%;
    max-width: 1000px;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: none;
    flex-direction: column;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: white;
}

.welcome-text {
    font-size: 24px;
    font-weight: bold;
}

.logout-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    font-size: 16px;
}

    .logout-btn:active {
        background-color: rgba(255, 255, 255, 0.3);
        transform: scale(0.98);
    }

.dashboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 30px;
}

.dashboard-card {
    background-color: white;
    border-radius: 15px;
    padding: 25px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid #f1f2f6;
    transition: transform 0.3s;
}

    .dashboard-card:active {
        transform: scale(0.98);
    }

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
    font-size: 24px;
    color: white;
}

.icon-today {
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
}

.icon-completed {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.icon-pending {
    background: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
}

.card-title {
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.card-value {
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
}

.recent-tasks {
    background-color: white;
    border-radius: 15px;
    margin: 0 30px 30px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f2f6;
}

.section-title {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

    .section-title::before {
        content: "";
        display: inline-block;
        width: 5px;
        height: 20px;
        background-color: #3498db;
        border-radius: 3px;
        margin-right: 10px;
    }

.task-list {
    list-style-type: none;
}

.task-item {
    padding: 18px 0;
    border-bottom: 1px solid #f1f2f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

    .task-item:active {
        background-color: #f8f9fa;
        border-radius: 10px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .task-item:last-child {
        border-bottom: none;
    }

.task-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.task-name {
    font-weight: 500;
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 5px;
}

.task-equipment {
    font-size: 14px;
    color: #7f8c8d;
}

.task-status {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.status-completed {
    background-color: #d5f4e6;
    color: #27ae60;
}

.status-pending {
    background-color: #fef5e7;
    color: #f39c12;
}

.status-overdue {
    background-color: #fdeaea;
    color: #e74c3c;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .dashboard {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .app-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .welcome-text {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 20px 15px;
    }

    .login-form {
        padding: 20px 15px;
    }

    .dashboard, .recent-tasks {
        padding: 20px 15px;
        margin: 0 15px 20px;
    }
}
