/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.app-container {
    min-height: 100vh;
}

/* 头部样式 */
.header {
    background: #2196f3;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 上传视频按钮 */
.upload-video-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.upload-video-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 全局解析状态指示器 */
.global-analysis-indicator {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 1rem;
    min-width: 320px;
    z-index: 1000;
    transform: translateY(-10px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.global-analysis-indicator.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.analysis-status {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-icon {
    font-size: 1.5rem;
    color: #2196f3;
}

.status-content {
    flex: 1;
}

.status-title {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.status-detail {
    font-size: 0.85rem;
    color: #666;
}

.status-progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.progress-ring {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: conic-gradient(#2196f3 0deg, #f0f0f0 0deg);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.progress-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2196f3;
    min-width: 35px;
    text-align: center;
}

.status-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.status-close:hover {
    background: #f5f5f5;
    color: #666;
}

/* 最小化状态指示器 */
.minimized-analysis-indicator {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.3);
    color: #2196f3;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1000;
    transform: translateY(-10px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.minimized-analysis-indicator.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.minimized-analysis-indicator:hover {
    background: rgba(33, 150, 243, 0.15);
    border-color: rgba(33, 150, 243, 0.5);
    transform: translateY(0) scale(1.05);
}

.mini-progress-ring {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(33, 150, 243, 0.2);
    position: relative;
    overflow: hidden;
}

.mini-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: conic-gradient(#2196f3 0deg, transparent 0deg);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mini-status-text {
    font-size: 0.85rem;
    font-weight: 500;
}

.logo i {
    margin-right: 0.5rem;
    color: #ffd700;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-item {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.nav-item:hover,
.nav-item.active {
    background-color: rgba(255,255,255,0.2);
}

/* 主要内容区域 */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Tab切换样式 */
.tab-container {
    margin-bottom: 2rem;
}

.tab-buttons {
    display: flex;
    gap: 1rem;
    background: white;
    padding: 0.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: fit-content;
}

.tab-button {
    padding: 1rem 2rem;
    border: none;
    background: transparent;
    color: #666;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-button:hover {
    background: #f8f9fa;
    color: #333;
}

.tab-button.active {
    background: #2196f3;
    color: white;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

/* 筛选器样式 */
.filters-container {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 150px;
}

.filter-label {
    font-weight: 500;
    color: #555;
    font-size: 0.9rem;
}

.filter-select,
.filter-input {
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s;
    width: 200px;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: #2196f3;
}

/* 移除重复的宽度设置，已在上面统一设置 */

/* 卖点选择器样式 */
.selling-point-selector {
    position: relative;
    width: 200px;
}

.selling-point-selector input {
    width: 200px;
}

.selling-point-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e1e5e9;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.selling-point-dropdown.active {
    display: block;
}

.selling-point-option {
    padding: 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f0f2f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.selling-point-option:hover,
.selling-point-option.highlighted {
    background-color: #f8f9fa;
}

.selling-point-option.selected {
    background-color: #2196f3;
    color: white;
}

.selling-point-option:last-child {
    border-bottom: none;
}

.point-text {
    flex: 1;
}

.point-count {
    color: #999;
    font-size: 0.85rem;
    margin-left: 0.5rem;
    font-weight: normal;
}

.selling-point-option.selected .point-count {
    color: rgba(255, 255, 255, 0.8);
}

/* 禁用状态样式 */
.filter-select:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

/* 品类筛选器样式 */
.category-filter-group {
    min-width: 200px;
}

.category-selector {
    position: relative;
    width: 200px;
}

.category-input-wrapper {
    position: relative;
    cursor: pointer;
}

.category-input-wrapper input {
    cursor: pointer;
    padding-right: 2.5rem;
    width: 200px;
}

.category-arrow {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 0.8rem;
    transition: transform 0.3s;
    pointer-events: none;
}

.category-arrow.active {
    transform: translateY(-50%) rotate(180deg);
}

.category-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e1e5e9;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.category-dropdown.active {
    display: block;
}

/* 树形结构样式 */
.category-tree {
    padding: 0.5rem 0;
}

.category-node {
    position: relative;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s;
    user-select: none;
}

.category-item:hover {
    background-color: #f8f9fa;
}

.category-item.selected {
    background-color: #e3f2fd;
    color: #1976d2;
    font-weight: 500;
}

.category-item.has-children {
    padding-left: 1rem;
}

.category-toggle {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    font-size: 0.7rem;
    color: #666;
    transition: transform 0.2s;
}

.category-toggle.expanded {
    transform: rotate(90deg);
}

.category-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    font-size: 0.8rem;
    color: #2196f3;
}

.category-label {
    flex: 1;
    font-size: 0.9rem;
}

.category-count {
    font-size: 0.75rem;
    color: #999;
    background: #f0f2f5;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    margin-left: 0.5rem;
}

/* 子级品类样式 */
.category-children {
    display: none;
    background: #fafbfc;
    border-left: 2px solid #e1e5e9;
    margin-left: 1rem;
}

.category-children.expanded {
    display: block;
}

.category-children .category-item {
    padding-left: 2rem;
    font-size: 0.85rem;
}

.category-children .category-children .category-item {
    padding-left: 3rem;
    font-size: 0.8rem;
    color: #666;
}

/* 按钮组样式 */
.button-group {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: flex-end;
    justify-content: flex-start;
}

.search-button {
    padding: 0.75rem 1.5rem;
    background: #2196f3;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-button:hover {
    background: #1976d2;
    transform: translateY(-1px);
}

.reset-button {
    padding: 0.75rem 1.5rem;
    background: white;
    color: #666;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.reset-button:hover {
    background: #f8f9fa;
    border-color: #2196f3;
    color: #2196f3;
    transform: translateY(-1px);
}

/* 结果信息样式 */
.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}

.results-count {
    color: #666;
}

.results-count strong {
    color: #2196f3;
    font-weight: 600;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-select {
    padding: 0.5rem;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* 视频列表样式 */
.video-list-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* 表格头部样式 */
.video-table-header {
    background: #f8f9fa;
    border-bottom: 2px solid #e1e5e9;
    padding: 1rem;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.complete-header {
    display: grid;
    grid-template-columns: 220px 1fr 1fr 1fr;
    gap: 1rem;
    align-items: center;
}

.shot-header {
    display: grid;
    grid-template-columns: 220px 1fr 1fr;
    gap: 1rem;
    align-items: center;
}

.table-cell {
    padding: 0.5rem;
}

.video-table-header .table-cell {
    background: white;
    border-radius: 6px;
    border: 1px solid #e1e5e9;
    text-align: center;
    font-weight: 600;
    color: #333;
}

.video-list {
    /* 列表项将通过JavaScript动态添加 */
}

.video-item {
    padding: 1rem;
    border-bottom: 1px solid #f0f2f5;
    transition: background-color 0.2s;
}

.complete-row {
    display: grid;
    grid-template-columns: 220px 1fr 1fr 1fr;
    gap: 1rem;
    align-items: start;
}

.shot-row {
    display: grid;
    grid-template-columns: 220px 1fr 1fr;
    gap: 1rem;
    align-items: start;
}

.video-item:hover {
    background-color: #f8f9fa;
}

.video-item:last-child {
    border-bottom: none;
}

/* 视频缩略图 */
.video-thumbnail {
    position: relative;
    width: 200px;
    height: 112px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
}

.video-thumbnail img,
.video-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.video-thumbnail:hover img,
.video-thumbnail:hover video {
    transform: scale(1.05);
}

/* 视频悬停播放效果 */
.video-thumbnail {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.video-thumbnail video {
    transition: all 0.3s ease;
}

.video-thumbnail:hover {
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}



/* 视频信息 */
.video-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.video-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #888;
}

.video-meta span {
    display: flex;
    align-items: center;
}

/* 入库时间样式 */
.upload-time {
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.2rem;
}


/* 表格单元格样式 */
.video-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.video-info-compact {
    text-align: center;
    line-height: 1.2;
}

.product-name {
    font-size: 0.75rem;
    color: #333;
    font-weight: 500;
    margin-bottom: 0.15rem;
}

.storage-time {
    font-size: 0.7rem;
    color: #999;
}

/* 卖点镜头解析模式下的视频单元格布局优化 */
.shot-row .video-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.selling-points-cell,
.script-cell,
.breakdown-cell,
.description-cell {
    display: flex;
    align-items: flex-start;
    padding: 0.5rem;
}

/* 卖点标签 */
.selling-points {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.25rem;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.selling-points::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* 添加渐变遮罩提示可滚动 */
.selling-points::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(to right, transparent, #f8f9fa);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.section-content {
    position: relative;
}

.selling-points:hover::after,
.script-structure:hover::after {
    opacity: 1;
}

.selling-point-tag {
    background: #f0f2f5;
    color: #666;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 400;
    border: 1px solid #e1e5e9;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 脚本结构 */
.script-structure {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.25rem;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.script-structure::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.script-structure::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(to right, transparent, #f8f9fa);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.structure-label {
    background: #f0f2f5;
    color: #666;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 400;
    border: 1px solid #e1e5e9;
    white-space: nowrap;
    flex-shrink: 0;
}

.structure-arrow {
    color: #999;
    font-size: 0.7rem;
    margin: 0 0.1rem;
    flex-shrink: 0;
}

/* 内容拆解 */
.content-breakdown {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
}

/* 画面描述 */
.scene-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
}

/* 加载更多按钮 */
.load-more-container {
    padding: 2rem;
    text-align: center;
}

.load-more-button {
    padding: 1rem 2rem;
    background: white;
    color: #2196f3;
    border: 2px solid #2196f3;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.load-more-button:hover {
    background: #2196f3;
    color: white;
}

/* 模态框样式 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 80vw;
    max-height: 80vh;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f0f2f5;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #666;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.modal-close:hover {
    background: #f0f2f5;
}

.modal-body {
    padding: 1.5rem;
}

.preview-video {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
}

/* 编辑卖点模态框特定样式 */
.edit-modal {
    max-width: 700px;
    width: 90%;
}

.video-preview-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.edit-thumbnail {
    width: 120px;
    height: 68px;
    object-fit: cover;
    border-radius: 6px;
}

.video-details h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #333;
}

.video-details p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.selling-points-editor {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.editor-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    display: block;
}

.current-selling-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 40px;
    padding: 0.5rem;
    border: 2px dashed #e1e5e9;
    border-radius: 8px;
    background: #fafafa;
}

.current-point-tag {
    background: #2196f3;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remove-point-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.remove-point-btn:hover {
    opacity: 1;
    background: rgba(255,255,255,0.2);
}

.selling-point-input-group {
    display: flex;
    gap: 0.5rem;
}

.selling-point-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

.selling-point-input:focus {
    outline: none;
    border-color: #2196f3;
}

.add-point-btn {
    background: #2196f3;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s;
}

.add-point-btn:hover {
    background: #1976d2;
}

.available-points-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-height: 120px;
    overflow-y: auto;
}

.available-point-tag {
    background: #f0f2f5;
    color: #333;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.available-point-tag:hover {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #2196f3;
}

.available-point-text {
    flex: 1;
}

.available-point-count {
    color: #999;
    font-size: 0.8rem;
}

.available-point-tag:hover .available-point-count {
    color: #2196f3;
}

.modal-footer {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.cancel-btn {
    background: white;
    color: #666;
    border: 2px solid #e1e5e9;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.cancel-btn:hover {
    border-color: #ccc;
    color: #333;
}

.save-btn {
    background: #2196f3;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.save-btn:hover {
    background: #1976d2;
}

.edit-selling-point-btn {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    color: #666;
    padding: 0.4rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-left: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    transition: all 0.3s;
    flex-shrink: 0;
}

.edit-selling-point-btn:hover {
    background: #2196f3;
    color: white;
    border-color: #2196f3;
}

/* 饼图容器样式 */
.chart-container {
    position: fixed;
    top: 100px;
    right: 20px;
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    z-index: 1500;
    display: none;
    animation: fadeInSlide 0.3s ease-out;
}

.chart-container.active {
    display: block;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f0f2f5;
    background: #2196f3;
    color: white;
    border-radius: 12px 12px 0 0;
}

.chart-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.chart-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.chart-close:hover {
    background: rgba(255,255,255,0.2);
}

.chart-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pie-chart {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    position: relative;
}

.pie-slice {
    position: absolute;
    width: 100%;
    height: 100%;
    clip-path: polygon(50% 50%, 50% 0%, 100% 0%, 100% 100%, 50% 100%);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.pie-slice:hover {
    transform: scale(1.05);
}

.chart-legend {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 150px;
    overflow-y: auto;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.legend-item:hover {
    background: #f8f9fa;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    flex-shrink: 0;
}

.legend-text {
    flex: 1;
    font-size: 0.85rem;
    color: #333;
}

.legend-percentage {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 更新成功通知样式 */
.update-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4caf50;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    animation: slideIn 0.3s ease-out, slideOut 0.3s ease-out 2.7s;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .video-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .content-section {
        flex: none;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }
    
    .filters-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .filter-input {
        width: 100%;
    }
    
    .video-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .video-thumbnail {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .results-info {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .nav-menu {
        justify-content: center;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-item {
    animation: fadeIn 0.3s ease-out;
}

/* 加载状态 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    color: #666;
}

.loading i {
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 上传模态框样式 */
.upload-modal {
    max-width: 600px;
    width: 90%;
}

.upload-tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 1.5rem;
}

.upload-tab {
    flex: 1;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #666;
    font-weight: 500;
}

.upload-tab:hover {
    color: #2196f3;
    background: rgba(33, 150, 243, 0.05);
}

.upload-tab.active {
    color: #2196f3;
    border-bottom-color: #2196f3;
    background: rgba(33, 150, 243, 0.1);
}

.upload-content {
    position: relative;
}

.upload-panel {
    display: none;
}

.upload-panel.active {
    display: block;
}

/* 本地上传样式 */
.upload-area {
    border: 2px dashed #d0d0d0;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.upload-area:hover {
    border-color: #2196f3;
    background: rgba(33, 150, 243, 0.05);
}

.upload-area.dragover {
    border-color: #2196f3;
    background: rgba(33, 150, 243, 0.1);
}

.upload-icon {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.upload-area:hover .upload-icon {
    color: #2196f3;
}

.upload-text p {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: #666;
}

.upload-hint {
    font-size: 0.9rem !important;
    color: #999 !important;
}

.file-list {
    margin-top: 1rem;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-name {
    font-weight: 500;
    color: #333;
}

.file-size {
    font-size: 0.9rem;
    color: #666;
}

.file-remove {
    background: none;
    border: none;
    color: #f44336;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.file-remove:hover {
    background: rgba(244, 67, 54, 0.1);
}

/* 链接输入样式 */
.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.input-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.input-group textarea:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

/* 进度条样式 */
.upload-progress {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin-top: 1rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.progress-label {
    font-weight: 500;
    color: #333;
}

.progress-percent {
    font-weight: 600;
    color: #2196f3;
}

.progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2196f3, #1976d2);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-text {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

/* 模态框按钮样式 */
.upload-btn {
    background: #2196f3;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    background: #1976d2;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.upload-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 上传成功通知样式 */
.upload-success-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #4caf50;
    padding: 1rem 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 10000;
    max-width: 350px;
}

.upload-success-notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-content i {
    color: #4caf50;
    font-size: 1.2rem;
}

.notification-content span {
    color: #333;
    font-weight: 500;
}

/* 卖点镜头解析联动功能样式 */
.selling-points {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.selling-point-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.selling-point-script {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    line-height: 1.4;
    padding: 0.5rem 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #2196f3;
}

.selling-point-actions {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

/* 播放完整视频文字按钮 */
.preview-complete-text-btn {
    background: #2196f3;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    align-self: flex-start;
    white-space: nowrap;
}

.preview-complete-text-btn:hover {
    background: #1976d2;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.3);
}

/* 视频预览模态框样式 */
.video-preview-content {
    max-width: 800px;
    width: 90%;
}

.video-preview-player {
    margin-bottom: 1.5rem;
}

.video-preview-info h4 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.2rem;
}

.video-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.video-meta i {
    color: #2196f3;
}

.video-selling-points {
    margin-top: 1rem;
}

.video-selling-points strong {
    color: #333;
    display: block;
    margin-bottom: 0.5rem;
}

.selling-points-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.primary-btn {
    background: #2196f3;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.primary-btn:hover {
    background: #1976d2;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

/* 视频高亮效果 */
.highlight-video {
    background: linear-gradient(90deg, rgba(33, 150, 243, 0.1), transparent);
    border-left: 4px solid #2196f3;
    animation: highlightPulse 2s ease-in-out;
}

@keyframes highlightPulse {
    0%, 100% { background: linear-gradient(90deg, rgba(33, 150, 243, 0.1), transparent); }
    50% { background: linear-gradient(90deg, rgba(33, 150, 243, 0.2), transparent); }
}

/* 跳转成功通知样式 */
.jump-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #2196f3;
    padding: 1rem 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 10000;
    max-width: 300px;
}

.jump-notification.show {
    transform: translateX(0);
}

.jump-notification .notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.jump-notification .notification-content i {
    color: #2196f3;
    font-size: 1.2rem;
}

.jump-notification .notification-content span {
    color: #333;
    font-weight: 500;
}

/* 重置提示样式 */
.reset-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    z-index: 2000;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease-out;
}

.reset-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.reset-notification i {
    font-size: 1.1rem;
}
