style: 美化解决方案模块 — 圆角卡片/下划线Tab/装饰线/渐变光晕
All checks were successful
continuous-integration/drone/push Build is passing

- Tab 从胶囊按钮改为下划线风格,更简洁高级
- 内容卡片加 16px 圆角 + 渐变光晕背景
- 左侧装饰竖线 + 段落前圆点标记
- 副标题加分隔线
- 图片区域从 600px 改为 45%,加左/底渐变遮罩
- 柔和 Ken-Burns 缩放效果(8s)
- hover 时卡片发光 + 图片提亮
- 了解详情按钮改为描边幽灵风格
This commit is contained in:
yiqiu
2026-03-18 18:52:48 +08:00
parent f42dde0f95
commit c5615bf1d9

View File

@@ -4313,75 +4313,70 @@ html {
/* 解决方案容器 */ /* 解决方案容器 */
.solution-wrapper { .solution-wrapper {
margin-top: 60px; margin-top: 50px;
position: relative; position: relative;
} }
/* 上层:按钮导航 */ /* ---- 上层Tab 导航(下划线风格) ---- */
.solution-tabs { .solution-tabs {
display: flex; display: flex;
justify-content: center; justify-content: center;
gap: 16px; gap: 0;
margin-bottom: 40px; margin-bottom: 48px;
flex-wrap: wrap; flex-wrap: wrap;
border-bottom: 1px solid rgba(148, 163, 184, 0.12);
position: relative;
} }
.solution-tab { .solution-tab {
padding: 12px 32px; padding: 14px 28px;
font-size: 16px; font-size: 15px;
font-weight: 600; font-weight: 500;
color: rgba(226, 232, 240, 0.8); color: rgba(203, 213, 225, 0.65);
background: rgba(15, 23, 42, 0.6); background: transparent;
border: 1px solid rgba(148, 163, 184, 0.2); border: none;
border-radius: 30px; border-bottom: 2px solid transparent;
border-radius: 0;
cursor: pointer; cursor: pointer;
transition: all 0.3s ease; transition: all 0.3s ease;
position: relative; position: relative;
overflow: hidden; letter-spacing: 0.5px;
} }
/* 按钮光晕效果 */ /* 移除旧的光晕 ::before */
.solution-tab::before { .solution-tab::before {
content: ''; display: none;
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
border-radius: 50%;
background: radial-gradient(circle, rgba(56, 189, 248, 0.3) 0%, transparent 70%);
transform: translate(-50%, -50%);
transition: width 0.5s ease, height 0.5s ease;
} }
.solution-tab:hover { .solution-tab:hover {
color: #38BDF8; color: rgba(226, 232, 240, 0.95);
border-color: rgba(56, 189, 248, 0.4); background: rgba(255, 255, 255, 0.03);
background: rgba(15, 23, 42, 0.8); transform: none;
transform: translateY(-2px); box-shadow: none;
box-shadow: 0 4px 16px rgba(56, 189, 248, 0.2); border-bottom-color: rgba(56, 189, 248, 0.3);
} }
.solution-tab:hover::before { .solution-tab:hover::before {
width: 200px; display: none;
height: 200px;
} }
.solution-tab.active { .solution-tab.active {
color: #ffffff; color: #38BDF8;
background: linear-gradient(135deg, #38BDF8 0%, #6366F1 100%); background: transparent;
border-color: transparent; border-color: transparent;
box-shadow: 0 4px 20px rgba(56, 189, 248, 0.4); border-bottom: 2px solid #38BDF8;
box-shadow: 0 2px 12px rgba(56, 189, 248, 0.15);
font-weight: 600;
} }
.solution-tab.active::before { .solution-tab.active::before {
display: none; display: none;
} }
/* 下层:幻灯片容器 */ /* ---- 下层:幻灯片容器 ---- */
.solution-slider { .solution-slider {
position: relative; position: relative;
min-height: 450px; min-height: 420px;
overflow: hidden; overflow: hidden;
} }
@@ -4392,7 +4387,8 @@ html {
left: 0; left: 0;
width: 100%; width: 100%;
opacity: 0; opacity: 0;
transition: opacity 0.6s ease; transform: translateY(12px);
transition: opacity 0.5s ease, transform 0.5s ease;
pointer-events: none; pointer-events: none;
z-index: 1; z-index: 1;
} }
@@ -4401,63 +4397,107 @@ html {
.solution-slide.active { .solution-slide.active {
position: relative; position: relative;
opacity: 1; opacity: 1;
transform: translateY(0);
pointer-events: auto; pointer-events: auto;
z-index: 2; z-index: 2;
} }
/* 幻灯片内容区域 */ /* ---- 内容卡片 ---- */
.solution-content { .solution-content {
display: flex; display: flex;
align-items: stretch; align-items: stretch;
gap: 60px; gap: 0;
padding: 0; padding: 0;
background: rgba(15, 23, 42, 0.7); background:
backdrop-filter: blur(16px); radial-gradient(ellipse at 10% 40%, rgba(56, 189, 248, 0.06) 0%, transparent 60%),
border: 1px solid rgba(148, 163, 184, 0.15); radial-gradient(ellipse at 90% 60%, rgba(99, 102, 241, 0.05) 0%, transparent 60%),
border-radius: 0; rgba(15, 23, 42, 0.55);
backdrop-filter: blur(20px);
border: 1px solid rgba(148, 163, 184, 0.1);
border-radius: 16px;
box-shadow: box-shadow:
0 8px 32px rgba(15, 23, 42, 0.5), 0 16px 48px rgba(0, 0, 0, 0.25),
inset 0 1px 0 rgba(255, 255, 255, 0.05); 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
min-height: 500px; min-height: 420px;
overflow: hidden;
transition: box-shadow 0.4s ease, border-color 0.4s ease;
} }
/* 左侧文字区域 */ .solution-content:hover {
border-color: rgba(56, 189, 248, 0.15);
box-shadow:
0 20px 60px rgba(0, 0, 0, 0.3),
0 0 40px rgba(56, 189, 248, 0.06),
0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}
/* ---- 左侧文字区域 ---- */
.solution-text { .solution-text {
flex: 1; flex: 1.15;
min-width: 0; min-width: 0;
padding: 40px; padding: 48px 52px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
position: relative;
}
/* 左侧装饰竖线 */
.solution-text::before {
content: '';
position: absolute;
left: 0;
top: 20%;
height: 60%;
width: 3px;
background: linear-gradient(180deg, transparent, #38BDF8, rgba(99, 102, 241, 0.6), transparent);
border-radius: 3px;
} }
.solution-text h3 { .solution-text h3 {
font-size: 32px; font-size: 28px;
font-weight: 700; font-weight: 700;
color: #F9FAFB; color: #F1F5F9;
margin-bottom: 12px; margin-bottom: 10px;
background: linear-gradient(135deg, #FFFFFF 0%, #38BDF8 100%); background: linear-gradient(135deg, #F1F5F9 30%, #38BDF8 100%);
-webkit-background-clip: text; -webkit-background-clip: text;
-webkit-text-fill-color: transparent; -webkit-text-fill-color: transparent;
background-clip: text; background-clip: text;
line-height: 1.3;
} }
.solution-subtitle { .solution-subtitle {
font-size: 16px; font-size: 15px;
color: rgba(148, 163, 184, 0.9); color: rgba(148, 163, 184, 0.85);
margin-bottom: 24px; margin-bottom: 24px;
font-weight: 500; font-weight: 400;
letter-spacing: 0.3px;
padding-bottom: 20px;
border-bottom: 1px solid rgba(148, 163, 184, 0.08);
} }
.solution-desc { .solution-desc {
color: rgba(203, 213, 225, 0.85); color: rgba(203, 213, 225, 0.8);
line-height: 1.8; line-height: 1.85;
margin-bottom: 32px; margin-bottom: 32px;
} }
.solution-desc p { .solution-desc p {
margin-bottom: 12px; margin-bottom: 10px;
font-size: 15px; font-size: 14px;
position: relative;
padding-left: 16px;
}
.solution-desc p::before {
content: '';
position: absolute;
left: 0;
top: 9px;
width: 5px;
height: 5px;
border-radius: 50%;
background: rgba(56, 189, 248, 0.6);
} }
.solution-desc p:last-child { .solution-desc p:last-child {
@@ -4469,69 +4509,86 @@ html {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
gap: 8px; gap: 8px;
padding: 12px 32px; padding: 10px 28px;
font-size: 15px; font-size: 14px;
font-weight: 600; font-weight: 500;
color: #ffffff; color: #38BDF8;
background: linear-gradient(135deg, #38BDF8 0%, #6366F1 100%); background: rgba(56, 189, 248, 0.08);
border-radius: 30px; border: 1px solid rgba(56, 189, 248, 0.2);
border-radius: 8px;
text-decoration: none; text-decoration: none;
transition: all 0.3s ease; transition: all 0.3s ease;
box-shadow: 0 4px 16px rgba(56, 189, 248, 0.3);
align-self: flex-start; align-self: flex-start;
} }
.solution-link:hover { .solution-link:hover {
transform: translateY(-2px); background: rgba(56, 189, 248, 0.15);
box-shadow: 0 6px 24px rgba(56, 189, 248, 0.5); border-color: rgba(56, 189, 248, 0.4);
color: #7DD3FC;
transform: translateX(4px);
box-shadow: 0 4px 16px rgba(56, 189, 248, 0.15);
} }
.solution-link .icon-arrow-right { .solution-link .icon-arrow-right {
transition: transform 0.3s ease; transition: transform 0.3s ease;
font-size: 12px;
} }
.solution-link:hover .icon-arrow-right { .solution-link:hover .icon-arrow-right {
transform: translateX(5px); transform: translateX(4px);
} }
/* 右侧图片区域 */ /* ---- 右侧图片区域 ---- */
.solution-image { .solution-image {
flex-shrink: 0; flex-shrink: 0;
width: 600px; width: 45%;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
border-radius: 0; border-radius: 0 16px 16px 0;
background: rgba(15, 23, 42, 0.5); background: rgba(15, 23, 42, 0.4);
} }
.solution-image img { .solution-image img {
width: 100%; width: 100%;
height: 100%; height: 100%;
object-fit: cover; object-fit: cover;
filter: brightness(1.1); filter: brightness(0.95) saturate(1.05);
transition: transform 0.5s ease; transition: transform 8s ease, filter 0.5s ease;
} }
/* 柔和的 Ken-Burns 效果 */
.solution-slide.active .solution-image img { .solution-slide.active .solution-image img {
transform: scale(1.05); transform: scale(1.08);
} }
/* 图片光晕效果 */ .solution-content:hover .solution-image img {
.solution-image::after { filter: brightness(1.05) saturate(1.1);
}
/* 图片渐变遮罩 — 左侧融入文字区 */
.solution-image::before {
content: ''; content: '';
position: absolute; position: absolute;
top: -50%; top: 0;
left: -50%; left: 0;
width: 200%; width: 60px;
height: 200%; height: 100%;
background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 60%); background: linear-gradient(90deg, rgba(15, 23, 42, 0.7) 0%, transparent 100%);
opacity: 0; z-index: 1;
transition: opacity 0.5s ease;
pointer-events: none; pointer-events: none;
} }
.solution-slide.active .solution-image::after { /* 图片底部渐变 */
opacity: 1; .solution-image::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 30%;
background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.4) 100%);
z-index: 1;
pointer-events: none;
} }
/* ============================================ /* ============================================