将原来的三页跳转结构(控制台/工作台/文件页)重构为单页资源管理器: 左侧数据源盘符树、主区列表/网格双视图、右侧内嵌播放器与详情面板, 管理功能收进侧栏对话框。媒体引擎(media-core + media-sw)原样复用, 仅把 file.js 的播放器逻辑抽成参数驱动组件。默认路由指向 explorer。 - 新增 explorer.html/js 与 modules/explorer/ 六个组件模块 - 删除旧的 index/source/file 页面及其控制器 - styles.css 新增 explorer 布局与三档响应式断点
1707 lines
28 KiB
CSS
1707 lines
28 KiB
CSS
:root {
|
|
color-scheme: light;
|
|
--bg: #efe7dc;
|
|
--bg-strong: #f8f4ec;
|
|
--panel: rgba(255, 251, 246, 0.94);
|
|
--panel-strong: rgba(255, 255, 255, 0.85);
|
|
--line: rgba(30, 35, 31, 0.1);
|
|
--line-strong: rgba(30, 35, 31, 0.18);
|
|
--ink: #1a241f;
|
|
--muted: #5f6a63;
|
|
--accent: #0f766e;
|
|
--accent-strong: #0c5f59;
|
|
--gold: #9b6b18;
|
|
--danger: #b24637;
|
|
--success: #1f7a45;
|
|
--shadow: 0 28px 60px rgba(31, 35, 32, 0.14);
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
margin: 0;
|
|
min-height: 100%;
|
|
}
|
|
|
|
body {
|
|
font-family: "Segoe UI Variable Text", "Segoe UI", "Noto Sans SC", sans-serif;
|
|
color: var(--ink);
|
|
background:
|
|
radial-gradient(circle at top left, rgba(15, 118, 110, 0.18), transparent 24%),
|
|
radial-gradient(circle at right top, rgba(155, 107, 24, 0.16), transparent 22%),
|
|
linear-gradient(180deg, #faf6f0 0%, var(--bg) 100%);
|
|
}
|
|
|
|
a {
|
|
color: inherit;
|
|
}
|
|
|
|
code {
|
|
padding: 0.15em 0.35em;
|
|
border-radius: 0.45em;
|
|
background: rgba(15, 118, 110, 0.08);
|
|
}
|
|
|
|
.shell {
|
|
width: min(1260px, calc(100vw - 30px));
|
|
margin: 0 auto;
|
|
padding: 28px 0 72px;
|
|
}
|
|
|
|
.shell-auth {
|
|
width: min(720px, calc(100vw - 30px));
|
|
}
|
|
|
|
.crumbs {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
margin-bottom: 20px;
|
|
color: var(--muted);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.crumbs a {
|
|
text-decoration: none;
|
|
color: var(--accent-strong);
|
|
}
|
|
|
|
.hero {
|
|
display: grid;
|
|
gap: 16px;
|
|
margin-bottom: 26px;
|
|
}
|
|
|
|
.hero-home {
|
|
grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
|
|
align-items: end;
|
|
}
|
|
|
|
.hero-compact {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
}
|
|
|
|
.eyebrow,
|
|
.section-label {
|
|
margin: 0 0 12px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.16em;
|
|
font-size: 12px;
|
|
color: var(--accent-strong);
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
.source-name {
|
|
margin: 0;
|
|
font-family: Georgia, "Times New Roman", serif;
|
|
}
|
|
|
|
h1 {
|
|
font-size: clamp(34px, 5vw, 56px);
|
|
line-height: 0.98;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 30px;
|
|
line-height: 1.05;
|
|
}
|
|
|
|
h3 {
|
|
font-size: 24px;
|
|
}
|
|
|
|
.lead,
|
|
.panel-copy,
|
|
.source-meta,
|
|
.browse-summary,
|
|
.browse-meta,
|
|
.summary-row span,
|
|
.summary-row strong,
|
|
.empty-state,
|
|
.empty-state-card,
|
|
.video-frame::before {
|
|
color: var(--muted);
|
|
}
|
|
|
|
.lead {
|
|
width: min(780px, 100%);
|
|
margin: 0;
|
|
font-size: 17px;
|
|
line-height: 1.7;
|
|
}
|
|
|
|
.panel-copy {
|
|
margin: 0 0 18px;
|
|
line-height: 1.65;
|
|
}
|
|
|
|
.page-grid,
|
|
.stack-column,
|
|
.stack-gap,
|
|
.source-list,
|
|
.summary-stack,
|
|
.stats-grid,
|
|
.card-grid,
|
|
.detail-stack,
|
|
.browse-list,
|
|
.upload-form,
|
|
.secret-form,
|
|
.browse-form {
|
|
display: grid;
|
|
gap: 18px;
|
|
}
|
|
|
|
.page-grid-home {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.workspace-shell {
|
|
display: grid;
|
|
grid-template-columns: 250px minmax(0, 1fr);
|
|
gap: 22px;
|
|
align-items: start;
|
|
}
|
|
|
|
.auth-layout {
|
|
display: grid;
|
|
gap: 18px;
|
|
}
|
|
|
|
.auth-toolbar {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: flex-end;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin: -4px 0 18px;
|
|
}
|
|
|
|
.auth-status {
|
|
color: var(--muted);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.workspace-content,
|
|
.workspace-panel {
|
|
display: grid;
|
|
gap: 18px;
|
|
}
|
|
|
|
.workspace-panel[hidden] {
|
|
display: none !important;
|
|
}
|
|
|
|
.workspace-nav {
|
|
position: sticky;
|
|
top: 18px;
|
|
display: grid;
|
|
gap: 10px;
|
|
padding: 18px;
|
|
border-radius: 26px;
|
|
background: var(--panel);
|
|
border: 1px solid var(--line);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.workspace-nav-link {
|
|
display: block;
|
|
padding: 12px 14px;
|
|
border-radius: 16px;
|
|
text-decoration: none;
|
|
color: var(--muted);
|
|
background: rgba(255, 255, 255, 0.58);
|
|
border: 1px solid transparent;
|
|
transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, color 140ms ease;
|
|
}
|
|
|
|
.workspace-nav-link:hover {
|
|
transform: translateY(-1px);
|
|
color: var(--ink);
|
|
}
|
|
|
|
.workspace-nav-link.is-active {
|
|
color: var(--accent-strong);
|
|
background: rgba(15, 118, 110, 0.12);
|
|
border-color: rgba(15, 118, 110, 0.22);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.page-grid-source {
|
|
grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
|
|
}
|
|
|
|
.page-grid-file {
|
|
grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
|
|
}
|
|
|
|
.stack-column {
|
|
align-content: start;
|
|
}
|
|
|
|
.toolbar-cluster {
|
|
display: grid;
|
|
gap: 14px;
|
|
margin-bottom: 18px;
|
|
}
|
|
|
|
.file-toolbar {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 12px;
|
|
}
|
|
|
|
.path-trail {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 12px 14px;
|
|
border-radius: 18px;
|
|
background: rgba(255, 255, 255, 0.72);
|
|
border: 1px solid rgba(26, 36, 31, 0.08);
|
|
}
|
|
|
|
.path-chip {
|
|
appearance: none;
|
|
border: none;
|
|
background: rgba(15, 118, 110, 0.1);
|
|
color: var(--accent-strong);
|
|
border-radius: 999px;
|
|
padding: 8px 12px;
|
|
font: inherit;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.path-separator {
|
|
color: var(--muted);
|
|
}
|
|
|
|
.panel,
|
|
.source-card,
|
|
.summary-card,
|
|
.empty-state-card,
|
|
.browse-row,
|
|
.video-frame {
|
|
background: var(--panel);
|
|
border: 1px solid var(--line);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.panel,
|
|
.source-card,
|
|
.summary-card,
|
|
.empty-state-card,
|
|
.video-frame {
|
|
border-radius: 26px;
|
|
}
|
|
|
|
.panel,
|
|
.source-card {
|
|
padding: 24px;
|
|
}
|
|
|
|
.panel-spacious {
|
|
min-height: 320px;
|
|
}
|
|
|
|
.summary-card,
|
|
.empty-state-card {
|
|
padding: 18px;
|
|
}
|
|
|
|
.panel-header,
|
|
.source-main,
|
|
.form-actions,
|
|
.card-actions,
|
|
.browse-toolbar {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.panel-header {
|
|
margin-bottom: 18px;
|
|
}
|
|
|
|
.file-picker,
|
|
.secret-form label,
|
|
.browse-field {
|
|
display: grid;
|
|
gap: 10px;
|
|
}
|
|
|
|
.file-picker {
|
|
padding: 18px;
|
|
border-radius: 18px;
|
|
border: 1px dashed rgba(15, 118, 110, 0.34);
|
|
background: rgba(255, 255, 255, 0.7);
|
|
}
|
|
|
|
.file-picker span,
|
|
.secret-form span,
|
|
.browse-field span,
|
|
.checkbox-row span {
|
|
font-weight: 600;
|
|
}
|
|
|
|
input,
|
|
select,
|
|
textarea {
|
|
width: 100%;
|
|
border-radius: 14px;
|
|
border: 1px solid rgba(26, 36, 31, 0.14);
|
|
background: rgba(255, 255, 255, 0.92);
|
|
padding: 12px 14px;
|
|
font: inherit;
|
|
color: var(--ink);
|
|
}
|
|
|
|
textarea {
|
|
resize: vertical;
|
|
min-height: 110px;
|
|
}
|
|
|
|
input:focus,
|
|
select:focus,
|
|
textarea:focus {
|
|
outline: 2px solid rgba(15, 118, 110, 0.18);
|
|
border-color: rgba(15, 118, 110, 0.4);
|
|
}
|
|
|
|
.checkbox-row {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: center;
|
|
}
|
|
|
|
.checkbox-row input {
|
|
width: auto;
|
|
}
|
|
|
|
.ghost-button,
|
|
.primary-button,
|
|
.button-link {
|
|
appearance: none;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 999px;
|
|
padding: 12px 18px;
|
|
font: inherit;
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
transition: transform 140ms ease, opacity 140ms ease, background 140ms ease;
|
|
}
|
|
|
|
.ghost-button,
|
|
.button-link {
|
|
border: 1px solid var(--line-strong);
|
|
background: transparent;
|
|
color: var(--ink);
|
|
}
|
|
|
|
.primary-button {
|
|
border: none;
|
|
background: linear-gradient(135deg, var(--accent) 0%, #138579 100%);
|
|
color: white;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.danger-button {
|
|
border-color: rgba(178, 70, 55, 0.3);
|
|
color: var(--danger);
|
|
}
|
|
|
|
.ghost-button:hover,
|
|
.primary-button:hover,
|
|
.button-link:hover {
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.danger-button:hover {
|
|
background: rgba(178, 70, 55, 0.08);
|
|
}
|
|
|
|
.ghost-button:disabled,
|
|
.primary-button:disabled {
|
|
cursor: not-allowed;
|
|
opacity: 0.55;
|
|
}
|
|
|
|
.feedback {
|
|
margin-bottom: 22px;
|
|
padding: 14px 16px;
|
|
border-radius: 16px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.feedback-info {
|
|
background: rgba(15, 118, 110, 0.1);
|
|
color: var(--accent-strong);
|
|
}
|
|
|
|
.feedback-success {
|
|
background: rgba(31, 122, 69, 0.12);
|
|
color: var(--success);
|
|
}
|
|
|
|
.feedback-error {
|
|
background: rgba(178, 70, 55, 0.12);
|
|
color: var(--danger);
|
|
}
|
|
|
|
.source-name {
|
|
font-size: 28px;
|
|
}
|
|
|
|
.source-meta {
|
|
margin: 8px 0 0;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.summary-chip {
|
|
display: inline-flex;
|
|
width: fit-content;
|
|
padding: 8px 12px;
|
|
border-radius: 999px;
|
|
background: rgba(15, 118, 110, 0.1);
|
|
color: var(--accent-strong);
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.status-pill {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 8px 14px;
|
|
border-radius: 999px;
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.04em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.status-ready {
|
|
background: rgba(31, 122, 69, 0.12);
|
|
color: var(--success);
|
|
}
|
|
|
|
.status-idle {
|
|
background: rgba(15, 118, 110, 0.1);
|
|
color: var(--accent-strong);
|
|
}
|
|
|
|
.status-busy {
|
|
background: rgba(155, 107, 24, 0.14);
|
|
color: var(--gold);
|
|
}
|
|
|
|
.status-error {
|
|
background: rgba(178, 70, 55, 0.12);
|
|
color: var(--danger);
|
|
}
|
|
|
|
.stats-grid,
|
|
.card-grid {
|
|
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
|
|
}
|
|
|
|
.stat,
|
|
.summary-row,
|
|
.browse-row {
|
|
border-radius: 18px;
|
|
background: var(--panel-strong);
|
|
border: 1px solid rgba(26, 36, 31, 0.06);
|
|
}
|
|
|
|
.stat,
|
|
.summary-row {
|
|
padding: 14px 16px;
|
|
}
|
|
|
|
.stat span,
|
|
.summary-row span {
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
font-size: 12px;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.stat strong,
|
|
.summary-row strong {
|
|
display: block;
|
|
font-size: 15px;
|
|
line-height: 1.45;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.browse-shell {
|
|
min-height: 220px;
|
|
}
|
|
|
|
.browse-list {
|
|
margin-top: 14px;
|
|
}
|
|
|
|
.browse-toolbar {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.browse-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
padding: 16px 18px;
|
|
}
|
|
|
|
.browse-row-main {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.browse-row-main strong {
|
|
display: inline-block;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.browse-row-clickable {
|
|
cursor: pointer;
|
|
transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
|
|
}
|
|
|
|
.browse-row-clickable:hover {
|
|
transform: translateY(-1px);
|
|
border-color: rgba(15, 118, 110, 0.26);
|
|
background: rgba(255, 255, 255, 0.92);
|
|
}
|
|
|
|
.browse-type {
|
|
display: inline-block;
|
|
margin-left: 10px;
|
|
font-size: 12px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
color: var(--accent-strong);
|
|
}
|
|
|
|
.browse-thumbnail {
|
|
width: 84px;
|
|
height: 56px;
|
|
flex-shrink: 0;
|
|
border-radius: 14px;
|
|
overflow: hidden;
|
|
border: 1px solid rgba(26, 36, 31, 0.08);
|
|
background: rgba(255, 255, 255, 0.82);
|
|
display: grid;
|
|
place-items: center;
|
|
}
|
|
|
|
.browse-thumbnail-placeholder {
|
|
color: var(--muted);
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.12em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.browse-thumbnail-folder {
|
|
background:
|
|
linear-gradient(135deg, rgba(15, 118, 110, 0.14), rgba(15, 118, 110, 0.04)),
|
|
rgba(255, 255, 255, 0.85);
|
|
}
|
|
|
|
.browse-thumbnail-image,
|
|
.thumbnail-preview-image {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: block;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.browse-meta {
|
|
display: grid;
|
|
gap: 6px;
|
|
align-items: end;
|
|
text-align: right;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.browse-nav-button {
|
|
justify-self: end;
|
|
}
|
|
|
|
/* 批量选择 */
|
|
.browse-checkbox {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-shrink: 0;
|
|
cursor: default;
|
|
padding: 4px;
|
|
}
|
|
|
|
.browse-checkbox input {
|
|
width: 18px;
|
|
height: 18px;
|
|
cursor: pointer;
|
|
accent-color: var(--accent);
|
|
}
|
|
|
|
.browse-row-selected {
|
|
border-color: rgba(15, 118, 110, 0.34) !important;
|
|
background: rgba(15, 118, 110, 0.06) !important;
|
|
}
|
|
|
|
/* 批量工具栏 */
|
|
.batch-toolbar {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 14px;
|
|
margin-top: 14px;
|
|
padding: 14px 18px;
|
|
border-radius: 18px;
|
|
background: rgba(15, 118, 110, 0.06);
|
|
border: 1px solid rgba(15, 118, 110, 0.14);
|
|
}
|
|
|
|
.batch-select-all {
|
|
display: flex;
|
|
gap: 8px;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.batch-select-all input {
|
|
width: 18px;
|
|
height: 18px;
|
|
accent-color: var(--accent);
|
|
}
|
|
|
|
.batch-count {
|
|
font-size: 13px;
|
|
color: var(--muted);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.batch-progress {
|
|
margin-top: 14px;
|
|
}
|
|
|
|
/* 凭据弹窗 */
|
|
.credential-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 1000;
|
|
display: grid;
|
|
place-items: center;
|
|
background: rgba(26, 36, 31, 0.5);
|
|
backdrop-filter: blur(4px);
|
|
}
|
|
|
|
.credential-overlay-panel {
|
|
width: min(520px, calc(100vw - 40px));
|
|
max-height: calc(100vh - 60px);
|
|
overflow-y: auto;
|
|
padding: 28px;
|
|
border-radius: 26px;
|
|
background: var(--panel);
|
|
border: 1px solid var(--line);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.credential-overlay-panel h3 {
|
|
margin: 0 0 8px;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.credential-overlay-panel p {
|
|
margin: 0 0 16px;
|
|
color: var(--muted);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.video-frame {
|
|
position: relative;
|
|
min-height: 320px;
|
|
overflow: hidden;
|
|
background:
|
|
radial-gradient(circle at top left, rgba(15, 118, 110, 0.18), transparent 24%),
|
|
linear-gradient(160deg, rgba(17, 24, 39, 0.92), rgba(38, 48, 62, 0.95));
|
|
}
|
|
|
|
video {
|
|
width: 100%;
|
|
min-height: 320px;
|
|
background: transparent;
|
|
}
|
|
|
|
.thumbnail-card {
|
|
min-height: 260px;
|
|
padding: 18px;
|
|
border-radius: 26px;
|
|
background: var(--panel);
|
|
border: 1px solid var(--line);
|
|
box-shadow: var(--shadow);
|
|
display: grid;
|
|
place-items: center;
|
|
}
|
|
|
|
.thumbnail-placeholder {
|
|
width: 100%;
|
|
min-height: 220px;
|
|
display: grid;
|
|
place-items: center;
|
|
text-align: center;
|
|
padding: 20px;
|
|
border-radius: 20px;
|
|
border: 1px dashed rgba(15, 118, 110, 0.28);
|
|
background: rgba(255, 255, 255, 0.7);
|
|
color: var(--muted);
|
|
}
|
|
|
|
@media (max-width: 1080px) {
|
|
.hero-home,
|
|
.page-grid-home,
|
|
.page-grid-source,
|
|
.page-grid-file,
|
|
.workspace-shell {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.workspace-nav {
|
|
position: static;
|
|
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
|
|
}
|
|
}
|
|
|
|
@media (max-width: 760px) {
|
|
.shell {
|
|
width: min(100vw - 18px, 1260px);
|
|
padding-top: 20px;
|
|
}
|
|
|
|
.panel,
|
|
.source-card {
|
|
padding: 18px;
|
|
border-radius: 20px;
|
|
}
|
|
|
|
.panel-header,
|
|
.source-main,
|
|
.form-actions,
|
|
.card-actions,
|
|
.browse-toolbar,
|
|
.browse-row,
|
|
.browse-row-main {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.browse-meta {
|
|
align-items: start;
|
|
text-align: left;
|
|
}
|
|
|
|
.ghost-button,
|
|
.primary-button,
|
|
.button-link,
|
|
.workspace-nav-link {
|
|
width: 100%;
|
|
}
|
|
|
|
.workspace-nav {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
video,
|
|
.video-frame {
|
|
min-height: 220px;
|
|
}
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════════════════════
|
|
资源管理器(Explorer)布局
|
|
复用 :root 变量与 .panel/.status-pill/.feedback/.summary-* 等既有类
|
|
═══════════════════════════════════════════════════════════ */
|
|
|
|
.explorer-body {
|
|
height: 100vh;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.serif {
|
|
font-family: Georgia, "Times New Roman", serif;
|
|
}
|
|
|
|
.explorer-app {
|
|
height: 100vh;
|
|
display: grid;
|
|
grid-template-rows: 56px auto 1fr;
|
|
}
|
|
|
|
/* 顶栏 */
|
|
.explorer-topbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
padding: 0 18px;
|
|
background: var(--panel);
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
|
|
.explorer-brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
font-family: Georgia, "Times New Roman", serif;
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.explorer-logo {
|
|
width: 30px;
|
|
height: 30px;
|
|
display: grid;
|
|
place-items: center;
|
|
border-radius: 9px;
|
|
background: linear-gradient(135deg, var(--accent), #138579);
|
|
color: #fff;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.explorer-search {
|
|
margin-left: auto;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
width: min(360px, 32vw);
|
|
padding: 6px 14px;
|
|
border-radius: 999px;
|
|
background: var(--panel-strong);
|
|
border: 1px solid var(--line);
|
|
color: var(--muted);
|
|
}
|
|
|
|
.explorer-search input {
|
|
border: none;
|
|
background: transparent;
|
|
outline: none;
|
|
width: 100%;
|
|
padding: 4px 0;
|
|
color: var(--ink);
|
|
}
|
|
|
|
.explorer-auth {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
font-size: 13px;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.explorer-icon-btn {
|
|
width: 34px;
|
|
height: 34px;
|
|
display: grid;
|
|
place-items: center;
|
|
border-radius: 10px;
|
|
border: 1px solid transparent;
|
|
background: transparent;
|
|
color: var(--muted);
|
|
font-size: 15px;
|
|
}
|
|
|
|
.explorer-icon-btn:hover {
|
|
background: rgba(15, 118, 110, 0.08);
|
|
color: var(--ink);
|
|
}
|
|
|
|
.explorer-hamburger {
|
|
display: none;
|
|
}
|
|
|
|
.explorer-feedback {
|
|
margin: 0;
|
|
border-radius: 0;
|
|
}
|
|
|
|
/* 主分栏 */
|
|
.explorer-split {
|
|
display: grid;
|
|
grid-template-columns: 250px minmax(0, 1fr);
|
|
min-height: 0;
|
|
height: 100%;
|
|
}
|
|
|
|
.explorer-split.with-detail {
|
|
grid-template-columns: 250px minmax(0, 1fr) 320px;
|
|
}
|
|
|
|
/* 左侧栏 */
|
|
.explorer-sidebar {
|
|
border-right: 1px solid var(--line);
|
|
background: rgba(255, 255, 255, 0.42);
|
|
padding: 14px 12px;
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.explorer-side-label {
|
|
padding: 10px 10px 4px;
|
|
font-size: 11px;
|
|
letter-spacing: 0.14em;
|
|
text-transform: uppercase;
|
|
color: var(--accent-strong);
|
|
}
|
|
|
|
.explorer-tree {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.explorer-tree-empty {
|
|
padding: 12px;
|
|
color: var(--muted);
|
|
font-size: 13px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.explorer-tree-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 9px 10px;
|
|
border-radius: 12px;
|
|
color: var(--ink);
|
|
border: 1px solid transparent;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|
|
|
|
.explorer-tree-item:hover {
|
|
background: rgba(255, 255, 255, 0.7);
|
|
}
|
|
|
|
.explorer-tree-item.active {
|
|
background: rgba(15, 118, 110, 0.12);
|
|
border-color: rgba(15, 118, 110, 0.22);
|
|
color: var(--accent-strong);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.explorer-drive-ico {
|
|
font-size: 15px;
|
|
}
|
|
|
|
.explorer-tree-name {
|
|
flex: 1;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.explorer-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.explorer-dot.ready {
|
|
background: var(--success);
|
|
}
|
|
.explorer-dot.idle {
|
|
background: var(--accent);
|
|
}
|
|
.explorer-dot.error {
|
|
background: var(--danger);
|
|
}
|
|
.explorer-dot.busy {
|
|
background: var(--gold);
|
|
}
|
|
|
|
.explorer-side-divider {
|
|
height: 1px;
|
|
background: var(--line);
|
|
margin: 8px 4px;
|
|
}
|
|
|
|
.explorer-manage-link {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 9px;
|
|
padding: 8px 10px;
|
|
border-radius: 11px;
|
|
color: var(--muted);
|
|
font-size: 14px;
|
|
border: 1px solid transparent;
|
|
background: transparent;
|
|
text-align: left;
|
|
}
|
|
|
|
.explorer-manage-link:hover {
|
|
background: rgba(255, 255, 255, 0.7);
|
|
color: var(--ink);
|
|
}
|
|
|
|
/* 主内容区 */
|
|
.explorer-main {
|
|
min-width: 0;
|
|
min-height: 0;
|
|
display: grid;
|
|
grid-template-rows: auto auto 1fr auto auto;
|
|
background: rgba(255, 255, 255, 0.28);
|
|
}
|
|
|
|
.explorer-navbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 10px 16px;
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
|
|
.explorer-nav-arrows {
|
|
display: flex;
|
|
gap: 4px;
|
|
}
|
|
|
|
.explorer-crumbs {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
flex: 1;
|
|
min-width: 0;
|
|
overflow-x: auto;
|
|
scrollbar-width: none;
|
|
}
|
|
|
|
.explorer-crumbs::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
.explorer-crumb {
|
|
padding: 6px 11px;
|
|
border-radius: 999px;
|
|
background: rgba(15, 118, 110, 0.08);
|
|
color: var(--accent-strong);
|
|
border: none;
|
|
white-space: nowrap;
|
|
font: inherit;
|
|
}
|
|
|
|
.explorer-crumb:hover {
|
|
background: rgba(15, 118, 110, 0.16);
|
|
}
|
|
|
|
.explorer-crumb-sep {
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.explorer-view-toggle {
|
|
display: flex;
|
|
border: 1px solid var(--line-strong);
|
|
border-radius: 10px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.explorer-view-toggle button {
|
|
width: 38px;
|
|
height: 34px;
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.explorer-view-toggle button.active {
|
|
background: rgba(15, 118, 110, 0.14);
|
|
color: var(--accent-strong);
|
|
}
|
|
|
|
.explorer-sort {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 13px;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.explorer-sort select {
|
|
width: auto;
|
|
padding: 7px 10px;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
/* 选择操作条 */
|
|
.explorer-action-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 10px 16px;
|
|
background: rgba(15, 118, 110, 0.06);
|
|
border-bottom: 1px solid rgba(15, 118, 110, 0.14);
|
|
}
|
|
|
|
.explorer-select-all {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.explorer-select-all input {
|
|
width: 17px;
|
|
height: 17px;
|
|
accent-color: var(--accent);
|
|
}
|
|
|
|
.explorer-pill {
|
|
padding: 8px 15px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.explorer-spacer {
|
|
flex: 1;
|
|
}
|
|
|
|
/* 文件区 */
|
|
.explorer-file-area {
|
|
overflow: auto;
|
|
min-height: 0;
|
|
padding: 8px 12px 16px;
|
|
}
|
|
|
|
/* 列表视图(表格) */
|
|
.explorer-tbl {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.explorer-tbl thead th {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 1;
|
|
text-align: left;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.04em;
|
|
color: var(--muted);
|
|
padding: 10px 12px;
|
|
background: var(--bg-strong);
|
|
border-bottom: 1px solid var(--line);
|
|
user-select: none;
|
|
}
|
|
|
|
.explorer-sortable:hover {
|
|
color: var(--ink);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.explorer-arrow {
|
|
color: var(--accent);
|
|
font-size: 10px;
|
|
}
|
|
|
|
.explorer-col-chk {
|
|
width: 42px;
|
|
text-align: center;
|
|
}
|
|
|
|
.explorer-col-size {
|
|
width: 110px;
|
|
text-align: right;
|
|
}
|
|
|
|
.explorer-col-type {
|
|
width: 120px;
|
|
}
|
|
|
|
.explorer-col-time {
|
|
width: 175px;
|
|
}
|
|
|
|
.explorer-tbl tbody tr {
|
|
border-bottom: 1px solid rgba(26, 36, 31, 0.06);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.explorer-tbl tbody tr:hover {
|
|
background: rgba(255, 255, 255, 0.72);
|
|
}
|
|
|
|
.explorer-tbl tbody tr.selected {
|
|
background: rgba(15, 118, 110, 0.08);
|
|
}
|
|
|
|
.explorer-tbl tbody tr.active {
|
|
outline: 2px solid rgba(15, 118, 110, 0.28);
|
|
outline-offset: -2px;
|
|
}
|
|
|
|
.explorer-tbl td {
|
|
padding: 8px 12px;
|
|
font-size: 14px;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.explorer-row-check {
|
|
width: 17px;
|
|
height: 17px;
|
|
accent-color: var(--accent);
|
|
}
|
|
|
|
.explorer-name-cell {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 11px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.explorer-thumb {
|
|
position: relative;
|
|
width: 46px;
|
|
height: 32px;
|
|
flex-shrink: 0;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
display: grid;
|
|
place-items: center;
|
|
background: rgba(255, 255, 255, 0.82);
|
|
border: 1px solid rgba(26, 36, 31, 0.08);
|
|
}
|
|
|
|
.explorer-thumb.folder {
|
|
background: linear-gradient(135deg, rgba(15, 118, 110, 0.16), rgba(15, 118, 110, 0.04));
|
|
}
|
|
|
|
.explorer-thumb img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.explorer-thumb-ico {
|
|
font-size: 17px;
|
|
}
|
|
|
|
.explorer-play {
|
|
position: absolute;
|
|
width: 18px;
|
|
height: 18px;
|
|
border-radius: 50%;
|
|
background: rgba(0, 0, 0, 0.45);
|
|
color: #fff;
|
|
display: grid;
|
|
place-items: center;
|
|
font-size: 9px;
|
|
}
|
|
|
|
.explorer-name-txt {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.explorer-badge-type {
|
|
font-size: 11px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
color: var(--accent-strong);
|
|
}
|
|
|
|
/* 网格视图 */
|
|
.explorer-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
|
|
gap: 14px;
|
|
padding: 6px;
|
|
}
|
|
|
|
.explorer-card {
|
|
border-radius: 16px;
|
|
padding: 12px;
|
|
background: var(--panel);
|
|
border: 1px solid var(--line);
|
|
box-shadow: var(--shadow-soft, 0 8px 22px rgba(31, 35, 32, 0.08));
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 9px;
|
|
position: relative;
|
|
cursor: pointer;
|
|
transition: transform 0.14s ease, border-color 0.14s ease;
|
|
}
|
|
|
|
.explorer-card:hover {
|
|
transform: translateY(-2px);
|
|
border-color: rgba(15, 118, 110, 0.26);
|
|
}
|
|
|
|
.explorer-card.selected {
|
|
border-color: rgba(15, 118, 110, 0.4);
|
|
background: rgba(15, 118, 110, 0.06);
|
|
}
|
|
|
|
.explorer-card.active {
|
|
outline: 2px solid rgba(15, 118, 110, 0.28);
|
|
}
|
|
|
|
.explorer-card-check {
|
|
position: absolute;
|
|
top: 12px;
|
|
left: 12px;
|
|
z-index: 1;
|
|
}
|
|
|
|
.explorer-cover {
|
|
position: relative;
|
|
aspect-ratio: 4 / 3;
|
|
border-radius: 11px;
|
|
overflow: hidden;
|
|
display: grid;
|
|
place-items: center;
|
|
font-size: 34px;
|
|
background: rgba(255, 255, 255, 0.72);
|
|
border: 1px solid rgba(26, 36, 31, 0.08);
|
|
}
|
|
|
|
.explorer-cover.folder {
|
|
background: linear-gradient(135deg, rgba(15, 118, 110, 0.16), rgba(15, 118, 110, 0.04));
|
|
}
|
|
|
|
.explorer-cover img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.explorer-play-lg {
|
|
position: absolute;
|
|
width: 34px;
|
|
height: 34px;
|
|
border-radius: 50%;
|
|
background: rgba(0, 0, 0, 0.45);
|
|
color: #fff;
|
|
display: grid;
|
|
place-items: center;
|
|
}
|
|
|
|
.explorer-card-cap {
|
|
font-size: 13px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.explorer-card-sub {
|
|
font-size: 12px;
|
|
color: var(--muted);
|
|
}
|
|
|
|
/* 批量进度 */
|
|
.explorer-batch-progress {
|
|
padding: 0 16px 12px;
|
|
}
|
|
|
|
/* 状态栏 */
|
|
.explorer-statusbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
padding: 8px 16px;
|
|
font-size: 12px;
|
|
color: var(--muted);
|
|
border-top: 1px solid var(--line);
|
|
background: var(--panel);
|
|
}
|
|
|
|
.explorer-link-like {
|
|
color: var(--accent-strong);
|
|
background: none;
|
|
border: none;
|
|
font: inherit;
|
|
}
|
|
|
|
/* 右侧详情面板 */
|
|
.explorer-detail {
|
|
border-left: 1px solid var(--line);
|
|
background: rgba(255, 255, 255, 0.5);
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.explorer-split:not(.with-detail) .explorer-detail {
|
|
display: none;
|
|
}
|
|
|
|
.explorer-detail-content {
|
|
padding: 16px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 14px;
|
|
}
|
|
|
|
.explorer-detail-head {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.explorer-detail-ico {
|
|
font-size: 28px;
|
|
}
|
|
|
|
.explorer-detail-ico-lg {
|
|
font-size: 44px;
|
|
}
|
|
|
|
.explorer-detail-title {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.explorer-preview-frame {
|
|
border-radius: 14px;
|
|
overflow: hidden;
|
|
background: linear-gradient(160deg, rgba(17, 24, 39, 0.92), rgba(38, 48, 62, 0.95));
|
|
display: grid;
|
|
place-items: center;
|
|
min-height: 180px;
|
|
}
|
|
|
|
.explorer-preview-frame video {
|
|
width: 100%;
|
|
display: block;
|
|
min-height: 180px;
|
|
background: transparent;
|
|
}
|
|
|
|
.explorer-preview-static {
|
|
aspect-ratio: 16 / 10;
|
|
color: #fff;
|
|
}
|
|
|
|
.explorer-preview-static img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.explorer-detail-status {
|
|
font-size: 13px;
|
|
color: var(--muted);
|
|
padding: 10px 12px;
|
|
border-radius: 12px;
|
|
background: var(--panel-strong);
|
|
word-break: break-word;
|
|
}
|
|
|
|
.explorer-detail-actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
/* 右键菜单 */
|
|
.explorer-context-menu {
|
|
position: fixed;
|
|
z-index: 50;
|
|
min-width: 180px;
|
|
padding: 6px;
|
|
border-radius: 14px;
|
|
background: var(--panel);
|
|
border: 1px solid var(--line);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.explorer-context-menu[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
.explorer-context-menu button {
|
|
width: 100%;
|
|
text-align: left;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 9px 11px;
|
|
border: none;
|
|
background: transparent;
|
|
border-radius: 9px;
|
|
font: inherit;
|
|
color: var(--ink);
|
|
}
|
|
|
|
.explorer-context-menu button:hover {
|
|
background: rgba(15, 118, 110, 0.1);
|
|
}
|
|
|
|
.explorer-context-menu .danger {
|
|
color: var(--danger);
|
|
}
|
|
|
|
.explorer-context-menu hr {
|
|
border: none;
|
|
border-top: 1px solid var(--line);
|
|
margin: 4px 2px;
|
|
}
|
|
|
|
/* 对话框 */
|
|
.explorer-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 100;
|
|
background: rgba(26, 36, 31, 0.5);
|
|
backdrop-filter: blur(4px);
|
|
display: grid;
|
|
place-items: center;
|
|
}
|
|
|
|
.explorer-overlay[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
.explorer-dialog {
|
|
width: min(560px, calc(100vw - 40px));
|
|
max-height: calc(100vh - 60px);
|
|
overflow-y: auto;
|
|
border-radius: 22px;
|
|
background: var(--panel);
|
|
border: 1px solid var(--line);
|
|
box-shadow: var(--shadow);
|
|
padding: 24px;
|
|
}
|
|
|
|
.explorer-dialog-wide {
|
|
width: min(760px, calc(100vw - 40px));
|
|
}
|
|
|
|
.explorer-dialog-head {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.explorer-dialog-head h3 {
|
|
font-size: 22px;
|
|
}
|
|
|
|
.explorer-manage-content {
|
|
display: grid;
|
|
gap: 16px;
|
|
}
|
|
|
|
/* 移动端遮罩 */
|
|
.explorer-backdrop {
|
|
display: none;
|
|
}
|
|
|
|
/* ── 响应式:平板 ── */
|
|
@media (max-width: 1080px) {
|
|
.explorer-split,
|
|
.explorer-split.with-detail {
|
|
grid-template-columns: 220px minmax(0, 1fr);
|
|
}
|
|
|
|
/* 详情面板改为从右滑入的覆盖式抽屉 */
|
|
.explorer-split.with-detail .explorer-detail {
|
|
position: fixed;
|
|
top: 56px;
|
|
right: 0;
|
|
bottom: 0;
|
|
width: min(360px, 90vw);
|
|
z-index: 40;
|
|
box-shadow: var(--shadow);
|
|
display: block;
|
|
}
|
|
|
|
/* 隐藏类型列,节省空间 */
|
|
.explorer-col-type {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
/* ── 响应式:手机 ── */
|
|
@media (max-width: 760px) {
|
|
.explorer-hamburger {
|
|
display: grid;
|
|
}
|
|
|
|
.explorer-brand span:last-child {
|
|
display: none;
|
|
}
|
|
|
|
.explorer-split,
|
|
.explorer-split.with-detail {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
}
|
|
|
|
/* 侧栏改为离屏抽屉 */
|
|
.explorer-sidebar {
|
|
position: fixed;
|
|
top: 56px;
|
|
left: 0;
|
|
bottom: 0;
|
|
width: min(260px, 82vw);
|
|
z-index: 45;
|
|
transform: translateX(-100%);
|
|
transition: transform 0.2s ease;
|
|
}
|
|
|
|
.explorer-sidebar.open {
|
|
transform: translateX(0);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.explorer-backdrop {
|
|
display: block;
|
|
position: fixed;
|
|
inset: 56px 0 0 0;
|
|
z-index: 44;
|
|
background: rgba(26, 36, 31, 0.4);
|
|
}
|
|
|
|
.explorer-backdrop[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
/* 详情/播放器全屏覆盖 */
|
|
.explorer-split.with-detail .explorer-detail {
|
|
width: 100vw;
|
|
top: 56px;
|
|
}
|
|
|
|
.explorer-search {
|
|
width: auto;
|
|
flex: 1;
|
|
}
|
|
|
|
.explorer-grid {
|
|
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
|
|
}
|
|
|
|
.explorer-col-size {
|
|
display: none;
|
|
}
|
|
|
|
.explorer-action-bar {
|
|
flex-wrap: wrap;
|
|
}
|
|
}
|