css布局实现手机端简洁车险方案多家智能报价ui效果代码
代码语言:html
所属分类:布局界面
代码描述:css布局实现手机端简洁车险方案多家智能报价ui效果代码
代码标签: css 布局 手机端 简洁 车险 方案 多家 智能 报价 ui
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>车险方案报价</title>
<style>
/* 原有样式保持不变 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
}
body {
background-color: #ffffff;
color: #000000;
font-size: 14px;
line-height: 1.5;
min-height: 100vh;
padding-bottom: 60px;
cursor: none;
}
#custom-cursor {
position: fixed;
width: 24px;
height: 24px;
border-radius: 50%;
border: 1px solid #000;
pointer-events: none;
mix-blend-mode: difference;
z-index: 1000;
transform: translate(-50%, -50%);
opacity: 0;
transition: opacity 0.3s ease, width 0.3s ease, height 0.3s ease;
}
#custom-cursor.cursor-hover {
width: 64px;
height: 64px;
background-color: rgba(0, 0, 0, 0.1);
}
.navbar {
position: fixed;
top: 0;
left: 0;
right: 0;
height: 56px;
background-color: #ffffff;
color: #000000;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
z-index: 100;
}
.navbar-container {
display: flex;
justify-content: space-between;
align-items: center;
height: 100%;
padding: 0 24px;
}
.back-button {
background: none;
border: none;
color: #000000;
font-size: 20px;
cursor: none;
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
position: relative;
}
.back-button::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
background-color: rgba(0, 0, 0, 0.1);
border-radius: 50%;
transform: translate(-50%, -50%);
transition: width 0.3s ease, height 0.3s ease;
}
.back-button:hover::after {
width: 40px;
height: 40px;
}
.page-title {
font-size: 18px;
font-weight: 400;
text-align: center;
flex: 1;
letter-spacing: 0.5px;
}
.empty-space {
width: 40px;
}
.main-content {
padding-top: 72px;
padding-bottom: 32px;
}
.section-title {
padding: 24px 24px 16px;
font-size: 20px;
color: #000000;
position: relative;
}
.section-title h2 {
font-weight: 400;
display: inline-block;
position: relative;
z-index: 2;
}
.line-element {
background-color: #000000;
transition: width 0.5s ease;
}
.vehicle-info {
margin-bottom: 32px;
}
.info-card {
background-color: white;
border-radius: 0;
margin: 0 24px;
padding: 24px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
border: 1px solid #f0f0f0;
}
.info-item {
display: flex;
flex-direction: column;
margin-bottom: 24px;
position: relative;
}
.info-item:last-child {
margin-bottom: 0;
}
.info-label {
font-size: 14px;
color: #666666;
margin-bottom: 8px;
transition: transform 0.3s ease;
}
.info-input, .info-select {
height: 48px;
padding: 0 16px;
border: 1px solid #e0e0e0;
border-radius: 0;
font-size: 16px;
background-color: white;
transition: border-color 0.3s ease, transform 0.3s ease;
cursor: none;
}
.info-input:focus, .info-select:focus {
outline: none;
border-color: #000000;
transform: translateY(-2px);
}
.info-input[readonly] {
background-color: #f9f9f9;
color: #333333;
border-color: #f0f0f0;
}
.insurance-types {
margin-bottom: 32px;
}
.insurance-card {
background-color: white;
border-radius: 0;
margin: 0 24px 16px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
border: 1px solid #f0f0f0;
overflow: hidden;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.insurance-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.insurance-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 24px;
border-bottom: 1px solid #f0f0f0;
}
.insurance-info {
flex: 1;
}
.insurance-name {
font-size: 18px;
font-weight: 400;
margin-bottom: 4px;
}
.insurance-desc {
font-size: 14px;
color: #666666;
line-height: 1.4;
}
.insurance-details {
padding: 24px;
}
.insurance-amount {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 0;
}
.amount-label {
font-size: 14px;
color: #666666;
}
.amount-value {
font-size: 18px;
font-weight: 400;
color: #000000;
}
.amount-selector {
margin-bottom: 24px;
}
.amount-options {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 12px;
}
.amount-option {
padding: 8px 16px;
border: 1px solid #e0e0e0;
border-radius: 0;
font-size: 14px;
background-color: white;
color: #666666;
cursor: none;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.amount-option::after {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.05);
transition: left 0.3s ease;
}
.amount-option:hover::after {
left: 0;
}
.amount-option.active {
background-color: #000000;
color: white;
border-color: #000000;
}
.amount-option.active::after {
display: none;
}
.switch {
position: relative;
display: inline-block;
width: 56px;
height: 28px;
cursor: none;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: none;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #f0f0f0;
transition: .4s;
}
.slider:before {
position: absolute;
content: "";
height: 20px;
width: 20px;
left: 4px;
bottom: 4px;
background-color: white;
transition: .4s;
}
input:checked + .slider {
background-color: #000000;
}
input:checked + .slider:before {
transform: translateX(28px);
}
.slider.round {
border-radius: 0;
}
.slider.round:before {
border-radius: 0;
}
.mandatory .insurance-header {
background-color: #f9f9f9;
}
.mandatory .insurance-name {
color: #000000;
font-weight: 500;
}
.mandatory-switch .slider {
background-color: #e0e0e0;
}
.quote-button-container {
padding: 24px;
}
.selected-insurance-summar.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0