feat(front): 前台默认浅色模式并新增居中投稿按钮与实时空闲档期
- 主题: useTheme 默认 ModernLight + variables.css SSR-safe 浅值并精修组件对比度 - 首页: 插入居中投稿 CTA + 紧邻档期概览卡片(今日排期/待播歌曲/空闲档期数) - 数据: useSongs 新增 fetchExpectedPlayDates 接入空闲档期并走 revision 轮询实时刷新 - 视觉: 移动端优先,少圆角硬边几何 + 概览卡片 3→1 列响应式
This commit is contained in:
+337
-4
@@ -7,7 +7,7 @@
|
||||
|
||||
/* 防止浏览器自动应用深色主题:改为跟随 data-theme 动态覆盖(见 theme-protection.css) */
|
||||
:root {
|
||||
color-scheme: light dark;
|
||||
color-scheme: light;
|
||||
}
|
||||
|
||||
/* 流体背景与全局样式 */
|
||||
@@ -82,9 +82,9 @@ body::before {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background:
|
||||
radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.03) 0%, transparent 50%),
|
||||
radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.01) 0%, transparent 50%),
|
||||
radial-gradient(circle at 40% 80%, rgba(120, 119, 198, 0.02) 0%, transparent 50%);
|
||||
radial-gradient(circle at 20% 50%, rgba(79, 70, 229, 0.035) 0%, transparent 55%),
|
||||
radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.025) 0%, transparent 55%),
|
||||
radial-gradient(circle at 40% 80%, rgba(79, 70, 229, 0.02) 0%, transparent 55%);
|
||||
z-index: -1;
|
||||
pointer-events: none;
|
||||
}
|
||||
@@ -472,3 +472,336 @@ body::before {
|
||||
max-width: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* =========================================================
|
||||
* 前台浅色模式对比度覆盖(ScheduleList / RequestForm 等组件)
|
||||
* 将所有硬编码的 rgba(255,255,255,*) 白系文字统一替换为
|
||||
* 适配浅底的深灰/主题色,保证 WCAG AA 可读性
|
||||
* =======================================================*/
|
||||
html[data-theme='light'],
|
||||
html[data-theme='ClassicLight'],
|
||||
html[data-theme='ModernLight'] {
|
||||
/* ScheduleList.vue 主区块硬编码颜色校正 */
|
||||
color-scheme: light;
|
||||
}
|
||||
|
||||
html[data-theme='light'] .schedule-list .date-item,
|
||||
html[data-theme='ClassicLight'] .schedule-list .date-item,
|
||||
html[data-theme='ModernLight'] .schedule-list .date-item,
|
||||
html[data-theme='light'] .song-list .date-item,
|
||||
html[data-theme='ClassicLight'] .song-list .date-item,
|
||||
html[data-theme='ModernLight'] .song-list .date-item {
|
||||
color: var(--text-secondary) !important;
|
||||
}
|
||||
|
||||
html[data-theme='light'] .schedule-list .empty-dates,
|
||||
html[data-theme='ClassicLight'] .schedule-list .empty-dates,
|
||||
html[data-theme='ModernLight'] .schedule-list .empty-dates,
|
||||
html[data-theme='light'] .schedule-list .loading,
|
||||
html[data-theme='ClassicLight'] .schedule-list .loading,
|
||||
html[data-theme='ModernLight'] .schedule-list .loading,
|
||||
html[data-theme='light'] .schedule-list .error,
|
||||
html[data-theme='ClassicLight'] .schedule-list .error,
|
||||
html[data-theme='ModernLight'] .schedule-list .error,
|
||||
html[data-theme='light'] .schedule-list .empty,
|
||||
html[data-theme='ClassicLight'] .schedule-list .empty,
|
||||
html[data-theme='ModernLight'] .schedule-list .empty {
|
||||
color: var(--text-tertiary) !important;
|
||||
}
|
||||
|
||||
html[data-theme='light'] .schedule-list .playtime-header h4,
|
||||
html[data-theme='ClassicLight'] .schedule-list .playtime-header h4,
|
||||
html[data-theme='ModernLight'] .schedule-list .playtime-header h4 {
|
||||
color: var(--text-secondary) !important;
|
||||
}
|
||||
|
||||
html[data-theme='light'] .schedule-list .playtime-time,
|
||||
html[data-theme='ClassicLight'] .schedule-list .playtime-time,
|
||||
html[data-theme='ModernLight'] .schedule-list .playtime-time {
|
||||
color: var(--text-tertiary) !important;
|
||||
}
|
||||
|
||||
html[data-theme='light'] .schedule-list .playlist-modal,
|
||||
html[data-theme='ClassicLight'] .schedule-list .playlist-modal,
|
||||
html[data-theme='ModernLight'] .schedule-list .playlist-modal {
|
||||
border-color: var(--border-secondary) !important;
|
||||
}
|
||||
|
||||
html[data-theme='light'] .schedule-list .playlist-modal-header,
|
||||
html[data-theme='ClassicLight'] .schedule-list .playlist-modal-header,
|
||||
html[data-theme='ModernLight'] .schedule-list .playlist-modal-header,
|
||||
html[data-theme='light'] .schedule-list .playlist-modal-footer,
|
||||
html[data-theme='ClassicLight'] .schedule-list .playlist-modal-footer,
|
||||
html[data-theme='ModernLight'] .schedule-list .playlist-modal-footer {
|
||||
border-color: var(--border-secondary) !important;
|
||||
}
|
||||
|
||||
html[data-theme='light'] .schedule-list .song-meta .meta-secondary,
|
||||
html[data-theme='ClassicLight'] .schedule-list .song-meta .meta-secondary,
|
||||
html[data-theme='ModernLight'] .schedule-list .song-meta .meta-secondary,
|
||||
html[data-theme='light'] .schedule-list .song-meta .meta-placeholder,
|
||||
html[data-theme='ClassicLight'] .schedule-list .song-meta .meta-placeholder,
|
||||
html[data-theme='ModernLight'] .schedule-list .song-meta .meta-placeholder,
|
||||
html[data-theme='light'] .schedule-list .slot-hint,
|
||||
html[data-theme='ClassicLight'] .schedule-list .slot-hint,
|
||||
html[data-theme='ModernLight'] .schedule-list .slot-hint,
|
||||
html[data-theme='light'] .schedule-list .requestor-text,
|
||||
html[data-theme='ClassicLight'] .schedule-list .requestor-text,
|
||||
html[data-theme='ModernLight'] .schedule-list .requestor-text,
|
||||
html[data-theme='light'] .schedule-list .pill-empty,
|
||||
html[data-theme='ClassicLight'] .schedule-list .pill-empty,
|
||||
html[data-theme='ModernLight'] .schedule-list .pill-empty,
|
||||
html[data-theme='light'] .schedule-list .empty-slot,
|
||||
html[data-theme='ClassicLight'] .schedule-list .empty-slot,
|
||||
html[data-theme='ModernLight'] .schedule-list .empty-slot {
|
||||
color: var(--text-tertiary) !important;
|
||||
}
|
||||
|
||||
html[data-theme='light'] .schedule-list .chip,
|
||||
html[data-theme='ClassicLight'] .schedule-list .chip,
|
||||
html[data-theme='ModernLight'] .schedule-list .chip,
|
||||
html[data-theme='light'] .schedule-list .tag,
|
||||
html[data-theme='ClassicLight'] .schedule-list .tag,
|
||||
html[data-theme='ModernLight'] .schedule-list .tag,
|
||||
html[data-theme='light'] .schedule-list .badge-soft,
|
||||
html[data-theme='ClassicLight'] .schedule-list .badge-soft,
|
||||
html[data-theme='ModernLight'] .schedule-list .badge-soft {
|
||||
background: var(--bg-secondary) !important;
|
||||
border-color: var(--border-secondary) !important;
|
||||
color: var(--text-secondary) !important;
|
||||
}
|
||||
|
||||
html[data-theme='light'] .schedule-list .divider-subtle,
|
||||
html[data-theme='ClassicLight'] .schedule-list .divider-subtle,
|
||||
html[data-theme='ModernLight'] .schedule-list .divider-subtle,
|
||||
html[data-theme='light'] .schedule-list .card-border,
|
||||
html[data-theme='ClassicLight'] .schedule-list .card-border,
|
||||
html[data-theme='ModernLight'] .schedule-list .card-border {
|
||||
border-color: var(--border-secondary) !important;
|
||||
}
|
||||
|
||||
/* RequestForm / SongList / Dialog 通用硬编码白字校正 */
|
||||
html[data-theme='light'] .request-form .label-subtle,
|
||||
html[data-theme='ClassicLight'] .request-form .label-subtle,
|
||||
html[data-theme='ModernLight'] .request-form .label-subtle,
|
||||
html[data-theme='light'] .request-form .hint-subtle,
|
||||
html[data-theme='ClassicLight'] .request-form .hint-subtle,
|
||||
html[data-theme='ModernLight'] .request-form .hint-subtle,
|
||||
html[data-theme='light'] .request-form .placeholder-subtle,
|
||||
html[data-theme='ClassicLight'] .request-form .placeholder-subtle,
|
||||
html[data-theme='ModernLight'] .request-form .placeholder-subtle,
|
||||
html[data-theme='light'] .song-list .muted,
|
||||
html[data-theme='ClassicLight'] .song-list .muted,
|
||||
html[data-theme='ModernLight'] .song-list .muted,
|
||||
html[data-theme='light'] .song-list .subtle-text,
|
||||
html[data-theme='ClassicLight'] .song-list .subtle-text,
|
||||
html[data-theme='ModernLight'] .song-list .subtle-text {
|
||||
color: var(--text-tertiary) !important;
|
||||
}
|
||||
|
||||
html[data-theme='light'] .request-form .glass-surface,
|
||||
html[data-theme='ClassicLight'] .request-form .glass-surface,
|
||||
html[data-theme='ModernLight'] .request-form .glass-surface,
|
||||
html[data-theme='light'] .request-form .surface-chip,
|
||||
html[data-theme='ClassicLight'] .request-form .surface-chip,
|
||||
html[data-theme='ModernLight'] .request-form .surface-chip,
|
||||
html[data-theme='light'] .song-list .glass-surface,
|
||||
html[data-theme='ClassicLight'] .song-list .glass-surface,
|
||||
html[data-theme='ModernLight'] .song-list .glass-surface,
|
||||
html[data-theme='light'] .song-list .surface-chip,
|
||||
html[data-theme='ClassicLight'] .song-list .surface-chip,
|
||||
html[data-theme='ModernLight'] .song-list .surface-chip {
|
||||
background: var(--bg-secondary) !important;
|
||||
border-color: var(--border-secondary) !important;
|
||||
}
|
||||
|
||||
/* =========================================================
|
||||
* 首页 Hero CTA 区样式 — 投稿按钮居中 + 档期概览卡片
|
||||
* 移动端优先 / 少圆角 / 硬边几何 / 现代浅色专业风格
|
||||
* =======================================================*/
|
||||
.hero-cta-section {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 28px 16px 20px;
|
||||
gap: 14px;
|
||||
width: 100%;
|
||||
max-width: 760px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.hero-request-btn {
|
||||
position: relative;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 10px;
|
||||
min-width: 240px;
|
||||
width: min(86%, 360px);
|
||||
height: 58px;
|
||||
padding: 0 22px;
|
||||
border-radius: 14px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.18);
|
||||
background: linear-gradient(135deg, var(--primary) 0%, #4338ca 100%);
|
||||
color: #ffffff;
|
||||
font-family: 'MiSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
||||
font-size: 17px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.2px;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
box-shadow:
|
||||
0 10px 24px -10px rgba(79, 70, 229, 0.55),
|
||||
0 4px 10px -4px rgba(79, 70, 229, 0.35);
|
||||
transition: transform 0.18s cubic-bezier(0.2, 0.9, 0.2, 1),
|
||||
box-shadow 0.18s ease, filter 0.18s ease;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
}
|
||||
.hero-request-btn:hover {
|
||||
transform: translateY(-1px);
|
||||
filter: brightness(1.03);
|
||||
box-shadow:
|
||||
0 14px 28px -10px rgba(79, 70, 229, 0.62),
|
||||
0 6px 12px -4px rgba(79, 70, 229, 0.42);
|
||||
}
|
||||
.hero-request-btn:active {
|
||||
transform: translateY(0);
|
||||
filter: brightness(0.97);
|
||||
box-shadow:
|
||||
0 6px 14px -6px rgba(79, 70, 229, 0.5),
|
||||
0 2px 6px -2px rgba(79, 70, 229, 0.35);
|
||||
}
|
||||
.hero-request-btn .btn-icon {
|
||||
font-size: 20px;
|
||||
line-height: 1;
|
||||
}
|
||||
.hero-request-btn .btn-icon.pulse::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
top: 10px;
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: #22c55e;
|
||||
box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22);
|
||||
}
|
||||
|
||||
.schedule-overview-card {
|
||||
width: 100%;
|
||||
max-width: 720px;
|
||||
padding: 18px 18px;
|
||||
border-radius: 12px;
|
||||
background: var(--card-bg, #ffffff);
|
||||
border: 1px solid var(--card-border, #e4e4e7);
|
||||
box-shadow: var(--card-shadow);
|
||||
}
|
||||
.schedule-overview-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 10px;
|
||||
}
|
||||
@media (max-width: 520px) {
|
||||
.schedule-overview-grid {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 12px;
|
||||
}
|
||||
}
|
||||
.overview-stat {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
justify-content: center;
|
||||
padding: 14px 16px;
|
||||
border-radius: 10px;
|
||||
background: var(--bg-secondary);
|
||||
border: 1px solid var(--border-secondary);
|
||||
min-height: 96px;
|
||||
}
|
||||
.overview-stat .stat-icon {
|
||||
font-size: 16px;
|
||||
line-height: 1;
|
||||
margin-bottom: 6px;
|
||||
color: var(--text-tertiary);
|
||||
}
|
||||
.overview-stat .stat-label {
|
||||
font-size: 12px;
|
||||
line-height: 1.4;
|
||||
color: var(--text-tertiary);
|
||||
font-weight: 500;
|
||||
margin-bottom: 6px;
|
||||
letter-spacing: 0.2px;
|
||||
}
|
||||
.overview-stat .stat-value {
|
||||
font-size: 22px;
|
||||
font-weight: 700;
|
||||
color: var(--text-primary);
|
||||
line-height: 1.2;
|
||||
letter-spacing: -0.3px;
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 6px;
|
||||
}
|
||||
.overview-stat .stat-value .unit {
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
color: var(--text-tertiary);
|
||||
letter-spacing: 0;
|
||||
}
|
||||
.overview-stat.primary {
|
||||
background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(14, 165, 233, 0.06));
|
||||
border-color: rgba(79, 70, 229, 0.15);
|
||||
}
|
||||
.overview-stat.primary .stat-value {
|
||||
color: var(--primary);
|
||||
font-size: 28px;
|
||||
}
|
||||
.overview-stat.primary .stat-icon {
|
||||
color: var(--primary);
|
||||
}
|
||||
.overview-stat .stat-detail {
|
||||
margin-top: 4px;
|
||||
font-size: 11px;
|
||||
color: var(--text-tertiary);
|
||||
line-height: 1.35;
|
||||
}
|
||||
.overview-stat .live-dot {
|
||||
display: inline-block;
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
border-radius: 50%;
|
||||
background: #22c55e;
|
||||
margin-right: 5px;
|
||||
vertical-align: middle;
|
||||
box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
|
||||
animation: live-pulse 1.6s ease-in-out infinite;
|
||||
}
|
||||
@keyframes live-pulse {
|
||||
0%, 100% { opacity: 1; transform: scale(1); }
|
||||
50% { opacity: 0.65; transform: scale(0.92); }
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.hero-cta-section {
|
||||
padding: 22px 12px 16px;
|
||||
gap: 12px;
|
||||
}
|
||||
.hero-request-btn {
|
||||
height: 54px;
|
||||
font-size: 16px;
|
||||
border-radius: 12px;
|
||||
width: 88%;
|
||||
}
|
||||
.schedule-overview-card {
|
||||
padding: 14px 12px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
.overview-stat {
|
||||
padding: 12px 14px;
|
||||
min-height: 84px;
|
||||
}
|
||||
.overview-stat.primary .stat-value {
|
||||
font-size: 26px;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user