feat: 首页响应式视觉升级与全局UI细节打磨
本次提交包含以下改进: ## 1. 首页轮播卡片响应式重构 (HomePage.tsx + home.css) - 将旋转木马卡片偏移量从固定px值改为clamp()流式单位,随视口宽度自适应缩放 - 使用calc(0px - ...)替代乘法计算方向偏移,兼容CSS变量传递 - 轮播舞台新增mask-image渐变遮罩,边缘卡片自然淡出 - 非激活卡片增加saturate/brightness滤镜,强化主次视觉层级 - 激活卡与非激活卡分别设置图片filter效果 - 移除旧carousel-card-label样式 - 多断点适配:1200px/980px/720px/480px逐级调整卡片尺寸和舞台高度 ## 2. 首页入口按钮重设计 (HomePage.tsx + home.css) - 按钮文案从'新手/老手/电商'改为'快速生成/专业创作/电商出图' - 每个按钮新增small副标题('新手友好'/'画布工作流'/'商品视觉') - 主按钮(专业创作)使用渐变绿色背景+发光阴影,新建--primary small样式 - 普通按钮玻璃态背景+内阴影,hover绿色边框高亮 - 720px以下单列全宽布局,按钮居中 ## 3. 首页全页视觉强化 (home.css) - Scrim层三重渐变叠加+radial光晕 - Hero区域文字text-shadow + text-wrap: balance排版 - Feature页面::before叠加渐变遮罩 - Feature Visual卡片增加边框/阴影/背景三层嵌套 - Experience区域斜向分割线装饰背景 - Cookie Consent弹窗玻璃态重设计,移动端自适应 ## 4. 首页工具盒区域打磨 (toolbox.css) - 全新CSS变量(--toolbox-radius-card/inner) - 工具盒整体深色渐变背景+radial光晕 - Shell容器max-width + clamp流式padding - 左侧品牌区域标题/brand-icon/subtitle重设计 - 工具列表项、工作流卡片统一玻璃态风格 - 工具卡片hover上浮4px+绿色边框+阴影增强 - @media: 1160px/980px/680px/420px四断点响应式 ## 5. 工具盒卡片布局简化 (MorePage.tsx + more.css) - 核心工具卡片移除独立icon区域,改为单列网格布局 - 普通工具卡片隐藏.more-card__icon(近期记录除外) - 预览图aspect-ratio从16/9改为4/3,内边距优化 - 移动端移除featured-icon相关样式 ## 6. 脚本评审Showcase响应式改造 (script-review-showcase.css) - 主容器从@media切换为@container查询,跟随父容器自适应 - 新增880px/720px/560px三档container断点 - 图表列在720px以下改为水平进度条布局(bar从垂直改水平) - 图表列增加卡片边框/圆角/背景 - 品牌区域、评分标签、流程卡片逐级压缩 - @media保留外层padding控制 ## 7. 通知中心UI修复 (dark-green.css) - notification-center改为inline-flex定位锚点 - 面板改为absolute+flex列布局,修复定位偏移 - 列表flex自适应高度+overscroll-behavior: contain - 移动端面板右偏移clamp适配,箭头位置同步 - 高度单位从vh改为dvh,避免移动浏览器地址栏干扰
This commit is contained in:
@@ -684,12 +684,6 @@
|
||||
}
|
||||
|
||||
@container (max-width: 1120px) {
|
||||
.omni-script-review-showcase {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 18px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.srs-left-panel {
|
||||
grid-template-rows: auto auto auto;
|
||||
gap: 16px;
|
||||
@@ -711,13 +705,32 @@
|
||||
}
|
||||
|
||||
.srs-results-panel {
|
||||
grid-template-rows: auto minmax(320px, auto) auto;
|
||||
grid-template-rows: auto minmax(300px, auto) auto;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 980px) {
|
||||
.omni-script-review-showcase {
|
||||
padding: 22px;
|
||||
@container (max-width: 880px) {
|
||||
.srs-brand-section {
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.srs-brand-section h1 {
|
||||
max-width: 100%;
|
||||
font-size: clamp(28px, 8cqw, 44px);
|
||||
}
|
||||
|
||||
.srs-brand-section p {
|
||||
font-size: clamp(14px, 3.2cqw, 17px);
|
||||
line-height: 1.65;
|
||||
}
|
||||
|
||||
.srs-point-card {
|
||||
min-height: 0;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.srs-results-panel {
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.srs-score-hero {
|
||||
@@ -729,33 +742,118 @@
|
||||
display: none;
|
||||
}
|
||||
|
||||
.srs-chart-body,
|
||||
.srs-triple-section,
|
||||
.srs-point-list {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.srs-chart-col {
|
||||
grid-template-columns: minmax(70px, 92px) minmax(0, 1fr);
|
||||
grid-template-rows: auto;
|
||||
align-items: center;
|
||||
justify-items: stretch;
|
||||
}
|
||||
|
||||
.srs-chart-bar-wrap {
|
||||
min-height: 80px;
|
||||
}
|
||||
|
||||
.srs-chart-col-label {
|
||||
text-align: left;
|
||||
.srs-score-summary {
|
||||
font-size: clamp(13px, 3cqw, 16px);
|
||||
line-height: 1.55;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 560px) {
|
||||
.omni-script-review-showcase {
|
||||
@container (max-width: 720px) {
|
||||
.srs-chart-card {
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.srs-chart-title {
|
||||
letter-spacing: 0.04em;
|
||||
}
|
||||
|
||||
.srs-chart-body {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 12px;
|
||||
padding-top: 14px;
|
||||
}
|
||||
|
||||
.srs-chart-col {
|
||||
grid-template-columns: minmax(94px, 0.36fr) minmax(0, 1fr);
|
||||
grid-template-rows: auto;
|
||||
align-items: center;
|
||||
justify-items: stretch;
|
||||
min-height: 46px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.055);
|
||||
border-radius: 10px;
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.srs-chart-bar-wrap {
|
||||
grid-column: 2;
|
||||
grid-row: 1;
|
||||
width: 100%;
|
||||
height: 16px;
|
||||
min-height: 16px;
|
||||
}
|
||||
|
||||
.srs-chart-bar-bg,
|
||||
.srs-chart-bar-fill {
|
||||
width: 100%;
|
||||
height: 100% !important;
|
||||
border-radius: 999px;
|
||||
}
|
||||
|
||||
.srs-chart-bar-bg {
|
||||
left: 0;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
.srs-chart-bar-fill {
|
||||
transform-origin: left center;
|
||||
}
|
||||
|
||||
.srs-chart-col:nth-child(1) .srs-chart-bar-fill { width: 80%; }
|
||||
.srs-chart-col:nth-child(2) .srs-chart-bar-fill { width: 80%; }
|
||||
.srs-chart-col:nth-child(3) .srs-chart-bar-fill { width: 100%; }
|
||||
.srs-chart-col:nth-child(4) .srs-chart-bar-fill { width: 80%; }
|
||||
.srs-chart-col:nth-child(5) .srs-chart-bar-fill { width: 66%; }
|
||||
.srs-chart-col:nth-child(6) .srs-chart-bar-fill { width: 53%; }
|
||||
|
||||
.srs-chart-bar-score {
|
||||
top: 50%;
|
||||
right: 8px;
|
||||
left: auto;
|
||||
font-size: 12px;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
|
||||
.srs-chart-bar-sub,
|
||||
.srs-chart-bar-star {
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.srs-chart-col-label {
|
||||
grid-column: 1;
|
||||
grid-row: 1;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.srs-chart-col-name {
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.srs-chart-col-desc {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.srs-triple-section {
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.srs-section-card {
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.srs-section-item-text {
|
||||
display: block;
|
||||
overflow: visible;
|
||||
-webkit-line-clamp: initial;
|
||||
}
|
||||
}
|
||||
|
||||
@container (max-width: 560px) {
|
||||
.srs-flow-card {
|
||||
grid-template-columns: 1fr;
|
||||
justify-items: stretch;
|
||||
@@ -769,4 +867,45 @@
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.srs-score-tags {
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.srs-score-tag {
|
||||
min-height: 24px;
|
||||
padding-inline: 9px;
|
||||
}
|
||||
|
||||
.srs-chart-col {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.srs-chart-bar-wrap,
|
||||
.srs-chart-col-label {
|
||||
grid-column: 1;
|
||||
grid-row: auto;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1120px) {
|
||||
.omni-script-review-showcase {
|
||||
grid-template-columns: 1fr;
|
||||
gap: clamp(16px, 2.8vw, 24px);
|
||||
overflow-y: visible;
|
||||
padding: clamp(20px, 3vw, 34px);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 880px) {
|
||||
.omni-script-review-showcase {
|
||||
padding: clamp(16px, 3.8vw, 24px);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 560px) {
|
||||
.omni-script-review-showcase {
|
||||
padding: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user