imeeting/frontend/src/pages/home/index.less

354 lines
8.3 KiB
Plaintext
Raw Normal View History

@home-primary: var(--app-primary-color, #6366f1);
@home-text-main: #0f172a; // ui-ux-pro-max slate-900
@home-text-gray: #475569; // ui-ux-pro-max slate-600
@home-bg: #f8fafc; // ui-ux-pro-max slate-50
.home-container {
position: relative;
min-height: calc(100vh - 160px);
padding: clamp(24px, 4vw, 40px) clamp(24px, 5vw, 60px);
background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
color: @home-text-main;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
overflow-x: hidden; // 允许垂直滚动
margin: -24px;
z-index: 1;
display: flex;
flex-direction: column;
.home-bg-visual {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
pointer-events: none;
z-index: -1;
overflow: hidden;
}
.home-bg-sphere {
position: absolute;
top: 50%;
left: clamp(50%, 70vw, 80%);
transform: translate(-50%, -50%);
width: clamp(500px, 70vw, 900px);
height: clamp(500px, 70vw, 900px);
border-radius: 50%;
background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(220, 230, 255, 0.4) 40%, transparent 70%);
box-shadow: inset 0 0 100px rgba(255,255,255,0.5);
filter: blur(20px);
&::after {
content: '';
position: absolute;
top: 30%;
left: 20%;
width: 60%;
height: 40%;
background: radial-gradient(ellipse, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
filter: blur(40px);
border-radius: 50%;
transform: rotate(-15deg);
}
}
.home-content-wrapper {
position: relative;
z-index: 2;
max-width: 1400px;
width: 100%;
margin: 0 auto;
flex: 1; // 占满剩余高度
display: flex;
flex-direction: column;
justify-content: flex-start;
}
.home-hero {
margin-bottom: 56px;
padding-top: 32px;
}
.home-title {
font-size: clamp(40px, 5vw, 64px) !important;
font-weight: 800 !important;
margin-bottom: 56px !important;
color: @home-text-main !important;
letter-spacing: -0.02em; // Tighter tracking
.home-title-accent {
background: linear-gradient(90deg, #4f46e5, #7c3aed, #2563eb); // Deeper, more elegant gradient
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
}
.home-quick-actions {
display: flex;
gap: 64px;
flex-wrap: wrap;
@media (max-width: 768px) {
gap: 32px;
}
}
.home-action-item {
display: flex;
flex-direction: column;
align-items: flex-start;
cursor: pointer;
max-width: 240px;
&:hover {
.home-action-icon-wrapper {
transform: translateY(-6px);
}
.home-action-icon {
box-shadow:
0 10px 25px -5px rgba(0, 0, 0, 0.1),
0 8px 10px -6px rgba(0, 0, 0, 0.05),
inset 0 1px 0 rgba(255,255,255,1);
}
.home-action-icon-glow {
opacity: 0.8;
transform: translateY(14px) scale(0.9);
}
.home-action-title {
color: @home-primary !important;
}
}
&--violet {
--action-color: #7c3aed;
--action-bg: rgba(124, 58, 237, 0.15);
}
&--cyan {
--action-color: #0284c7;
--action-bg: rgba(2, 132, 199, 0.15);
}
.home-action-icon-wrapper {
position: relative;
width: 64px;
height: 64px;
margin-bottom: 24px;
transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); // Springy bounce
}
.home-action-icon {
position: relative;
z-index: 2;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
font-size: 28px;
color: var(--action-color);
background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
border-radius: 20px;
border: 1px solid rgba(255, 255, 255, 0.8);
// Apple-like nested shadow
box-shadow:
0 4px 6px -1px rgba(0, 0, 0, 0.05),
0 2px 4px -2px rgba(0, 0, 0, 0.05),
inset 0 1px 0 rgba(255,255,255,1);
transition: box-shadow 0.4s ease;
}
.home-action-icon-glow {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) translateY(8px) scale(0.8);
width: 100%;
height: 100%;
background: var(--action-bg);
border-radius: 50%;
filter: blur(14px);
z-index: 1;
opacity: 0.5;
transition: all 0.4s ease;
}
.home-action-title {
font-size: 20px !important;
font-weight: 700 !important;
margin-bottom: 12px !important;
color: @home-text-main !important;
transition: color 0.3s ease;
}
.home-action-desc {
display: flex;
flex-direction: column;
gap: 4px;
}
.home-action-line {
font-size: 14px;
color: @home-text-gray;
line-height: 1.6;
}
}
.home-recent-section {
margin-top: auto;
}
.home-section-header {
display: flex;
align-items: baseline;
gap: 16px;
margin-bottom: 24px;
h3 {
font-size: 18px !important;
font-weight: 600 !important;
margin: 0 !important;
color: @home-text-gray !important;
}
}
.home-view-all {
display: none;
}
.home-recent-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 24px;
@media (max-width: 1024px) {
grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 768px) {
grid-template-columns: 1fr;
}
}
.home-recent-card {
display: flex;
background: rgba(255, 255, 255, 0.7); // Glassmorphism base
backdrop-filter: blur(20px);
border-radius: 16px;
padding: 16px;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
// Sophisticated inner and outer shadows
box-shadow:
0 4px 6px -1px rgba(0, 0, 0, 0.02),
0 2px 4px -2px rgba(0, 0, 0, 0.02),
inset 0 1px 0 rgba(255, 255, 255, 0.6);
border: 1px solid rgba(255, 255, 255, 0.8);
&:hover {
transform: translateY(-4px);
background: rgba(255, 255, 255, 0.95);
border-color: rgba(99, 102, 241, 0.15);
box-shadow:
0 20px 25px -5px rgba(0, 0, 0, 0.05),
0 8px 10px -6px rgba(0, 0, 0, 0.01),
inset 0 1px 0 rgba(255, 255, 255, 0.8);
.home-recent-card-action {
color: @home-primary;
transform: translateX(0);
opacity: 1;
}
}
.home-recent-card-thumbnail {
width: 100px;
height: 72px;
background: linear-gradient(135deg, #e0e7ff 0%, #dbeafe 100%);
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
margin-right: 16px;
flex-shrink: 0;
border: 1px solid rgba(255, 255, 255, 0.5);
.home-recent-card-play-icon {
font-size: 24px;
color: #fff;
opacity: 0.9;
filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
}
.home-recent-card-content {
display: flex;
flex-direction: column;
justify-content: center;
flex: 1;
min-width: 0;
}
.home-recent-card-title {
font-size: 15px !important;
font-weight: 600 !important;
margin-bottom: 8px !important;
color: @home-text-main !important;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.home-recent-card-footer {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 13px;
}
.home-recent-card-duration {
color: @home-text-gray;
font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
font-size: 12px;
}
.home-recent-card-action {
color: transparent;
font-weight: 500;
transition: all 0.3s ease;
transform: translateX(-4px);
opacity: 0;
}
}
.home-recent-skeleton {
background: #ffffff;
border-radius: 16px;
padding: 16px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.home-empty-state {
padding: 40px;
text-align: center;
}
}
.home-container > * {
animation: homeFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.home-bg-visual { animation-delay: 0s; }
.home-content-wrapper { animation-delay: 0.1s; }
@keyframes homeFadeUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}