This commit is contained in:
2026-06-18 14:33:50 +08:00
commit 0e43ccec72
248 changed files with 30329 additions and 0 deletions

392
refrence_html/messages.html Normal file
View File

@@ -0,0 +1,392 @@
<!doctype html>
<html lang="zh-CN"><head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>消息 · 汪圈</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;450;510;600;700&amp;family=Space+Grotesk:wght@500;600;700&amp;display=swap" rel="stylesheet">
<style>
:root {
--bg: #14102b;
--bg-warm: #1c1442;
--surface: #1f1742;
--surface-2: #251c4a;
--fg: #f0e9ff;
--fg-2: #c7b9e0;
--muted: #8a7aab;
--border: #2e234a;
--accent: #d8b4ff;
--accent-2: #ffb3c8;
--primary: #ffd9a8;
--primary-on: #2a1d10;
--success: #8fe5b5;
--warn: #ffd166;
--font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
--font-body: 'Inter', system-ui, -apple-system, 'PingFang SC', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body {
background: radial-gradient(ellipse 70% 50% at 25% 0%, rgba(216, 180, 255, 0.10), transparent 60%), radial-gradient(ellipse 60% 50% at 75% 100%, rgba(255, 179, 200, 0.08), transparent 60%), #0a0719;
color: var(--fg);
font-family: var(--font-body);
-webkit-font-smoothing: antialiased;
display: grid; place-items: center;
overflow: auto;
}
.stage-wrap { padding: 24px; }
.phone { width: 390px; height: 844px; background: #0a0719; border-radius: 50px; position: relative; overflow: hidden; box-shadow: 0 60px 120px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 0 0 2px rgba(255, 255, 255, 0.04); }
.phone::before { content: ''; position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 110px; height: 32px; background: #000; border-radius: 9999px; z-index: 100; }
.screen { position: absolute; inset: 0; background: linear-gradient(180deg, #1c1442 0%, #14102b 100%); display: flex; flex-direction: column; overflow: hidden; }
.status-bar { height: 54px; flex-shrink: 0; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 32px 8px; font: 600 15px/1 var(--font-body); }
.status-bar .right { display: flex; align-items: center; gap: 6px; }
.status-bar .ic-sig { display: flex; align-items: flex-end; gap: 2px; }
.status-bar .ic-sig span { width: 3px; background: var(--fg); border-radius: 1px; }
.status-bar .ic-sig span:nth-child(1) { height: 4px; } .status-bar .ic-sig span:nth-child(2) { height: 6px; } .status-bar .ic-sig span:nth-child(3) { height: 8px; } .status-bar .ic-sig span:nth-child(4) { height: 10px; }
.status-bar .ic-batt { width: 26px; height: 12px; border: 1.2px solid rgba(240, 233, 255, 0.6); border-radius: 3px; padding: 1.5px; }
.status-bar .ic-batt .fill { display: block; height: 100%; background: var(--fg); border-radius: 1px; width: 78%; }
/* WeChat mini program capsule */
.mp-capsule {
display: flex; align-items: center;
height: 28px; border-radius: 14px;
background: rgba(255, 255, 255, 0.06);
border: 1px solid rgba(255, 255, 255, 0.14);
overflow: hidden;
backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.mp-capsule .capsule-btn {
display: grid; place-items: center;
width: 32px; height: 28px;
background: transparent; border: 0; padding: 0; cursor: pointer; color: var(--fg);
}
.mp-capsule .capsule-btn + .capsule-btn { border-left: 1px solid rgba(255, 255, 255, 0.12); }
.mp-capsule svg { width: 14px; height: 14px; }
.content { flex: 1; overflow-y: auto; padding-bottom: 100px; -webkit-overflow-scrolling: touch; }
.content::-webkit-scrollbar { display: none; }
.top-nav { padding: 8px 20px 12px; display: flex; align-items: center; gap: 10px; }
.top-nav h1 { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; background: rgba(45, 34, 85, 0.4); display: grid; place-items: center; cursor: pointer; border: 1px solid rgba(216, 180, 255, 0.08); }
.icon-btn svg { width: 18px; height: 18px; color: var(--fg); }
.search { margin: 0 20px 12px; background: rgba(45, 34, 85, 0.4); border-radius: 12px; padding: 10px 14px; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(216, 180, 255, 0.06); }
.search svg { width: 14px; height: 14px; color: var(--muted); }
.search input { background: none; border: 0; outline: 0; flex: 1; color: var(--fg); font: 400 13px/1 var(--font-body); }
.search input::placeholder { color: var(--muted); }
.tabs { display: flex; gap: 22px; padding: 0 20px 8px; }
.tab { padding: 6px 0; cursor: pointer; position: relative; font: 500 14px/1 var(--font-body); color: var(--muted); background: none; border: 0; transition: color 200ms; }
.tab.act { color: var(--fg); font-weight: 600; }
.tab.act::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: -8px; width: 18px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%); }
.tab .badge { display: inline-block; margin-left: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent-2); color: var(--primary-on); font: 700 10px/18px var(--font-body); text-align: center; vertical-align: middle; }
/* active now */
.active-row { padding: 12px 20px 8px; display: flex; gap: 12px; overflow-x: auto; }
.active-row::-webkit-scrollbar { display: none; }
.active { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.active .av-wrap { position: relative; }
.active .av { width: 50px; height: 50px; border-radius: 50%; }
.active .av.a1 { background: linear-gradient(135deg, #ffb3c8, #ffd9a8); }
.active .av.a2 { background: linear-gradient(135deg, #d8b4ff, #a4d4ff); }
.active .av.a3 { background: linear-gradient(135deg, #8fe5b5, #d8b4ff); }
.active .av.a4 { background: linear-gradient(135deg, #ffd9a8, #ffb3c8); }
.active .av.a5 { background: linear-gradient(135deg, #a4d4ff, #d8b4ff); }
.active .nm { font: 500 11px/1.2 var(--font-body); color: var(--fg-2); max-width: 60px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.active .live { position: absolute; right: -2px; bottom: -2px; padding: 2px 6px; background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%); border-radius: 6px; color: var(--primary-on); font: 700 9px/1.2 var(--font-body); border: 1.5px solid var(--bg); }
.divider { display: flex; align-items: center; gap: 12px; padding: 12px 20px 4px; }
.divider .line { flex: 1; height: 1px; background: rgba(216, 180, 255, 0.08); }
.divider .label { font: 500 10px/1 var(--font-display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
/* conversation list */
.conv-list { padding: 0 12px; }
.conv {
display: flex; align-items: center; gap: 12px;
padding: 12px 8px; border-radius: 14px;
cursor: pointer; transition: background 200ms;
}
.conv:hover, .conv:active { background: rgba(45, 34, 85, 0.3); }
.conv .av { width: 50px; height: 50px; border-radius: 50%; flex-shrink: 0; position: relative; }
.conv .av.a1 { background: linear-gradient(135deg, #ffb3c8, #ffd9a8); }
.conv .av.a2 { background: linear-gradient(135deg, #d8b4ff, #a4d4ff); }
.conv .av.a3 { background: linear-gradient(135deg, #8fe5b5, #d8b4ff); }
.conv .av.a4 { background: linear-gradient(135deg, #ffd9a8, #ffb3c8); }
.conv .av.a5 { background: linear-gradient(135deg, #a4d4ff, #ffd9a8); }
.conv .av.a6 { background: linear-gradient(135deg, #ffb3c8, #d8b4ff); }
.conv .av .online { position: absolute; right: 0; bottom: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--success); border: 2.5px solid var(--bg); }
.conv .av .pet-tag { position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-size: 12px; border: 2px solid var(--bg); }
.conv .col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.conv .row1 { display: flex; align-items: center; justify-content: space-between; }
.conv .nm { font: 600 14px/1.2 var(--font-body); display: flex; align-items: center; gap: 4px; }
.conv .nm .pet-name { color: var(--accent); font-size: 11px; font-weight: 500; }
.conv .tm { font: 400 11px/1 var(--font-body); color: var(--muted); }
.conv .prv { font: 400 12px/1.3 var(--font-body); color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv .prv .tag { color: var(--accent); font-weight: 500; }
.conv .right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.conv .badge { min-width: 18px; height: 18px; padding: 0 6px; border-radius: 9px; background: var(--accent-2); color: var(--primary-on); font: 700 10px/18px var(--font-body); text-align: center; }
.conv .muted-badge { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); opacity: 0.4; }
.conv .pin { color: var(--muted); }
.conv .pin svg { width: 12px; height: 12px; }
/* group chat */
.conv .av.group { background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: grid; place-items: center; color: var(--primary-on); }
.conv .av.group svg { width: 22px; height: 22px; }
.section-label { padding: 12px 20px 6px; font: 600 11px/1 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
/* tab bar */
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; height: 88px; padding-bottom: 22px; background: rgba(20, 16, 43, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid rgba(216, 180, 255, 0.06); display: flex; align-items: center; justify-content: space-around; z-index: 60; }
.tab-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 8px; cursor: pointer; flex: 1; color: var(--muted); transition: color 200ms; text-decoration: none; position: relative; }
.tab-item.act { color: var(--accent); }
.tab-item svg { width: 24px; height: 24px; }
.tab-item .label { font: 500 10px/1 var(--font-body); }
.tab-item .dot { position: absolute; top: 4px; right: 26%; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); border: 1.5px solid var(--bg); }
.tab-fab .b { width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); display: grid; place-items: center; box-shadow: 0 10px 24px rgba(216, 180, 255, 0.3); margin-top: -16px; transition: transform 200ms; }
.tab-fab:hover .b { transform: scale(1.05); }
.tab-fab svg { width: 24px; height: 24px; color: var(--primary-on); }
.home-indicator { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); width: 134px; height: 5px; background: var(--fg); border-radius: 3px; opacity: 0.7; z-index: 70; }
</style>
</head>
<body>
<div class="stage-wrap">
<div class="phone">
<div class="screen">
<div class="status-bar">
<span>9:41</span>
<div class="mp-capsule" aria-label="小程序菜单">
<button class="capsule-btn" aria-label="更多">
<svg viewBox="0 0 24 24" fill="currentColor">
<circle cx="6" cy="12" r="1.6"></circle>
<circle cx="12" cy="12" r="1.6"></circle>
<circle cx="18" cy="12" r="1.6"></circle>
</svg>
</button>
<button class="capsule-btn" aria-label="关闭">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<line x1="18" y1="6" x2="6" y2="18"></line>
<line x1="6" y1="6" x2="18" y2="18"></line>
</svg>
</button>
</div>
</div>
<div class="content">
<div class="top-nav">
<h1>消息</h1>
<button class="icon-btn" aria-label="发起群聊">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="20" y1="8" x2="20" y2="14"></line><line x1="23" y1="11" x2="17" y2="11"></line></svg>
</button>
</div>
<div class="search">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>
<input placeholder="搜索联系人、群聊…">
</div>
<div class="active-row">
<div class="active">
<div class="av-wrap"><div class="av a1"></div><div class="live">LIVE</div></div>
<div class="nm">麻薯</div>
</div>
<div class="active">
<div class="av-wrap"><div class="av a2"></div><div class="live">LIVE</div></div>
<div class="nm">乐乐</div>
</div>
<div class="active">
<div class="av-wrap"><div class="av a3"></div></div>
<div class="nm">豆豆</div>
</div>
<div class="active">
<div class="av-wrap"><div class="av a4"></div></div>
<div class="nm">Lucky</div>
</div>
<div class="active">
<div class="av-wrap"><div class="av a5"></div></div>
<div class="nm">多多</div>
</div>
</div>
<div class="section-label">全部消息</div>
<div class="conv-list">
<div class="conv" data-id="c1">
<div class="av a1">
<div class="online"></div>
<div class="pet-tag">🐕</div>
</div>
<div class="col">
<div class="row1">
<div class="nm">麻薯妈妈 <span class="pet-name">· 麻薯 ♀</span></div>
<div class="tm">刚刚</div>
</div>
<div class="prv">好的!明天 4 点滨江公园见 🐾 我带飞盘来</div>
</div>
<div class="right">
<div class="badge">2</div>
</div>
</div>
<div class="conv" data-id="c2">
<div class="av group">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="9" cy="7" r="4"></circle><path d="M23 21v-2a4 4 0 0 0-3-3.87"></path><path d="M16 3.13a4 4 0 0 1 0 7.75"></path></svg>
</div>
<div class="col">
<div class="row1">
<div class="nm">周末宠物派对 · 滨江 <span class="badge" style="background: var(--accent); color: var(--primary-on); padding: 0 6px; font-size: 9px; margin-left: 4px;">14人</span></div>
<div class="tm">10 分</div>
</div>
<div class="prv">Lucky 之家: <span class="tag">@阿布的家长</span> 还差 3 个名额,帮转发一下!</div>
</div>
<div class="right">
<div class="badge">8</div>
</div>
</div>
<div class="conv" data-id="c3">
<div class="av a2">
<div class="online"></div>
</div>
<div class="col">
<div class="row1">
<div class="nm">乐乐家 <span class="pet-name">· 年糕 ♂</span></div>
<div class="tm">14:22</div>
</div>
<div class="prv">[图片] 年糕今天新剪的造型,是不是很精神</div>
</div>
<div class="right">
<div class="muted-badge"></div>
</div>
</div>
<div class="conv" data-id="c4">
<div class="av a3"></div>
<div class="col">
<div class="row1">
<div class="nm">豆豆</div>
<div class="tm">今天 11:08</div>
</div>
<div class="prv">感谢你分享的遛狗路线!我们下周去试试</div>
</div>
<div class="right">
<div class="pin"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 2l2 6h6l-5 4 2 7-5-4-5 4 2-7-5-4h6z"></path></svg></div>
</div>
</div>
<div class="conv" data-id="c5">
<div class="av a4">
<div class="online"></div>
</div>
<div class="col">
<div class="row1">
<div class="nm">Lucky 之家 <span class="pet-name">· Lucky ♂</span></div>
<div class="tm">昨天</div>
</div>
<div class="prv">我家 Lucky 周六可以参加 🎾 你家毛孩子呢?</div>
</div>
<div class="right">
<div class="muted-badge"></div>
</div>
</div>
<div class="conv" data-id="c6">
<div class="av a5"></div>
<div class="col">
<div class="row1">
<div class="nm">多多爸爸</div>
<div class="tm">昨天</div>
</div>
<div class="prv">收到!期待周末见面 🐶</div>
</div>
<div class="right">
<div class="muted-badge"></div>
</div>
</div>
<div class="conv" data-id="c7">
<div class="av a6"></div>
<div class="col">
<div class="row1">
<div class="nm">奶油</div>
<div class="tm">周一</div>
</div>
<div class="prv">欢迎来到汪圈!这里有很多可爱的小动物</div>
</div>
<div class="right">
<div class="muted-badge"></div>
</div>
</div>
<div class="conv" data-id="c8">
<div class="av a1" style="background: linear-gradient(135deg, #ffd166, #ffb3c8);"></div>
<div class="col">
<div class="row1">
<div class="nm">🐾 汪圈客服</div>
<div class="tm">上周</div>
</div>
<div class="prv">您的宠物认证申请已通过,感谢支持</div>
</div>
<div class="right">
<div class="muted-badge"></div>
</div>
</div>
</div>
</div>
<nav class="tabbar">
<a class="tab-item" href="plaza.html">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><polygon points="16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76"></polygon></svg>
<span class="label">广场</span>
</a>
<a class="tab-item" href="nearby.html">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle></svg>
<span class="label">附近</span>
</a>
<a class="tab-fab" href="publish.html">
<div class="b">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>
</div>
</a>
<a class="tab-item act" href="messages.html">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path></svg>
<span class="label">消息</span>
<span class="dot"></span>
</a>
<a class="tab-item" href="profile.html">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg>
<span class="label">我的</span>
</a>
</nav>
<div class="home-indicator"></div>
</div>
</div>
</div>
<script>
const tabs = document.getElementById('tabs');
tabs.addEventListener('click', (e) => {
const t = e.target.closest('.tab');
if (!t) return;
tabs.querySelectorAll('.tab').forEach(x => x.classList.remove('act'));
t.classList.add('act');
});
// Click on conversation (visual feedback)
document.querySelectorAll('.conv').forEach(conv => {
conv.addEventListener('click', () => {
const badge = conv.querySelector('.badge');
if (badge && badge.textContent && badge.textContent !== '14人') {
badge.style.display = 'none';
}
});
});
</script>
</body></html>

653
refrence_html/nearby.html Normal file
View File

@@ -0,0 +1,653 @@
<!doctype html>
<html lang="zh-CN"><head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>附近 · 汪圈</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;450;510;600;700&amp;family=Space+Grotesk:wght@500;600;700&amp;display=swap" rel="stylesheet">
<style>
:root {
--bg: #14102b;
--surface: #1f1742;
--fg: #f0e9ff;
--fg-2: #c7b9e0;
--muted: #8a7aab;
--border: #2e234a;
--accent: #d8b4ff;
--accent-2: #ffb3c8;
--primary: #ffd9a8;
--primary-on: #2a1d10;
--success: #8fe5b5;
--map-bg: #0e0a22;
--map-road: rgba(240, 233, 255, 0.10);
--map-road-2: rgba(240, 233, 255, 0.05);
--map-block: rgba(240, 233, 255, 0.04);
--font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
--font-body: 'Inter', system-ui, -apple-system, 'PingFang SC', sans-serif;
--sheet-h: 220px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body {
background: radial-gradient(ellipse 70% 50% at 25% 0%, rgba(216, 180, 255, 0.10), transparent 60%), radial-gradient(ellipse 60% 50% at 75% 100%, rgba(255, 179, 200, 0.08), transparent 60%), #0a0719;
color: var(--fg);
font-family: var(--font-body);
-webkit-font-smoothing: antialiased;
display: grid; place-items: center;
overflow: auto;
}
.stage-wrap { padding: 24px; }
.phone {
width: 390px; height: 844px;
background: var(--map-bg);
border-radius: 50px;
position: relative; overflow: hidden;
box-shadow: 0 60px 120px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 0 0 2px rgba(255, 255, 255, 0.04);
}
.phone::before {
content: ''; position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
width: 110px; height: 32px; background: #000; border-radius: 9999px; z-index: 200;
}
.status-bar {
position: absolute; top: 0; left: 0; right: 0; z-index: 60;
height: 54px; display: flex; align-items: flex-end; justify-content: space-between;
padding: 0 32px 8px; font: 600 15px/1 var(--font-body);
}
.status-bar .right { display: flex; align-items: center; gap: 6px; }
.status-bar .ic-sig { display: flex; align-items: flex-end; gap: 2px; }
.status-bar .ic-sig span { width: 3px; background: var(--fg); border-radius: 1px; }
.status-bar .ic-sig span:nth-child(1) { height: 4px; } .status-bar .ic-sig span:nth-child(2) { height: 6px; } .status-bar .ic-sig span:nth-child(3) { height: 8px; } .status-bar .ic-sig span:nth-child(4) { height: 10px; }
.status-bar .ic-batt { width: 26px; height: 12px; border: 1.2px solid rgba(240, 233, 255, 0.6); border-radius: 3px; padding: 1.5px; }
.status-bar .ic-batt .fill { display: block; height: 100%; background: var(--fg); border-radius: 1px; width: 78%; }
/* WeChat mini program capsule - top-right of status bar */
.mp-capsule {
display: flex; align-items: center;
height: 28px; border-radius: 14px;
background: rgba(255, 255, 255, 0.06);
border: 1px solid rgba(255, 255, 255, 0.14);
overflow: hidden;
backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.mp-capsule .capsule-btn {
display: grid; place-items: center;
width: 32px; height: 28px;
background: transparent; border: 0; padding: 0; cursor: pointer; color: var(--fg);
}
.mp-capsule .capsule-btn + .capsule-btn { border-left: 1px solid rgba(255, 255, 255, 0.12); }
.mp-capsule svg { width: 14px; height: 14px; }
.map-area {
position: absolute; inset: 0;
background:
radial-gradient(circle at 20% 30%, rgba(45, 26, 90, 0.6), transparent 50%),
radial-gradient(circle at 80% 70%, rgba(40, 30, 80, 0.5), transparent 50%),
var(--map-bg);
overflow: hidden;
}
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pin {
position: absolute; transform: translate(-50%, -100%);
display: flex; flex-direction: column; align-items: center; gap: 2px;
cursor: pointer; transition: transform 240ms cubic-bezier(0.2, 0, 0, 1);
z-index: 5;
}
.pin .avatar {
width: 44px; height: 44px; border-radius: 50%;
border: 3px solid var(--bg);
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
position: relative;
}
.pin .avatar::after {
content: ''; position: absolute; inset: -6px; border-radius: 50%;
border: 1.5px solid var(--accent); opacity: 0.4;
}
.pin .label {
margin-top: 2px; padding: 2px 8px; border-radius: 999px;
background: rgba(20, 16, 43, 0.85); backdrop-filter: blur(6px);
color: var(--fg); font: 600 10px/1.4 var(--font-body);
border: 1px solid rgba(216, 180, 255, 0.15); white-space: nowrap;
}
.pin.active { z-index: 6; }
.pin.active .avatar { transform: scale(1.18); }
.pin.active .avatar::after { border-color: var(--accent); opacity: 0.9; box-shadow: 0 0 0 4px rgba(216, 180, 255, 0.18); }
.pin .distance {
position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%);
font: 500 9px/1 var(--font-body); color: var(--muted);
background: rgba(20, 16, 43, 0.7); padding: 2px 6px; border-radius: 6px; white-space: nowrap;
}
.pin.me { z-index: 7; }
.pin.me .avatar { width: 22px; height: 22px; background: var(--accent); border: 3px solid var(--bg); box-shadow: 0 0 0 4px rgba(216, 180, 255, 0.3); }
.pin.me .avatar::after { content: none; }
.pin.me .pulse {
position: absolute; inset: -10px; border-radius: 50%;
border: 1.5px solid var(--accent); opacity: 0.6;
animation: pulse 2400ms ease-out infinite;
}
@keyframes pulse {
0% { transform: scale(0.6); opacity: 0.7; }
100% { transform: scale(2.2); opacity: 0; }
}
.top-nav {
position: absolute; top: 54px; left: 0; right: 0; z-index: 50;
padding: 10px 16px 0;
display: flex; align-items: center; gap: 8px;
}
.loc-pill {
flex: 1; display: flex; align-items: center; gap: 6px;
padding: 10px 12px; border-radius: 14px;
background: rgba(20, 16, 43, 0.78);
backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
border: 1px solid rgba(216, 180, 255, 0.10);
font: 600 13px/1 var(--font-body); color: var(--fg);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
cursor: pointer;
}
.loc-pill svg { width: 14px; height: 14px; color: var(--accent); }
.loc-pill .caret { margin-left: auto; color: var(--muted); }
.icon-btn {
width: 40px; height: 40px; border-radius: 14px;
background: rgba(20, 16, 43, 0.78);
backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
display: grid; place-items: center; cursor: pointer;
border: 1px solid rgba(216, 180, 255, 0.10);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.icon-btn svg { width: 18px; height: 18px; color: var(--fg); }
.map-controls {
position: absolute; right: 12px; bottom: calc(var(--sheet-h) + 20px);
z-index: 30;
display: flex; flex-direction: column; gap: 8px;
transition: bottom 280ms cubic-bezier(0.2, 0, 0, 1);
}
.ctrl {
width: 44px; height: 44px; border-radius: 14px;
background: rgba(20, 16, 43, 0.85);
backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
display: grid; place-items: center; cursor: pointer;
border: 1px solid rgba(216, 180, 255, 0.10);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.ctrl svg { width: 18px; height: 18px; color: var(--fg); }
.search-area {
position: absolute; left: 50%; top: calc(100% - var(--sheet-h) - 70px);
transform: translate(-50%, 0);
z-index: 30;
display: flex; align-items: center; gap: 6px;
padding: 8px 14px; border-radius: 999px;
background: var(--fg); color: var(--primary-on);
font: 600 12px/1 var(--font-body);
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
border: 0; cursor: pointer;
transition: top 280ms cubic-bezier(0.2, 0, 0, 1), transform 180ms;
}
.search-area svg { width: 12px; height: 12px; }
.sheet {
position: absolute; left: 0; right: 0; bottom: 88px;
height: var(--sheet-h);
background: rgba(31, 23, 66, 0.92);
backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
border-top: 1px solid rgba(216, 180, 255, 0.12);
border-radius: 24px 24px 0 0;
box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.3);
display: flex; flex-direction: column;
z-index: 40;
transition: height 280ms cubic-bezier(0.2, 0, 0, 1);
will-change: height;
touch-action: none;
overflow: hidden;
}
.sheet.min .sheet-header,
.sheet.min .sheet-chips,
.sheet.min .sheet-list { display: none; }
.sheet.min .sheet-handle { padding: 16px 0 14px; }
.sheet.min .sheet-handle .bar { width: 48px; height: 5px; background: rgba(216, 180, 255, 0.5); }
.sheet-handle {
padding: 10px 0 6px;
display: flex; justify-content: center; align-items: center;
cursor: grab; flex-shrink: 0;
}
.sheet-handle:active { cursor: grabbing; }
.sheet-handle .bar { width: 40px; height: 4px; border-radius: 2px; background: rgba(216, 180, 255, 0.3); transition: background 200ms, width 200ms; }
.sheet-handle:hover .bar { background: rgba(216, 180, 255, 0.55); width: 46px; }
.sheet-header { padding: 0 20px 8px; flex-shrink: 0; }
.sheet-header h2 { font: 700 20px/1.2 var(--font-display); letter-spacing: -0.01em; }
.sheet-header .count { font: 500 12px/1.4 var(--font-body); color: var(--muted); margin-top: 2px; }
.chip {
flex-shrink: 0; padding: 6px 10px; border-radius: 999px;
background: rgba(45, 34, 85, 0.4); border: 1px solid rgba(216, 180, 255, 0.08);
color: var(--fg-2); font: 500 11px/1 var(--font-body);
cursor: pointer; transition: all 200ms;
}
.chip.act { background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%); color: var(--primary-on); border-color: transparent; }
.sheet-chips { display: flex; gap: 6px; padding: 0 20px 10px; overflow-x: auto; flex-shrink: 0; }
.sheet-chips::-webkit-scrollbar { display: none; }
.sheet-list { flex: 1; overflow-y: auto; padding: 0 16px 16px; }
.sheet-list::-webkit-scrollbar { display: none; }
.card {
display: flex; gap: 12px; padding: 10px;
background: rgba(45, 34, 85, 0.4);
border-radius: 16px; border: 1px solid rgba(216, 180, 255, 0.06);
margin-bottom: 8px; cursor: pointer;
transition: background 200ms, border-color 200ms;
}
.card:hover { background: rgba(45, 34, 85, 0.6); }
.card.active { background: rgba(216, 180, 255, 0.12); border-color: var(--accent); }
.card .photo {
flex-shrink: 0; width: 72px; height: 72px; border-radius: 12px;
position: relative; overflow: hidden;
}
.card:nth-child(1) .photo { background: radial-gradient(circle at 50% 30%, rgba(255, 217, 168, 0.5) 0%, transparent 50%), linear-gradient(160deg, #6b4f9a 0%, #2a1f4a 100%); }
.card:nth-child(2) .photo { background: radial-gradient(circle at 50% 30%, rgba(143, 229, 181, 0.5) 0%, transparent 50%), linear-gradient(160deg, #4a7a6a 0%, #1a3a2a 100%); }
.card:nth-child(3) .photo { background: radial-gradient(circle at 50% 30%, rgba(255, 179, 200, 0.5) 0%, transparent 50%), linear-gradient(160deg, #7a4a6a 0%, #3a1a2a 100%); }
.card:nth-child(4) .photo { background: radial-gradient(circle at 50% 30%, rgba(216, 180, 255, 0.5) 0%, transparent 50%), linear-gradient(160deg, #4a4a8a 0%, #1a1a3a 100%); }
.card:nth-child(5) .photo { background: radial-gradient(circle at 50% 30%, rgba(255, 209, 102, 0.5) 0%, transparent 50%), linear-gradient(160deg, #7a6a4a 0%, #3a2a1a 100%); }
.card .photo::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 35%, rgba(255, 255, 255, 0.18) 0%, transparent 60%); }
.card .photo .pin-distance {
position: absolute; left: 6px; bottom: 6px; padding: 2px 6px; border-radius: 6px;
background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(4px);
color: var(--fg); font: 600 9px/1.2 var(--font-body);
}
.card .col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.card .row1 { display: flex; align-items: center; gap: 6px; }
.card .nm { font: 700 14px/1.2 var(--font-body); }
.card .age { font: 500 12px/1 var(--font-body); color: var(--muted); }
.card .online-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 4px var(--success); }
.card .meta { font: 400 11px/1.3 var(--font-body); color: var(--fg-2); }
.card .meta .dot { display: inline-block; margin: 0 6px; color: var(--muted); }
.card .tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 2px; }
.card .tag { padding: 2px 8px; border-radius: 999px; background: rgba(255, 217, 168, 0.14); color: var(--primary); font: 500 9px/1.4 var(--font-body); border: 1px solid rgba(255, 217, 168, 0.18); }
.card .tag.green { background: rgba(143, 229, 181, 0.12); color: var(--success); border-color: rgba(143, 229, 181, 0.2); }
.card .tag.pink { background: rgba(255, 179, 200, 0.14); color: var(--accent-2); border-color: rgba(255, 179, 200, 0.2); }
.card .actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.card .act-btn {
width: 36px; height: 36px; border-radius: 50%;
background: rgba(45, 34, 85, 0.5); border: 1px solid rgba(216, 180, 255, 0.1);
display: grid; place-items: center; cursor: pointer;
}
.card .act-btn svg { width: 16px; height: 16px; color: var(--fg-2); }
.card .act-btn.like { background: linear-gradient(135deg, var(--accent-2) 0%, #ff8aab 100%); border: 0; box-shadow: 0 6px 16px rgba(255, 138, 171, 0.35); }
.card .act-btn.like svg { color: white; }
.tabbar {
position: absolute; left: 0; right: 0; bottom: 0;
height: 88px; padding-bottom: 22px;
background: rgba(20, 16, 43, 0.85);
backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
border-top: 1px solid rgba(216, 180, 255, 0.06);
display: flex; align-items: center; justify-content: space-around;
z-index: 60;
}
.tab-item {
display: flex; flex-direction: column; align-items: center; gap: 4px;
padding: 6px 8px; cursor: pointer; flex: 1;
color: var(--muted); transition: color 200ms;
text-decoration: none;
}
.tab-item.act { color: var(--accent); }
.tab-item svg { width: 24px; height: 24px; }
.tab-item .label { font: 500 10px/1 var(--font-body); letter-spacing: 0.02em; }
.tab-fab { position: relative; flex: 0 0 auto; margin: 0 4px; }
.tab-fab .b {
width: 52px; height: 52px; border-radius: 16px;
background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
display: grid; place-items: center;
box-shadow: 0 10px 24px rgba(216, 180, 255, 0.3);
margin-top: -16px;
transition: transform 200ms;
}
.tab-fab:hover .b { transform: scale(1.05); }
.tab-fab svg { width: 24px; height: 24px; color: var(--primary-on); }
.home-indicator {
position: absolute; left: 50%; bottom: 8px;
transform: translateX(-50%);
width: 134px; height: 5px; background: var(--fg); border-radius: 3px;
opacity: 0.7; z-index: 70;
}
.match-toast {
position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0);
width: 90px; height: 90px; pointer-events: none; z-index: 100;
display: grid; place-items: center;
transition: transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.match-toast.show { transform: translate(-50%, -50%) scale(1); }
.match-toast svg { width: 90px; height: 90px; color: var(--accent-2); filter: drop-shadow(0 4px 20px rgba(255, 138, 171, 0.6)); }
</style>
</head>
<body>
<div class="stage-wrap">
<div class="phone">
<div class="status-bar">
<span>9:41</span>
<div class="mp-capsule" aria-label="小程序菜单">
<button class="capsule-btn" aria-label="更多">
<svg viewBox="0 0 24 24" fill="currentColor">
<circle cx="6" cy="12" r="1.6"></circle>
<circle cx="12" cy="12" r="1.6"></circle>
<circle cx="18" cy="12" r="1.6"></circle>
</svg>
</button>
<button class="capsule-btn" aria-label="关闭">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<line x1="18" y1="6" x2="6" y2="18"></line>
<line x1="6" y1="6" x2="18" y2="18"></line>
</svg>
</button>
</div>
</div>
<div class="map-area" id="mapArea">
<svg class="map-svg" viewBox="0 0 390 716" preserveAspectRatio="xMidYMid slice" aria-hidden="true">
<defs>
<linearGradient id="parkGrad" x1="0" y1="0" x2="0" y2="1">
<stop offset="0%" stop-color="rgba(143, 229, 181, 0.10)"></stop>
<stop offset="100%" stop-color="rgba(143, 229, 181, 0.04)"></stop>
</linearGradient>
<linearGradient id="waterGrad" x1="0" y1="0" x2="0" y2="1">
<stop offset="0%" stop-color="rgba(189, 244, 255, 0.10)"></stop>
<stop offset="100%" stop-color="rgba(189, 244, 255, 0.04)"></stop>
</linearGradient>
</defs>
<path d="M0,80 Q60,40 130,60 Q170,90 160,150 Q120,180 60,170 Q0,150 0,80Z" fill="url(#parkGrad)"></path>
<circle cx="80" cy="110" r="22" fill="rgba(143, 229, 181, 0.06)"></circle>
<circle cx="110" cy="135" r="14" fill="rgba(143, 229, 181, 0.05)"></circle>
<path d="M260,500 Q340,490 390,520 L390,600 Q330,610 270,580 Z" fill="url(#waterGrad)"></path>
<line x1="0" y1="220" x2="390" y2="220" stroke="var(--map-road)" stroke-width="2"></line>
<line x1="0" y1="380" x2="390" y2="380" stroke="var(--map-road)" stroke-width="1.5"></line>
<line x1="0" y1="500" x2="390" y2="500" stroke="var(--map-road-2)" stroke-width="1.5"></line>
<line x1="0" y1="280" x2="390" y2="280" stroke="var(--map-road-2)" stroke-width="1"></line>
<line x1="80" y1="0" x2="80" y2="716" stroke="var(--map-road)" stroke-width="1.5"></line>
<line x1="200" y1="0" x2="200" y2="716" stroke="var(--map-road)" stroke-width="2"></line>
<line x1="320" y1="0" x2="320" y2="716" stroke="var(--map-road-2)" stroke-width="1.5"></line>
<line x1="140" y1="0" x2="140" y2="716" stroke="var(--map-road-2)" stroke-width="1"></line>
<line x1="0" y1="0" x2="220" y2="180" stroke="var(--map-road-2)" stroke-width="1"></line>
<line x1="200" y1="280" x2="390" y2="500" stroke="var(--map-road-2)" stroke-width="1"></line>
<g fill="var(--map-block)" stroke="rgba(240, 233, 255, 0.05)" stroke-width="0.5">
<rect x="10" y="200" width="60" height="14" rx="2"></rect>
<rect x="10" y="232" width="50" height="14" rx="2"></rect>
<rect x="90" y="232" width="80" height="14" rx="2"></rect>
<rect x="210" y="232" width="60" height="14" rx="2"></rect>
<rect x="10" y="290" width="60" height="20" rx="2"></rect>
<rect x="90" y="290" width="100" height="20" rx="2"></rect>
<rect x="210" y="290" width="40" height="20" rx="2"></rect>
<rect x="10" y="340" width="40" height="32" rx="2"></rect>
<rect x="60" y="340" width="110" height="32" rx="2"></rect>
<rect x="210" y="340" width="80" height="32" rx="2"></rect>
<rect x="10" y="390" width="100" height="20" rx="2"></rect>
<rect x="120" y="390" width="70" height="20" rx="2"></rect>
<rect x="210" y="390" width="60" height="20" rx="2"></rect>
<rect x="280" y="390" width="100" height="20" rx="2"></rect>
<rect x="10" y="420" width="60" height="40" rx="2"></rect>
<rect x="80" y="420" width="100" height="40" rx="2"></rect>
<rect x="210" y="420" width="50" height="40" rx="2"></rect>
<rect x="280" y="420" width="100" height="40" rx="2"></rect>
<rect x="10" y="510" width="60" height="40" rx="2"></rect>
<rect x="80" y="510" width="50" height="40" rx="2"></rect>
<rect x="210" y="510" width="60" height="40" rx="2"></rect>
</g>
</svg>
<div class="pin me" style="left: 48%; top: 44%;">
<div class="avatar"><div class="pulse"></div></div>
</div>
<div class="pin active" data-id="p1" style="left: 22%; top: 32%;">
<div class="avatar" style="background: linear-gradient(135deg, #ffd9a8, #ffb3c8);"></div>
<div class="label">麻薯</div>
<div class="distance">1.2 km</div>
</div>
<div class="pin" data-id="p2" style="left: 68%; top: 22%;">
<div class="avatar" style="background: linear-gradient(135deg, #8fe5b5, #d8b4ff);"></div>
<div class="label">乐乐</div>
<div class="distance">1.8 km</div>
</div>
<div class="pin" data-id="p3" style="left: 75%; top: 48%;">
<div class="avatar" style="background: linear-gradient(135deg, #bdf4ff, #d8b4ff);"></div>
<div class="label">Lucky</div>
<div class="distance">2.4 km</div>
</div>
<div class="pin" data-id="p4" style="left: 30%; top: 60%;">
<div class="avatar" style="background: linear-gradient(135deg, #ffb3c8, #c084fc);"></div>
<div class="label">年糕</div>
<div class="distance">2.1 km</div>
</div>
<div class="pin" data-id="p5" style="left: 60%; top: 68%;">
<div class="avatar" style="background: linear-gradient(135deg, #ffd166, #ffb3c8);"></div>
<div class="label">豆豆</div>
<div class="distance">2.7 km</div>
</div>
<div class="top-nav">
<button class="icon-btn" aria-label="筛选">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"></polygon></svg>
</button>
<div class="loc-pill">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle></svg>
<span>3 km 内 · 浦东</span>
<svg class="caret" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>
</div>
</div>
<button class="search-area" aria-label="搜索此区域">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><polyline points="23 4 23 10 17 10"></polyline><polyline points="1 20 1 14 7 14"></polyline><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"></path></svg>
搜索此区域
</button>
<div class="map-controls">
<button class="ctrl" aria-label="放大">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>
</button>
<button class="ctrl" aria-label="缩小">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="5" y1="12" x2="19" y2="12"></line></svg>
</button>
<button class="ctrl" aria-label="定位到我的位置">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3"></circle><path d="M12 2v3M12 19v3M2 12h3M19 12h3"></path></svg>
</button>
</div>
</div>
<div class="sheet" id="sheet">
<div class="sheet-handle" id="handle">
<div class="bar"></div>
</div>
<div class="sheet-header">
<h2>附近的毛孩子</h2>
<div class="count">3 km 内 · 5 个 · 在线 3</div>
</div>
<div class="sheet-chips" id="sheetChips">
<div class="chip act">全部</div>
<div class="chip">🐕 狗狗</div>
<div class="chip">🐈 猫咪</div>
<div class="chip">仅在线</div>
</div>
<div class="sheet-list" id="sheetList">
<div class="card active" data-id="p1">
<div class="photo"><span class="pin-distance">1.2 km</span></div>
<div class="col">
<div class="row1">
<div class="nm">麻薯</div>
<div class="age">2 岁</div>
<div class="online-dot" style="margin-left: auto;"></div>
</div>
<div class="meta">金毛 · ♀<span class="dot">·</span>喜欢在江边慢跑</div>
<div class="tags">
<div class="tag">🌿 慢跑</div>
<div class="tag green">已认证</div>
</div>
</div>
<div class="actions">
<button class="act-btn like" aria-label="喜欢"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"></path></svg></button>
</div>
</div>
<div class="card" data-id="p2">
<div class="photo"><span class="pin-distance">1.8 km</span></div>
<div class="col">
<div class="row1">
<div class="nm">乐乐</div>
<div class="age">1 岁</div>
<div class="online-dot" style="margin-left: auto;"></div>
</div>
<div class="meta">布偶 · ♂<span class="dot">·</span>安静、怕生</div>
<div class="tags">
<div class="tag pink">🐈 室内</div>
<div class="tag green">已认证</div>
</div>
</div>
<div class="actions">
<button class="act-btn like" aria-label="喜欢"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"></path></svg></button>
</div>
</div>
<div class="card" data-id="p3">
<div class="photo"><span class="pin-distance">2.4 km</span></div>
<div class="col">
<div class="row1">
<div class="nm">Lucky</div>
<div class="age">3 岁</div>
</div>
<div class="meta">柯基 · ♂<span class="dot">·</span>喜欢追球</div>
<div class="tags">
<div class="tag">🎾 飞盘</div>
<div class="tag green">已认证</div>
</div>
</div>
<div class="actions">
<button class="act-btn like" aria-label="喜欢"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"></path></svg></button>
</div>
</div>
<div class="card" data-id="p4">
<div class="photo"><span class="pin-distance">2.1 km</span></div>
<div class="col">
<div class="row1">
<div class="nm">年糕</div>
<div class="age">1 岁</div>
<div class="online-dot" style="margin-left: auto;"></div>
</div>
<div class="meta">布偶 · ♀<span class="dot">·</span>安静、亲人</div>
<div class="tags">
<div class="tag pink">🐈 室内</div>
<div class="tag green">已认证</div>
</div>
</div>
<div class="actions">
<button class="act-btn like" aria-label="喜欢"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"></path></svg></button>
</div>
</div>
<div class="card" data-id="p5">
<div class="photo"><span class="pin-distance">2.7 km</span></div>
<div class="col">
<div class="row1">
<div class="nm">豆豆</div>
<div class="age">4 岁</div>
</div>
<div class="meta">柴犬 · ♂<span class="dot">·</span>爱社交</div>
<div class="tags">
<div class="tag">☕ 咖啡馆友好</div>
<div class="tag green">已认证</div>
</div>
</div>
<div class="actions">
<button class="act-btn like" aria-label="喜欢"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"></path></svg></button>
</div>
</div>
</div>
</div>
<div class="match-toast" id="matchToast"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"></path></svg></div>
<nav class="tabbar" aria-label="底部导航">
<a class="tab-item" href="plaza.html"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><polygon points="16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76"></polygon></svg><span class="label">广场</span></a>
<a class="tab-item act" href="nearby.html"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle></svg><span class="label">附近</span></a>
<a class="tab-fab" href="publish.html" aria-label="发布"><div class="b"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg></div></a>
<a class="tab-item" href="messages.html"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path></svg><span class="label">消息</span></a>
<a class="tab-item" href="profile.html"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg><span class="label">我的</span></a>
</nav>
<div class="home-indicator"></div>
</div>
</div>
<script>
var sheet = document.getElementById('sheet');
var handle = document.getElementById('handle');
var MIN = 60, PEEK = 220, HALF = 420, FULL = 620;
var SNAPS = [MIN, PEEK, HALF, FULL];
var MIN_H = MIN, MAX_H = FULL;
var currentH = PEEK;
var dragging = false, startY = 0, startH = 0;
function setSheetHeight(h, animate) {
animate = animate !== false;
currentH = Math.max(MIN_H, Math.min(MAX_H, h));
sheet.style.transition = animate ? 'height 280ms cubic-bezier(0.2, 0, 0, 1)' : 'none';
sheet.style.setProperty('--sheet-h', currentH + 'px');
sheet.classList.toggle('min', currentH <= MIN + 8);
}
setSheetHeight(PEEK, false);
handle.addEventListener('pointerdown', function (e) {
dragging = true; startY = e.clientY; startH = currentH;
try { handle.setPointerCapture(e.pointerId); } catch (_) {}
sheet.style.transition = 'none';
});
handle.addEventListener('pointermove', function (e) {
if (!dragging) return;
setSheetHeight(startH + (startY - e.clientY), false);
});
handle.addEventListener('pointerup', function () {
if (!dragging) return;
dragging = false;
var nearest = SNAPS[0], dist = Infinity;
for (var i = 0; i < SNAPS.length; i++) {
var d = Math.abs(currentH - SNAPS[i]);
if (d < dist) { dist = d; nearest = SNAPS[i]; }
}
setSheetHeight(nearest, true);
});
handle.addEventListener('pointercancel', function () { dragging = false; setSheetHeight(PEEK, true); });
var sheetChips = document.getElementById('sheetChips');
sheetChips.addEventListener('click', function (e) {
var c = e.target.closest('.chip');
if (!c) return;
sheetChips.querySelectorAll('.chip').forEach(function (x) { x.classList.remove('act'); });
c.classList.add('act');
});
var cards = document.querySelectorAll('.card');
var pins = document.querySelectorAll('.pin[data-id]');
var toast = document.getElementById('matchToast');
function selectPet(id) {
cards.forEach(function (c) { c.classList.toggle('active', c.dataset.id === id); });
pins.forEach(function (p) { p.classList.toggle('active', p.dataset.id === id); });
if (currentH < HALF) setSheetHeight(HALF, true);
var card = document.querySelector('.card[data-id="' + id + '"]');
if (card && sheet.clientHeight > 200) {
card.scrollIntoView({ behavior: 'smooth', block: 'nearest' });
}
}
cards.forEach(function (card) {
card.addEventListener('click', function (e) {
if (e.target.closest('.act-btn')) return;
selectPet(card.dataset.id);
});
});
pins.forEach(function (pin) {
pin.addEventListener('click', function () { selectPet(pin.dataset.id); });
});
document.querySelectorAll('.act-btn.like').forEach(function (btn) {
btn.addEventListener('click', function (e) {
e.stopPropagation();
toast.classList.add('show');
setTimeout(function () { toast.classList.remove('show'); }, 480);
});
});
var sa = document.querySelector('.search-area');
sa.addEventListener('click', function () {
sa.style.transform = 'translate(-50%, -2px) scale(0.97)';
setTimeout(function () { sa.style.transform = 'translate(-50%, 0)'; }, 180);
});
</script>
</body></html>

503
refrence_html/plaza.html Normal file
View File

@@ -0,0 +1,503 @@
<!doctype html>
<html lang="zh-CN"><head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>广场 · 汪圈</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;450;510;600;700&amp;family=Space+Grotesk:wght@500;600;700&amp;display=swap" rel="stylesheet">
<style>
:root {
--bg: #14102b;
--bg-warm: #1c1442;
--surface: #1f1742;
--surface-2: #251c4a;
--surface-hi: #2d2255;
--fg: #f0e9ff;
--fg-2: #c7b9e0;
--muted: #8a7aab;
--border: #2e234a;
--border-soft: #251c40;
--accent: #d8b4ff;
--accent-2: #ffb3c8;
--primary: #ffd9a8;
--primary-on: #2a1d10;
--success: #8fe5b5;
--warn: #ffd166;
--danger: #ff8a9b;
--font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
--font-body: 'Inter', system-ui, -apple-system, 'PingFang SC', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body {
background:
radial-gradient(ellipse 70% 50% at 25% 0%, rgba(216, 180, 255, 0.10), transparent 60%),
radial-gradient(ellipse 60% 50% at 75% 100%, rgba(255, 179, 200, 0.08), transparent 60%),
#0a0719;
color: var(--fg);
font-family: var(--font-body);
-webkit-font-smoothing: antialiased;
display: grid; place-items: center;
overflow: auto;
}
.stage-wrap { padding: 24px; }
.phone {
width: 390px; height: 844px;
background: #0a0719;
border-radius: 50px;
position: relative; overflow: hidden;
box-shadow:
0 60px 120px rgba(0, 0, 0, 0.5),
0 0 0 1px rgba(255, 255, 255, 0.06),
inset 0 0 0 2px rgba(255, 255, 255, 0.04);
}
.phone::before {
content: ''; position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
width: 110px; height: 32px; background: #000; border-radius: 9999px; z-index: 100;
}
.screen {
position: absolute; inset: 0;
background: linear-gradient(180deg, #1c1442 0%, #14102b 60%, #0f0a23 100%);
display: flex; flex-direction: column;
overflow: hidden;
}
/* status bar */
.status-bar {
height: 54px; flex-shrink: 0; position: relative; z-index: 50;
display: flex; align-items: flex-end; justify-content: space-between;
padding: 0 32px 8px;
font: 600 15px/1 var(--font-body);
}
.status-bar .right { display: flex; align-items: center; gap: 6px; }
.status-bar .ic-sig { display: flex; align-items: flex-end; gap: 2px; }
.status-bar .ic-sig span { width: 3px; background: var(--fg); border-radius: 1px; }
.status-bar .ic-sig span:nth-child(1) { height: 4px; }
.status-bar .ic-sig span:nth-child(2) { height: 6px; }
.status-bar .ic-sig span:nth-child(3) { height: 8px; }
.status-bar .ic-sig span:nth-child(4) { height: 10px; }
.status-bar .ic-wifi {
width: 16px; height: 12px; position: relative;
}
.status-bar .ic-wifi::before, .status-bar .ic-wifi::after {
content: ''; position: absolute; left: 50%; transform: translateX(-50%);
}
.status-bar .ic-wifi::before {
bottom: 0; width: 14px; height: 7px;
background: var(--fg);
-webkit-mask: radial-gradient(ellipse at bottom, transparent 49%, black 50%) bottom/100% 100% no-repeat;
mask: radial-gradient(ellipse at bottom, transparent 49%, black 50%) bottom/100% 100% no-repeat;
}
.status-bar .ic-batt {
width: 26px; height: 12px; border: 1.2px solid rgba(240, 233, 255, 0.6); border-radius: 3px;
position: relative; padding: 1.5px;
}
.status-bar .ic-batt::after {
content: ''; position: absolute; right: -3px; top: 50%; transform: translateY(-50%);
width: 2px; height: 4px; background: rgba(240, 233, 255, 0.6); border-radius: 0 1px 1px 0;
}
.status-bar .ic-batt .fill { display: block; height: 100%; background: var(--fg); border-radius: 1px; width: 78%; }
/* WeChat mini program capsule - occupies top-right of status bar */
.mp-capsule {
display: flex; align-items: center;
height: 28px; border-radius: 14px;
background: rgba(255, 255, 255, 0.06);
border: 1px solid rgba(255, 255, 255, 0.14);
overflow: hidden;
backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.mp-capsule .capsule-btn {
display: grid; place-items: center;
width: 32px; height: 28px;
background: transparent; border: 0; padding: 0; cursor: pointer; color: var(--fg);
}
.mp-capsule .capsule-btn + .capsule-btn { border-left: 1px solid rgba(255, 255, 255, 0.12); }
.mp-capsule svg { width: 14px; height: 14px; }
/* content area */
.content { flex: 1; overflow-y: auto; padding-bottom: 100px; -webkit-overflow-scrolling: touch; }
.content::-webkit-scrollbar { display: none; }
/* top nav */
.top-nav {
padding: 8px 20px 12px;
display: flex; align-items: center; gap: 12px;
}
.top-nav h1 {
font-family: var(--font-display); font-size: 30px; font-weight: 700;
letter-spacing: -0.02em;
}
.icon-btn {
width: 38px; height: 38px; border-radius: 50%;
background: rgba(45, 34, 85, 0.4);
display: grid; place-items: center; cursor: pointer;
border: 1px solid rgba(216, 180, 255, 0.08);
transition: background 150ms;
}
.icon-btn:hover { background: rgba(45, 34, 85, 0.6); }
.icon-btn svg { width: 18px; height: 18px; color: var(--fg); }
.search {
margin: 0 20px 14px;
background: rgba(45, 34, 85, 0.4);
border-radius: 12px; padding: 10px 14px;
display: flex; align-items: center; gap: 10px;
border: 1px solid rgba(216, 180, 255, 0.06);
}
.search svg { width: 14px; height: 14px; color: var(--muted); flex-shrink: 0; }
.search input { background: none; border: 0; outline: 0; flex: 1; color: var(--fg); font: 400 13px/1 var(--font-body); }
.search input::placeholder { color: var(--muted); }
.tabs {
display: flex; gap: 22px; padding: 0 20px; margin-bottom: 12px;
border-bottom: 1px solid var(--border-soft);
}
.tab {
padding: 8px 0; cursor: pointer; position: relative;
font: 500 14px/1 var(--font-body); color: var(--muted);
transition: color 200ms;
background: none; border: 0;
}
.tab.act { color: var(--fg); font-weight: 600; }
.tab.act::after {
content: ''; position: absolute; left: 50%; transform: translateX(-50%);
bottom: -1px; width: 22px; height: 3px; border-radius: 2px;
background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
}
.chips { display: flex; gap: 8px; padding: 12px 20px 4px; overflow-x: auto; }
.chips::-webkit-scrollbar { display: none; }
.chip {
flex-shrink: 0; padding: 6px 12px; border-radius: 999px;
background: rgba(45, 34, 85, 0.4);
border: 1px solid rgba(216, 180, 255, 0.08);
color: var(--fg-2); font: 500 12px/1 var(--font-body);
cursor: pointer; transition: all 200ms;
}
.chip.act { background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%); color: var(--primary-on); border-color: transparent; }
.feed { padding: 14px 20px 0; display: flex; flex-direction: column; gap: 14px; }
.post {
background: rgba(45, 34, 85, 0.4);
border-radius: 18px; padding: 16px;
border: 1px solid rgba(216, 180, 255, 0.08);
}
.post .head { display: flex; align-items: center; gap: 10px; }
.avatar {
width: 40px; height: 40px; border-radius: 50%;
background: linear-gradient(135deg, var(--accent), var(--accent-2));
flex-shrink: 0; position: relative;
}
.avatar.sm { width: 32px; height: 32px; }
.avatar.lg { width: 48px; height: 48px; }
.avatar .badge {
position: absolute; right: -2px; bottom: -2px;
width: 16px; height: 16px; border-radius: 50%;
background: var(--success);
border: 2px solid var(--surface);
}
.meta { flex: 1; min-width: 0; }
.meta .nm { font: 600 14px/1.2 var(--font-body); display: flex; align-items: center; gap: 6px; }
.meta .nm .pet-tag { font: 500 10px/1 var(--font-body); color: var(--accent); background: rgba(216, 180, 255, 0.12); padding: 2px 6px; border-radius: 6px; }
.meta .sub { font: 400 11px/1.3 var(--font-body); color: var(--muted); margin-top: 3px; }
.more-btn { width: 28px; height: 28px; display: grid; place-items: center; color: var(--muted); }
.more-btn svg { width: 16px; height: 16px; }
.post .body { font: 400 14px/1.55 var(--font-body); color: var(--fg); margin-top: 12px; }
.post .body .tag { color: var(--accent); font-weight: 500; }
.post .body .tag-2 { color: var(--accent-2); font-weight: 500; }
.post .media {
margin-top: 12px; border-radius: 12px; overflow: hidden;
aspect-ratio: 4 / 3; position: relative;
}
.media-pet-1 { background: radial-gradient(circle at 30% 40%, rgba(255, 217, 168, 0.6), transparent 50%), linear-gradient(135deg, #6b4f9a 0%, #3a2a6a 100%); }
.media-pet-2 { background: radial-gradient(circle at 70% 50%, rgba(255, 179, 200, 0.5), transparent 60%), linear-gradient(135deg, #4a3a7a 0%, #251c4a 100%); }
.media-pet-3 { background: radial-gradient(circle at 50% 30%, rgba(143, 229, 181, 0.4), transparent 60%), linear-gradient(135deg, #5a4a8a 0%, #2a1f4a 100%); }
.media .silhouette {
position: absolute; left: 50%; bottom: 20%; transform: translateX(-50%);
width: 60%; height: 70%;
background: radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, 0.18) 0%, transparent 60%);
}
.media .sticker {
position: absolute; right: 12px; top: 12px;
padding: 4px 10px; border-radius: 999px;
background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(8px);
color: var(--fg); font: 500 10px/1 var(--font-body);
}
.post .actions { display: flex; gap: 20px; margin-top: 12px; }
.action { display: flex; align-items: center; gap: 5px; color: var(--muted); font: 500 12px/1 var(--font-body); cursor: pointer; transition: color 200ms; background: none; border: 0; padding: 0; }
.action:hover, .action.liked { color: var(--accent-2); }
.action svg { width: 18px; height: 18px; }
.action .num { font-variant-numeric: tabular-nums; }
/* sticky ad card */
.ad-card {
margin: 6px 0;
background: linear-gradient(135deg, rgba(255, 179, 200, 0.12) 0%, rgba(255, 217, 168, 0.08) 100%);
border-radius: 16px; padding: 14px;
display: flex; align-items: center; gap: 12px;
border: 1px solid rgba(255, 179, 200, 0.15);
}
.ad-card .left { width: 50px; height: 50px; border-radius: 14px; background: linear-gradient(135deg, var(--accent-2), var(--primary)); flex-shrink: 0; display: grid; place-items: center; color: var(--primary-on); font: 700 18px/1 var(--font-display); }
.ad-card .text { flex: 1; }
.ad-card .title { font: 600 13px/1.3 var(--font-body); }
.ad-card .sub { font: 400 11px/1.4 var(--font-body); color: var(--fg-2); margin-top: 4px; }
.ad-card .cta { padding: 6px 12px; border-radius: 999px; background: var(--primary); color: var(--primary-on); font: 600 11px/1 var(--font-body); }
/* tab bar */
.tabbar {
position: absolute; left: 0; right: 0; bottom: 0;
height: 88px; padding-bottom: 22px;
background: rgba(20, 16, 43, 0.85);
backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
border-top: 1px solid rgba(216, 180, 255, 0.06);
display: flex; align-items: center; justify-content: space-around;
z-index: 60;
}
.tab-item {
display: flex; flex-direction: column; align-items: center; gap: 4px;
padding: 6px 8px; cursor: pointer; flex: 1;
color: var(--muted); transition: color 200ms;
text-decoration: none;
}
.tab-item.act { color: var(--accent); }
.tab-item svg { width: 24px; height: 24px; }
.tab-item .label { font: 500 10px/1 var(--font-body); letter-spacing: 0.02em; }
.tab-fab {
position: relative; flex: 0 0 auto;
margin: 0 4px;
}
.tab-fab .b {
width: 52px; height: 52px; border-radius: 16px;
background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
display: grid; place-items: center;
box-shadow: 0 10px 24px rgba(216, 180, 255, 0.3);
margin-top: -16px;
transition: transform 200ms;
}
.tab-fab:hover .b { transform: scale(1.05); }
.tab-fab svg { width: 24px; height: 24px; color: var(--primary-on); }
.home-indicator { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); width: 134px; height: 5px; background: var(--fg); border-radius: 3px; opacity: 0.7; z-index: 70; }
.nav-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; font: 400 11px/1 var(--font-body); color: var(--muted); }
.nav-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
/* small toast / interaction */
.like-toast {
position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0);
width: 80px; height: 80px; pointer-events: none;
display: grid; place-items: center;
transition: transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.like-toast.show { transform: translate(-50%, -50%) scale(1); }
.like-toast svg { width: 80px; height: 80px; color: var(--accent-2); filter: drop-shadow(0 4px 20px rgba(255, 138, 171, 0.6)); }
</style>
</head>
<body>
<div class="stage-wrap">
<div class="phone">
<div class="screen">
<div class="status-bar">
<span>9:41</span>
<div class="mp-capsule" aria-label="小程序菜单">
<button class="capsule-btn" aria-label="更多">
<svg viewBox="0 0 24 24" fill="currentColor">
<circle cx="6" cy="12" r="1.6"></circle>
<circle cx="12" cy="12" r="1.6"></circle>
<circle cx="18" cy="12" r="1.6"></circle>
</svg>
</button>
<button class="capsule-btn" aria-label="关闭">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<line x1="18" y1="6" x2="6" y2="18"></line>
<line x1="6" y1="6" x2="18" y2="18"></line>
</svg>
</button>
</div>
</div>
<div class="content">
<div class="top-nav">
<h1>广场</h1>
<button class="icon-btn" aria-label="消息">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path><path d="M13.73 21a2 2 0 0 1-3.46 0"></path></svg>
</button>
</div>
<div class="search">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>
<input placeholder="搜索动态、话题、宠物…">
</div>
<div class="tabs" id="tabs">
<button class="tab act" data-tab="feed">推荐</button>
<button class="tab" data-tab="nearby">附近</button>
<button class="tab" data-tab="follow">关注</button>
</div>
<div class="feed">
<article class="post" data-post-id="p1">
<div class="head">
<div class="avatar"><span class="badge"></span></div>
<div class="meta">
<div class="nm">奶油 <span class="pet-tag">奶昔 · 金毛</span></div>
<div class="nav-meta"><span>上海 · 滨江公园</span><span class="dot"></span><span>2 分钟前</span></div>
</div>
<button class="more-btn" aria-label="更多"><svg viewBox="0 0 24 24" fill="currentColor"><circle cx="12" cy="5" r="1.6"></circle><circle cx="12" cy="12" r="1.6"></circle><circle cx="12" cy="19" r="1.6"></circle></svg></button>
</div>
<div class="body">今天带 <span class="tag">#奶昔</span> 去了滨江公园,她第一次见到江面上的轮船,整个狗都愣住了 🌊🐕 路上还遇到一只超凶的柴犬妹妹,两个小家伙打闹了半小时才肯回家。</div>
<div class="media media-pet-1">
<div class="silhouette"></div>
<span class="sticker">📍 滨江公园</span>
</div>
<div class="actions">
<button class="action" data-action="like" data-liked="false"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"></path></svg><span class="num">128</span></button>
<button class="action"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path></svg><span class="num">24</span></button>
<button class="action"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="18" cy="5" r="3"></circle><circle cx="6" cy="12" r="3"></circle><circle cx="18" cy="19" r="3"></circle><line x1="8.59" y1="13.51" x2="15.42" y2="17.49"></line><line x1="15.41" y1="6.51" x2="8.59" y2="10.49"></line></svg><span>分享</span></button>
<button class="action" style="margin-left:auto"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"></path></svg></button>
</div>
</article>
<div class="ad-card">
<div class="left"></div>
<div class="text">
<div class="title">周末宠物派对 · 滨江绿地</div>
<div class="sub">本周六 14:00 · 名额剩 12 个</div>
</div>
<div class="cta">报名</div>
</div>
<article class="post">
<div class="head">
<div class="avatar" style="background: linear-gradient(135deg, #d8b4ff, #a4d4ff);"></div>
<div class="meta">
<div class="nm">乐乐家 <span class="pet-tag" style="background: rgba(143,229,181,0.12); color: var(--success);">年糕 · 布偶</span></div>
<div class="nav-meta"><span>上海 · 静安区</span><span class="dot"></span><span>15 分钟前</span></div>
</div>
<button class="more-btn"><svg viewBox="0 0 24 24" fill="currentColor"><circle cx="12" cy="5" r="1.6"></circle><circle cx="12" cy="12" r="1.6"></circle><circle cx="12" cy="19" r="1.6"></circle></svg></button>
</div>
<div class="body">年糕最近学会了一个新技能 —— <span class="tag-2">#开抽屉</span>。我们家所有抽屉现在都得加儿童锁 😹 求问各位铲屎官,猫咪成精了怎么办?</div>
<div class="media media-pet-2">
<div class="silhouette"></div>
</div>
<div class="actions">
<button class="action" data-action="like" data-liked="false"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"></path></svg><span class="num">87</span></button>
<button class="action"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path></svg><span class="num">12</span></button>
<button class="action"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="18" cy="5" r="3"></circle><circle cx="6" cy="12" r="3"></circle><circle cx="18" cy="19" r="3"></circle><line x1="8.59" y1="13.51" x2="15.42" y2="17.49"></line><line x1="15.41" y1="6.51" x2="8.59" y2="10.49"></line></svg><span>分享</span></button>
<button class="action" style="margin-left:auto"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"></path></svg></button>
</div>
</article>
<article class="post">
<div class="head">
<div class="avatar" style="background: linear-gradient(135deg, #8fe5b5, #d8b4ff);"></div>
<div class="meta">
<div class="nm">Lucky 之家 <span class="pet-tag" style="background: rgba(255,217,168,0.15); color: var(--primary);">Lucky · 柯基</span></div>
<div class="nav-meta"><span>上海 · 徐汇区</span><span class="dot"></span><span>1 小时前</span></div>
</div>
<button class="more-btn"><svg viewBox="0 0 24 24" fill="currentColor"><circle cx="12" cy="5" r="1.6"></circle><circle cx="12" cy="12" r="1.6"></circle><circle cx="12" cy="19" r="1.6"></circle></svg></button>
</div>
<div class="body">第一次带 Lucky 参加宠物生日会 🎂 认识了 4 个新朋友,回家累瘫了 <span class="tag">#社交牛逼证</span></div>
<div class="media media-pet-3">
<div class="silhouette"></div>
<span class="sticker">🎂 3 岁生日会</span>
</div>
<div class="actions">
<button class="action" data-action="like" data-liked="true"><svg viewBox="0 0 24 24" fill="currentColor" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="color: var(--accent-2);"><path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"></path></svg><span class="num" style="color: var(--accent-2);">256</span></button>
<button class="action"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path></svg><span class="num">42</span></button>
<button class="action"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="18" cy="5" r="3"></circle><circle cx="6" cy="12" r="3"></circle><circle cx="18" cy="19" r="3"></circle><line x1="8.59" y1="13.51" x2="15.42" y2="17.49"></line><line x1="15.41" y1="6.51" x2="8.59" y2="10.49"></line></svg><span>分享</span></button>
<button class="action" style="margin-left:auto"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"></path></svg></button>
</div>
</article>
<div style="text-align: center; color: var(--muted); font: 400 12px/1 var(--font-body); padding: 8px 0 20px;">— 暂时没有更多了,稍后再来看看吧 🐾 —</div>
</div>
</div>
<div class="like-toast" id="likeToast"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"></path></svg></div>
<nav class="tabbar" aria-label="底部导航">
<a class="tab-item act" href="plaza.html">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><polygon points="16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76"></polygon></svg>
<span class="label">广场</span>
</a>
<a class="tab-item" href="nearby.html">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle></svg>
<span class="label">附近</span>
</a>
<a class="tab-fab" href="publish.html" aria-label="发布">
<div class="b">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>
</div>
</a>
<a class="tab-item" href="messages.html">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path></svg>
<span class="label">消息</span>
</a>
<a class="tab-item" href="profile.html">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg>
<span class="label">我的</span>
</a>
</nav>
<div class="home-indicator"></div>
</div>
</div>
</div>
<script>
// Tabs
const tabs = document.getElementById('tabs');
tabs.addEventListener('click', (e) => {
const t = e.target.closest('.tab');
if (!t) return;
tabs.querySelectorAll('.tab').forEach(x => x.classList.remove('act'));
t.classList.add('act');
});
// Chips
const chips = document.getElementById('chips');
chips.addEventListener('click', (e) => {
const c = e.target.closest('.chip');
if (!c) return;
chips.querySelectorAll('.chip').forEach(x => x.classList.remove('act'));
c.classList.add('act');
});
// Like
const toast = document.getElementById('likeToast');
document.querySelectorAll('[data-action="like"]').forEach(btn => {
btn.addEventListener('click', (e) => {
e.preventDefault();
const liked = btn.dataset.liked === 'true';
const num = btn.querySelector('.num');
const svg = btn.querySelector('svg');
if (liked) {
btn.dataset.liked = 'false';
btn.style.color = '';
svg.style.color = '';
svg.setAttribute('fill', 'none');
num.textContent = String(parseInt(num.textContent, 10) - 1);
} else {
btn.dataset.liked = 'true';
svg.setAttribute('fill', 'currentColor');
btn.style.color = 'var(--accent-2)';
num.style.color = 'var(--accent-2)';
num.textContent = String(parseInt(num.textContent, 10) + 1);
toast.classList.add('show');
setTimeout(() => toast.classList.remove('show'), 480);
}
});
});
</script>
</body></html>

334
refrence_html/profile.html Normal file
View File

@@ -0,0 +1,334 @@
<!doctype html>
<html lang="zh-CN"><head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>我的 · 汪圈</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;450;510;600;700&amp;family=Space+Grotesk:wght@500;600;700&amp;display=swap" rel="stylesheet">
<style>
:root {
--bg: #14102b;
--bg-warm: #1c1442;
--surface: #1f1742;
--surface-2: #251c4a;
--surface-hi: #2d2255;
--fg: #f0e9ff;
--fg-2: #c7b9e0;
--muted: #8a7aab;
--border: #2e234a;
--accent: #d8b4ff;
--accent-2: #ffb3c8;
--primary: #ffd9a8;
--primary-on: #2a1d10;
--success: #8fe5b5;
--warn: #ffd166;
--font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
--font-body: 'Inter', system-ui, -apple-system, 'PingFang SC', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body {
background: radial-gradient(ellipse 70% 50% at 25% 0%, rgba(216, 180, 255, 0.10), transparent 60%), radial-gradient(ellipse 60% 50% at 75% 100%, rgba(255, 179, 200, 0.08), transparent 60%), #0a0719;
color: var(--fg);
font-family: var(--font-body);
-webkit-font-smoothing: antialiased;
display: grid; place-items: center;
overflow: auto;
}
.stage-wrap { padding: 24px; }
.phone { width: 390px; height: 844px; background: #0a0719; border-radius: 50px; position: relative; overflow: hidden; box-shadow: 0 60px 120px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 0 0 2px rgba(255, 255, 255, 0.04); }
.phone::before { content: ''; position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 110px; height: 32px; background: #000; border-radius: 9999px; z-index: 100; }
.screen { position: absolute; inset: 0; background: linear-gradient(180deg, #1c1442 0%, #14102b 100%); display: flex; flex-direction: column; overflow: hidden; }
.status-bar { height: 54px; flex-shrink: 0; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 32px 8px; font: 600 15px/1 var(--font-body); }
.status-bar .right { display: flex; align-items: center; gap: 6px; }
.status-bar .ic-sig { display: flex; align-items: flex-end; gap: 2px; }
.status-bar .ic-sig span { width: 3px; background: var(--fg); border-radius: 1px; }
.status-bar .ic-sig span:nth-child(1) { height: 4px; } .status-bar .ic-sig span:nth-child(2) { height: 6px; } .status-bar .ic-sig span:nth-child(3) { height: 8px; } .status-bar .ic-sig span:nth-child(4) { height: 10px; }
.status-bar .ic-batt { width: 26px; height: 12px; border: 1.2px solid rgba(240, 233, 255, 0.6); border-radius: 3px; padding: 1.5px; }
.status-bar .ic-batt .fill { display: block; height: 100%; background: var(--fg); border-radius: 1px; width: 78%; }
/* WeChat mini program capsule */
.mp-capsule {
display: flex; align-items: center;
height: 28px; border-radius: 14px;
background: rgba(255, 255, 255, 0.06);
border: 1px solid rgba(255, 255, 255, 0.14);
overflow: hidden;
backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.mp-capsule .capsule-btn {
display: grid; place-items: center;
width: 32px; height: 28px;
background: transparent; border: 0; padding: 0; cursor: pointer; color: var(--fg);
}
.mp-capsule .capsule-btn + .capsule-btn { border-left: 1px solid rgba(255, 255, 255, 0.12); }
.mp-capsule svg { width: 14px; height: 14px; }
.content { flex: 1; overflow-y: auto; padding-bottom: 100px; -webkit-overflow-scrolling: touch; }
.content::-webkit-scrollbar { display: none; }
.top-nav { padding: 8px 20px 12px; display: flex; align-items: center; gap: 10px; }
.top-nav h1 { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; background: rgba(45, 34, 85, 0.4); display: grid; place-items: center; cursor: pointer; border: 1px solid rgba(216, 180, 255, 0.08); position: relative; }
.icon-btn svg { width: 18px; height: 18px; color: var(--fg); }
.icon-btn .dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); border: 1.5px solid var(--bg); }
/* hero card */
.hero {
margin: 0 20px 18px;
padding: 22px 20px;
border-radius: 22px;
background: linear-gradient(160deg, rgba(216, 180, 255, 0.12) 0%, rgba(255, 179, 200, 0.08) 100%);
border: 1px solid rgba(216, 180, 255, 0.12);
position: relative; overflow: hidden;
}
.hero::before { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 217, 168, 0.18) 0%, transparent 70%); pointer-events: none; }
.hero .top { display: flex; align-items: center; gap: 14px; position: relative; }
.hero .av { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: grid; place-items: center; color: var(--primary-on); font: 700 24px/1 var(--font-display); box-shadow: 0 8px 20px rgba(216, 180, 255, 0.3); }
.hero .nm { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 6px; }
.hero .nm .level { padding: 2px 8px; border-radius: 6px; background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%); color: var(--primary-on); font: 700 10px/1.2 var(--font-display); }
.hero .sub { font: 400 12px/1.4 var(--font-body); color: var(--fg-2); margin-top: 6px; }
.hero .sub .pin { color: var(--accent); }
.hero .badges { display: flex; gap: 6px; margin-top: 10px; }
.hero .badge { padding: 4px 8px; border-radius: 999px; background: rgba(45, 34, 85, 0.4); border: 1px solid rgba(216, 180, 255, 0.08); font: 500 10px/1 var(--font-body); color: var(--fg-2); display: flex; align-items: center; gap: 4px; }
.hero .badge svg { width: 10px; height: 10px; color: var(--accent); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0 20px; margin-bottom: 18px; }
.stat { background: rgba(45, 34, 85, 0.4); border-radius: 14px; padding: 12px 6px; text-align: center; border: 1px solid rgba(216, 180, 255, 0.06); }
.stat .n { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; color: var(--fg); font-variant-numeric: tabular-nums; }
.stat .l { font: 400 11px/1 var(--font-body); color: var(--muted); margin-top: 4px; }
.actions-2 { display: flex; gap: 10px; padding: 0 20px; margin-bottom: 24px; }
.btn-pri { flex: 1; padding: 11px; border-radius: 12px; background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%); color: var(--primary-on); font: 600 13px/1 var(--font-body); border: 0; cursor: pointer; text-align: center; }
.btn-sec { flex: 1; padding: 11px; border-radius: 12px; background: rgba(45, 34, 85, 0.4); color: var(--fg); font: 600 13px/1 var(--font-body); border: 1px solid rgba(216, 180, 255, 0.1); cursor: pointer; text-align: center; display: flex; align-items: center; justify-content: center; gap: 6px; }
.btn-sec svg { width: 14px; height: 14px; }
/* section title */
.sec { padding: 0 20px 8px; display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.sec h3 { font: 600 13px/1 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-2); }
.sec .more { font: 500 11px/1 var(--font-body); color: var(--accent); display: flex; align-items: center; gap: 2px; cursor: pointer; }
.sec .more svg { width: 12px; height: 12px; }
/* pets */
.pets { padding: 0 20px; display: flex; gap: 10px; margin-bottom: 20px; }
.pet-card { flex: 1; background: rgba(45, 34, 85, 0.4); border-radius: 16px; padding: 12px; border: 1px solid rgba(216, 180, 255, 0.08); cursor: pointer; transition: background 200ms; }
.pet-card:hover { background: rgba(45, 34, 85, 0.6); }
.pet-card .photo { aspect-ratio: 4/3; border-radius: 10px; background: linear-gradient(135deg, #ffd9a8, #ffb3c8); position: relative; overflow: hidden; }
.pet-card .photo::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.3), transparent 50%); }
.pet-card:nth-child(2) .photo { background: linear-gradient(135deg, #d8b4ff, #a4d4ff); }
.pet-card .photo .label { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(6px); color: var(--fg); font: 500 9px/1 var(--font-body); }
.pet-card .nm { font: 600 13px/1.2 var(--font-body); margin-top: 10px; }
.pet-card .meta { font: 400 10px/1.3 var(--font-body); color: var(--muted); margin-top: 3px; }
.pet-card.add { display: grid; place-items: center; min-height: 130px; border: 1.5px dashed rgba(216, 180, 255, 0.18); background: transparent; color: var(--muted); }
.pet-card.add .ic { width: 40px; height: 40px; border-radius: 50%; background: rgba(45, 34, 85, 0.4); display: grid; place-items: center; }
.pet-card.add .ic svg { width: 18px; height: 18px; }
.pet-card.add .lbl { font: 500 11px/1 var(--font-body); margin-top: 8px; }
/* quick grid */
.grid { padding: 0 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.g-item { background: rgba(45, 34, 85, 0.4); border-radius: 14px; padding: 14px 6px; text-align: center; border: 1px solid rgba(216, 180, 255, 0.06); cursor: pointer; transition: background 200ms; position: relative; }
.g-item:hover { background: rgba(45, 34, 85, 0.6); }
.g-item .ic { width: 32px; height: 32px; margin: 0 auto 6px; border-radius: 10px; display: grid; place-items: center; }
.g-item .ic svg { width: 16px; height: 16px; color: var(--primary-on); }
.g-item .ic.b1 { background: linear-gradient(135deg, #ffd9a8, #ffb3c8); }
.g-item .ic.b2 { background: linear-gradient(135deg, #d8b4ff, #a4d4ff); }
.g-item .ic.b3 { background: linear-gradient(135deg, #8fe5b5, #d8b4ff); }
.g-item .ic.b4 { background: linear-gradient(135deg, #ffb3c8, #ffd9a8); }
.g-item .l { font: 500 10px/1.2 var(--font-body); color: var(--fg-2); }
.g-item .badge-count { position: absolute; top: 4px; right: 14px; min-width: 16px; height: 16px; padding: 0 5px; border-radius: 8px; background: var(--accent-2); color: var(--primary-on); font: 700 9px/16px var(--font-body); text-align: center; }
/* menu list */
.menu { margin: 0 20px; background: rgba(45, 34, 85, 0.4); border-radius: 18px; border: 1px solid rgba(216, 180, 255, 0.06); overflow: hidden; }
.menu-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; transition: background 200ms; border-bottom: 1px solid rgba(216, 180, 255, 0.04); }
.menu-row:last-child { border-bottom: 0; }
.menu-row:hover { background: rgba(45, 34, 85, 0.4); }
.menu-row .ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.menu-row .ic svg { width: 16px; height: 16px; color: var(--primary-on); }
.menu-row .ic.m1 { background: linear-gradient(135deg, #d8b4ff, #a4d4ff); }
.menu-row .ic.m2 { background: linear-gradient(135deg, #8fe5b5, #d8b4ff); }
.menu-row .ic.m3 { background: linear-gradient(135deg, #ffb3c8, #ffd9a8); }
.menu-row .ic.m4 { background: linear-gradient(135deg, #ffd9a8, #ffb3c8); }
.menu-row .ic.m5 { background: linear-gradient(135deg, #a4d4ff, #d8b4ff); }
.menu-row .nm { font: 500 14px/1.2 var(--font-body); flex: 1; }
.menu-row .right { display: flex; align-items: center; gap: 8px; }
.menu-row .val { font: 400 12px/1 var(--font-body); color: var(--muted); }
.menu-row .switch { width: 36px; height: 22px; background: var(--accent); border-radius: 11px; position: relative; cursor: pointer; }
.menu-row .switch::after { content: ''; position: absolute; right: 2px; top: 2px; width: 18px; height: 18px; background: var(--fg); border-radius: 50%; }
.menu-row .switch.off { background: var(--muted); }
.menu-row .switch.off::after { right: auto; left: 2px; }
.menu-row .chev { color: var(--muted); }
/* tab bar */
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; height: 88px; padding-bottom: 22px; background: rgba(20, 16, 43, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid rgba(216, 180, 255, 0.06); display: flex; align-items: center; justify-content: space-around; z-index: 60; }
.tab-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 8px; cursor: pointer; flex: 1; color: var(--muted); transition: color 200ms; text-decoration: none; }
.tab-item.act { color: var(--accent); }
.tab-item svg { width: 24px; height: 24px; }
.tab-item .label { font: 500 10px/1 var(--font-body); }
.tab-fab .b { width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); display: grid; place-items: center; box-shadow: 0 10px 24px rgba(216, 180, 255, 0.3); margin-top: -16px; transition: transform 200ms; }
.tab-fab:hover .b { transform: scale(1.05); }
.tab-fab svg { width: 24px; height: 24px; color: var(--primary-on); }
.home-indicator { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); width: 134px; height: 5px; background: var(--fg); border-radius: 3px; opacity: 0.7; z-index: 70; }
</style>
</head>
<body>
<div class="stage-wrap">
<div class="phone">
<div class="screen">
<div class="status-bar">
<span>9:41</span>
<div class="mp-capsule" aria-label="小程序菜单">
<button class="capsule-btn" aria-label="更多">
<svg viewBox="0 0 24 24" fill="currentColor">
<circle cx="6" cy="12" r="1.6"></circle>
<circle cx="12" cy="12" r="1.6"></circle>
<circle cx="18" cy="12" r="1.6"></circle>
</svg>
</button>
<button class="capsule-btn" aria-label="关闭">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<line x1="18" y1="6" x2="6" y2="18"></line>
<line x1="6" y1="6" x2="18" y2="18"></line>
</svg>
</button>
</div>
</div>
<div class="content">
<div class="top-nav">
<h1>我的</h1>
<button class="icon-btn" aria-label="设置">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3"></circle><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path></svg>
</button>
<button class="icon-btn" aria-label="通知">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path><path d="M13.73 21a2 2 0 0 1-3.46 0"></path></svg>
<span class="dot"></span>
</button>
</div>
<div class="hero">
<div class="top">
<div class="av"></div>
<div style="flex:1">
<div class="nm">阿布的家长 <span class="level">Lv.6</span></div>
<div class="sub"><span class="pin">📍</span> 上海 · 浦东新区 · 6 年养宠经验</div>
<div class="badges">
<div class="badge"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M9 12l2 2 4-4"></path><circle cx="12" cy="12" r="10" fill="none" stroke="currentColor" stroke-width="2"></circle></svg>实名认证</div>
<div class="badge">🐾 资深铲屎官</div>
</div>
</div>
</div>
</div>
<div class="stats">
<div class="stat"><div class="n">128</div><div class="l">动态</div></div>
<div class="stat"><div class="n">342</div><div class="l">关注</div></div>
<div class="stat"><div class="n">1.2k</div><div class="l">粉丝</div></div>
<div class="stat"><div class="n">56</div><div class="l">收藏</div></div>
</div>
<div class="actions-2">
<button class="btn-pri">编辑资料</button>
<button class="btn-sec">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="18" cy="5" r="3"></circle><circle cx="6" cy="12" r="3"></circle><circle cx="18" cy="19" r="3"></circle><line x1="8.59" y1="13.51" x2="15.42" y2="17.49"></line><line x1="15.41" y1="6.51" x2="8.59" y2="10.49"></line></svg>
分享主页
</button>
</div>
<div class="sec">
<h3>我的毛孩子 · 2</h3>
<div class="more">管理 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 18 15 12 9 6"></polyline></svg></div>
</div>
<div class="pets">
<div class="pet-card">
<div class="photo"><span class="label">金毛 · ♀</span></div>
<div class="nm">奶昔</div>
<div class="meta">2 岁 · 18 kg · 已绝育</div>
</div>
<div class="pet-card">
<div class="photo"><span class="label">布偶 · ♂</span></div>
<div class="nm">年糕</div>
<div class="meta">1 岁 · 4.5 kg · 已绝育</div>
</div>
<div class="pet-card add">
<div>
<div class="ic"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg></div>
<div class="lbl">添加宠物</div>
</div>
</div>
</div>
<div class="sec">
<h3>偏好设置</h3>
</div>
<div class="menu">
<div class="menu-row">
<div class="ic m1"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"></path></svg></div>
<div class="nm">配对偏好</div>
<div class="right"><div class="val">金毛 · 1-3 岁 · 3 km</div><span class="chev"></span></div>
</div>
<div class="menu-row">
<div class="ic m2"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path><path d="M13.73 21a2 2 0 0 1-3.46 0"></path></svg></div>
<div class="nm">消息通知</div>
<div class="right"><div class="switch"></div></div>
</div>
<div class="menu-row">
<div class="ic m3"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle></svg></div>
<div class="nm">位置共享</div>
<div class="right"><div class="switch"></div></div>
</div>
<div class="menu-row">
<div class="ic m4"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line></svg></div>
<div class="nm">隐私设置</div>
<div class="right"><span class="chev"></span></div>
</div>
<div class="menu-row">
<div class="ic m5"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><line x1="12" y1="17" x2="12.01" y2="17"></line></svg></div>
<div class="nm">帮助与反馈</div>
<div class="right"><span class="chev"></span></div>
</div>
</div>
<div style="height: 30px;"></div>
</div>
<nav class="tabbar">
<a class="tab-item" href="plaza.html">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><polygon points="16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76"></polygon></svg>
<span class="label">广场</span>
</a>
<a class="tab-item" href="nearby.html">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle></svg>
<span class="label">附近</span>
</a>
<a class="tab-fab" href="publish.html">
<div class="b">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>
</div>
</a>
<a class="tab-item" href="messages.html">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path></svg>
<span class="label">消息</span>
</a>
<a class="tab-item act" href="profile.html">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg>
<span class="label">我的</span>
</a>
</nav>
<div class="home-indicator"></div>
</div>
</div>
</div>
<script>
// Toggle switches
document.querySelectorAll('.switch').forEach(sw => {
sw.addEventListener('click', () => sw.classList.toggle('off'));
});
</script>
</body></html>

504
refrence_html/publish.html Normal file
View File

@@ -0,0 +1,504 @@
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>发布动态 · 汪圈</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;450;510;600;700&family=Space+Grotesk:wght@500;600;700&display=swap" rel="stylesheet" />
<style>
:root {
--bg: #14102b;
--bg-warm: #1c1442;
--surface: #1f1742;
--surface-2: #251c4a;
--surface-hi: #2d2255;
--fg: #f0e9ff;
--fg-2: #c7b9e0;
--muted: #8a7aab;
--border: #2e234a;
--accent: #d8b4ff;
--accent-2: #ffb3c8;
--primary: #ffd9a8;
--primary-on: #2a1d10;
--success: #8fe5b5;
--warn: #ffd166;
--font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
--font-body: 'Inter', system-ui, -apple-system, 'PingFang SC', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body {
background: radial-gradient(ellipse 70% 50% at 25% 0%, rgba(216, 180, 255, 0.10), transparent 60%), radial-gradient(ellipse 60% 50% at 75% 100%, rgba(255, 179, 200, 0.08), transparent 60%), #0a0719;
color: var(--fg);
font-family: var(--font-body);
-webkit-font-smoothing: antialiased;
display: grid; place-items: center;
overflow: auto;
}
.stage-wrap { padding: 24px; }
.phone { width: 390px; height: 844px; background: #0a0719; border-radius: 50px; position: relative; overflow: hidden; box-shadow: 0 60px 120px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 0 0 2px rgba(255, 255, 255, 0.04); }
.phone::before { content: ''; position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 110px; height: 32px; background: #000; border-radius: 9999px; z-index: 100; }
.screen { position: absolute; inset: 0; background: linear-gradient(180deg, #1c1442 0%, #14102b 100%); display: flex; flex-direction: column; overflow: hidden; }
.status-bar { height: 54px; flex-shrink: 0; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 32px 8px; font: 600 15px/1 var(--font-body); }
.status-bar .right { display: flex; align-items: center; gap: 6px; }
.status-bar .ic-sig { display: flex; align-items: flex-end; gap: 2px; }
.status-bar .ic-sig span { width: 3px; background: var(--fg); border-radius: 1px; }
.status-bar .ic-sig span:nth-child(1) { height: 4px; } .status-bar .ic-sig span:nth-child(2) { height: 6px; } .status-bar .ic-sig span:nth-child(3) { height: 8px; } .status-bar .ic-sig span:nth-child(4) { height: 10px; }
.status-bar .ic-batt { width: 26px; height: 12px; border: 1.2px solid rgba(240, 233, 255, 0.6); border-radius: 3px; padding: 1.5px; }
.status-bar .ic-batt .fill { display: block; height: 100%; background: var(--fg); border-radius: 1px; width: 78%; }
/* WeChat mini program capsule */
.mp-capsule {
display: flex; align-items: center;
height: 28px; border-radius: 14px;
background: rgba(255, 255, 255, 0.06);
border: 1px solid rgba(255, 255, 255, 0.14);
overflow: hidden;
backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.mp-capsule .capsule-btn {
display: grid; place-items: center;
width: 32px; height: 28px;
background: transparent; border: 0; padding: 0; cursor: pointer; color: var(--fg);
}
.mp-capsule .capsule-btn + .capsule-btn { border-left: 1px solid rgba(255, 255, 255, 0.12); }
.mp-capsule svg { width: 14px; height: 14px; }
.content { flex: 1; overflow-y: auto; padding-bottom: 40px; -webkit-overflow-scrolling: touch; }
.content::-webkit-scrollbar { display: none; }
/* top nav */
.top-nav { padding: 8px 16px 8px; display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: transparent; border: 0; }
.icon-btn svg { width: 22px; height: 22px; color: var(--fg); }
.top-nav h1 { font-family: var(--font-display); font-size: 18px; font-weight: 600; flex: 1; text-align: center; }
.post-btn { display: block; width: 100%; padding: 14px 20px; border-radius: 14px; background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%); color: var(--primary-on); font: 600 15px/1 var(--font-body); border: 0; cursor: pointer; text-align: center; letter-spacing: 0.04em; transition: transform 200ms, opacity 200ms, box-shadow 200ms, filter 200ms; box-shadow: 0 6px 20px rgba(216, 180, 255, 0.25); }
.post-btn:hover:not(:disabled) { transform: scale(1.02); box-shadow: 0 10px 28px rgba(216, 180, 255, 0.4); }
.post-btn:active:not(:disabled) { transform: scale(0.99); }
.post-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.post-btn:disabled { background: rgba(45, 34, 85, 0.4); color: var(--muted); cursor: not-allowed; box-shadow: none; }
.post-btn:disabled:hover { transform: none; }
.composer { padding: 0 20px; }
.author { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: grid; place-items: center; color: var(--primary-on); font: 700 16px/1 var(--font-display); }
.author .col { flex: 1; }
.author .nm { font: 600 14px/1.2 var(--font-body); display: flex; align-items: center; gap: 6px; }
.author .level-badge { padding: 2px 6px; border-radius: 6px; background: rgba(216, 180, 255, 0.1); color: var(--accent); font: 500 9px/1 var(--font-display); letter-spacing: 0.04em; }
.author .sub { font: 400 11px/1.3 var(--font-body); color: var(--muted); margin-top: 3px; display: flex; align-items: center; gap: 6px; }
.input-area { min-height: 120px; padding: 8px 0; }
.input-area textarea {
width: 100%; min-height: 120px; background: transparent; border: 0; outline: 0;
color: var(--fg); font: 400 16px/1.5 var(--font-body); resize: none;
font-feature-settings: "tnum";
}
.input-area textarea::placeholder { color: var(--muted); }
.input-area textarea:focus-visible { outline: 0; }
.input-area .tag { color: var(--accent); font-weight: 500; }
/* images */
.images { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.img-slot { aspect-ratio: 1; border-radius: 12px; position: relative; overflow: hidden; cursor: pointer; }
.img-slot.filled-1 { background: radial-gradient(circle at 30% 40%, rgba(255, 217, 168, 0.6), transparent 50%), linear-gradient(135deg, #6b4f9a 0%, #3a2a6a 100%); }
.img-slot.filled-2 { background: radial-gradient(circle at 70% 50%, rgba(255, 179, 200, 0.5), transparent 60%), linear-gradient(135deg, #4a3a7a 0%, #251c4a 100%); }
.img-slot.filled-3 { background: radial-gradient(circle at 50% 30%, rgba(143, 229, 181, 0.4), transparent 60%), linear-gradient(135deg, #5a4a8a 0%, #2a1f4a 100%); }
.img-slot.filled-1::after, .img-slot.filled-2::after, .img-slot.filled-3::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, 0.2), transparent 60%); }
.img-slot .x { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); display: grid; place-items: center; color: var(--fg); font-size: 12px; z-index: 2; opacity: 0.85; transition: opacity 200ms, transform 200ms; border: 0; padding: 0; cursor: pointer; }
.img-slot:hover .x { opacity: 1; }
.img-slot .x:hover { transform: scale(1.1); }
.img-slot .x:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; opacity: 1; }
.img-slot .cover { position: absolute; left: 8px; top: 8px; padding: 3px 7px; border-radius: 6px; background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(6px); font: 500 9px/1 var(--font-body); color: var(--fg); z-index: 2; }
.img-slot.add {
background: rgba(45, 34, 85, 0.3); border: 1.5px dashed rgba(216, 180, 255, 0.2);
display: grid; place-items: center; gap: 4px;
color: var(--muted);
}
.img-slot.add .ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.img-slot.add .ic svg { width: 18px; height: 18px; }
.img-slot.add .lbl { font: 500 10px/1 var(--font-body); }
/* section label */
.label-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; }
.label-row .ttl { font: 600 11px/1 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.label-row .right { font: 400 11px/1 var(--font-body); color: var(--accent); }
/* tags */
.tag-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tag-chip {
padding: 6px 12px; border-radius: 999px; background: rgba(45, 34, 85, 0.4);
border: 1px solid rgba(216, 180, 255, 0.1); color: var(--fg-2);
font: 500 12px/1 var(--font-body); cursor: pointer; transition: all 200ms;
display: flex; align-items: center; gap: 4px;
}
.tag-chip .ic { opacity: 0.6; }
.tag-chip.act { background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%); color: var(--primary-on); border-color: transparent; }
.tag-chip.act .ic { opacity: 1; }
/* rows */
.rows { background: rgba(45, 34, 85, 0.4); border-radius: 18px; border: 1px solid rgba(216, 180, 255, 0.06); overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; border-bottom: 1px solid rgba(216, 180, 255, 0.04); transition: background 200ms; background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; color: inherit; font: inherit; }
.row:last-child { border-bottom: 0; }
.row:hover, .row:focus-visible { background: rgba(45, 34, 85, 0.6); }
.row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.row .ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.row .ic svg { width: 16px; height: 16px; color: var(--primary-on); }
.row .ic.m1 { background: linear-gradient(135deg, #ffb3c8, #ffd9a8); }
.row .ic.m2 { background: linear-gradient(135deg, #d8b4ff, #a4d4ff); }
.row .ic.m3 { background: linear-gradient(135deg, #8fe5b5, #d8b4ff); }
.row .ic.m4 { background: linear-gradient(135deg, #ffd9a8, #ffb3c8); }
.row .nm { font: 500 14px/1.2 var(--font-body); flex: 1; }
.row .right { display: flex; align-items: center; gap: 8px; }
.row .val { font: 400 12px/1 var(--font-body); color: var(--muted); }
.row .val.has-avatar { display: flex; align-items: center; gap: 6px; }
.row .val .pet-av { width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, #ffd9a8, #ffb3c8); }
.row .chev { color: var(--muted); font-size: 18px; line-height: 1; }
/* sticky bottom panel */
.sticky { position: sticky; bottom: 0; padding: 12px 20px 20px; background: linear-gradient(180deg, transparent 0%, var(--bg) 30%); display: flex; flex-direction: column; gap: 12px; }
.sticky-row { display: flex; align-items: center; gap: 10px; }
.toolbar { flex: 1; display: flex; gap: 6px; }
.tool { width: 40px; height: 40px; border-radius: 12px; background: rgba(45, 34, 85, 0.4); display: grid; place-items: center; cursor: pointer; border: 1px solid rgba(216, 180, 255, 0.06); color: var(--fg-2); padding: 0; transition: background 200ms, border-color 200ms; }
.tool:hover, .tool:focus-visible { background: rgba(45, 34, 85, 0.7); border-color: rgba(216, 180, 255, 0.18); }
.tool:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tool svg { width: 18px; height: 18px; }
.word-count { font: 500 11px/1 var(--font-body); color: var(--muted); padding: 0 4px; font-variant-numeric: tabular-nums; transition: color 200ms; }
.word-count.warn { color: var(--warn); }
/* switch (proper button) */
.switch { width: 36px; height: 22px; background: var(--muted); border-radius: 11px; position: relative; cursor: pointer; border: 0; padding: 0; flex-shrink: 0; transition: background 200ms; }
.switch[aria-checked="true"] { background: var(--accent); }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; background: var(--fg); border-radius: 50%; transition: transform 200ms cubic-bezier(0.2, 0, 0, 1); }
.switch[aria-checked="true"]::after { transform: translateX(14px); }
.switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* notice card (community rules) */
.notice { margin-top: 16px; padding: 10px 12px; background: rgba(255, 217, 168, 0.08); border-radius: 10px; border: 1px solid rgba(255, 217, 168, 0.15); display: flex; align-items: center; gap: 8px; }
.notice svg { width: 14px; height: 14px; color: var(--primary); flex-shrink: 0; }
.notice .text { font: 400 11px/1.5 var(--font-body); color: var(--fg-2); }
/* success modal (centered variant) */
.sheet-bg.success-modal { align-items: center; }
.success-modal .sheet { border-radius: 24px; max-width: 320px; margin: 0 auto; text-align: center; padding: 32px 24px; }
.success-modal .check-circle { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); display: grid; place-items: center; margin: 0 auto 16px; box-shadow: 0 10px 24px rgba(216, 180, 255, 0.3); color: var(--primary-on); }
.success-modal .check-circle svg { width: 32px; height: 32px; }
.success-modal .actions { display: flex; gap: 10px; margin-top: 20px; }
.success-modal .btn { flex: 1; padding: 12px; border-radius: 12px; font: 600 14px/1 var(--font-body); border: 0; cursor: pointer; text-align: center; transition: transform 200ms, opacity 200ms; }
.success-modal .btn-primary { background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%); color: var(--primary-on); }
.success-modal .btn-secondary { background: rgba(45, 34, 85, 0.4); color: var(--fg); border: 1px solid rgba(216, 180, 255, 0.1); }
.success-modal .btn:hover { transform: scale(1.02); }
.success-modal .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* sheet overlays */
.sheet-bg { position: absolute; inset: 0; background: rgba(10, 7, 25, 0.6); backdrop-filter: blur(8px); z-index: 200; display: none; align-items: flex-end; }
.sheet-bg.show { display: flex; }
.sheet { width: 100%; background: var(--surface-2); border-radius: 24px 24px 0 0; padding: 16px 16px 32px; transform: translateY(0); animation: slideUp 280ms cubic-bezier(0.2, 0, 0, 1); border-top: 1px solid rgba(216, 180, 255, 0.1); }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sheet-grabber { width: 36px; height: 4px; background: var(--muted); border-radius: 2px; margin: 0 auto 16px; opacity: 0.4; }
.sheet h3 { font: 600 16px/1 var(--font-display); margin-bottom: 4px; padding: 0 4px; }
.sheet .desc { color: var(--muted); font-size: 12px; margin-bottom: 16px; padding: 0 4px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 12px 8px; border-radius: 12px; cursor: pointer; transition: background 200ms; }
.opt:hover { background: rgba(45, 34, 85, 0.4); }
.opt .ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.opt .ic svg { width: 18px; height: 18px; color: var(--primary-on); }
.opt .ic.b1 { background: linear-gradient(135deg, #d8b4ff, #a4d4ff); }
.opt .ic.b2 { background: linear-gradient(135deg, #8fe5b5, #d8b4ff); }
.opt .ic.b3 { background: linear-gradient(135deg, #ffb3c8, #ffd9a8); }
.opt .ic.b4 { background: linear-gradient(135deg, #ffd9a8, #ffb3c8); }
.opt .col { flex: 1; }
.opt .nm { font: 500 14px/1.2 var(--font-body); }
.opt .sub { font: 400 11px/1.4 var(--font-body); color: var(--muted); margin-top: 3px; }
.opt .check { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--muted); display: grid; place-items: center; flex-shrink: 0; }
.opt.checked .check { background: var(--accent); border-color: var(--accent); }
.opt.checked .check svg { color: var(--primary-on); width: 12px; height: 12px; }
.home-indicator { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); width: 134px; height: 5px; background: var(--fg); border-radius: 3px; opacity: 0.7; z-index: 70; }
/* reduced motion */
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
</style>
</head>
<body>
<div class="stage-wrap">
<div class="phone">
<div class="screen">
<div class="status-bar">
<span>9:41</span>
<div class="mp-capsule" aria-label="小程序菜单">
<button class="capsule-btn" aria-label="更多">
<svg viewBox="0 0 24 24" fill="currentColor">
<circle cx="6" cy="12" r="1.6"></circle>
<circle cx="12" cy="12" r="1.6"></circle>
<circle cx="18" cy="12" r="1.6"></circle>
</svg>
</button>
<button class="capsule-btn" aria-label="关闭">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<line x1="18" y1="6" x2="6" y2="18"></line>
<line x1="6" y1="6" x2="18" y2="18"></line>
</svg>
</button>
</div>
</div>
<div class="content">
<div class="top-nav">
<button class="icon-btn" id="btnClose" aria-label="关闭">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>
</button>
<h1>发布动态</h1>
</div>
<div class="composer">
<div class="author">
<div class="av" aria-hidden="true"></div>
<div class="col">
<div class="nm">阿布的家长 <span class="level-badge">Lv.6</span></div>
<div class="sub">@abudejiazhang · 6 年养宠</div>
</div>
</div>
<div class="input-area">
<textarea placeholder="说说你家毛孩子的故事吧… 使用 # 提及话题" id="textInput" aria-label="动态内容" maxlength="2000"></textarea>
</div>
<div class="images" id="images" role="list">
<div class="img-slot filled-1" role="listitem"><span class="cover" aria-hidden="true">1/3</span><button class="x" type="button" aria-label="移除图片 1"></button></div>
<div class="img-slot filled-2" role="listitem"><span class="cover" aria-hidden="true">2/3</span><button class="x" type="button" aria-label="移除图片 2"></button></div>
<div class="img-slot filled-3" role="listitem"><span class="cover" aria-hidden="true">3/3</span><button class="x" type="button" aria-label="移除图片 3"></button></div>
</div>
<div class="label-row">
<div class="ttl">话题</div>
<div class="right">+ 自定义</div>
</div>
<div class="tag-chips" id="tagChips" role="group" aria-label="话题选择">
<div class="tag-chip act" data-tag="滨江公园" role="button" tabindex="0" aria-pressed="true">#滨江公园 <span class="ic" aria-hidden="true"></span></div>
<div class="tag-chip act" data-tag="金毛日常" role="button" tabindex="0" aria-pressed="true">#金毛日常 <span class="ic" aria-hidden="true"></span></div>
<div class="tag-chip" data-tag="遛弯" role="button" tabindex="0" aria-pressed="false"><span class="ic" aria-hidden="true">+</span>#遛弯</div>
<div class="tag-chip" data-tag="周末聚会" role="button" tabindex="0" aria-pressed="false"><span class="ic" aria-hidden="true">+</span>#周末聚会</div>
<div class="tag-chip" data-tag="猫咪" role="button" tabindex="0" aria-pressed="false"><span class="ic" aria-hidden="true">+</span>#猫咪</div>
<div class="tag-chip" data-tag="新手养宠" role="button" tabindex="0" aria-pressed="false"><span class="ic" aria-hidden="true">+</span>#新手养宠</div>
</div>
<div class="rows" role="list">
<div class="row" id="rowPet" role="button" tabindex="0" aria-label="选择关联宠物">
<div class="ic m1" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="4" r="2"/><circle cx="18" cy="8" r="2"/><circle cx="20" cy="16" r="2"/><circle cx="9" cy="20" r="2"/><circle cx="4" cy="14" r="2"/><path d="M8.5 14.5c1.5-2 5-2 6.5 0 1 1.3 1 3 0 4-1.3 1.3-3 1.3-4.3.5-1.3-1-1.5-3-1-4.5z" fill="currentColor" stroke="none" opacity="0.7"/></svg></div>
<div class="nm">关联宠物</div>
<div class="right">
<div class="val has-avatar"><div class="pet-av" aria-hidden="true"></div>奶昔</div>
<span class="chev" aria-hidden="true"></span>
</div>
</div>
<div class="row" id="rowLocation" role="button" tabindex="0" aria-label="选择位置">
<div class="ic m2" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"/><circle cx="12" cy="10" r="3"/></svg></div>
<div class="nm">位置</div>
<div class="right">
<div class="val">上海 · 滨江公园</div>
<span class="chev" aria-hidden="true"></span>
</div>
</div>
<div class="row" id="rowVisibility" role="button" tabindex="0" aria-label="选择可见范围">
<div class="ic m3" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8S1 12 1 12z"/><circle cx="12" cy="12" r="3"/></svg></div>
<div class="nm">可见范围</div>
<div class="right">
<div class="val" id="visVal">公开 · 所有人可见</div>
<span class="chev" aria-hidden="true"></span>
</div>
</div>
<div class="row" id="rowDraft">
<div class="ic m4" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"/><polyline points="17 21 17 13 7 13 7 21"/><polyline points="7 3 7 8 15 8"/></svg></div>
<div class="nm">保存为草稿</div>
<div class="right">
<button class="switch" id="draftSwitch" type="button" role="switch" aria-checked="false" aria-label="保存为草稿"></button>
</div>
</div>
</div>
<div class="notice" role="note">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><line x1="12" y1="16" x2="12" y2="12"/><line x1="12" y1="8" x2="12.01" y2="8"/></svg>
<div class="text">分享到广场需遵守汪圈社区公约。请勿发布违规内容,文明养宠。</div>
</div>
</div>
<div class="sticky">
<div class="sticky-row">
<div class="toolbar" role="toolbar" aria-label="插入内容">
<button class="tool" type="button" title="图片" aria-label="添加图片"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"/><circle cx="8.5" cy="8.5" r="1.5"/><polyline points="21 15 16 10 5 21"/></svg></button>
<button class="tool" type="button" title="视频" aria-label="添加视频"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="23 7 16 12 23 17 23 7"/><rect x="1" y="5" width="15" height="14" rx="2" ry="2"/></svg></button>
<button class="tool" type="button" title="位置" aria-label="添加位置"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"/><circle cx="12" cy="10" r="3"/></svg></button>
<button class="tool" type="button" title="话题" aria-label="添加话题"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="4" y1="9" x2="20" y2="9"/><line x1="4" y1="15" x2="20" y2="15"/><line x1="10" y1="3" x2="8" y2="21"/><line x1="16" y1="3" x2="14" y2="21"/></svg></button>
<button class="tool" type="button" title="表情" aria-label="添加表情"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M8 14s1.5 2 4 2 4-2 4-2"/><line x1="9" y1="9" x2="9.01" y2="9"/><line x1="15" y1="9" x2="15.01" y2="9"/></svg></button>
</div>
<div class="word-count" id="wordCount" aria-live="polite" aria-atomic="true">0/2000</div>
</div>
<button class="post-btn" id="btnPost" type="button" disabled aria-disabled="true">发布</button>
</div>
</div>
<div class="home-indicator"></div>
</div>
<!-- visibility sheet -->
<div class="sheet-bg" id="visSheet" role="dialog" aria-modal="true" aria-labelledby="visTitle">
<div class="sheet">
<div class="sheet-grabber"></div>
<h3 id="visTitle">选择可见范围</h3>
<div class="desc">不同范围的动态会出现在不同的信息流中</div>
<div class="opt" role="button" tabindex="0" data-val="公开 · 所有人可见" aria-checked="true">
<div class="ic b1" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="2" y1="12" x2="22" y2="12"/><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/></svg></div>
<div class="col"><div class="nm">公开</div><div class="sub">所有汪圈用户可见,会出现在广场推荐中</div></div>
<div class="check" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg></div>
</div>
<div class="opt" role="button" tabindex="0" data-val="汪友 · 仅好友可见" aria-checked="false">
<div class="ic b2" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M23 21v-2a4 4 0 0 0-3-3.87"/><path d="M16 3.13a4 4 0 0 1 0 7.75"/></svg></div>
<div class="col"><div class="nm">汪友</div><div class="sub">仅你关注的人可见,会出现在关注信息流</div></div>
<div class="check" aria-hidden="true"></div>
</div>
<div class="opt" role="button" tabindex="0" data-val="仅自己 · 私人记录" aria-checked="false">
<div class="ic b3" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/></svg></div>
<div class="col"><div class="nm">仅自己</div><div class="sub">仅自己可见,作为私人记录保存</div></div>
<div class="check" aria-hidden="true"></div>
</div>
</div>
</div>
<!-- success sheet -->
<div class="sheet-bg success-modal" id="successSheet" role="alertdialog" aria-modal="true" aria-labelledby="successTitle">
<div class="sheet">
<div class="check-circle" aria-hidden="true">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>
</div>
<h3 id="successTitle">发布成功</h3>
<div class="desc">你的动态已发布到广场,正在通知关注你的人</div>
<div class="actions">
<button class="btn btn-secondary" type="button" id="btnStay">留在发布</button>
<button class="btn btn-primary" type="button" id="btnGoPlaza">查看动态</button>
</div>
</div>
</div>
</div>
</div>
<script>
// Tag toggle
const tagChips = document.getElementById('tagChips');
tagChips.addEventListener('click', (e) => {
const c = e.target.closest('.tag-chip');
if (!c) return;
const on = !c.classList.contains('act');
c.classList.toggle('act', on);
c.setAttribute('aria-pressed', String(on));
});
// Word count + post button enable
const ti = document.getElementById('textInput');
const wc = document.getElementById('wordCount');
const postBtn = document.getElementById('btnPost');
function updateCount() {
const n = ti.value.length;
wc.textContent = `${n}/2000`;
wc.classList.toggle('warn', n > 1800);
const enabled = n > 0 && n <= 2000;
postBtn.disabled = !enabled;
postBtn.setAttribute('aria-disabled', String(!enabled));
}
ti.addEventListener('input', updateCount);
updateCount();
// Close
document.getElementById('btnClose').addEventListener('click', () => {
if (ti.value.length > 0) {
if (confirm('有未发布的内容,确认关闭吗?')) location.href = 'plaza.html';
} else {
location.href = 'plaza.html';
}
});
// Image remove
document.querySelectorAll('.img-slot .x').forEach(x => {
x.addEventListener('click', (e) => {
e.stopPropagation();
x.closest('.img-slot').remove();
});
});
// Row click handlers (visibility opens sheet; others are stubs)
const visSheet = document.getElementById('visSheet');
const visVal = document.getElementById('visVal');
document.getElementById('rowVisibility').addEventListener('click', () => visSheet.classList.add('show'));
visSheet.addEventListener('click', (e) => {
if (e.target === visSheet) visSheet.classList.remove('show');
const opt = e.target.closest('.opt');
if (opt) {
visSheet.querySelectorAll('.opt').forEach(x => {
x.classList.remove('checked');
x.setAttribute('aria-checked', 'false');
});
opt.classList.add('checked');
opt.setAttribute('aria-checked', 'true');
visVal.textContent = opt.dataset.val;
setTimeout(() => visSheet.classList.remove('show'), 220);
}
});
// Draft switch (proper button + aria-checked)
const draftSwitch = document.getElementById('draftSwitch');
draftSwitch.addEventListener('click', () => {
const on = draftSwitch.getAttribute('aria-checked') === 'true';
draftSwitch.setAttribute('aria-checked', String(!on));
});
// Post
const success = document.getElementById('successSheet');
postBtn.addEventListener('click', () => {
if (postBtn.disabled) return;
success.classList.add('show');
// Move focus to success modal
document.getElementById('btnGoPlaza').focus();
});
document.getElementById('btnStay').addEventListener('click', () => {
success.classList.remove('show');
ti.value = '';
updateCount();
postBtn.focus();
});
document.getElementById('btnGoPlaza').addEventListener('click', () => {
location.href = 'plaza.html';
});
// Esc closes any open sheet, restores focus
let lastFocus = null;
const observer = new MutationObserver(() => {
document.querySelectorAll('.sheet-bg').forEach(s => {
if (s.classList.contains('show')) {
lastFocus = document.activeElement;
const firstBtn = s.querySelector('button, [tabindex="0"]');
if (firstBtn) firstBtn.focus();
} else if (lastFocus) {
lastFocus.focus();
lastFocus = null;
}
});
});
observer.observe(document.body, { subtree: true, attributes: true, attributeFilter: ['class'], childList: true });
document.addEventListener('keydown', (e) => {
if (e.key === 'Escape') {
document.querySelectorAll('.sheet-bg.show').forEach(s => s.classList.remove('show'));
}
});
</script>
</body>
</html>

View File

@@ -0,0 +1,494 @@
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>汪圈 · 宠物社交 iOS 重新设计</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;450;510;600;700&family=Space+Grotesk:wght@500;600;700&display=swap" rel="stylesheet" />
<style>
:root {
--bg: #14102b;
--bg-warm: #1c1442;
--surface: #1f1742;
--surface-2: #251c4a;
--surface-hi: #2d2255;
--fg: #f0e9ff;
--fg-2: #c7b9e0;
--muted: #8a7aab;
--border: #2e234a;
--border-soft: #251c40;
--accent: #d8b4ff;
--accent-2: #ffb3c8;
--primary: #ffd9a8;
--primary-on: #2a1d10;
--success: #8fe5b5;
--warn: #ffd166;
--danger: #ff8a9b;
--font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
--font-body: 'Inter', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
--radius-sm: 10px;
--radius-md: 16px;
--radius-lg: 24px;
--radius-pill: 9999px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; background: var(--bg); color: var(--fg); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
body {
background:
radial-gradient(ellipse 80% 60% at 20% 0%, rgba(216, 180, 255, 0.12), transparent 60%),
radial-gradient(ellipse 60% 50% at 90% 20%, rgba(255, 179, 200, 0.10), transparent 60%),
radial-gradient(ellipse 90% 80% at 50% 100%, rgba(255, 217, 168, 0.06), transparent 60%),
var(--bg);
min-height: 100vh;
}
.container { max-width: 1840px; margin: 0 auto; padding: 56px 80px 96px; }
/* ---- masthead ---- */
.mast { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 56px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
width: 56px; height: 56px; border-radius: 16px;
background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
display: grid; place-items: center;
box-shadow: 0 12px 32px rgba(216, 180, 255, 0.25), inset 0 0 0 1px rgba(255,255,255,0.18);
}
.brand-mark svg { width: 28px; height: 28px; color: var(--primary-on); }
.brand-text { font-family: var(--font-display); }
.brand-name { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; line-height: 1; }
.brand-tag { font-size: 11px; color: var(--muted); letter-spacing: 0.18em; text-transform: uppercase; margin-top: 6px; }
.eyebrow {
display: inline-flex; align-items: center; gap: 8px;
padding: 6px 14px; border-radius: var(--radius-pill);
background: rgba(216, 180, 255, 0.08);
border: 1px solid rgba(216, 180, 255, 0.18);
color: var(--accent);
font: 500 11px/1 var(--font-display); letter-spacing: 0.16em; text-transform: uppercase;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.hero { max-width: 920px; }
.hero h1 {
font-family: var(--font-display); font-weight: 600; font-size: 76px; line-height: 1.04;
letter-spacing: -0.03em; margin-top: 20px;
background: linear-gradient(180deg, var(--fg) 0%, var(--fg-2) 100%);
-webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { margin-top: 20px; font-size: 18px; line-height: 1.55; color: var(--fg-2); max-width: 56ch; }
.meta-row { display: flex; gap: 28px; margin-top: 28px; }
.meta-item { display: flex; flex-direction: column; gap: 4px; }
.meta-item .k { font: 500 10px/1 var(--font-display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.meta-item .v { font: 600 15px/1.2 var(--font-display); color: var(--fg); }
/* ---- phone grid ---- */
.section-head {
display: flex; align-items: baseline; justify-content: space-between;
margin: 80px 0 32px;
padding-bottom: 16px; border-bottom: 1px solid var(--border-soft);
}
.section-head h2 { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.section-head .sub { font-size: 13px; color: var(--muted); letter-spacing: 0.04em; }
.phones {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 28px;
}
.phone-card {
display: flex; flex-direction: column; align-items: center; gap: 18px;
text-decoration: none; color: inherit;
transition: transform 240ms cubic-bezier(0.2, 0, 0, 1);
}
.phone-card:hover { transform: translateY(-6px); }
.phone-card .label-num { font: 500 11px/1 var(--font-display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.phone-card .label-title { font: 600 16px/1.3 var(--font-display); color: var(--fg); margin-top: 2px; }
.phone-card .label-desc { font: 400 12px/1.5 var(--font-body); color: var(--fg-2); text-align: center; margin-top: 6px; max-width: 22ch; }
.phone {
width: 280px; height: 580px;
background: #0a0719; border-radius: 38px;
position: relative; overflow: hidden;
box-shadow:
0 30px 80px rgba(0, 0, 0, 0.45),
0 0 0 1px rgba(255, 255, 255, 0.06),
inset 0 0 0 2px rgba(255, 255, 255, 0.04);
}
.phone::before {
content: ''; position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
width: 84px; height: 24px; background: #000; border-radius: 9999px; z-index: 5;
}
.phone-screen {
position: absolute; inset: 0;
overflow: hidden;
display: flex; flex-direction: column;
}
.phone-status { height: 47px; display: flex; align-items: center; justify-content: space-between; padding: 14px 28px 0; font: 600 13px/1 var(--font-body); color: var(--fg); position: relative; z-index: 4; }
.phone-status .icons { display: flex; gap: 5px; }
.phone-status .icons span { width: 14px; height: 10px; background: var(--fg); border-radius: 2px; opacity: 0.9; }
/* per-screen content previews */
.p-plaza { padding: 0 16px 16px; }
.p-plaza .ph-head { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; margin-bottom: 14px; }
.p-plaza .ph-title { font: 700 18px/1 var(--font-display); letter-spacing: -0.01em; }
.p-plaza .ph-avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.p-plaza .tabs { display: flex; gap: 16px; margin-bottom: 12px; }
.p-plaza .tab { font: 500 12px/1 var(--font-body); color: var(--muted); }
.p-plaza .tab.act { color: var(--fg); position: relative; }
.p-plaza .tab.act::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--accent); }
.p-plaza .post { background: rgba(45, 34, 85, 0.5); border-radius: 14px; padding: 12px; margin-bottom: 10px; border: 1px solid rgba(216, 180, 255, 0.08); }
.p-plaza .post .head { display: flex; align-items: center; gap: 8px; }
.p-plaza .post .av { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #ffb3c8, #ffd9a8); }
.p-plaza .post .nm { font: 600 11px/1 var(--font-body); }
.p-plaza .post .tm { font: 400 9px/1 var(--font-body); color: var(--muted); margin-left: auto; }
.p-plaza .post .body { font: 400 10px/1.45 var(--font-body); color: var(--fg-2); margin-top: 8px; }
.p-plaza .post .img { height: 60px; border-radius: 8px; margin-top: 8px; background: linear-gradient(135deg, #4a3a7a, #6b4f9a); position: relative; overflow: hidden; }
.p-plaza .post .img::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 70% 40%, rgba(255, 217, 168, 0.4), transparent 50%); }
.p-plaza .post .row { display: flex; gap: 12px; margin-top: 8px; font: 500 9px/1 var(--font-body); color: var(--muted); }
.p-nearby { padding: 0 16px 16px; position: relative; flex: 1; }
.p-nearby .filters { display: flex; gap: 8px; margin-top: 8px; margin-bottom: 14px; }
.p-nearby .f { padding: 5px 10px; border-radius: 999px; font: 500 10px/1 var(--font-body); background: rgba(45, 34, 85, 0.4); color: var(--fg-2); border: 1px solid rgba(216, 180, 255, 0.1); }
.p-nearby .f.act { background: var(--accent); color: var(--primary-on); border-color: transparent; }
.p-nearby .card {
position: relative; flex: 1; border-radius: 18px; overflow: hidden;
background: linear-gradient(160deg, #3a2a6a 0%, #1a1230 100%);
border: 1px solid rgba(216, 180, 255, 0.1);
}
.p-nearby .card .photo { position: absolute; inset: 0; background: radial-gradient(circle at 50% 30%, rgba(255, 179, 200, 0.3), transparent 60%), linear-gradient(180deg, #6b4f9a 0%, #2a1f4a 100%); }
.p-nearby .card .photo::before { content: ''; position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); width: 80px; height: 80px; border-radius: 50%; background: rgba(255, 217, 168, 0.4); filter: blur(8px); }
.p-nearby .card .info { position: absolute; left: 14px; right: 14px; bottom: 14px; }
.p-nearby .card .info .nm { font: 700 18px/1 var(--font-display); color: var(--fg); }
.p-nearby .card .info .sub { font: 500 11px/1.4 var(--font-body); color: var(--fg-2); margin-top: 4px; }
.p-nearby .card .info .tag { display: inline-block; margin-top: 8px; padding: 3px 8px; border-radius: 999px; font: 500 9px/1 var(--font-body); background: rgba(255, 217, 168, 0.2); color: var(--primary); border: 1px solid rgba(255, 217, 168, 0.3); }
.p-nearby .actions { display: flex; gap: 14px; margin-top: 12px; justify-content: center; }
.p-nearby .actions .a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(45, 34, 85, 0.6); border: 1px solid rgba(216, 180, 255, 0.12); }
.p-nearby .actions .a.heart { background: linear-gradient(135deg, var(--accent-2), #ff8aab); border: 0; }
.p-nearby .actions .a svg { width: 18px; height: 18px; color: var(--fg); }
.p-nearby .actions .a.heart svg { color: white; }
.p-msg { padding: 0 16px 16px; }
.p-msg .head { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 14px; }
.p-msg .head h3 { font: 700 18px/1 var(--font-display); }
.p-msg .head .ic { width: 24px; height: 24px; border-radius: 50%; background: rgba(216, 180, 255, 0.12); }
.p-msg .item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(45, 34, 85, 0.4); }
.p-msg .item .av { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; }
.p-msg .item .av.a1 { background: linear-gradient(135deg, #ffb3c8, #ffd9a8); }
.p-msg .item .av.a2 { background: linear-gradient(135deg, #d8b4ff, #a4d4ff); }
.p-msg .item .av.a3 { background: linear-gradient(135deg, #8fe5b5, #d8b4ff); }
.p-msg .item .av.a4 { background: linear-gradient(135deg, #ffd9a8, #ffb3c8); position: relative; }
.p-msg .item .av.a4::after { content: ''; position: absolute; right: 0; bottom: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--success); border: 2px solid var(--bg); }
.p-msg .item .col { flex: 1; min-width: 0; }
.p-msg .item .row1 { display: flex; align-items: center; justify-content: space-between; }
.p-msg .item .nm { font: 600 12px/1 var(--font-body); }
.p-msg .item .tm { font: 400 9px/1 var(--font-body); color: var(--muted); }
.p-msg .item .prv { font: 400 10px/1.3 var(--font-body); color: var(--fg-2); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-msg .item .bd { min-width: 16px; height: 16px; border-radius: 50%; background: var(--accent-2); color: var(--primary-on); font: 700 9px/16px var(--font-body); text-align: center; padding: 0 4px; }
.p-me { padding: 0 16px 16px; }
.p-me .top { display: flex; align-items: center; gap: 12px; margin: 8px 0 16px; }
.p-me .av { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.p-me .info .nm { font: 700 16px/1 var(--font-display); }
.p-me .info .sub { font: 400 10px/1.4 var(--font-body); color: var(--muted); margin-top: 4px; }
.p-me .stats { display: flex; gap: 6px; margin-bottom: 16px; }
.p-me .st { flex: 1; background: rgba(45, 34, 85, 0.4); border-radius: 10px; padding: 8px; text-align: center; border: 1px solid rgba(216, 180, 255, 0.08); }
.p-me .st .n { font: 700 16px/1 var(--font-display); color: var(--fg); }
.p-me .st .l { font: 400 9px/1 var(--font-body); color: var(--muted); margin-top: 4px; }
.p-me .section { font: 600 11px/1 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 12px 0 8px; }
.p-me .pet-row { display: flex; gap: 8px; }
.p-me .pet { flex: 1; background: rgba(45, 34, 85, 0.4); border-radius: 10px; padding: 8px; border: 1px solid rgba(216, 180, 255, 0.08); }
.p-me .pet .ph { height: 36px; border-radius: 6px; background: linear-gradient(135deg, #ffd9a8, #ffb3c8); }
.p-me .pet .nm { font: 600 10px/1.2 var(--font-body); margin-top: 6px; }
.p-me .row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(45, 34, 85, 0.4); font: 500 11px/1 var(--font-body); }
.p-me .row .chev { color: var(--muted); font-size: 14px; }
.p-pub { padding: 0 16px 16px; }
.p-pub .head { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 16px; }
.p-pub .head h3 { font: 700 18px/1 var(--font-display); }
.p-pub .head .x { color: var(--muted); font-size: 18px; }
.p-pub .head .post { padding: 6px 14px; border-radius: 999px; background: var(--accent); color: var(--primary-on); font: 600 12px/1 var(--font-body); }
.p-pub .input {
background: rgba(45, 34, 85, 0.4); border-radius: 12px; padding: 12px;
min-height: 80px; font: 400 11px/1.5 var(--font-body); color: var(--fg-2);
border: 1px solid rgba(216, 180, 255, 0.08);
}
.p-pub .images { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.p-pub .img { aspect-ratio: 1; border-radius: 8px; background: linear-gradient(135deg, #6b4f9a, #4a3a7a); position: relative; overflow: hidden; }
.p-pub .img.i2 { background: linear-gradient(135deg, #ffd9a8, #ffb3c8); }
.p-pub .img.add { background: rgba(45, 34, 85, 0.4); border: 1px dashed rgba(216, 180, 255, 0.2); display: grid; place-items: center; color: var(--muted); font-size: 20px; }
.p-pub .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.p-pub .tag { padding: 4px 10px; border-radius: 999px; font: 500 9px/1 var(--font-body); background: rgba(216, 180, 255, 0.1); color: var(--accent); }
.p-pub .row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; margin-top: 12px; border-top: 1px solid rgba(45, 34, 85, 0.4); font: 500 11px/1 var(--font-body); }
.phone-home { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); width: 120px; height: 4px; background: rgba(255, 255, 255, 0.5); border-radius: 2px; }
.footer { margin-top: 96px; padding-top: 24px; border-top: 1px solid var(--border-soft); display: flex; justify-content: space-between; align-items: center; font: 400 12px/1.4 var(--font-body); color: var(--muted); }
.footer .links { display: flex; gap: 24px; }
.footer a { color: var(--fg-2); text-decoration: none; }
@media (max-width: 1600px) {
.phones { grid-template-columns: repeat(5, 1fr); gap: 18px; }
.phone { width: 240px; height: 500px; }
}
</style>
</head>
<body>
<div class="container">
<header class="mast">
<div class="brand">
<div class="brand-mark" aria-hidden="true">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="11" cy="4" r="2"/><circle cx="18" cy="8" r="2"/><circle cx="20" cy="16" r="2"/><circle cx="9" cy="20" r="2"/><circle cx="4" cy="14" r="2"/>
<path d="M8.5 14.5c1.5-2 5-2 6.5 0 1 1.3 1 3 0 4-1.3 1.3-3 1.3-4.3.5-1.3-1-1.5-3-1-4.5z" fill="currentColor" stroke="none" opacity="0.85"/>
</svg>
</div>
<div class="brand-text">
<div class="brand-name">汪圈</div>
<div class="brand-tag">WangQuan · v2 redesign</div>
</div>
</div>
<div class="eyebrow"><span class="dot"></span>iOS · iPhone 14 · 暗色温柔版</div>
</header>
<section class="hero">
<h1>为宠物找玩伴,<br/><em>温柔</em>一点。</h1>
<p>把微信小程序里的汪圈重新想象成一款 iOS 原生体验。暖紫底色,柔粉与琥珀点缀,半透明玻璃层叠 —— 弱化冷蓝与高对比,让宠物社交更亲和。</p>
<div class="meta-row">
<div class="meta-item"><div class="k">平台</div><div class="v">iOS · iPhone 14 (390×844)</div></div>
<div class="meta-item"><div class="k">屏幕</div><div class="v">4 主页面 + 1 发布</div></div>
<div class="meta-item"><div class="k">基线</div><div class="v">Totality Festival · 调柔</div></div>
<div class="meta-item"><div class="k">交付</div><div class="v">5 个独立 HTML 文件</div></div>
</div>
</section>
<div class="section-head">
<h2>5 个核心屏幕</h2>
<div class="sub">点击进入完整页面</div>
</div>
<section class="phones">
<a class="phone-card" href="plaza.html">
<div class="phone">
<div class="phone-screen" style="background: linear-gradient(180deg, #1c1442 0%, #14102b 100%);">
<div class="phone-status"><span>9:41</span><div class="icons"><span></span><span></span><span></span></div></div>
<div class="p-plaza">
<div class="ph-head">
<div class="ph-title">广场</div>
<div class="ph-avatar"></div>
</div>
<div class="tabs">
<div class="tab act">推荐</div>
<div class="tab">附近</div>
<div class="tab">热门</div>
<div class="tab">关注</div>
</div>
<div class="post">
<div class="head"><div class="av"></div><div class="nm">@奶油</div><div class="tm">2分钟前</div></div>
<div class="body">今天带奶昔去了滨江公园,认识了一只柴犬妹妹 🥺💕</div>
<div class="img"></div>
<div class="row"><span>♡ 128</span><span>💬 24</span><span>↗ 6</span></div>
</div>
<div class="post">
<div class="head"><div class="av" style="background: linear-gradient(135deg, #d8b4ff, #a4d4ff);"></div><div class="nm">@乐乐家</div><div class="tm">15分钟前</div></div>
<div class="body">周末宠物派对报名开始,带毛孩子来玩!</div>
<div class="row"><span>♡ 87</span><span>💬 12</span><span>↗ 3</span></div>
</div>
</div>
</div>
<div class="phone-home"></div>
</div>
<div>
<div class="label-num">01 · 广场</div>
<div class="label-title">Plaza</div>
</div>
<div class="label-desc">社区动态流,推荐 / 附近 / 热门 / 关注 四种内容切分</div>
</a>
<a class="phone-card" href="nearby.html">
<div class="phone">
<div class="phone-screen" style="background: linear-gradient(180deg, #1c1442 0%, #14102b 100%);">
<div class="phone-status"><span>9:41</span><div class="icons"><span></span><span></span><span></span></div></div>
<div class="p-nearby">
<div class="filters">
<div class="f act">3 km</div>
<div class="f">全部</div>
<div class="f">金毛</div>
<div class="f">柯基</div>
<div class="f">猫咪</div>
</div>
<div class="card">
<div class="photo"></div>
<div class="info">
<div class="nm">麻薯 · 2岁</div>
<div class="sub">金毛 · 1.2 km · 3分钟前活跃</div>
<span class="tag">🌿 喜欢慢跑</span>
</div>
</div>
<div class="actions">
<div class="a"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="3 6 5 6 21 6"/><path d="M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6"/></svg></div>
<div class="a"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8S1 12 1 12z"/><line x1="2" y1="2" x2="22" y2="22"/></svg></div>
<div class="a heart"><svg viewBox="0 0 24 24" fill="currentColor" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"/></svg></div>
<div class="a"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"/></svg></div>
</div>
</div>
</div>
<div class="phone-home"></div>
</div>
<div>
<div class="label-num">02 · 附近</div>
<div class="label-title">Nearby</div>
</div>
<div class="label-desc">附近宠物卡片,左右滑找新朋友,过滤距离与品种</div>
</a>
<a class="phone-card" href="messages.html">
<div class="phone">
<div class="phone-screen" style="background: linear-gradient(180deg, #1c1442 0%, #14102b 100%);">
<div class="phone-status"><span>9:41</span><div class="icons"><span></span><span></span><span></span></div></div>
<div class="p-msg">
<div class="head">
<h3>消息</h3>
<div class="ic"></div>
</div>
<div class="item">
<div class="av a1"></div>
<div class="col">
<div class="row1"><div class="nm">麻薯妈妈</div><div class="tm">刚刚</div></div>
<div class="prv">好的!明天 4 点滨江公园见 🐾</div>
</div>
<div class="bd">2</div>
</div>
<div class="item">
<div class="av a2"></div>
<div class="col">
<div class="row1"><div class="nm">乐乐家</div><div class="tm">10 分钟</div></div>
<div class="prv">[图片] 这是我家喵的新造型</div>
</div>
</div>
<div class="item">
<div class="av a3"></div>
<div class="col">
<div class="row1"><div class="nm">豆豆</div><div class="tm">今天 14:22</div></div>
<div class="prv">感谢分享遛狗路线!我们下周去试试</div>
</div>
</div>
<div class="item">
<div class="av a4"></div>
<div class="col">
<div class="row1"><div class="nm">Lucky 之家</div><div class="tm">昨天</div></div>
<div class="prv">周末宠物派对还差 3 个名额</div>
</div>
</div>
<div class="item">
<div class="av a1" style="background: linear-gradient(135deg, #d8b4ff, #8fe5b5);"></div>
<div class="col">
<div class="row1"><div class="nm">奶油</div><div class="tm">昨天</div></div>
<div class="prv">欢迎来到汪圈!这里有很多可爱的小动物</div>
</div>
</div>
</div>
</div>
<div class="phone-home"></div>
</div>
<div>
<div class="label-num">03 · 消息</div>
<div class="label-title">Messages</div>
</div>
<div class="label-desc">私聊与群消息列表,未读小红点 + 在线状态点</div>
</a>
<a class="phone-card" href="profile.html">
<div class="phone">
<div class="phone-screen" style="background: linear-gradient(180deg, #1c1442 0%, #14102b 100%);">
<div class="phone-status"><span>9:41</span><div class="icons"><span></span><span></span><span></span></div></div>
<div class="p-me">
<div class="top">
<div class="av"></div>
<div class="info" style="flex:1">
<div class="nm">阿布的家长</div>
<div class="sub">上海 · 浦东新区 · 6 年养宠经验</div>
</div>
<div style="width:18px;height:18px;border-radius:50%;background:rgba(216,180,255,0.15);"></div>
</div>
<div class="stats">
<div class="st"><div class="n">128</div><div class="l">动态</div></div>
<div class="st"><div class="n">342</div><div class="l">关注</div></div>
<div class="st"><div class="n">1.2k</div><div class="l">粉丝</div></div>
<div class="st"><div class="n">56</div><div class="l">收藏</div></div>
</div>
<div class="section">我的毛孩子 · 2</div>
<div class="pet-row">
<div class="pet"><div class="ph"></div><div class="nm">奶昔 · 金毛</div></div>
<div class="pet"><div class="ph" style="background: linear-gradient(135deg, #d8b4ff, #a4d4ff);"></div><div class="nm">年糕 · 布偶</div></div>
<div class="pet" style="background: rgba(45, 34, 85, 0.2); display: grid; place-items: center; color: var(--muted);">+</div>
</div>
<div class="row" style="margin-top:14px"><span>设置</span><span class="chev"></span></div>
<div class="row"><span>消息通知</span><span class="chev"></span></div>
<div class="row"><span>帮助与反馈</span><span class="chev"></span></div>
</div>
</div>
<div class="phone-home"></div>
</div>
<div>
<div class="label-num">04 · 我的</div>
<div class="label-title">Profile</div>
</div>
<div class="label-desc">个人主页 + 毛孩子档案 + 设置入口</div>
</a>
<a class="phone-card" href="publish.html">
<div class="phone">
<div class="phone-screen" style="background: linear-gradient(180deg, #1c1442 0%, #14102b 100%);">
<div class="phone-status"><span>9:41</span><div class="icons"><span></span><span></span><span></span></div></div>
<div class="p-pub">
<div class="head">
<div class="x"></div>
<h3>发布动态</h3>
<div class="post">发布</div>
</div>
<div class="input">说说你家毛孩子的故事吧… #遛弯 #金毛 #江边</div>
<div class="images">
<div class="img"></div>
<div class="img i2"></div>
<div class="img add">+</div>
</div>
<div class="tags">
<div class="tag">#推荐话题</div>
<div class="tag">#毛孩子日常</div>
<div class="tag">#周末聚会</div>
</div>
<div class="row"><span>📍 位置</span><span style="color:var(--muted);">上海·滨江公园 </span></div>
<div class="row"><span>👁 可见范围</span><span style="color:var(--muted);">公开 </span></div>
<div class="row"><span>🐾 关联宠物</span><span style="color:var(--muted);">奶昔 </span></div>
</div>
</div>
<div class="phone-home"></div>
</div>
<div>
<div class="label-num">05 · 发布</div>
<div class="label-title">Publish</div>
</div>
<div class="label-desc">模态式发布页,图片 + 标签 + 位置 + 可见范围</div>
</a>
</section>
<footer class="footer">
<div>汪圈 v2 · iOS redesign · Totality Festival 调柔版</div>
<div class="links">
<a href="plaza.html">01 广场</a>
<a href="nearby.html">02 附近</a>
<a href="messages.html">03 消息</a>
<a href="profile.html">04 我的</a>
<a href="publish.html">05 发布</a>
</div>
</footer>
</div>
</body>
</html>