/* works-modal-v2.css - 全新网格视图弹窗样式 */

.works-modal-content {
    display: flex;
    flex-direction: column;
    max-width: 1200px !important;
    width: 90% !important;
    height: 85vh !important;
    max-height: min(92vh, 980px);
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
    padding: 0 !important;
    position: relative;
    min-height: 0;
}

.works-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.05);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    z-index: 10;
}

.works-modal-close:hover {
    background: #ff4d4d;
    color: white;
    transform: rotate(90deg);
}

.works-modal-header-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.wm-header-info {
    max-width: 70%;
}

.wm-header-info .modal-category {
    font-size: 0.9rem;
    color: var(--primary-color, #4facfe);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: inline-block;
}

.wm-header-info .modal-title {
    font-size: 2.2rem;
    color: #2c3e50;
    margin: 0 0 12px 0;
    line-height: 1.3;
    font-weight: 800;
}
.wm-header-info .modal-title span {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wm-header-info .modal-desc {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.wm-header-stats {
    display: flex;
    gap: 40px;
}

.wm-header-stats .modal-stat {
    text-align: center;
    background: #fff;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.wm-header-stats .modal-stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 6px;
}

.wm-header-stats .modal-stat-label {
    font-size: 0.85rem;
    color: #888;
    font-weight: 600;
}

.works-modal-body-v2 {
    padding: 30px 40px;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    background: #fdfdfd;
    -webkit-overflow-scrolling: touch;
}

/* 隐藏滚动条但保留功能 */
.works-modal-body-v2::-webkit-scrollbar {
    width: 8px;
}
.works-modal-body-v2::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
.works-modal-body-v2::-webkit-scrollbar-thumb {
    background: #ccc; 
    border-radius: 4px;
}
.works-modal-body-v2::-webkit-scrollbar-thumb:hover {
    background: #aaa; 
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.work-card-v2 {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
}

.work-card-v2:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.work-card-media--detail {
    cursor: pointer;
}

.work-card-overlay--detail {
    cursor: pointer;
}

.work-card-v2--has-detail .work-card-action--detail {
    cursor: pointer;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.45);
}

.work-card-overlay-hint {
    display: block;
    margin-top: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.work-card-overlay--detail {
    flex-direction: column;
}

.work-card-media {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

.work-card-video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    color: #fff;
    font-size: 2.5rem;
}

.work-card-media img, .work-card-media video, .work-card-media iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border: none;
}

.work-card-v2:hover .work-card-media img {
    transform: scale(1.05);
}

.work-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.work-card-v2:hover .work-card-overlay {
    opacity: 1;
}

.play-icon-btn {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 1.2rem;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.work-card-v2:hover .play-icon-btn {
    transform: scale(1);
}

.work-card-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.work-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.work-card-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin: 0 0 15px 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.work-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.work-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #555;
    font-weight: 500;
}

.work-card-author i {
    color: #4facfe;
    background: rgba(79, 172, 254, 0.1);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.work-card-action {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.work-card-action:hover {
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
    transform: translateY(-2px);
    color: white;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .works-modal {
        padding: 0 !important;
        align-items: stretch !important;
    }

    .works-modal-content {
        width: 100% !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        border-radius: 0 !important;
    }

    .works-modal-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        z-index: 20;
    }

    .works-modal-header-v2 {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        padding: 14px 52px 10px 16px;
        gap: 0;
        flex-shrink: 0;
        min-height: auto;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .wm-header-info {
        max-width: 100%;
        width: 100%;
    }

    /* 手机端仅显示分类名称 */
    .wm-header-info .modal-title,
    .wm-header-info .modal-desc {
        display: none !important;
    }

    .wm-header-stats {
        display: none !important;
    }

    .wm-header-info .modal-category {
        margin-bottom: 0;
        font-size: 1rem;
        padding: 6px 14px;
        background: rgba(79, 172, 254, 0.12);
        border-radius: 999px;
    }

    .works-modal-body-v2 {
        padding: 12px 16px 20px;
        flex: 1 1 0;
        min-height: 0;
        overflow-y: auto;
    }

    .works-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .work-card-media {
        height: 180px;
    }

    /* 手机无 hover，始终显示操作层；置于视频之上接收点击 */
    .work-card-overlay {
        opacity: 1;
        background: rgba(0, 0, 0, 0.28);
        z-index: 3;
        pointer-events: auto;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .work-card-media video {
        pointer-events: none;
    }

    .work-card-media--detail,
    .work-card-action {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .play-icon-btn {
        transform: scale(1);
        pointer-events: none;
    }

    .work-card-footer--detail {
        flex-wrap: wrap;
        gap: 10px;
    }

    .work-card-v2--has-detail .work-card-action--detail {
        flex: 1 1 100%;
        text-align: center;
        padding: 10px 16px;
        font-size: 0.95rem;
    }

    .work-card-overlay-hint {
        font-size: 0.8rem;
    }
}


/* 作品模块实时标数 (位于标题右侧) */
.module-works-count-badge {
    display: inline-block;
    margin-left: 12px;
    font-size: 1.2rem;
    font-weight: 900;
    vertical-align: middle;
    letter-spacing: 1px;
    
    /* 蓝色扫光文字效果 */
    background: linear-gradient(
        120deg,
        #4facfe 0%,
        #00f2fe 40%,
        #ffffff 50%,
        #00f2fe 60%,
        #4facfe 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-shine-sweep 3s linear infinite;
    pointer-events: none;
    text-transform: uppercase;
}

@keyframes text-shine-sweep {
    to {
        background-position: 200% center;
    }
}

/* 视频号关注指引样式 */
.guide-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.guide-cover-section {
    display: flex;
    align-items: center;
    gap: 30px;
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
}

.guide-cover-wrapper {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 2px solid #fff;
}

.guide-cover-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.guide-cover-info h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-weight: 800;
}

.guide-cover-info p {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}

.guide-steps-section {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
}

.guide-steps-title {
    font-size: 1.3rem;
    color: #2c3e50;
    margin: 0 0 25px 0;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.guide-step-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.guide-step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.guide-step-img {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #e9ecef;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.guide-step-img img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.guide-step-text {
    font-size: 1rem;
    color: #333;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 768px) {
    .guide-cover-section {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .guide-steps-grid {
        grid-template-columns: 1fr;
    }
}
