/* 抖音来客拍摄风格重构 CSS */
:root {
    --safe-top: env(safe-area-inset-top);
    --safe-bottom: env(safe-area-inset-bottom);
}

body {
    background: #0f0f0f;
    font-family: 'Noto Sans SC', sans-serif;
    color: white;
    margin: 0;
    overflow: hidden;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* 左侧侧边栏分镜列表 */
#shotSidebar {
    background: #0f0f0f;
    z-index: 10;
}

.sidebar-item {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: #1a1a1a;
    border: 2px solid transparent;
    overflow: hidden;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.sidebar-item.active {
    border-color: white;
    transform: scale(1.05);
}

.sidebar-item img, .sidebar-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-item-num {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 16px;
    height: 16px;
    background: rgba(0,0,0,0.5);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: white;
}

.sidebar-item-status {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(2px);
}

.sidebar-item.done {
    border-color: #4ade80;
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.3);
}

.sidebar-item.done .sidebar-item-status {
    opacity: 1;
}

.sidebar-item-status i {
    color: white;
    font-size: 14px;
    background: #4ade80; /* 改为绿色勾选，更符合通用习惯 */
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    transform: translateY(0);
}

.sidebar-item.empty {
    border: 1px dashed rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 核心播放器区域 */
.video-container-douyin {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 9/16;
    position: relative;
    box-shadow: 0 12px 48px rgba(0,0,0,0.8);
}

.video-container-douyin .video-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

/* 拍摄建议 */
.advice-card {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.advice-title {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #4edfff;
    font-size: 13px;
    font-weight: bold;
}

.advice-text {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    line-height: 1.5;
}

/* 微信胶囊样式 */
.wx-capsule {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 4px 0;
    width: 88px;
    height: 32px;
}

.wx-capsule-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
}

.wx-capsule-line {
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
}

/* 底部操作 */
#tutorialBottom {
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.95) 100%);
}

.footer-tool-btn {
    transition: all 0.2s;
    cursor: pointer;
}

.footer-tool-btn:active {
    transform: scale(0.9);
    opacity: 1 !important;
}

.pip-example-container {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 54px;
    aspect-ratio: 9/16;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    z-index: 40;
    background: #000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pip-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.1);
    color: white;
}

.pip-play-overlay i {
    font-size: 14px;
}

/* 公共抽屉等样式 (复用并优化) */
.bottom-drawer {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: flex-end;
    visibility: hidden;
}

.bottom-drawer.show { visibility: visible; }

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

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

.bdrawer-content {
    width: 100%;
    background: #16161e;
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
    transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
}

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

/* 抖音风格卡片按钮 */
.action-sheet-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px;
}

.action-sheet-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.action-card-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-card-icon-wrapper i { font-size: 20px; }
.action-sheet-card p.title { font-size: 14px; font-weight: bold; }

.shot-done-hint {
    padding: 8px 0;
    color: #4ade80;
    font-size: 12px;
    text-align: center;
    font-weight: 500;
}

@keyframes pulse-blue {
    0% { box-shadow: 0 0 0 0 rgba(0, 149, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 149, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 149, 255, 0); }
}

.pulse-blue {
    animation: pulse-blue 2s infinite;
    opacity: 1 !important;
}
