* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 密码掩码层 */
.password-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.password-mask.hidden {
    display: none;
}

.password-modal {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    min-width: 350px;
    max-width: 90%;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.password-modal h2 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: bold;
}

.password-modal p {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

.password-modal input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.3s ease;
    margin-bottom: 10px;
}

.password-modal input:focus {
    border-color: #3498db;
}

.password-error {
    color: #e74c3c;
    font-size: 13px;
    min-height: 20px;
    margin-bottom: 10px;
    text-align: left;
}

.password-modal button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.password-modal button:hover {
    background: #2980b9;
}

.password-modal button:active {
    background: #21618c;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
}

.admin-container {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏 */
.sidebar {
    width: 250px;
    background: #2c3e50;
    color: white;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    padding: 20px;
    background: #34495e;
    border-bottom: 1px solid #3d5468;
}

.sidebar-header h2 {
    font-size: 20px;
    font-weight: bold;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.nav-item {
    display: block;
    padding: 15px 20px;
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    cursor: pointer;
}

.nav-item:hover {
    background: #34495e;
    color: white;
}

.nav-item.active {
    background: #34495e;
    border-left-color: #3498db;
    color: white;
    font-weight: bold;
}

.nav-item span {
    font-size: 16px;
}

/* 主内容区 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f5f5f5;
}

.content-header {
    background: white;
    padding: 20px 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e0e0e0;
}

.content-header h1 {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

.content-body {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
}

/* 用户列表 */
.user-list {
    display: grid;
    gap: 20px;
}

.user-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.user-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.user-id {
    font-size: 14px;
    color: #999;
}

.user-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.status-complete {
    background: #d4edda;
    color: #155724;
}

.status-incomplete {
    background: #f8d7da;
    color: #721c24;
}

.user-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.info-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.info-value.empty {
    color: #ccc;
    font-style: italic;
}

/* 用户详细信息表 */
.user-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.details-title {
    font-size: 14px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.details-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.details-table th,
.details-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.details-table th {
    background: #f8f9fa;
    color: #666;
    font-weight: 600;
    width: 120px;
}

.details-table td {
    color: #333;
}

.details-table tr:last-child td {
    border-bottom: none;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .admin-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        flex-direction: row;
    }

    .sidebar-nav {
        display: flex;
        flex: 1;
        padding: 0;
    }

    .nav-item {
        flex: 1;
        text-align: center;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .nav-item.active {
        border-left: none;
        border-bottom-color: #3498db;
    }

    .user-info {
        grid-template-columns: 1fr;
    }
}

