feat: 实现核心 UI 样式,包括全局样式、主题和 Daily Insight Card 组件样式。
This commit is contained in:
@@ -1,17 +1,42 @@
|
||||
/* Premium Daily Insight Card */
|
||||
.daily-insight-card {
|
||||
background: var(--glass-panel-bg);
|
||||
backdrop-filter: blur(24px);
|
||||
border: 1px solid var(--glass-border);
|
||||
background: rgba(255, 255, 255, 0.7);
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
border: 1px solid rgba(255, 255, 255, 0.5);
|
||||
border-radius: var(--radius-xl);
|
||||
padding: 1.25rem;
|
||||
padding: 1.5rem;
|
||||
margin-bottom: 2rem;
|
||||
box-shadow: var(--shadow-md);
|
||||
animation: slideUp 0.5s ease-out;
|
||||
box-shadow:
|
||||
0 10px 30px -5px rgba(245, 158, 11, 0.1),
|
||||
0 4px 6px -2px rgba(245, 158, 11, 0.05),
|
||||
inset 0 0 0 1px rgba(255, 255, 255, 0.6);
|
||||
animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
gap: 1.25rem;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
||||
}
|
||||
|
||||
.daily-insight-card:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow:
|
||||
0 20px 40px -5px rgba(245, 158, 11, 0.15),
|
||||
0 8px 10px -2px rgba(245, 158, 11, 0.05);
|
||||
}
|
||||
|
||||
/* AI Glowing Border Effect */
|
||||
.daily-insight-card--ai::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 3px;
|
||||
background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b);
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
.daily-insight-card--ai::after {
|
||||
@@ -21,8 +46,9 @@
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 1px;
|
||||
background: linear-gradient(90deg, transparent, rgba(var(--color-primary-rgb), 0.5), transparent);
|
||||
animation: scan 3s infinite linear;
|
||||
background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.8), transparent);
|
||||
animation: scan 4s infinite ease-in-out;
|
||||
filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.5));
|
||||
}
|
||||
|
||||
@keyframes scan {
|
||||
@@ -30,6 +56,7 @@
|
||||
transform: translateX(-100%);
|
||||
}
|
||||
|
||||
50%,
|
||||
100% {
|
||||
transform: translateX(100%);
|
||||
}
|
||||
@@ -38,88 +65,90 @@
|
||||
.daily-insight__header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
color: var(--color-primary);
|
||||
font-weight: 700;
|
||||
font-size: 0.9rem;
|
||||
gap: 0.75rem;
|
||||
color: #d97706;
|
||||
/* Amber-600 */
|
||||
font-weight: 800;
|
||||
font-size: 0.85rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
letter-spacing: 1px;
|
||||
padding-bottom: 0.75rem;
|
||||
border-bottom: 1px dashed rgba(245, 158, 11, 0.2);
|
||||
}
|
||||
|
||||
.daily-insight__content {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1px 1fr;
|
||||
gap: 1rem;
|
||||
align-items: center;
|
||||
gap: 2rem;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.daily-insight__divider {
|
||||
width: 1px;
|
||||
height: 40px;
|
||||
background: var(--color-border);
|
||||
height: 100%;
|
||||
min-height: 80px;
|
||||
background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.06), transparent);
|
||||
}
|
||||
|
||||
.daily-insight__section {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.daily-insight__title {
|
||||
font-size: 0.8rem;
|
||||
font-size: 0.75rem;
|
||||
color: var(--color-text-secondary);
|
||||
font-weight: 600;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.daily-insight__title::before {
|
||||
content: '';
|
||||
display: block;
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
border-radius: 50%;
|
||||
background: #fbbf24;
|
||||
}
|
||||
|
||||
.daily-insight__text {
|
||||
font-size: 0.95rem;
|
||||
font-family: 'Outfit', sans-serif;
|
||||
/* Fallback for numbers, Chinese font handles text */
|
||||
font-size: 1rem;
|
||||
color: var(--color-text);
|
||||
line-height: 1.4;
|
||||
line-height: 1.6;
|
||||
letter-spacing: 0.01em;
|
||||
}
|
||||
|
||||
.daily-insight__highlight {
|
||||
font-weight: 700;
|
||||
color: var(--color-primary);
|
||||
}
|
||||
|
||||
.daily-insight__highlight--success {
|
||||
color: var(--color-success);
|
||||
}
|
||||
|
||||
.daily-insight__highlight--warning {
|
||||
color: #F59E0B;
|
||||
}
|
||||
|
||||
.daily-insight__highlight--danger {
|
||||
color: #EF4444;
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
@media (max-width: 768px) {
|
||||
.daily-insight__content {
|
||||
grid-template-columns: 1fr;
|
||||
grid-template-rows: auto auto auto;
|
||||
gap: 1rem;
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.daily-insight__divider {
|
||||
width: 100%;
|
||||
height: 1px;
|
||||
min-height: 1px;
|
||||
background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.06), transparent);
|
||||
}
|
||||
}
|
||||
|
||||
.daily-insight-card--ai {
|
||||
border: 1px solid rgba(var(--color-primary-rgb), 0.3);
|
||||
background: linear-gradient(145deg, rgba(var(--color-primary-rgb), 0.05), var(--glass-panel-bg));
|
||||
}
|
||||
|
||||
.daily-insight__loading-badge {
|
||||
font-size: 0.7rem;
|
||||
color: var(--color-text-secondary);
|
||||
background: rgba(0, 0, 0, 0.05);
|
||||
padding: 2px 6px;
|
||||
border-radius: 4px;
|
||||
color: #d97706;
|
||||
background: rgba(251, 191, 36, 0.1);
|
||||
padding: 2px 8px;
|
||||
border-radius: 12px;
|
||||
margin-left: auto;
|
||||
animation: pulse 1.5s infinite;
|
||||
font-weight: 600;
|
||||
animation: pulse 2s infinite ease-in-out;
|
||||
}
|
||||
|
||||
@keyframes pulse {
|
||||
@@ -135,7 +164,7 @@
|
||||
}
|
||||
|
||||
.animate-fade-in {
|
||||
animation: fadeIn 0.5s ease;
|
||||
animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
|
||||
}
|
||||
|
||||
.section-header-row {
|
||||
@@ -146,26 +175,30 @@
|
||||
|
||||
.week-diff-badge {
|
||||
font-size: 0.7rem;
|
||||
padding: 1px 6px;
|
||||
border-radius: 4px;
|
||||
font-weight: 600;
|
||||
padding: 2px 8px;
|
||||
border-radius: 12px;
|
||||
font-weight: 700;
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
|
||||
.week-diff-badge.green {
|
||||
background: rgba(16, 185, 129, 0.1);
|
||||
color: #10B981;
|
||||
background: rgba(16, 185, 129, 0.15);
|
||||
color: #059669;
|
||||
/* Emerald 600 */
|
||||
}
|
||||
|
||||
.week-diff-badge.red {
|
||||
background: rgba(239, 68, 68, 0.1);
|
||||
color: #EF4444;
|
||||
color: #DC2626;
|
||||
/* Red 600 */
|
||||
}
|
||||
|
||||
/* Emoji badge in header */
|
||||
/* Emoji badge */
|
||||
.daily-insight__emoji {
|
||||
font-size: 1.2rem;
|
||||
font-size: 1.5rem;
|
||||
margin-left: auto;
|
||||
animation: bounce 1s ease-in-out;
|
||||
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
|
||||
animation: bounce 1s cubic-bezier(0.34, 1.56, 0.64, 1);
|
||||
}
|
||||
|
||||
@keyframes bounce {
|
||||
@@ -176,24 +209,31 @@
|
||||
}
|
||||
|
||||
50% {
|
||||
transform: scale(1.2);
|
||||
transform: scale(1.2) rotate(10deg);
|
||||
}
|
||||
}
|
||||
|
||||
/* Tip section at bottom */
|
||||
.daily-insight__tip {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
padding: 0.75rem 1rem;
|
||||
background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.08), rgba(var(--color-primary-rgb), 0.02));
|
||||
align-items: flex-start;
|
||||
gap: 0.75rem;
|
||||
padding: 1rem 1.25rem;
|
||||
background: linear-gradient(135deg, #fffbeb, #fef3c7);
|
||||
border-radius: var(--radius-lg);
|
||||
font-size: 0.85rem;
|
||||
color: var(--color-text-secondary);
|
||||
font-size: 0.9rem;
|
||||
color: #92400e;
|
||||
/* Amber 800 */
|
||||
font-weight: 500;
|
||||
grid-column: 1 / -1;
|
||||
border: 1px solid rgba(251, 191, 36, 0.3);
|
||||
box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.05);
|
||||
}
|
||||
|
||||
.daily-insight__tip svg {
|
||||
color: var(--color-primary);
|
||||
color: #d97706;
|
||||
/* Amber 600 */
|
||||
flex-shrink: 0;
|
||||
margin-top: 2px;
|
||||
filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.2));
|
||||
}
|
||||
Reference in New Issue
Block a user