forked from MU-ty/medical-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproducts.html
More file actions
209 lines (186 loc) · 7.33 KB
/
Copy pathproducts.html
File metadata and controls
209 lines (186 loc) · 7.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
<!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="styles.css">
<link href="https://cdn.jsdelivr.net/npm/remixicon@3.4.0/fonts/remixicon.css" rel="stylesheet"/>
<style>
.products__container {
padding: 2rem 0;
}
.section__container {
max-width: var(--max-width);
margin: auto;
padding: 5rem 1rem;
}
.section__header {
font-size: 2.5rem;
font-weight: 600;
color: var(--text-dark);
text-align: center;
margin-bottom: 1rem;
position: relative;
padding-bottom: 1rem;
}
.section__header::after {
content: "";
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 80px;
height: 3px;
background-color: var(--primary-color);
border-radius: 2px;
}
.products__container {
padding-top: 7rem;
}
.products__grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 2rem;
margin-top: 2rem;
}
.product__card {
background: var(--white);
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
overflow: hidden;
transition: transform 0.3s ease;
}
.product__card:hover {
transform: translateY(-5px);
}
.product__image {
width: 100%;
height: 200px;
object-fit: cover;
}
.product__content {
padding: 1.5rem;
}
.product__title {
font-size: 1.25rem;
color: var(--text-dark);
margin-bottom: 0.5rem;
}
.product__description {
color: var(--text-light);
margin-bottom: 1rem;
font-size: 0.9rem;
}
.product__price {
color: var(--primary-color);
font-size: 1.5rem;
font-weight: 600;
margin-bottom: 1rem;
}
.product__btn {
width: 100%;
text-align: center;
}
</style>
</head>
<body>
<header>
<nav class="section_container nav_container">
<div class="nav__logo"><span>云苓智体</span>中医体质AI解析与科学减肥服务平台</div>
<ul class="nav__links">
<li class="link"><a href="index.html" target="_blank">主页</a></li>
<li class="link"><a href="#" target="_blank">平台简介</a></li>
<li class="link"><a href="chat.html" target="_blank">AI解析</a></li>
<li class="link"><a href="jianfei.html" target="_blank">减肥服务</a></li>
<li class="link"><a href="monitor.html" target="_blank">数据监测</a></li>
<li class="link"><a href="products.html" target="_blank">健康产品</a></li>
<li class="link"><a href="#" target="_blank">关于我们</a></li>
</ul>
</nav>
</header>
<section class="section__container products__container">
<h2 class="section__header">健康减重产品</h2>
<div class="products__grid">
<div class="product__card">
<img src="assets/greenTea.jpg" alt="绿茶精华" class="product__image">
<div class="product__content">
<h3 class="product__title">天然绿茶精华胶囊</h3>
<p class="product__description">
采用优质绿茶提取物,促进新陈代谢,帮助燃烧脂肪。
纯天然配方,温和无刺激。
</p>
<div class="product__price">¥49.00</div>
<button class="btn product__btn">加入购物车</button>
</div>
</div>
<div class="product__card">
<img src="assets/powder.jpg" alt="膳食纤维" class="product__image">
<div class="product__content">
<h3 class="product__title">复合膳食纤维粉</h3>
<p class="product__description">
特选多种膳食纤维,改善肠道健康,
帮助控制食欲,促进饱腹感。
</p>
<div class="product__price">¥59.00</div>
<button class="btn product__btn">加入购物车</button>
</div>
</div>
<div class="product__card">
<img src="assets/milk.jpg" alt="代餐奶昔" class="product__image">
<div class="product__content">
<h3 class="product__title">营养代餐奶昔</h3>
<p class="product__description">
富含蛋白质和多种维生素,低热量高营养,
帮助控制体重的理想代餐选择。
</p>
<div class="product__price">¥69.00</div>
<button class="btn product__btn">加入购物车</button>
</div>
</div>
</div>
</section>
<footer class="footer">
<div class="section__container footer__container">
<div class="footer__col">
<h3><span>云苓智体</span></h3>
<p>结合传统中医智慧与现代科技,为您提供优质健康产品。</p>
</div>
<div class="footer__col">
<h4>快速链接</h4>
<p><a href="index.html" target="_blank">主页</a></p>
<p><a href="chat.html" target="_blank">AI解析</a></p>
<p><a href="jianfei.html" target="_blank">减肥服务</a></p>
<p><a href="monitor.html" target="_blank">数据监测</a></p>
</div>
<div class="footer__col">
<h4>联系我们</h4>
<p><i class="ri-map-pin-line"></i> 桂林电子科技大学花江校区</p>
<p><i class="ri-mail-line"></i> support@yunlingzhiti.com</p>
<p><i class="ri-phone-line"></i> (+86) 400-000-0000</p>
</div>
</div>
<div class="footer__bar">
<div class="footer__bar__content">
<p>©2025 云苓智体. All rights reserved.</p>
<div class="footer__socials">
<span><i class="ri-wechat-fill"></i></span>
<span><i class="ri-weibo-fill"></i></span>
</div>
</div>
</div>
</footer>
<script>
document.addEventListener('DOMContentLoaded', function() {
const addToCartButtons = document.querySelectorAll('.product__btn');
addToCartButtons.forEach(button => {
button.addEventListener('click', function() {
const productCard = this.closest('.product__card');
const productName = productCard.querySelector('.product__title').textContent;
alert(`${productName} 已添加到购物车!`);
});
});
});
</script>
</body>
</html>