/* ==========================================
   谷谷AI智影 - 办公环境展示样式
   ========================================== */

.office-environment {
    padding: 80px 0;
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

.office-environment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.office-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.office-header {
    text-align: center;
    margin-bottom: 4rem;
}

.office-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--text-primary);
    margin-bottom: 1rem;
    background: var(--gradient-cyber);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    text-shadow: var(--glow-purple);
}

.office-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 办公环境网格布局 */
.office-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* 办公环境卡片 */
.office-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

.office-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(168, 85, 247, 0.3),
        0 10px 25px rgba(0, 0, 0, 0.2);
    border-color: var(--neon-purple);
}

.office-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.office-card:hover::before {
    left: 100%;
}

/* 图片容器 */
.office-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.office-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    filter: brightness(0.9) contrast(1.1);
}

.office-card:hover .office-image {
    transform: scale(1.1);
    filter: brightness(1) contrast(1.2);
}

/* 图片遮罩层 */
.office-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(168, 85, 247, 0.2) 0%,
        rgba(236, 72, 153, 0.2) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.office-card:hover .office-image-overlay {
    opacity: 1;
}

/* 卡片内容 */
.office-content {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.office-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.office-card-title i {
    color: var(--neon-purple);
    font-size: 1.1rem;
}

.office-card-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 特殊布局：主要区域卡片 */
.office-card.featured {
    grid-column: span 2;
}

.office-card.featured .office-image-container {
    height: 300px;
}

.office-card.featured .office-card-title {
    font-size: 1.5rem;
}

/* 统计信息 */
.office-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.office-stat-item {
    text-align: center;
    padding: 1rem;
}

.office-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--neon-purple);
    margin-bottom: 0.5rem;
    text-shadow: var(--glow-purple);
}

.office-stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 放大查看模态框 */
.office-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.office-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.office-modal-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    animation: zoomIn 0.3s ease;
}

.office-modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.office-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: var(--neon-purple);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.office-modal-close:hover {
    background: var(--neon-pink);
    transform: scale(1.1);
}

.office-modal-info {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 1.1rem;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { 
        opacity: 0;
        transform: scale(0.8);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .office-card.featured {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .office-environment {
        padding: 60px 0;
    }
    
    .office-container {
        padding: 0 1rem;
    }
    
    .office-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .office-image-container {
        height: 200px;
    }
    
    .office-card.featured .office-image-container {
        height: 220px;
    }
    
    .office-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .office-stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .office-grid {
        grid-template-columns: 1fr;
    }
    
    .office-stats {
        grid-template-columns: 1fr;
    }
    
    .office-content {
        padding: 1rem;
    }
    
    .office-modal-content {
        max-width: 95vw;
        max-height: 85vh;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .office-card {
        border: 2px solid #fff;
        background: #000;
    }
    
    .office-card-title {
        color: #fff;
    }
}

/* 减少动画偏好支持 */
@media (prefers-reduced-motion: reduce) {
    .office-card,
    .office-image,
    .office-card::before {
        transition: none;
        animation: none;
    }
    
    .office-card:hover {
        transform: none;
    }
    
    .office-card:hover .office-image {
        transform: none;
    }
}
