/* 员工信息卡片插件样式文件 */

/* 验证表单样式 */
.eic-verification-form {
    max-width: 400px;
    margin: 20px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.eic-verification-form h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 600;
}

.eic-verification-form p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.eic-form-group {
    margin-bottom: 20px;
}

.eic-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    text-align: left;
}

.eic-form-group input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.eic-form-group input[type="email"]:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.eic-verify-btn {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-family: inherit;
}

.eic-verify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 124, 186, 0.3);
}

.eic-verify-btn:active {
    transform: translateY(0);
}

.eic-verify-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 加载动画 */
#eic-loading {
    text-align: center;
    padding: 20px;
}

.eic-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: eic-spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes eic-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 模态框样式 */
.eic-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.eic-modal-content {
    position: relative;
    background-color: #fff;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: eic-modal-slide-in 0.3s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes eic-modal-slide-in {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.eic-close {
    position: absolute;
    right: 15px;
    top: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
}

.eic-close:hover {
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    transform: scale(1.1);
}

/* 员工卡片样式 */
.eic-employee-card {
    padding: 40px 30px 30px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.eic-employee-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.eic-employee-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.eic-employee-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.eic-employee-position {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.eic-employee-info {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    text-align: left;
}

.eic-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.eic-info-item:last-child {
    margin-bottom: 0;
}

.eic-info-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    opacity: 0.8;
    flex-shrink: 0;
}

.eic-verified-badge {
    background: #10b981;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 15px;
    display: inline-block;
    position: relative;
    z-index: 1;
}

/* 错误提示样式 */
.eic-error-card {
    padding: 40px 30px;
    text-align: center;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.eic-error-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.eic-error-icon {
    font-size: 48px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.eic-error-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.eic-error-message {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .eic-modal {
        padding: 20px;
    }
    
    .eic-modal-content {
        width: 100%;
        max-width: none;
    }
    
    .eic-verification-form {
        margin: 10px;
        padding: 20px;
    }
    
    .eic-employee-card,
    .eic-error-card {
        padding: 30px 20px;
    }
    
    .eic-employee-photo {
        width: 100px;
        height: 100px;
        font-size: 40px;
    }
    
    .eic-employee-name {
        font-size: 24px;
    }
    
    .eic-employee-position {
        font-size: 14px;
    }
    
    .eic-info-item {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .eic-verification-form {
        padding: 15px;
    }
    
    .eic-verification-form h3 {
        font-size: 20px;
    }
    
    .eic-employee-card,
    .eic-error-card {
        padding: 25px 15px;
    }
    
    .eic-employee-name {
        font-size: 20px;
    }
    
    .eic-error-title {
        font-size: 20px;
    }
}

/* 无障碍访问 */
.eic-verify-btn:focus,
.eic-form-group input:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.eic-close:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* 打印样式 */
@media print {
    .eic-modal {
        position: static;
        background: none;
        backdrop-filter: none;
    }
    
    .eic-modal-content {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .eic-close {
        display: none;
    }
    
    .eic-employee-card {
        background: #f5f5f5 !important;
        color: #333 !important;
    }
    
    .eic-employee-info {
        background: #fff !important;
        border: 1px solid #ddd;
    }
}