div+css实现简洁大气的上门按摩服务前后端ui原型图效果图代码
代码语言:html
所属分类:布局界面
代码描述:div+css实现简洁大气的上门按摩服务前后端ui原型图效果图代码
代码标签: div 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>
<link rel="stylesheet" href="https://repo.bfw.wiki/bfwrepo/css/bootstrap-icons.1.11.3.css">
<style>
/* --- 全局样式 --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');
:root {
--primary-color: #007BFF;
--primary-light: #66b0ff;
--primary-dark: #0056b3;
--secondary-color: #6c757d;
--success-color: #28a745;
--danger-color: #dc3545;
--warning-color: #ffc107;
--light-color: #f8f9fa;
--dark-color: #343a40;
--bg-color: #f4f7fc;
--font-family: 'Noto Sans SC', sans-serif;
--border-radius: 8px;
--box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
body {
font-family: var(--font-family);
background-color: var(--bg-color);
margin: 0;
padding: 20px;
color: var(--dark-color);
}
.main-title {
text-align: center;
font-size: 2.5em;
color: var(--primary-dark);
margin-bottom: 10px;
}
.main-subtitle {
text-align: center;
font-size: 1.2em;
color: var(--secondary-color);
margin-bottom: 40px;
}
.prototype-container {
display: flex;
flex-wrap: wrap;
gap: 25px;
justify-content: center;
}
.section-title {
width: 100%;
font-size: 2em;
color: var(--primary-color);
border-bottom: 2px solid var(--primary-light);
padding-bottom: 10px;
margin-top: 40px;
margin-bottom: 20px;
display: flex;
align-items: center;
}
.section-title i {
font-size: 1.2em;
margin-right: 15px;
}
.prototype-card {
background: #ffffff;
border-radius: var(--border-radius);
box-shadow: var(--box-shadow);
padding: 15px;
display: flex;
flex-direction: column;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.prototype-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.prototype-card h3 {
text-align: center;
color: var(--primary-dark);
margin: 0 0 15px 0;
font-size: 1.1em;
font-weight: 500;
}
.prototype-card .flow-arrow {
font-size: 2em;
color: var(--primary-light);
margin: auto 15px;
display: flex;
align-items: center;
}
/* --- 移动端屏幕样式 --- */
.mobile-screen {
width: 375px;
height: 720px;
background: var(--light-color);
border: 8px solid #333;
border-radius: 30px;
box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
position: relative;
overflow: hidden;
display: flex;
flex-direction: column;
}
.mobile-header {
background: var(--primary-color);
color: white;
padding: 15px;
text-align: center;
font-size: 1.2em;
font-weight: 500;
flex-shrink: 0;
position: relative;
}
.mobile-header .back-icon {
position: absolute;
left: 15px;
top: 50%;
transform: translateY(-50%);
font-size: 1.3em;
}
.mobile-content {
flex-grow: 1;
overflow-y: auto;
padding: 20px;
background: #fff;
}
.mobile-content-gray {
background-color: var(--light-color);
}
.mobile-footer {
display: flex;
justify-content: space-around;
padding: 10px 0;
border-top: 1px solid #eee;
background: white;
flex-shrink: 0;
}
.footer-item {
display: flex;
flex-direction: column;
align-items: center;
color: var(--secondary-color);
font-size: 0.8em;
cursor: pointer;
}
.footer-item i {
font-size: 1.5em;
margin-bottom: 4px;
}
.footer-item.active {
color: var(--primary-color);
}
/* --- 通用组件 --- */
.btn {
display: block;
width: 100%;
padding: 12px;
border: none;
border-radius: var(--border-radius);
font-size: 1.1em;
font-weight: 500;
cursor: pointer;
text-align: center;
text-decoration: none;
box-sizing: border-box;
}
.btn-primary {
background-color: var(--primary-color);
color: white;
}
.btn-primary:hover {
background-color: var(--primary-dark);
}
.btn-secondary {
background-color: var(--secondary-color);
color: white;
}
.btn-success {
background-color: var(--success-color);
color: white;
}
.btn-danger {
background-color: var(--danger-color);
color: white;
}
.btn-outline {
background-color: transparent;
color: var(--primary-color);
border: 1px solid var(--primary-color);
}
.btn-disabled {
background-color: #ccc;
color: #666;
cursor: not-allowed;
}
.form-group {
margin-bottom: 20px;
}
.form-group label {
display: block;
margin-bottom: 8px;
color: var(--secondary-color);
font-weight: 500;
}
.form-group input, .form-group select {
width: 100%;
padding: 12px;
border: 1px solid #ddd;
border-radius: var(--border-radius);
font-size: 1em;
box-sizing: border-box;
}
.input-group {
display: flex;
}
.input-group input {
flex-grow: 1;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
.input-group button {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
width: auto;
padding: 0 15px;
font-size: 0.9em;
}
.avatar {
width: 60px;
height: 60px;
border-radius: 50%;
object-fit: cover;
}
/* --- PC端后台样式 --- */
.pc-screen {
width: 1280px;
height: 720px;
background: var(--bg-color);
display: flex;
border-radius: var(--border-radius);
overflow: hidden;
}
.pc-sidebar {
width: 220px;
background: var(--dark-color);
color: var(--light-color);
flex-shrink: 0;
padding: 20px 0;
display: flex;
flex-direction: column;
}
.pc-sidebar .logo {
font-size: 1.5em;
font-weight: 700;
text-align: center;
padding: 0 20px 20px 20px;
color: white;
border-bottom: 1px solid #4a5568;
}
.pc-sidebar .logo i {
color: var(--primary-light);
}
.pc-nav {
list-style: none;
padding: 0;
margin: 20px 0;
flex-grow: 1;
}
.pc-nav li a {
display: flex;
align-items: center;
padding: 15px 20px;
color: #a0aec0;
text-decoration: none;
transition: all 0.2s ease;
}
.pc-nav li a:hover, .pc-nav li.active a {
background: var(--primary-color);
color: white;
border-right: 4px solid var(--primary-light);
}
.pc-nav li a i {
margin-right: 15px;
font-size: 1.2em;
}
.pc-sidebar .admin-profile {
padding: 20px;
border-top: 1px solid #4a5568;
font-size: 0.9em;
}
.pc-main {
flex-grow: 1;
display: flex;
flex-direction: column;
overflow: hidden;
}
.pc-header {
padding: 15px 30px;
background: white;
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
display: flex;
justify-content: space-between;
align-items: center;
flex-shrink: 0;
}
.pc-header h2 { margin: 0; font-size: 1.5em; color: var(--dark-color); }
.pc-content {
padding: 30px;
flex-grow: 1;
overflow-y: auto;
}
.stats-cards {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
margin-bottom: 30px;
}
.stat-card {
background: white;
padding: 20px;
border-radius: var(--border-radius);
box-shadow: var(--box-shadow);
display: flex;
align-items: center;
}
.stat-card .icon {
font-size: 2.5em;
padding: 15px;
border-radius: 50%;
margin-right: 20px;
}
.stat-card .info h4 { margin: 0 0 5px 0; color: var(--secondary-color); font-weight: 400; }
.stat-card .info p { margin: 0; font-size: 1.8em; font-weight: 700; color: var(--dark-color); }
.chart-container {
background: white.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0