* {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    background: #000;
}




.fixed-bottom-btn {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 24px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.9) 80%, transparent 100%);
    backdrop-filter: blur(20px);
}

.page-content-wrapper {
    padding-bottom: 100px;
    /* 为底部固定按钮留出空间 */
}



/* 隐藏滚动条 */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 模式切换按钮 */
.mode-switch-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* 分镜状态标签栏 */
.shot-status-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 6px 20px;
    margin: -6px -20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.shot-status-bar::-webkit-scrollbar {
    display: none;
}

.shot-status-tag {
    flex-shrink: 0;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    /* 默认黑灰色 */
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    text-align: center;
    min-width: 70px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* 弹性过渡 */
    position: relative;
    overflow: hidden;
}

/* 选中时的呼吸和扩散动效 */
@keyframes pulse-border {
    0% {
        border-color: rgba(255, 255, 255, 0.4);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    50% {
        border-color: rgba(255, 255, 255, 1);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }

    100% {
        border-color: rgba(255, 255, 255, 0.4);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

@keyframes pulse-border-green {
    0% {
        border-color: rgba(16, 185, 129, 0.4);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    50% {
        border-color: rgba(16, 185, 129, 1);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        border-color: rgba(16, 185, 129, 0.4);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* 立即传素材按钮动效 */
@keyframes btn-shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes btn-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* 选中状态通用样式 */
.shot-status-tag.active {
    transform: scale(1.1) translateY(-2px);
    z-index: 10;
    background: rgba(255, 255, 255, 0.15);
}

/* 选中且未上传 - 移除扩散动效 */
.shot-status-tag.active:not(.uploaded) {
    border-color: #ffffff;
}

/* 已上传状态 - 绿色 */
.shot-status-tag.uploaded {
    background: rgba(16, 185, 129, 0.15);
    border: 2px solid rgba(16, 185, 129, 0.8);
}

/* 选中且已上传 - 绿色闪烁（保留） */
.shot-status-tag.active.uploaded {
    animation: pulse-border-green 2s infinite ease-out;
}

/* 方案 F: 团单设置特殊分镜标签 */
.shot-status-tag.gb-setup {
    border-style: dashed;
    border-color: rgba(255, 165, 0, 0.4);
}

.shot-status-tag.gb-setup.active {
    background: rgba(255, 165, 0, 0.15);
    border-color: #FFA500;
    border-style: solid;
}

.shot-status-tag.gb-setup .name {
    color: #FFA500;
    opacity: 0.8;
}

.shot-status-tag.gb-setup.active .name,
.shot-status-tag.gb-setup.filled .name {
    color: white !important;
    opacity: 1;
}

.shot-status-tag.gb-setup.filled {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.6);
    border-style: solid;
}

/* 立即传素材按钮光晕扩散动效 */
@keyframes upload-btn-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* 立即传素材按钮增强样式 */
.upload-btn-animated {
    background: linear-gradient(90deg, #ffffff 0%, #f3f4f6 45%, #ffffff 50%, #f3f4f6 55%, #ffffff 100%);
    background-size: 200% 100%;
    animation: btn-shimmer 3s infinite linear, btn-bounce 2s infinite ease-in-out, upload-btn-glow 2s infinite ease-out;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

.upload-btn-animated:active {
    transform: scale(0.95);
    animation: none;
}

/* 选中时的文字提亮 */
.shot-status-tag.active .name {
    color: white;
}

.shot-status-tag.active .status {
    color: rgba(255, 255, 255, 0.9);
}

.shot-status-tag .name {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 2px;
    transition: color 0.3s;
}

.shot-status-tag .status {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s;
}

.shot-status-tag.uploaded .status {
    color: #10b981;
    font-weight: 600;
}

/* 视频预览区样式 */
.tutorial-video-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
    /* 确保静音按钮定位 */
}

/* 全局静音按钮 */
.mute-toggle-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    cursor: pointer;
    transition: all 0.2s;
}

.mute-toggle-btn:active {
    transform: scale(0.9);
    background: rgba(0, 0, 0, 0.6);
}

.mute-toggle-btn i {
    color: white;
    font-size: 14px;
}

.tutorial-video-section .label {
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    color: #9ca3af;
    font-size: 12px;
}

.tutorial-video-section .video-wrapper {
    position: relative;
    aspect-ratio: 9/16;
    background: #000;
    max-height: 360px;
    margin: 0 auto;
}

.tutorial-video-section .video-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tutorial-video-section .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* 底部三按钮 */
.bottom-three-buttons {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
}

.bottom-three-buttons .sell-btn {
    flex: 1; /* 1份宽度 */
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08); /* 深色背景 */
    border: 1px solid rgba(255, 255, 255, 0.15); /* 浅色边框 */
    color: rgba(255, 255, 255, 0.7); /* 暗白文字 */
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 52px;
}

.bottom-three-buttons .sell-btn.configured {
    background: rgba(16, 185, 129, 0.15); /* 柔和的绿色背景 */
    border-color: rgba(16, 185, 129, 0.5); /* 明显的绿色边框 */
    color: #10b981; /* 亮绿色文字 */
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3); /* 增加文字发光效果 */
}

.bottom-three-buttons .sell-btn i {
    margin-bottom: 2px;
    font-size: 16px;
}

.bottom-three-buttons .nav-btn {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15); /* 更不透明的背景 */
    border: 1.5px solid rgba(255, 255, 255, 0.25); /* 更明显的边框 */
    color: #ffffff; /* 亮的白色文字 */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px; /* 更大的图标 */
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.bottom-three-buttons .nav-btn:active {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0.95);
}

.bottom-three-buttons .nav-btn:disabled {
    opacity: 1; /* 保持完全不透明以确保图标锐利 */
    background: rgba(255, 255, 255, 0.05); 
    border-color: rgba(255, 255, 255, 0.1); 
    color: rgba(255, 255, 255, 0.2); /* 降低文字/图标亮度以显示禁用感 */
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

.bottom-three-buttons .main-btn {
    flex: 1.5;
    padding: 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: not-allowed;
    box-shadow: none;
    border: none;
    transition: all 0.3s;
}

/* 全部完成时的主按钮样式 - 红色强引导 */
.bottom-three-buttons .main-btn.all-done {
    background: #FE2C55;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(254, 44, 85, 0.5);
    animation: pulse-red-blink 1.5s infinite;
}

@keyframes pulse-red-blink {
    0% {
        box-shadow: 0 0 0 0 rgba(254, 44, 85, 0.7);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(254, 44, 85, 0);
        transform: scale(1.02);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(254, 44, 85, 0);
        transform: scale(1);
    }
}

/* 列表版本卡片样式优化 */
.list-shot-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
}

.list-shot-card.uploaded {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.08);
}

.list-shot-card .num {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: linear-gradient(to bottom right, #FE2C55, #ff6b81);
    color: white;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(254, 44, 85, 0.3);
}

.list-shot-card.uploaded .num {
    background: #10b981;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.list-card-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.list-card-left {
    flex: 0 0 80px;
    /* 固定宽度，支持横向排列 */
    display: flex;
    flex-direction: column;
}

.list-card-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.list-card-divider {
    width: 1px;
    align-self: stretch;
    background: rgba(255, 255, 255, 0.1);
    margin: 4px 0;
}

.list-card-status-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #10b981;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
    z-index: 10;
}

.list-card-status-badge.missing {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    box-shadow: none;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 抽屉式弹窗样式 */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.drawer-overlay.show {
    opacity: 1;
    visibility: visible;
}

.drawer-content {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #16161e;
    border-radius: 24px 24px 0 0;
    padding: 24px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 201;
    max-height: 85vh;
    overflow-y: auto;
}

.drawer-overlay.show+.drawer-content,
.drawer-content.show {
    transform: translateY(0);
}

.drawer-handle {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: -8px auto 20px;
}

.list-video-preview {
    width: 80px;
    aspect-ratio: 9/16;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.list-upload-btn {
    width: 100%;
    aspect-ratio: 9/16;
    /* 匹配 9:16 比例 */
    flex-shrink: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.list-upload-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.list-upload-btn.empty-state {
    grid-column: span 4;
    width: 100%;
    height: 44px;
    aspect-ratio: auto;
    background: white;
    color: black;
    border: none;
    font-weight: 700;
    flex-direction: row;
    margin-top: auto;
    /* 下移对齐底部 */
    gap: 8px;
    font-size: 14px;
}

.list-upload-btn.empty-state i {
    font-size: 12px;
}

.list-shot-card.uploaded .list-upload-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.4);
}

.list-uploaded-preview {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding-bottom: 4px;
    align-items: flex-start;
}

.list-uploaded-item {
    position: relative;
    width: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.list-uploaded-video {
    width: 100%;
    aspect-ratio: 9/16;
    border-radius: 6px;
    overflow: hidden;
    background: #000;
}

.list-uploaded-delete {
    width: 100%;
    padding: 2px 0;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 4px;
    color: #f87171;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.reference-tag {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: white;
    font-size: 10px;
    padding: 2px 0;
    text-align: center;
    font-weight: 500;
}

/* 微信小程序胶囊按钮 */
.wx-capsule {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border: 0.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    padding: 4px 12px;
    gap: 12px;
    backdrop-filter: blur(10px);
}

.wx-capsule-line {
    width: 0.5px;
    height: 16px;
    background: rgba(255, 255, 255, 0.2);
}

.wx-capsule-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    opacity: 0.9;
}

/* 成功动画 */
.animate-bounce-in {
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 确认弹框 */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #16161e;
    border-radius: 24px;
    width: 85%;
    max-width: 320px;
    padding: 24px;
    transform: scale(0.9);
    transition: transform 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

/* 成功浮窗 */
.success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.success-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.success-card {
    background: linear-gradient(180deg, #20202B 0%, #16161E 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 48px 32px;
    text-align: center;
    width: 90%;
    max-width: 360px;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.success-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(254, 44, 85, 0.15) 0%, transparent 60%);
    animation: rotate-glow 10s linear infinite;
    pointer-events: none;
}

@keyframes rotate-glow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.success-overlay.show .success-card {
    transform: scale(1) translateY(0);
}

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    margin: 0 auto 28px;
    box-shadow: 0 12px 30px rgba(255, 215, 0, 0.3);
    animation: success-pop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 10;
}

.success-icon::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(255, 215, 0, 0.4);
    animation: ripple 1.5s infinite;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

@keyframes success-pop {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.success-content {
    position: relative;
    z-index: 10;
}

.success-card .star {
    position: absolute;
    color: #FFD700;
    animation: star-twinkle 2s infinite;
    opacity: 0;
}

@keyframes star-twinkle {
    0% {
        transform: scale(0) rotate(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 1;
    }

    100% {
        transform: scale(0) rotate(360deg);
        opacity: 0;
    }
}

/* ======== 新增：底部抽屉公共基础 ======== */
.bottom-drawer {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: flex-end;
    visibility: hidden;
    transition: visibility 0s 0.3s;
}

.bottom-drawer.show {
    visibility: visible;
    transition: visibility 0s;
}

.drawer-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s;
}

.bottom-drawer.show .drawer-mask {
    opacity: 1;
}

.bdrawer-content {
    position: relative;
    width: 100%;
    background: #16161e;
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.bottom-drawer.show .bdrawer-content {
    transform: translateY(0);
}

/* 动作面板 (Action Sheet) */
.action-sheet-item {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.2s;
}

.action-sheet-item:active {
    background: rgba(255, 255, 255, 0.05);
}

.action-sheet-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* 素材库网格 */
.lib-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: min-content;
    align-content: start !important;
    gap: 8px;
    padding: 12px;
    overflow-y: auto;
    width: 100%;
}

/* 卡片+删除按钮的外层容器 */
.lib-item-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: fit-content;
    min-height: 0;
}

/* 管理模式的删除按钮 */
.lib-del-btn {
    width: 100%;
    padding: 7px 0;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #ef4444;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: background 0.2s;
}

.lib-del-btn:active {
    background: rgba(239, 68, 68, 0.25);
}

.lib-item {
    aspect-ratio: 9/16;
    border-radius: 8px;
    overflow: hidden;
    background: #2a2a35;
    position: relative;
    border: 2px solid transparent;
    cursor: pointer;
}

.lib-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lib-item.selected {
    border-color: #FE2C55;
    border-width: 2.5px;
}

/* 素材卡片样式同步 video-selection.html */
.select-btn {
    position: relative;
    z-index: 30;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

.select-btn i {
    font-size: 10px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
}

.lib-item.selected .select-btn {
    background: #FE2C55;
    border-color: #FE2C55;
    box-shadow: 0 0 10px rgba(254, 44, 85, 0.5);
}

.lib-item.selected .select-btn i {
    opacity: 1;
    transform: scale(1);
}

/* 已选（历史占用）标识 */
.lib-item.already-used {
    cursor: not-allowed;
}

.lib-item.already-used img {
    opacity: 0.6;
    filter: grayscale(0.3);
}

.lib-item.already-used .select-btn {
    display: none;
}

.already-used-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.9);
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 35;
    display: flex;
    align-items: center;
    gap: 4px;
}

.already-used-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 15;
    pointer-events: none;
}

.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 10px 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    pointer-events: none;
    z-index: 20;
}

.lib-item-dur {
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    padding-bottom: 2px;
}

.lib-item.selected {
    border-color: #FE2C55;
    box-shadow: 0 0 0 2px #FE2C55, 0 10px 20px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

/* 视频预览沉浸式弹窗 (同步 video-selection.html 样式) */
#libPreviewOverlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#libPreviewOverlay.show {
    display: flex;
    opacity: 1;
}

.preview-dialog {
    width: 100%;
    max-width: 340px;
    background: transparent;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

#libPreviewOverlay.show .preview-dialog {
    transform: scale(1);
}

.preview-video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 9/16;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-gradient-mask {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    pointer-events: none;
}

.preview-mute-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 25;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preview-actions-row {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 340px;
}

.preview-close-btn {
    width: 54px;
    height: 54px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.preview-confirm-btn {
    flex: 1;
    height: 54px;
    background: linear-gradient(135deg, #FE2C55, #FF5E7E);
    border-radius: 27px;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(254, 44, 85, 0.3);
    transition: all 0.3s ease;
}

/* 播放进度条同步 video-selection */
.preview-progress-mini {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 30;
}

.preview-progress-mini-inner {
    height: 100%;
    background: #FE2C55;
    width: 0%;
}

/* 删除确认弹窗 */
#libDelModal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    z-index: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

#libDelModal.show {
    opacity: 1;
    pointer-events: auto;
}

.lib-del-card {
    background: #1c1c24;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 80%;
    max-width: 300px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#libDelModal.show .lib-del-card {
    transform: scale(1);
}

/* 全屏预览 */
#libPreviewOverlay {
    position: fixed;
    inset: 0;
    z-index: 400;
    background: black;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#libPreviewOverlay.show {
    display: flex;
}

.lprev-header {
    position: absolute;
    top: env(safe-area-inset-top);
    left: 0;
    right: 0;
    padding: 16px 20px;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lprev-footer {
    position: absolute;
    bottom: env(safe-area-inset-bottom);
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 10;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

/* ======== 团单环境信息条 ======== */




.step2-form-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.step2-form-item:active {
    background: rgba(255, 255, 255, 0.05);
}

.step2-form-item.empty-state .val-text {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
}

.step2-form-item.filled-state .val-text {
    color: white;
    font-weight: 700;
}

.step-area-highlight {
    border-color: rgba(254, 44, 85, 0.6) !important;
}
