/* Sky UI 风格探索 · 4 套配色 × 4 种设计语言 */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei",
    -apple-system, "Segoe UI", sans-serif;
  background-color: #ecefed;
  background-image: radial-gradient(rgba(18, 33, 29, 0.055) 1px, transparent 1px);
  background-size: 22px 22px;
  color: #12211d;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------------- 主题：4 套配色 ---------------- */
body[data-theme="mint"] {
  --brand: #0FBFA4;
  --brand-deep: #07816F;
  --brand-soft: #E2F7F2;
  --on-brand: #ffffff;
  --accent: #FF8A5B;
  --accent-soft: #FFEFE7;
  --bg: #F4FAF8;
  --bg-soft: #ECF5F2;
  --text: #12312B;
  --text-2: #5B7A73;
  --text-3: #94AEA7;
  --line: #E1EEEA;
  --shadow-card: 0 6px 18px rgba(18, 49, 43, 0.05);
  --shadow-tab: 0 -6px 20px rgba(18, 49, 43, 0.05);
}
body[data-theme="sky"] {
  --brand: #2F7CFF;
  --brand-deep: #1C55D6;
  --brand-soft: #E8F1FF;
  --on-brand: #ffffff;
  --accent: #FFC93D;
  --accent-soft: #FFF6D8;
  --bg: #F4F8FF;
  --bg-soft: #EAF1FC;
  --text: #12233D;
  --text-2: #5A708C;
  --text-3: #93A5BC;
  --line: #E0EAF7;
  --shadow-card: 0 6px 18px rgba(18, 40, 77, 0.05);
  --shadow-tab: 0 -6px 20px rgba(18, 40, 77, 0.05);
}
body[data-theme="peach"] {
  --brand: #FF6F91;
  --brand-deep: #D8466F;
  --brand-soft: #FFE9F0;
  --on-brand: #ffffff;
  --accent: #9E86FF;
  --accent-soft: #F0EBFF;
  --bg: #FFF7F9;
  --bg-soft: #FCEDF2;
  --text: #3A2230;
  --text-2: #8A6572;
  --text-3: #B79BA4;
  --line: #F7E2E9;
  --shadow-card: 0 6px 18px rgba(70, 26, 44, 0.05);
  --shadow-tab: 0 -6px 20px rgba(70, 26, 44, 0.05);
}
body[data-theme="forest"] {
  --brand: #135C4C;
  --brand-deep: #0A3B31;
  --brand-soft: #E6EFEA;
  --on-brand: #ffffff;
  --accent: #C6F24A;
  --accent-soft: #F1FBCB;
  --bg: #F6F5EE;
  --bg-soft: #EDEDE2;
  --text: #1B2722;
  --text-2: #5C6C64;
  --text-3: #98A69E;
  --line: #E4E4D8;
  --shadow-card: 0 6px 18px rgba(27, 39, 34, 0.05);
  --shadow-tab: 0 -6px 20px rgba(27, 39, 34, 0.05);
}

/* ---------------- 设计语言：4 种 ---------------- */
/* 1. 大圆角 + 轻投影 */
body[data-style="soft"] {
  --r-xl: 26px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --card-bg: #ffffff;
  --card-border: 1px solid transparent;
  --shadow-card-l: 0 6px 18px rgba(18, 49, 43, 0.055);
  --title-weight: 800;
  --seg-active-bg: #ffffff;
  --seg-active-color: var(--brand);
  --seg-active-shadow: 0 2px 8px rgba(18, 49, 43, 0.1);
  --chip-border: 1px solid transparent;
  --btn-shadow: 0 10px 22px -6px color-mix(in srgb, var(--brand) 55%, transparent);
  --tab-bg: #ffffff;
  --tab-border: 1px solid var(--line);
  --tab-shadow: var(--shadow-tab);
}
/* 2. 极简留白 + 细线描边 */
body[data-style="line"] {
  --r-xl: 18px;
  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 8px;
  --card-bg: #ffffff;
  --card-border: 1px solid var(--line);
  --shadow-card-l: none;
  --title-weight: 700;
  --seg-active-bg: var(--brand);
  --seg-active-color: var(--on-brand);
  --seg-active-shadow: none;
  --chip-border: 1px solid var(--line);
  --btn-shadow: none;
  --tab-bg: #ffffff;
  --tab-border: 1px solid var(--line);
  --tab-shadow: none;
}
/* 3. 彩色渐变块 */
body[data-style="block"] {
  --r-xl: 30px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --card-bg: linear-gradient(155deg, #ffffff 25%, var(--brand-soft) 140%);
  --card-border: 1px solid transparent;
  --shadow-card-l: 0 12px 28px -12px rgba(18, 49, 43, 0.16);
  --title-weight: 800;
  --seg-active-bg: #ffffff;
  --seg-active-color: var(--brand);
  --seg-active-shadow: 0 4px 10px rgba(18, 49, 43, 0.1);
  --chip-border: 1px solid transparent;
  --btn-shadow: 0 12px 24px -8px color-mix(in srgb, var(--brand) 60%, transparent);
  --tab-bg: #ffffff;
  --tab-border: 1px solid transparent;
  --tab-shadow: 0 -10px 26px rgba(18, 49, 43, 0.07);
}
/* 4. 粗描边 + 潮流高对比 */
body[data-style="bold"] {
  --r-xl: 16px;
  --r-lg: 14px;
  --r-md: 10px;
  --r-sm: 8px;
  --card-bg: #ffffff;
  --card-border: 2px solid var(--text);
  --shadow-card-l: 5px 5px 0 var(--text);
  --title-weight: 900;
  --seg-active-bg: var(--text);
  --seg-active-color: #ffffff;
  --seg-active-shadow: none;
  --chip-border: 2px solid var(--text);
  --btn-shadow: 4px 4px 0 var(--text);
  --tab-bg: #ffffff;
  --tab-border: 2px solid var(--text);
  --tab-shadow: none;
}

/* ---------------- 顶部工具条 ---------------- */
.toolbar {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(18, 33, 29, 0.08);
}
.toolbar-inner {
  max-width: 1680px;
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #12211d;
}
.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: 0 6px 14px -4px color-mix(in srgb, var(--brand) 60%, transparent);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}
.brand small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: #7d8b86;
  letter-spacing: 0.04em;
  margin-top: 1px;
}
.controls {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.control {
  display: flex;
  align-items: center;
  gap: 10px;
}
.control-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #84938e;
  letter-spacing: 0.08em;
}
.swatches { display: flex; gap: 9px; }
.swatch {
  position: relative;
  width: 26px;
  height: 26px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(18, 33, 29, 0.1), inset 0 -4px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.swatch:hover { transform: translateY(-2px); }
.swatch.active {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #12211d;
}
.segmented {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: #e8ecea;
  border-radius: 999px;
}
.segmented button {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  color: #5c6a65;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s ease;
}
.segmented button.active {
  background: #fff;
  color: #12211d;
  box-shadow: 0 2px 8px rgba(18, 33, 29, 0.1);
}
.back-link {
  font-size: 11.5px;
  font-weight: 600;
  color: #5c6a65;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(18, 33, 29, 0.14);
  transition: all 0.16s ease;
}
.back-link:hover { background: #fff; color: #12211d; }

/* ---------------- 舞台 ---------------- */
.stage {
  max-width: 1720px;
  margin: 0 auto;
  padding: 34px 24px 64px;
  display: grid;
  grid-template-columns: repeat(4, 375px);
  justify-content: center;
  align-items: start;
  gap: 34px 28px;
}
.device { width: 375px; }
@media (max-width: 1679px) {
  .stage { grid-template-columns: repeat(4, 375px); }
  .device { zoom: 0.82; }
}
@media (max-width: 1369px) {
  .stage { grid-template-columns: repeat(2, 375px); }
  .device { zoom: 0.9; }
}
@media (max-width: 900px) {
  .stage { grid-template-columns: 375px; padding: 24px 16px 48px; }
  .device { zoom: 0.92; }
}
.device-caption {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 6px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #12211d;
}
.device-caption span {
  font-size: 11px;
  font-weight: 500;
  color: #83918c;
}
.phone {
  position: relative;
  width: 375px;
  height: 812px;
  padding: 9px;
  border-radius: 46px;
  background: #111715;
  box-shadow: 0 40px 70px -30px rgba(14, 28, 24, 0.55),
    0 0 0 1px rgba(14, 28, 24, 0.9),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 38px;
  background: var(--bg);
  color: var(--text);
}
.screen-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.screen-scroll::-webkit-scrollbar { display: none; }

/* ---------------- 状态栏 ---------------- */
.statusbar {
  flex: none;
  height: 46px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 24px 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
}
.sb-right { display: flex; align-items: center; gap: 6px; }
.sb-right svg { display: block; }

/* ---------------- 页面通用 ---------------- */
.page { padding: 4px 16px 100px; }
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px 14px;
}
.eyebrow {
  margin: 0 0 6px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-3);
  text-transform: uppercase;
}
.page-title {
  margin: 0;
  font-size: 23px;
  line-height: 1.15;
  font-weight: var(--title-weight);
  letter-spacing: -0.035em;
}
.page-sub {
  margin: 6px 0 0;
  font-size: 11.5px;
  color: var(--text-2);
  line-height: 1.5;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 12px;
  border: var(--chip-border);
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.pill.accent { background: var(--accent-soft); color: var(--text); }

.card {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card-l);
}

/* ---------------- 搜索条 ---------------- */
.searchbar {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 6px 0 14px;
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: 999px;
  box-shadow: var(--shadow-card-l);
  color: var(--text-3);
  font-size: 12.5px;
}
.searchbar .ph { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.searchbar .go {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: var(--btn-shadow);
}

/* ---------------- 分段控件 ---------------- */
.seg {
  display: flex;
  gap: 2px;
  padding: 3px;
  margin: 13px 0 12px;
  background: var(--bg-soft);
  border-radius: 999px;
  border: var(--card-border);
}
.seg button {
  flex: 1;
  border: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
  background: transparent;
  padding: 8px 0;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.seg button.active {
  background: var(--seg-active-bg);
  color: var(--seg-active-color);
  box-shadow: var(--seg-active-shadow);
}

/* ---------------- 公告条 ---------------- */
.notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  margin-bottom: 13px;
  border: var(--card-border);
  border-radius: var(--r-md);
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 11px;
  font-weight: 600;
}
.notice .txt { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.notice .dot {
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------------- 动态卡片 ---------------- */
.feed { padding: 14px; margin-bottom: 12px; }
.feed-head { display: flex; align-items: center; gap: 10px; }
.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.28);
}
.av-1 { background: linear-gradient(135deg, #FFB199, #FF6F61); }
.av-2 { background: linear-gradient(135deg, #A6C8FF, #4E7DF0); }
.av-3 { background: linear-gradient(135deg, #FFD37F, #F0A04B); }
.av-4 { background: linear-gradient(135deg, #B7F0D8, #37B79B); }
.av-5 { background: linear-gradient(135deg, #D5C3FF, #8E7BEF); }
.feed-info { flex: 1; min-width: 0; }
.feed-name {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.vip-tag {
  padding: 1px 5px;
  border-radius: 5px;
  background: linear-gradient(135deg, #FFE7A3, #F5C14D);
  color: #7A5716;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.tag {
  padding: 1.5px 6px;
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--text-2);
  font-size: 9.5px;
  font-weight: 600;
}
.tag.brand { background: var(--brand-soft); color: var(--brand-deep); }
.tag.pink { background: #FFEDF2; color: #D8466F; }
.follow-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 10.5px;
  font-weight: 800;
  box-shadow: var(--btn-shadow);
}
.feed-text {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.66;
  color: var(--text);
  letter-spacing: -0.005em;
}
.feed-text .topic { color: var(--brand); font-weight: 800; }
.feed-loc {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 10px;
  color: var(--text-3);
  font-weight: 600;
}

.photo-grid { display: grid; gap: 5px; margin-top: 10px; }
.photo-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.photo {
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1px rgba(18, 33, 29, 0.05);
}
.photo.single {
  aspect-ratio: 16 / 10;
  border-radius: var(--r-md);
}
.p1 { background: radial-gradient(circle at 28% 22%, rgba(255,255,255,.55), transparent 52%), linear-gradient(135deg, #FFC59B, #FF7E7E); }
.p2 { background: radial-gradient(circle at 70% 25%, rgba(255,255,255,.5), transparent 50%), linear-gradient(135deg, #9FE7D2, #28A8A0); }
.p3 { background: radial-gradient(circle at 40% 70%, rgba(255,255,255,.5), transparent 55%), linear-gradient(135deg, #FFE48F, #B9C6FF); }
.p4 { background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.5), transparent 52%), linear-gradient(135deg, #C9B6FF, #FFC3D6); }
.p5 { background: radial-gradient(circle at 65% 30%, rgba(255,255,255,.5), transparent 52%), linear-gradient(135deg, #A9C7FF, #8FE4E8); }
.p6 { background: radial-gradient(circle at 35% 65%, rgba(255,255,255,.45), transparent 55%), linear-gradient(135deg, #D8F58A, #9BE3A6); }

.feed-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 700;
}
.act { display: inline-flex; align-items: center; gap: 5px; }
.act.liked { color: #FF5C7C; }
.act.push { margin-left: auto; }

/* ---------------- 区块标题 ---------------- */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 2px 10px;
}
.section-title {
  font-size: 15px;
  font-weight: var(--title-weight);
  letter-spacing: -0.02em;
}
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
}

/* ---------------- 牵线网 ---------------- */
.guest-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.guest {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: var(--card-border);
  box-shadow: var(--shadow-card-l);
  background: var(--card-bg);
}
.guest-cover {
  position: relative;
  aspect-ratio: 3 / 3.6;
  border-radius: var(--r-lg);
}
.guest-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(12, 24, 20, 0) 42%, rgba(12, 24, 20, 0.55) 100%);
}
.guest-top {
  position: absolute;
  top: 9px;
  left: 9px;
  right: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}
.guest-online {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(6px);
  color: #12312B;
  font-size: 8.5px;
  font-weight: 800;
}
.guest-online i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2ED3A8;
  box-shadow: 0 0 0 2px rgba(46, 211, 168, 0.24);
}
.guest-fav {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(6px);
  color: #fff;
}
.guest-meta {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 9px;
  z-index: 2;
  color: #fff;
}
.guest-name {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 800;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.guest-name em {
  font-style: normal;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.34);
}
.guest-desc {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.guest-desc span {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  font-size: 9px;
  font-weight: 700;
}
.guest-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 10px 10px;
}
.guest-foot .wave {
  flex: 1;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 10px;
  font-weight: 800;
}
/* ---------------- 消息 ---------------- */
.quick-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.quick {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 4px 11px;
  border-radius: var(--r-md);
  background: var(--card-bg);
  border: var(--card-border);
  box-shadow: var(--shadow-card-l);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-2);
}
.quick .qi {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
}
.qi.t1 { background: #FFEDF2; color: #FF5C7C; }
.qi.t2 { background: #E7F1FF; color: #3B82F6; }
.qi.t3 { background: #FFF4DC; color: #E2A32B; }
.qi.t4 { background: var(--brand-soft); color: var(--brand); }
.quick .n {
  position: absolute;
  top: 7px;
  right: 12px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #FF5C7C;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  box-shadow: 0 0 0 2px var(--card-bg);
}
.chat-list { padding: 2px 14px; }
.chat-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.chat-row:last-child { border-bottom: 0; }
.chat-av-wrap { position: relative; flex: none; }
.chat-badge {
  position: absolute;
  top: -3px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #FF5C7C;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  box-shadow: 0 0 0 2px var(--card-bg);
}
.chat-main { flex: 1; min-width: 0; }
.chat-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.chat-name {
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-time { flex: none; font-size: 9.5px; color: var(--text-3); font-weight: 600; }
.chat-preview {
  margin-top: 3px;
  font-size: 11px;
  color: var(--text-3);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.chat-preview.unread { color: var(--text-2); font-weight: 600; }
.stranger {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  border: var(--card-border);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text);
}
.stranger .txt { flex: 1; }
.service-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 13px 14px;
}
.service-card .si {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--bg-soft);
  color: var(--text-2);
}
.service-card .sc-body { flex: 1; min-width: 0; }
.service-card .sc-title { font-size: 12.5px; font-weight: 800; }
.service-card .sc-desc { margin-top: 2px; font-size: 10px; color: var(--text-3); line-height: 1.5; }

/* ---------------- 我的 ---------------- */
.hero {
  position: relative;
  margin: 0 -16px;
  padding: 4px 16px 0;
  overflow: hidden;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 255, 255, 0.3), transparent 46%),
    linear-gradient(140deg, var(--brand) 8%, var(--brand-deep) 100%);
  color: #fff;
  box-shadow: 0 18px 34px -20px color-mix(in srgb, var(--brand-deep) 70%, transparent);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}
.hero::before { top: -64px; right: -46px; width: 176px; height: 176px; }
.hero::after { bottom: 36px; left: -52px; width: 112px; height: 112px; background: rgba(255, 255, 255, 0.07); }
.hero-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
}
.hero-title { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.hero-nav .icon-btn {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
}
.hero-main {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 8px;
}
.hero-avatar {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #FFD37F, #FF8A5B);
  box-shadow: 0 10px 22px -8px rgba(0, 0, 0, 0.45);
}
.hero-info { flex: 1; min-width: 0; }
.hero-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.hero-name .badge {
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FFE7A3, #F5C14D);
  color: #7A5716;
  font-size: 9px;
  font-weight: 900;
}
.hero-meta {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.84);
}
.hero-id {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.66);
}
.hero-id .copy {
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}
.hero-coin {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 7px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
}
.hero-edit {
  flex: none;
  align-self: flex-start;
  height: 30px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}
.hero-sign {
  position: relative;
  z-index: 2;
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}
.hero-sign em { font-style: normal; color: rgba(255, 255, 255, 0.6); }
.hero-stats {
  position: relative;
  z-index: 2;
  display: flex;
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.hero-stat { flex: 1; padding: 10px 0 13px; text-align: center; }
.hero-stat b { display: block; font-size: 16px; font-weight: 900; line-height: 1.1; }
.hero-stat span { font-size: 9.5px; font-weight: 600; color: rgba(255, 255, 255, 0.72); }

.checkin-card {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 13px;
  padding: 13px;
  border-radius: var(--r-lg);
  background: var(--brand-soft);
  border: var(--card-border);
  box-shadow: var(--shadow-card-l);
}
.checkin-icon {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: var(--btn-shadow);
}
.checkin-body { flex: 1; min-width: 0; }
.checkin-title { font-size: 12.5px; font-weight: 800; color: var(--brand-deep); }
.checkin-days { display: flex; gap: 4px; margin-top: 6px; }
.checkin-days i {
  width: 13px;
  height: 5px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--brand) 22%, transparent);
}
.checkin-days i.on { background: var(--brand); }
.checkin-days i.today { background: var(--accent); }
.checkin-btn {
  flex: none;
  height: 30px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 10.5px;
  font-weight: 800;
  box-shadow: var(--btn-shadow);
}

.grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-top: 12px;
}
.g-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 13px 4px;
  border-radius: var(--r-md);
  background: var(--card-bg);
  border: var(--card-border);
  box-shadow: var(--shadow-card-l);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-2);
}
.g-item .gi {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
}
.gi.g1 { background: var(--brand-soft); color: var(--brand); }
.gi.g2 { background: #FFF4DC; color: #E2A32B; }
.gi.g3 { background: #E7F1FF; color: #3B82F6; }
.gi.g4 { background: #FFEDF2; color: #FF5C7C; }

.menu-card { margin-top: 12px; overflow: hidden; }
.menu-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.menu-item:last-child { border-bottom: 0; }
.menu-item .mi {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text-2);
}
.menu-item .mt { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 700; }
.menu-item .mn { font-size: 10px; font-weight: 600; color: var(--text-3); }
.menu-item .arrow { color: var(--text-3); display: flex; }

/* ---------------- 底部 TabBar ---------------- */
.tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  height: 68px;
  display: flex;
  align-items: center;
  padding: 0 4px;
  background: var(--tab-bg);
  border-top: var(--tab-border);
  box-shadow: var(--tab-shadow);
}
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  font-weight: 700;
  color: var(--text-3);
}
.tab.active { color: var(--brand); }
.tab-center { flex: 1; display: flex; justify-content: center; }
.fab {
  width: 48px;
  height: 48px;
  margin-top: -20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 3px solid var(--bg);
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  box-shadow: var(--btn-shadow);
}
.tab-badge {
  position: absolute;
  top: -4px;
  right: -9px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #FF5C7C;
  color: #fff;
  font-size: 8.5px;
  font-weight: 800;
  box-shadow: 0 0 0 2px var(--card-bg);
}
.tab-icon-wrap { position: relative; display: flex; }

/* ---------------- 总览页 ---------------- */
body.overview { background: #ecefed; }
.overview-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 28px 80px;
}
.overview-head { max-width: 640px; }
.overview-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #7e8d87;
}
.overview-title {
  margin: 12px 0 0;
  font-size: 38px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #0f1b17;
}
.overview-desc {
  margin: 14px 0 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: #5d6b66;
}
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 34px;
}
.theme-card {
  display: block;
  padding: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(18, 33, 29, 0.08);
  box-shadow: 0 10px 24px -14px rgba(18, 33, 29, 0.2);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.theme-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px -18px rgba(18, 33, 29, 0.28);
}
.theme-cover {
  position: relative;
  height: 148px;
  padding: 16px;
  overflow: hidden;
}
.theme-cover::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -70px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.theme-cover .tc-name {
  position: relative;
  z-index: 2;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
.theme-cover .tc-sub {
  position: relative;
  z-index: 2;
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}
.tc-dots {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 6px;
  margin-top: 26px;
}
.tc-dots i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}
.theme-body { padding: 15px 16px 17px; }
.theme-body .tb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.theme-body .tb-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #84938e;
}
.theme-body .tb-open {
  font-size: 11px;
  font-weight: 800;
  color: #12211d;
}
.theme-body .tb-desc {
  margin-top: 8px;
  font-size: 11.5px;
  line-height: 1.6;
  color: #6d7b76;
}
.overview-note {
  margin-top: 34px;
  padding: 18px 20px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(18, 33, 29, 0.08);
  font-size: 12px;
  line-height: 1.8;
  color: #5d6b66;
}
.overview-note b { color: #12211d; }
