/* ==========================================
   PC端工作流弹窗样式
   简洁、清晰、易维护
   ========================================== */

/* 弹窗遮罩层 */
.pc-workflow-modal {
    position: fixed;
    top: 76px; /* 从导航栏下方开始 */
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    padding: 2rem;
}

.pc-workflow-modal.hidden {
    display: none;
}

/* 弹窗容器 */
.pc-workflow-modal-container {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 1600px;
    max-width: 95vw;
    height: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* ==========================================
   头部样式
   ========================================== */

.pc-workflow-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    background: white;
}

.modal-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-title-bar {
    width: 4px;
    height: 24px;
    background: #3b82f6;
    border-radius: 2px;
}

.modal-title-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.modal-close-btn {
    width: 36px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 24px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close-btn:hover {
    background: #f3f4f6;
    color: #111827;
}

/* ==========================================
   内容区布局
   ========================================== */

.pc-workflow-modal-body {
    flex: 1;
    display: flex;
    gap: 2rem;
    padding: 1.5rem 2rem 1.5rem 2rem;
    overflow: hidden;
}

/* 左侧：媒体展示区（占78%） */
.modal-media-section {
    flex: 0 0 calc(78% - 1rem);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* 右侧：信息展示区（占22%） */
.modal-info-section {
    flex: 0 0 calc(22% - 1rem);
    overflow-y: auto;
}

/* ==========================================
   媒体展示样式
   ========================================== */

.modal-main-media {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 宽高比 */
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.modal-media-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 媒体指示器 */
.modal-media-indicator {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    color: white;
    padding: 0.4rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 400;
    pointer-events: none;
}

/* 导航按钮 */
.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: none;
    border-radius: 28px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal-nav-btn .material-icons {
    font-size: 24px;
}

.modal-nav-btn:hover:not(:disabled) {
    background: white;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #333;
}

.modal-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.modal-prev-btn {
    left: 1.5rem;
}

.modal-next-btn {
    right: 1.5rem;
}

/* 缩略图区域 */
.modal-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    background: transparent;
    scrollbar-width: none; /* Firefox 隐藏滚动条 */
    -ms-overflow-style: none; /* IE/Edge 隐藏滚动条 */
}

/* 隐藏滚动条但保持滚动功能 */
.modal-thumbnails::-webkit-scrollbar {
    display: none;
}

.modal-thumbnail {
    flex-shrink: 0;
    width: 55px;
    height: 55px;
    border-radius: 0.375rem;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #e5e7eb;
    transition: border-color 0.2s ease;
    position: relative;
    background: #f9fafb;
}

.modal-thumbnail:hover {
    border-color: #93c5fd;
}

.modal-thumbnail.active {
    border-color: #60a5fa;
}

.modal-thumbnail img,
.modal-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 禁用缩略图视频的交互和控制 */
.modal-thumbnail video {
    pointer-events: none;
}

/* 隐藏视频的原生控制按钮 */
.modal-thumbnail video::-webkit-media-controls {
    display: none !important;
}

.modal-thumbnail video::-webkit-media-controls-enclosure {
    display: none !important;
}

.modal-thumbnail video::-webkit-media-controls-panel {
    display: none !important;
}

/* Firefox */
.modal-thumbnail video::-moz-media-controls {
    display: none !important;
}

.modal-thumbnail .video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    z-index: 10;
    pointer-events: none; /* 确保点击穿透到容器 */
    transition: all 0.2s ease;
}

.modal-thumbnail:hover .video-icon {
    background: rgba(59, 130, 246, 0.85);
    transform: translate(-50%, -50%) scale(1.1);
}

/* ==========================================
   信息区样式
   ========================================== */

.modal-info-container {
    background: #f9fafb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-info-block {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-info-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.modal-info-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* 信息列表 */
.modal-info-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.info-label {
    color: #6b7280;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.info-value {
    color: #111827;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: right;
}

/* 描述区域 */
.modal-description-wrapper {
    max-height: 120px;
    overflow-y: auto;
}

.modal-description-wrapper::-webkit-scrollbar {
    width: 4px;
}

.modal-description-wrapper::-webkit-scrollbar-track {
    background: #e5e7eb;
    border-radius: 2px;
}

.modal-description-wrapper::-webkit-scrollbar-thumb {
    background: #9ca3af;
    border-radius: 2px;
}

.modal-description-text {
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

/* 流程列表 */
.modal-process-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-process-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.process-step {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.process-text {
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* 咨询按钮 */
.modal-action-section {
    padding-top: 1rem;
}

.modal-consult-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #07C160 0%, #06AE56 100%);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(7, 193, 96, 0.3);
}

.modal-consult-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(7, 193, 96, 0.4);
    background: linear-gradient(135deg, #06AE56 0%, #07C160 100%);
}

.modal-consult-btn:active {
    transform: translateY(0);
}

/* ==========================================
   响应式适配
   ========================================== */

/* 4K 超大屏（3840px+） */
@media (min-width: 2560px) {
    .pc-workflow-modal-container {
        width: 1600px;
        height: 900px;
    }
}

/* 2K 大屏（2560px - 3839px） */
@media (min-width: 1920px) and (max-width: 2559px) {
    .pc-workflow-modal-container {
        width: 1600px;
        height: 900px;
    }
}

/* 1080p 全高清（1600px - 1919px） */
@media (max-width: 1919px) {
    .pc-workflow-modal-container {
        width: 1600px;
        height: 900px;
    }
}

/* 中等屏幕（1440px - 1599px） */
@media (max-width: 1600px) {
    .pc-workflow-modal-container {
        width: 1400px;
        height: 800px;
    }
}

@media (max-width: 1440px) {
    .pc-workflow-modal-container {
        width: 1200px;
        height: 700px;
    }
}

@media (max-width: 1200px) {
    .pc-workflow-modal-container {
        width: 1000px;
        height: 600px;
    }
    
    .pc-workflow-modal-body {
        gap: 1.5rem;
        padding: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .pc-workflow-modal-container {
        width: 95vw;
        height: 85vh;
    }
    
    .modal-media-section {
        flex: 0 0 calc(65% - 1rem);
    }
    
    .modal-info-section {
        flex: 0 0 calc(35% - 1rem);
    }
}

/* 平板及以下设备隐藏此弹窗，使用移动端弹窗 */
@media (max-width: 768px) {
    .pc-workflow-modal {
        display: none !important;
    }
}

