video-shuoshan/web/src/components/VideoDetailModal.module.css
seaislee1209 f8358a28c6 feat: 前端UI重构 — Air Spark设计系统对标
- 全局样式对标Air Spark设计系统(背景、glass card、配色、圆角)
- 视频详情弹窗(VideoDetailModal)全屏预览+信息面板
- GenerationCard重构:fixed定位tooltip、9:16视频适配、blob下载
- 个人中心:总额度/今日/本月三卡片布局
- Dashboard图表配色统一为#6c63ff主色调
- Sidebar、InputBar、Toolbar等组件样式优化
- 新增AmbientBackground、AssetsPage组件

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 18:48:07 +08:00

500 lines
9.4 KiB
CSS

.overlay {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 76px; /* sidebar width */
z-index: 200;
background: #07070f;
display: flex;
overflow: hidden;
animation: overlayIn 0.2s ease-out;
}
@keyframes overlayIn {
from { opacity: 0; }
to { opacity: 1; }
}
.modal {
position: relative;
z-index: 2;
display: flex;
width: 100%;
height: 100%;
overflow: hidden;
}
/* ══════════════════════════════════════
Left: Video player section
══════════════════════════════════════ */
.playerSection {
flex: 1;
display: flex;
flex-direction: column;
position: relative;
padding: 0 72px 20px 20px; /* right: space for close + arrows */
}
/* Close button — top-right, aligned with right panel header */
.closeBtn {
position: absolute;
top: 20px;
right: 20px;
z-index: 10;
width: 36px;
height: 36px;
background: rgba(255, 255, 255, 0.06);
border: none;
color: rgba(255, 255, 255, 0.5);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
border-radius: 8px;
transition: color 0.15s, background 0.15s;
}
.closeBtn:hover {
color: #fff;
background: rgba(255, 255, 255, 0.12);
}
/* Video area — centres the player */
.videoArea {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
min-height: 0;
padding: 20px 0; /* vertical breathing room, matches bottom padding */
}
/* Rounded video container — sized by JS (ResizeObserver + aspect ratio) */
.videoContainer {
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
overflow: hidden;
border-radius: 16px;
background: #000;
position: relative;
}
.video {
width: 100%;
height: 100%;
object-fit: contain;
}
/* ── Controls bar — inside rounded container ── */
.controls {
position: absolute;
bottom: 0;
left: 0;
right: 0;
display: flex;
flex-direction: column;
background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
border-radius: 0 0 16px 16px;
padding: 24px 0 0;
opacity: 0;
transition: opacity 0.25s;
}
.controlsVisible {
opacity: 1;
}
/* Progress bar — full width at top of controls */
.progressTrack {
width: 100%;
height: 4px;
background: rgba(255, 255, 255, 0.2);
cursor: pointer;
position: relative;
flex-shrink: 0;
}
.progressTrack:hover {
height: 6px;
}
.progressFill {
height: 100%;
background: var(--color-primary);
transition: width 0.1s linear;
}
/* Controls row — below progress bar */
.controlsRow {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 16px 12px;
}
.controlBtn {
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
border: none;
background: none;
color: #fff;
cursor: pointer;
flex-shrink: 0;
border-radius: 4px;
transition: background 0.15s;
}
.controlBtn:hover {
background: rgba(255, 255, 255, 0.1);
}
.timeDisplay {
font-size: 13px;
color: rgba(255, 255, 255, 0.8);
white-space: nowrap;
font-variant-numeric: tabular-nums;
flex-shrink: 0;
}
.controlsSpacer {
flex: 1;
}
/* Volume control */
.volumeControl {
display: flex;
align-items: center;
gap: 4px;
flex-shrink: 0;
}
.volumeSlider {
width: 72px;
height: 4px;
-webkit-appearance: none;
appearance: none;
background: rgba(255, 255, 255, 0.2);
border-radius: 2px;
outline: none;
cursor: pointer;
}
.volumeSlider::-webkit-slider-thumb {
-webkit-appearance: none;
width: 12px;
height: 12px;
border-radius: 50%;
background: #fff;
cursor: pointer;
}
.volumeSlider::-moz-range-thumb {
width: 12px;
height: 12px;
border-radius: 50%;
background: #fff;
border: none;
cursor: pointer;
}
/* ── Nav arrows — in the right padding of playerSection ── */
.navArrows {
position: absolute;
right: 20px;
top: 50%;
transform: translateY(-50%);
z-index: 10;
display: flex;
flex-direction: column;
gap: 40px;
}
.navArrowBtn {
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
border-radius: 6px;
background: rgba(255, 255, 255, 0.1);
border: none;
color: rgba(255, 255, 255, 0.7);
cursor: pointer;
transition: background 0.15s, color 0.15s;
}
.navArrowBtn:hover:not(.navArrowDisabled) {
background: rgba(255, 255, 255, 0.2);
color: #fff;
}
.navArrowDisabled {
opacity: 0.3;
pointer-events: none;
}
/* ══════════════════════════════════════
Right: Info panel (glass style)
══════════════════════════════════════ */
.infoPanel {
width: 360px;
flex-shrink: 0;
display: flex;
flex-direction: column;
border-left: 1px solid rgba(255, 255, 255, 0.08);
background: rgba(255, 255, 255, 0.04);
backdrop-filter: blur(24px) saturate(180%);
-webkit-backdrop-filter: blur(24px) saturate(180%);
}
/* Header with download + icons */
.infoPanelHeader {
display: flex;
align-items: center;
justify-content: space-between;
padding: 20px 24px;
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.headerIcons {
display: flex;
align-items: center;
gap: 4px;
}
.iconBtn {
display: flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
border-radius: 8px;
background: none;
border: none;
color: rgba(255, 255, 255, 0.5);
cursor: pointer;
transition: color 0.15s, background 0.15s;
}
.iconBtn:hover {
color: rgba(255, 255, 255, 0.85);
background: rgba(255, 255, 255, 0.06);
}
/* More menu dropdown */
.moreMenuWrap {
position: relative;
}
.moreDropdown {
position: absolute;
top: 100%;
right: 0;
margin-top: 4px;
min-width: 120px;
background: #1a1a24;
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 8px;
padding: 4px;
z-index: 20;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.moreDropdownItem {
display: flex;
align-items: center;
gap: 8px;
width: 100%;
padding: 8px 12px;
border: none;
background: none;
color: #ef4444;
font-size: 13px;
cursor: pointer;
border-radius: 6px;
font-family: inherit;
transition: background 0.15s;
}
.moreDropdownItem:hover {
background: rgba(255, 255, 255, 0.06);
}
.downloadBtn {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 8px 24px;
border-radius: 10px;
background: var(--color-primary);
color: #fff;
border: none;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: opacity 0.15s;
font-family: inherit;
}
.downloadBtn:hover {
opacity: 0.85;
}
/* Scrollable content area */
.infoPanelContent {
flex: 1;
overflow-y: auto;
padding: 0 24px 24px;
}
/* Prompt */
.promptSection {
padding-top: 20px;
padding-bottom: 16px;
}
.sectionLabel {
font-size: 12px;
font-weight: 500;
color: #8b8ea8;
margin-bottom: 10px;
}
.promptText {
font-size: 14px;
color: #f1f0ff;
line-height: 1.7;
word-break: break-word;
}
/* References */
.refSection {
padding-bottom: 16px;
}
.refGrid {
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.refItem {
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
}
.refImg {
width: 56px;
height: 56px;
border-radius: 6px;
object-fit: cover;
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.06);
}
.refAudioPlaceholder {
width: 56px;
height: 56px;
border-radius: 6px;
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.06);
display: flex;
align-items: center;
justify-content: center;
color: #8b8ea8;
}
.refLabel {
font-size: 10px;
color: #8b8ea8;
}
/* ── Fixed bottom section ── */
.infoPanelBottom {
flex-shrink: 0;
padding: 16px 24px 24px;
border-top: 1px solid rgba(255, 255, 255, 0.06);
}
/* Compact info bar — single-line meta */
.infoBar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 12px 16px;
border-radius: 10px;
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.06);
font-size: 13px;
color: #8b8ea8;
margin-bottom: 12px;
}
.infoBarDot {
width: 3px;
height: 3px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.2);
flex-shrink: 0;
}
/* Action buttons — ghost style */
.cardActions {
display: flex;
gap: 10px;
}
.cardBtn {
display: inline-flex;
align-items: center;
gap: 6px;
flex: 1;
padding: 10px 0;
background: rgba(255, 255, 255, 0.06);
border: 1px solid rgba(255, 255, 255, 0.10);
border-radius: 10px;
font-size: 13px;
color: #8b8ea8;
cursor: pointer;
transition: color 0.15s, background 0.15s;
font-family: inherit;
justify-content: center;
}
.cardBtn:hover {
color: #f1f0ff;
background: rgba(255, 255, 255, 0.10);
}
/* ══════════════════════════════════════
Mobile
══════════════════════════════════════ */
@media (max-width: 767px) {
.overlay {
left: 0;
}
.modal {
flex-direction: column;
}
.playerSection {
flex: none;
height: 50vh;
padding: 0 56px 12px 12px;
}
.infoPanel {
flex: 1;
width: 100%;
border-left: none;
border-top: 1px solid rgba(255, 255, 255, 0.06);
}
}