首页/ mobileweb/ 小草婚恋交友/ 代码预览

💻 代码预览 · 小草婚恋交友

mw_social · 上传者 小草网络
← 返回详情
小草婚恋交友_H5/style.css · 约 9225 字符
1/* 小草婚恋交友 · 移动端 H5 样式 */
2*{margin:0;padding:0;box-sizing:border-box}
3body{font-family:-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;background:#fff5f7;color:#4a2233;max-width:430px;margin:0 auto;min-height:100vh}
4a{text-decoration:none;color:inherit}
5ul{list-style:none}
6:root{--primary:#e91e63;--primary-dark:#c2185b;--primary-light:#ffe4ee;--secondary:#ff6090;--accent:#ff8a65;--dark:#880e4f;--gray:#b58a9e;--light-gray:#fbe4ec;--green:#16a34a;--blue:#2563eb}
7.header{background:linear-gradient(135deg,#e91e63,#ff6090);color:#fff;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:100;box-shadow:0 2px 8px rgba(233,30,99,.3)}
8.header .back{font-size:22px;cursor:pointer;width:32px}
9.header h1{font-size:17px;font-weight:600;flex:1;text-align:center}
10.header .right{width:32px;text-align:right;font-size:14px}
11.tabbar{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:430px;background:#fff;border-top:1px solid #eee;display:flex;z-index:100;padding-bottom:env(safe-area-inset-bottom)}
12.tabbar a{flex:1;text-align:center;padding:8px 0;color:#999;font-size:11px}
13.tabbar a.active{color:var(--primary)}
14.tabbar a .icon{font-size:22px;display:block;margin-bottom:2px}
15.card{background:#fff;border-radius:12px;margin:12px;padding:16px;box-shadow:0 1px 4px rgba(0,0,0,.06)}
16.section-title{font-size:16px;font-weight:700;margin:16px 16px 8px;display:flex;justify-content:space-between;align-items:center}
17.section-title span{font-size:12px;color:#999;font-weight:400}
18.btn{display:block;width:100%;padding:13px;border:none;border-radius:25px;font-size:15px;font-weight:600;cursor:pointer;text-align:center}
19.btn-primary{background:linear-gradient(135deg,#e91e63,#ff6090);color:#fff}
20.btn-outline{background:#fff;border:1px solid var(--primary);color:var(--primary)}
21.badge{display:inline-block;padding:2px 8px;border-radius:10px;font-size:11px;font-weight:600}
22.badge-hot{background:#fff1f0;color:#ef4444}
23.badge-new{background:#e8efff;color:var(--blue)}
24.badge-vip{background:linear-gradient(135deg,#ffd700,#ffb300);color:#7a4d00}
25.tag{display:inline-block;padding:2px 6px;border-radius:4px;font-size:11px;background:var(--light-gray);color:#a14a6e;margin:2px 4px 0 0}
26/* 首页 */
27.topbar{background:linear-gradient(135deg,#e91e63,#ff6090);color:#fff;padding:16px 16px 30px}
28.topbar .tb-row{display:flex;align-items:center;gap:10px}
29.topbar .tb-avatar{width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.25);display:flex;align-items:center;justify-content:center;font-size:22px}
30.topbar .tb-name{font-size:16px;font-weight:700}
31.topbar .tb-sub{font-size:11px;opacity:.9;margin-top:2px}
32.topbar .tb-icons{margin-left:auto;display:flex;gap:16px;font-size:20px}
33.match-card{height:330px;margin:12px;border-radius:18px;background:#fff;overflow:hidden;box-shadow:0 4px 16px rgba(233,30,99,.15);position:relative}
34.match-card .mc-hero{height:210px;background:linear-gradient(135deg,#ffe4ee,#fff);display:flex;align-items:center;justify-content:center;font-size:80px}
35.match-card .mc-body{padding:14px 16px}
36.match-card .mc-name{font-size:19px;font-weight:800}
37.match-card .mc-tags{margin-top:6px}
38.match-card .mc-desc{font-size:12px;color:#b58a9e;margin-top:6px}
39.match-card .mc-actions{display:flex;gap:16px;justify-content:center;padding:8px 0 14px}
40.match-card .mc-btn{width:56px;height:56px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:26px;cursor:pointer;box-shadow:0 3px 10px rgba(0,0,0,.1)}
41.match-card .mc-btn.nope{background:#fff;border:2px solid #ddd}
42.match-card .mc-btn.like{background:linear-gradient(135deg,#e91e63,#ff6090);color:#fff}
43.match-card .mc-btn.super{background:linear-gradient(135deg,#3b82f6,#60a5fa);color:#fff}
44.match-card .mc-badge{position:absolute;top:10px;right:10px}
45.quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:16px 12px;background:#fff;margin:12px;border-radius:14px}
46.quick-grid a{text-align:center;font-size:12px;color:#8a4a66}
47.quick-grid a .qicon{width:46px;height:46px;margin:0 auto 6px;border-radius:50%;background:var(--primary-light);display:flex;align-items:center;justify-content:center;font-size:24px}
48/* 圈子 */
49.circle-row{display:flex;gap:10px;overflow-x:auto;padding:0 12px;padding-bottom:4px;scrollbar-width:none}
50.circle-item{width:120px;flex-shrink:0;background:#fff;border-radius:14px;padding:14px;text-align:center;box-shadow:0 1px 4px rgba(0,0,0,.05)}
51.circle-item .ci-emoji{font-size:32px}
52.circle-item .ci-name{font-size:13px;font-weight:700;margin-top:5px}
53.circle-item .ci-meta{font-size:10px;color:#b58a9e;margin-top:2px}
54.topic-item{display:flex;align-items:center;gap:10px;background:#fff;border-radius:12px;margin:8px 12px;padding:12px 14px;box-shadow:0 1px 4px rgba(0,0,0,.05)}
55.topic-item .ti-emoji{font-size:22px}
56.topic-item .ti-body{flex:1}
57.topic-item .ti-name{font-size:13px;font-weight:600}
58.topic-item .ti-meta{font-size:10px;color:#b58a9e;margin-top:2px}
59.topic-item .ti-hot{color:var(--primary);font-size:11px;font-weight:600}
60.post-item{background:#fff;border-radius:14px;margin:10px 12px;padding:14px;box-shadow:0 1px 4px rgba(0,0,0,.05)}
61.post-item .pi-head{display:flex;align-items:center;gap:10px}
62.post-item .pi-avatar{width:38px;height:38px;border-radius:50%;background:var(--primary-light);display:flex;align-items:center;justify-content:center;font-size:20px}
63.post-item .pi-name{font-size:13px;font-weight:600}
64.post-item .pi-meta{font-size:10px;color:#b58a9e;margin-top:1px}
65.post-item .pi-text{font-size:13px;color:#5a3a4a;margin-top:8px;line-height:1.7}
66.post-item .pi-foot{display:flex;gap:20px;color:#b58a9e;font-size:12px;margin-top:10px}
67/* 会员 */
68.vip-hero{background:linear-gradient(135deg,#ffd700,#ffb300);margin:12px;border-radius:16px;color:#5a3a00;padding:20px;text-align:center}
69.vip-hero .vh-title{font-size:20px;font-weight:800}
70.vip-hero .vh-sub{font-size:12px;margin-top:4px}
71.vip-hero .vh-price{font-size:26px;font-weight:800;margin-top:8px}
72.vip-hero .vh-price small{font-size:12px;font-weight:400}
73.plans{display:flex;gap:10px;padding:0 12px}
74.plan{flex:1;background:#fff;border-radius:14px;padding:16px;text-align:center;box-shadow:0 1px 4px rgba(0,0,0,.05)}
75.plan.hot{border:2px solid var(--primary)}
76.plan .pl-name{font-size:14px;font-weight:700}
77.plan .pl-price{font-size:20px;font-weight:800;color:var(--primary);margin-top:6px}
78.plan .pl-meta{font-size:10px;color:#b58a9e;margin-top:3px}
79.benefit-list{background:#fff;border-radius:12px;margin:12px;overflow:hidden}
80.benefit-list .bl-item{display:flex;align-items:center;gap:12px;padding:13px 16px;border-bottom:1px solid #fbeef3;font-size:13px}
81.benefit-list .bl-item:last-child{border-bottom:none}
82.benefit-list .bl-item .bl-ico{font-size:20px}
83.benefit-list .bl-item .bl-r{margin-left:auto;color:#b58a9e;font-size:12px}
84/* 消息 */
85.msg-item{display:flex;align-items:center;gap:12px;background:#fff;border-radius:14px;margin:8px 12px;padding:12px 14px;box-shadow:0 1px 4px rgba(0,0,0,.05)}
86.msg-item .mi-avatar{width:46px;height:46px;border-radius:50%;background:var(--primary-light);display:flex;align-items:center;justify-content:center;font-size:24px;position:relative;flex-shrink:0}
87.msg-item .mi-dot{position:absolute;top:0;right:0;width:10px;height:10px;border-radius:50%;background:#ef4444;border:2px solid #fff}
88.msg-item .mi-body{flex:1}
89.msg-item .mi-name{font-size:14px;font-weight:600}
90.msg-item .mi-last{font-size:12px;color:#b58a9e;margin-top:2px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
91.msg-item .mi-time{font-size:10px;color:#c4a5b5;text-align:right}
92.msg-item .mi-time .mi-badge{display:inline-block;background:var(--primary);color:#fff;border-radius:10px;padding:1px 7px;font-size:10px;margin-top:4px}
93/* 我的 */
94.user-card{background:linear-gradient(135deg,#e91e63,#ff6090);margin:12px;border-radius:14px;color:#fff;padding:18px;display:flex;align-items:center;gap:12px}
95.user-card .uc-avatar{width:60px;height:60px;border-radius:50%;background:rgba(255,255,255,.25);display:flex;align-items:center;justify-content:center;font-size:32px}
96.user-card .uc-name{font-size:18px;font-weight:700}
97.user-card .uc-level{font-size:12px;opacity:.9;margin-top:3px}
98.verify-row{display:flex;gap:8px;flex-wrap:wrap;padding:0 12px}
99.verify-item{display:flex;align-items:center;gap:6px;background:#fff;border-radius:20px;padding:7px 14px;font-size:12px;color:#5a3a4a;box-shadow:0 1px 4px rgba(0,0,0,.05)}
100.verify-item.done{color:var(--green)}
101.verify-item .v-ico{font-size:16px}
102.menu-list{background:#fff;border-radius:12px;margin:12px;overflow:hidden}
103.menu-list a{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #fbeef3;font-size:14px}
104.menu-list a:last-child{border-bottom:none}
105.menu-list a .ml-l{display:flex;align-items:center;gap:10px}
106.menu-list a .ml-l .ico{font-size:20px}
107.menu-list a .ml-r{color:#ccc;font-size:12px}
108.empty{text-align:center;color:#c4a5b5;font-size:13px;padding:40px 0}
109.empty .e-icon{font-size:44px;display:block;margin-bottom:8px}
110