/* Sky 方案 05 版式 · 参考图复刻（接入统一主题与设计语言） */

body[data-theme="ref"] {
  --brand: #ff5b8a;
  --brand-deep: #e8467a;
  --brand-soft: #ffe9f0;
  --on-brand: #ffffff;
  --accent: #ff7a3d;
  --accent-soft: #fff0e6;
  --bg: #ffffff;
  --bg-soft: #f6f6f8;
  --text: #17171a;
  --text-2: #6b6c72;
  --text-3: #a5a6ac;
  --line: #f0f0f2;
  --shadow-card: 0 6px 18px rgba(20, 20, 25, 0.05);
  --shadow-tab: none;
  --blue: #4a9eff;
  --blue-soft: #e9f2ff;
  --green: #2fbf71;
  --green-soft: #e7f8ef;
  --purple: #7a63e8;
  --purple-soft: #f4f1ff;
  --gold: #c98a1e;
  --post-margin: 0;
  --post-pad: 14px 16px 0;
  --post-bg: transparent;
  --post-border: 0;
  --post-shadow: none;
  --post-radius: 0;
}

/* 设计语言适配：信息流容器 */
body[data-style="block"][data-theme="ref"] {
  --post-margin: 10px 12px 0;
  --post-pad: 14px;
  --post-bg: linear-gradient(160deg, #ffffff 28%, var(--brand-soft) 150%);
  --post-shadow: var(--shadow-card-l);
  --post-radius: var(--r-lg);
}
body[data-style="bold"][data-theme="ref"] {
  --post-margin: 10px 12px 0;
  --post-pad: 14px;
  --post-bg: #ffffff;
  --post-border: 2px solid var(--text);
  --post-shadow: 5px 5px 0 var(--text);
  --post-radius: var(--r-md);
}
body[data-style="block"][data-theme="ref"] .post-divider,
body[data-style="bold"][data-theme="ref"] .post-divider { display: none; }

/* 顶部双 Tab */
.r-page { padding-bottom: 84px; }
.r-top { display: flex; align-items: center; gap: 6px; padding: 2px 16px 12px; }
.r-tabs { display: flex; align-items: center; gap: 4px; flex: 1; }
.r-tab {
  font-size: 20px; font-weight: 800; letter-spacing: -0.03em; color: var(--text-3);
  padding: 5px 12px; border-radius: var(--r-sm); line-height: 1.2;
}
.r-tab.active { color: var(--brand); background: var(--brand-soft); }
.r-head-actions { display: flex; align-items: center; gap: 4px; color: var(--text); }
.r-head-actions .icon-btn { width: 32px; height: 32px; display: grid; place-items: center; }

/* 横滑头像 */
.stories { display: flex; gap: 12px; padding: 0 16px 14px; overflow: hidden; }
.story { width: 56px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.story-ava {
  position: relative; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-size: 17px; font-weight: 800;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.3);
}
.story-dot {
  position: absolute; right: 2px; bottom: 3px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--green); border: 2px solid var(--bg);
}
.story-name {
  font-size: 9.5px; color: var(--text-2); font-weight: 600; max-width: 58px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.story-g { font-size: 8.5px; font-weight: 700; padding: 1px 6px; border-radius: 999px; line-height: 1.5; }
.g-f { background: var(--brand-soft); color: var(--brand-deep); }
.g-m { background: var(--blue-soft); color: #2b6fd0; }

/* 头像渐变 */
.av-1 { background: linear-gradient(135deg, #ffc7a8, #ff8fae); }
.av-2 { background: linear-gradient(135deg, #a6c8ff, #4e7df0); }
.av-3 { background: linear-gradient(135deg, #b7f0d8, #37b79b); }
.av-4 { background: linear-gradient(135deg, #d6f59a, #8fd67c); }
.av-5 { background: linear-gradient(135deg, #d5c3ff, #8e7bef); }
.av-6 { background: linear-gradient(135deg, #4a4a52, #16161a); }

/* 筛选行 */
.filter-row { display: flex; align-items: center; padding: 0 16px; border-bottom: 1px solid var(--line); }
.filter {
  position: relative; font-size: 13.5px; font-weight: 600; color: var(--text-3);
  margin-right: 20px; padding: 4px 0 10px;
}
.filter.active { color: var(--text); font-weight: 800; }
.filter.active::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 16px; height: 3px;
  border-radius: 2px; background: var(--brand); transform: translateX(-50%);
}
.filter-tools { margin-left: auto; display: flex; gap: 14px; color: var(--text-2); padding-bottom: 6px; }

/* 会员横幅 */
.banner {
  position: relative; display: flex; align-items: center; gap: 10px;
  margin: 12px 16px 4px; padding: 12px 13px; height: 78px;
  border-radius: var(--r-md); overflow: hidden; color: #35245e;
  border: var(--card-border); box-shadow: var(--shadow-card-l);
  background:
    radial-gradient(circle at 92% 16%, rgba(255, 255, 255, 0.85), transparent 42%),
    radial-gradient(circle at 6% 96%, rgba(255, 255, 255, 0.6), transparent 44%),
    linear-gradient(118deg, #b7a4ff 0%, #8fd0ff 52%, #ffb3d2 100%);
}
.banner::after {
  content: ""; position: absolute; right: -18px; top: -26px; width: 96px; height: 96px;
  border-radius: 50%; border: 1px dashed rgba(255, 255, 255, 0.65);
}
.banner-crown {
  position: relative; z-index: 2; flex: none; width: 42px; height: 42px;
  display: grid; place-items: center; border-radius: var(--r-sm);
  background: linear-gradient(160deg, #ffe9a8, #f5b73c);
  color: #8a5a06; box-shadow: 0 6px 14px -4px rgba(197, 137, 20, 0.5);
}
.banner-copy { position: relative; z-index: 2; flex: 1; min-width: 0; }
.banner-title { font-size: 13.5px; font-weight: 900; letter-spacing: -0.01em; display: flex; align-items: center; gap: 5px; }
.banner-title em {
  font-style: normal; font-size: 8px; font-weight: 800; padding: 1px 5px;
  border-radius: 4px; background: rgba(255, 255, 255, 0.62); color: #b02a5b;
}
.banner-sub { margin-top: 3px; font-size: 10px; font-weight: 600; color: #4a3a78; opacity: 0.85; }
.banner-btn {
  position: relative; z-index: 2; flex: none; height: 26px; padding: 0 10px;
  display: inline-flex; align-items: center; border-radius: 999px;
  background: rgba(255, 255, 255, 0.9); color: #a1325f; font-size: 9.5px; font-weight: 800;
}

/* 信息流 */
.post {
  padding: var(--post-pad); margin: var(--post-margin);
  background: var(--post-bg); border: var(--post-border);
  border-radius: var(--post-radius); box-shadow: var(--post-shadow);
}
.post-head { display: flex; align-items: flex-start; gap: 10px; }
.post-ava {
  position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-size: 14px; font-weight: 800;
}
.post-ava .live-ring { position: absolute; inset: -2px; border-radius: 50%; border: 1.5px solid var(--green); opacity: 0.75; }
.post-main { flex: 1; min-width: 0; }
.post-name {
  display: flex; align-items: center; gap: 4px;
  font-size: 13.5px; font-weight: 800; color: var(--gold); letter-spacing: -0.01em;
}
.post-name .vip-crown { color: #e8a93c; display: flex; }
.post-name .v-badge {
  width: 13px; height: 13px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue); color: #fff; font-size: 8px; font-weight: 900;
}
.post-meta { display: flex; align-items: center; gap: 6px; margin-top: 5px; font-size: 10.5px; color: var(--text-3); }
.meta-g { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; }
.meta-g.f { color: var(--brand-deep); }
.meta-g.m { color: #2b6fd0; }
.post-side { flex: none; text-align: right; margin-left: 8px; }
.hot-tag {
  display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px;
  border-radius: var(--r-sm); background: linear-gradient(120deg, #ffa15c, var(--brand));
  color: #fff; font-size: 9px; font-weight: 900; letter-spacing: 0.02em;
  box-shadow: 0 4px 10px -4px rgba(255, 91, 138, 0.6);
}
.star-tag {
  display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px;
  border-radius: 999px; background: var(--purple-soft);
  border: 1px solid #cfc2ff; color: var(--purple); font-size: 9px; font-weight: 800;
}
.post-loc { margin-top: 6px; font-size: 9.5px; color: var(--text-3); font-weight: 600; }
.post-loc em { font-style: normal; color: var(--green); }
.post-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 10px; }
.post-img { aspect-ratio: 1; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px rgba(18, 33, 29, 0.05); }
.post-empty { margin-top: 10px; font-size: 10px; color: var(--text-3); }
.post-divider { height: 1px; background: var(--line); margin: 14px 16px 0; }

.p1 { background: radial-gradient(circle at 28% 22%, rgba(255,255,255,.5), transparent 52%), linear-gradient(135deg, #ffc2a8, #ff8f8f); }
.p2 { background: radial-gradient(circle at 70% 25%, rgba(255,255,255,.45), transparent 50%), linear-gradient(135deg, #a9e7d6, #47b6ad); }
.p3 { background: radial-gradient(circle at 40% 72%, rgba(255,255,255,.5), transparent 55%), linear-gradient(135deg, #ffe7ad, #c3c9ff); }
.p4 { background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.45), transparent 52%), linear-gradient(135deg, #cbbaff, #ffc6d8); }
.p5 { background: radial-gradient(circle at 65% 30%, rgba(255,255,255,.45), transparent 52%), linear-gradient(135deg, #a9c7ff, #98e6ea); }
.p6 { background: radial-gradient(circle at 35% 65%, rgba(255,255,255,.42), transparent 55%), linear-gradient(135deg, #d9f58f, #9fe3a9); }

/* 右下悬浮广告 */
.float-ad {
  position: absolute; right: 12px; bottom: 96px; z-index: 12;
  width: 108px; padding: 8px 9px; border-radius: var(--r-md);
  background: linear-gradient(135deg, #8f7bff, #59c3ff);
  color: #fff; box-shadow: 0 12px 24px -10px rgba(84, 70, 180, 0.65);
}
.float-ad b { display: block; font-size: 10px; font-weight: 900; }
.float-ad span { display: block; margin-top: 2px; font-size: 8.5px; opacity: 0.86; }

/* 底部 TabBar（5 项，选中黑色） */
.r-tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 20; height: 64px;
  display: flex; align-items: center; background: var(--tab-bg);
  border-top: var(--tab-border); box-shadow: var(--tab-shadow);
}
.r-tab-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 9px; font-weight: 600; color: var(--text-3);
}
.r-tab-item.active { color: var(--text); font-weight: 800; }
.r-tab-item .wrap { position: relative; display: flex; }
.r-badge {
  position: absolute; top: -4px; right: -9px; min-width: 14px; height: 14px; padding: 0 3px;
  display: grid; place-items: center; border-radius: 7px; background: #ff4d6d; color: #fff;
  font-size: 8.5px; font-weight: 800; box-shadow: 0 0 0 2px var(--tab-bg);
}

/* 发现页 */
.r-title { font-size: 26px; font-weight: 900; letter-spacing: -0.04em; padding: 2px 16px 4px; }
.r-sub { padding: 0 16px 12px; font-size: 11px; color: var(--text-3); font-weight: 600; }
.r-search {
  display: flex; align-items: center; gap: 8px; margin: 0 16px 12px;
  height: 40px; padding: 0 12px; border-radius: var(--r-md);
  background: var(--bg-soft); border: var(--card-border); box-shadow: var(--shadow-card-l);
  color: var(--text-3); font-size: 12px;
}
.r-search .go { margin-left: auto; color: var(--text-2); display: flex; }
.chips { display: flex; gap: 8px; padding: 0 16px 12px; }
.chip {
  padding: 6px 13px; border-radius: 999px; background: var(--bg-soft);
  border: var(--chip-border); font-size: 11px; font-weight: 700; color: var(--text-2);
}
.chip.active { background: var(--text); color: #fff; }
.chip.pink { background: var(--brand-soft); color: var(--brand-deep); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 16px; }
.g-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 3.8;
  border: var(--card-border); box-shadow: var(--shadow-card-l);
}
.g-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 42%, rgba(0,0,0,0.5) 100%);
}
.g-info { position: absolute; left: 10px; right: 10px; bottom: 9px; z-index: 2; color: #fff; }
.g-name { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 800; }
.g-name em {
  font-style: normal; font-size: 9px; padding: 1px 5px; border-radius: 5px;
  background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.36);
}
.g-line { display: flex; gap: 4px; margin-top: 5px; flex-wrap: wrap; }
.g-line span { font-size: 9px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: rgba(255,255,255,.22); }
.g-online {
  position: absolute; top: 9px; left: 9px; z-index: 2;
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 999px;
  background: rgba(255,255,255,.9); font-size: 8.5px; font-weight: 800; color: #1b1b1e;
}
.g-online i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }

/* 消息页 */
.quick4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 0 8px 8px; }
.qi-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0;
  font-size: 10px; font-weight: 600; color: var(--text-2); position: relative;
}
.qi-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.qi-icon.c1 { background: var(--brand-soft); color: var(--brand); }
.qi-icon.c2 { background: var(--blue-soft); color: #2b6fd0; }
.qi-icon.c3 { background: #fff4dc; color: #d99a1c; }
.qi-icon.c4 { background: var(--green-soft); color: var(--green); }
.qi-badge {
  position: absolute; top: 5px; right: 22px; min-width: 15px; height: 15px; padding: 0 4px;
  display: grid; place-items: center; border-radius: 8px; background: #ff4d6d; color: #fff;
  font-size: 9px; font-weight: 800; box-shadow: 0 0 0 2px var(--bg);
}
.list-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px 6px; }
.list-title { font-size: 13.5px; font-weight: 800; }
.list-link { font-size: 10.5px; color: var(--text-3); font-weight: 600; display: inline-flex; align-items: center; gap: 2px; }
.rows { padding: 0 16px; }
.row { display: flex; align-items: center; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row-ava { position: relative; flex: none; }
.row-ava .ava { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 800; }
.row-badge {
  position: absolute; top: -3px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px;
  display: grid; place-items: center; border-radius: 8px; background: #ff4d6d; color: #fff;
  font-size: 9px; font-weight: 800; box-shadow: 0 0 0 2px var(--bg);
}
.row-main { flex: 1; min-width: 0; }
.row-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.row-name { font-size: 13px; font-weight: 800; }
.row-time { flex: none; font-size: 9.5px; color: var(--text-3); }
.row-msg { margin-top: 3px; font-size: 11px; color: var(--text-3); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.row-msg.unread { color: var(--text-2); font-weight: 600; }
.tip-bar {
  display: flex; align-items: center; gap: 9px; margin: 10px 16px 0; padding: 11px 12px;
  border-radius: var(--r-md); background: var(--bg-soft);
  border: var(--card-border); font-size: 11px; font-weight: 700; color: var(--text-2);
}

/* 我的页 */
.me-hero { padding: 4px 16px 0; }
.me-nav { display: flex; align-items: center; justify-content: space-between; padding: 2px 0 10px; }
.me-nav .t { font-size: 20px; font-weight: 900; letter-spacing: -0.03em; }
.me-main { display: flex; align-items: center; gap: 12px; }
.me-ava {
  flex: none; width: 66px; height: 66px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-size: 22px; font-weight: 900;
  background: linear-gradient(135deg, #ffc7a8, #ff8fae);
  box-shadow: 0 10px 20px -10px rgba(255, 91, 138, 0.5);
}
.me-info { flex: 1; min-width: 0; }
.me-name { display: flex; align-items: center; gap: 5px; font-size: 18px; font-weight: 900; letter-spacing: -0.02em; }
.me-name .vip {
  padding: 1px 6px; border-radius: 6px; font-size: 8.5px; font-weight: 900;
  background: linear-gradient(135deg, #ffe6a6, #f2b73f); color: #7a5716;
}
.me-name .vbadge {
  width: 14px; height: 14px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue); color: #fff; font-size: 8px; font-weight: 900;
}
.me-meta { margin-top: 5px; font-size: 10.5px; color: var(--text-3); font-weight: 600; }
.me-id { margin-top: 3px; font-size: 9.5px; color: var(--text-3); }
.me-edit {
  flex: none; align-self: flex-start; height: 28px; padding: 0 11px;
  display: inline-flex; align-items: center; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text-2); font-size: 10px; font-weight: 700;
}
.me-sign { margin: 11px 0 0; font-size: 11px; line-height: 1.6; color: var(--text-2); }
.me-sign em { font-style: normal; color: var(--brand); font-weight: 600; }
.me-stats { display: flex; margin-top: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.me-stat { flex: 1; text-align: center; }
.me-stat b { display: block; font-size: 16px; font-weight: 900; line-height: 1.15; }
.me-stat span { font-size: 9.5px; color: var(--text-3); font-weight: 600; }
.me-card {
  margin: 12px 16px 0; padding: 13px 14px; border-radius: var(--r-lg);
  background: linear-gradient(120deg, var(--brand-soft), var(--purple-soft));
  border: var(--card-border); box-shadow: var(--shadow-card-l);
}
.me-card-top { display: flex; align-items: center; gap: 8px; }
.me-card-title { font-size: 12px; font-weight: 900; color: var(--brand-deep); }
.me-card-sub { margin-left: auto; font-size: 9.5px; font-weight: 800; color: var(--brand-deep); display: inline-flex; align-items: center; gap: 2px; }
.me-coin { display: flex; gap: 16px; margin-top: 8px; }
.me-coin b { font-size: 19px; font-weight: 900; color: var(--text); }
.me-coin span { display: block; margin-top: 1px; font-size: 9px; color: var(--text-3); font-weight: 600; }
.me-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: 12px 16px 0; padding: 14px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.me-g { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 10px; font-weight: 600; color: var(--text-2); }
.me-g .gi { width: 34px; height: 34px; border-radius: var(--r-sm); display: grid; place-items: center; }
.gi.a { background: var(--brand-soft); color: var(--brand); }
.gi.b { background: #fff4dc; color: #d99a1c; }
.gi.c { background: var(--blue-soft); color: #2b6fd0; }
.gi.d { background: var(--purple-soft); color: var(--purple); }
.me-menu { margin: 0 16px; }
.me-row { display: flex; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.me-row:last-child { border-bottom: 0; }
.me-row .mi { width: 30px; height: 30px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--bg-soft); color: var(--text-2); }
.me-row .mt { flex: 1; font-size: 12.5px; font-weight: 700; }
.me-row .mn { font-size: 10px; color: var(--text-3); font-weight: 600; }
.me-row .arrow { color: var(--text-3); display: flex; }
