/* AI员工页面专属样式 */

/* ==================== 页面头部 ==================== */
.page-header {
    padding: 120px 0 80px;
    text-align: center;
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.05) 0%, transparent 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #00f0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

/* ==================== AI员工展示区域 ==================== */
.employees-section {
    padding: 0 0 120px;
    min-height: 60vh;
}

.employees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

/* 加载状态 */
.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 3px solid rgba(0, 212, 255, 0.1);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-state p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* 空状态 */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ==================== AI员工卡片 ==================== */
.employee-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.employee-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.employee-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.2);
}

.employee-card:hover::before {
    opacity: 1;
}

/* 视频容器 */
.employee-video-container {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 aspect ratio */
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    overflow: hidden;
    /* 微信浏览器硬件加速 */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.employee-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    /* 微信浏览器视频兼容 */
    background: #000;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    display: block;
    z-index: 1;
}

.employee-card:hover .employee-video {
    transform: translateZ(0) scale(1.05);
    -webkit-transform: translateZ(0) scale(1.05);
}

/* 视频遮罩 */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none; /* 不阻挡视频 */
}

.employee-card:hover .video-overlay {
    opacity: 1;
}

.view-details-btn {
    padding: 12px 32px;
    background: var(--accent-color);
    color: var(--bg-primary);
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    transform: translateY(10px);
    opacity: 0;
    pointer-events: auto; /* 按钮可点击 */
}

.employee-card:hover .view-details-btn {
    transform: translateY(0);
    opacity: 1;
}

.view-details-btn:hover {
    background: var(--accent-hover);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.4);
}

/* 员工信息 */
.employee-info {
    padding: 30px;
}

.employee-header {
    margin-bottom: 20px;
}

.employee-name {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.employee-position {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.employee-description {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.employee-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.employee-tag {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border-radius: 12px;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.employee-tag:hover {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-color);
    border-color: var(--accent-color);
}

/* ==================== 员工详情模态框 ==================== */
.employee-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.employee-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    max-width: 1200px;
    width: 95%;
    max-height: 85vh;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8);
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10;
    backdrop-filter: blur(10px);
}

.modal-close:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: rotate(90deg);
}

.modal-close svg {
    width: 20px;
    height: 20px;
    color: var(--text-primary);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-height: 85vh;
    overflow: hidden;
}

/* 模态框视频区域 */
.modal-video-container {
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    max-height: 85vh;
}

.modal-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 微信浏览器视频兼容 */
    background: #000;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* 模态框信息区域 */
.modal-info {
    padding: 40px;
    overflow-y: auto;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #00f0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-position {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-color);
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.modal-description {
    margin-bottom: 40px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

.modal-description p {
    margin-bottom: 15px;
}

.modal-capabilities {
    margin-bottom: 40px;
}

.modal-capabilities h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.capabilities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.capability-tag {
    padding: 10px 20px;
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 0.95rem;
    border: 1px solid rgba(0, 212, 255, 0.3);
    transition: var(--transition-fast);
}

.capability-tag:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

/* 统计数据 */
.modal-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 30px;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent-color);
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1024px) {
    .employees-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 30px;
    }
    
    .modal-content {
        max-width: 900px;
        width: 90%;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
        max-height: 80vh;
    }
    
    .modal-video-container {
        min-height: 350px;
        max-height: 400px;
    }
    
    .modal-info {
        padding: 35px 25px;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .employees-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .employee-info {
        padding: 24px;
    }
    
    .modal-content {
        max-height: 90vh;
        max-width: 95%;
        width: 95%;
        border-radius: 16px;
    }
    
    .modal-body {
        display: block;
        overflow-y: auto;
        max-height: 90vh;
    }
    
    .modal-video-container {
        position: relative;
        min-height: 280px;
        max-height: 350px;
        width: 100%;
    }
    
    .modal-info {
        padding: 25px 20px;
        max-height: none;
    }
    
    .modal-title {
        font-size: 2rem;
    }
    
    .modal-stats {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px;
    }
    
    .modal-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 100px 0 60px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
    
    .employees-section {
        padding: 0 0 80px;
    }
    
    .employee-name {
        font-size: 1.3rem;
    }
    
    .modal-title {
        font-size: 1.8rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
}

