:root {
  --bg: #0c1014;
  --bar: #0c1014;
  --line: #262626;
  --text: #f5f5f5;
  --muted: #a8a8a8;
  --card: #121212;
  --chip: #2a2a2a;
  --chip-text: #f5f5f5;
  --chip-on: #f5f5f5;
  --chip-on-text: #111;
  --panel: #111;
  --panel-text: #f5f5f5;
  --surface: #1a1a1a;
  --raised: #262626;
  --ink: #f5f5f5;
  --dim: #8e8e8e;
  --ring: conic-gradient(from 180deg, #f9ce34, #ee2a7b, #6228d7, #f9ce34);
  --ok: #22c55e;
  --max: 470px;
  --font-emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Android Emoji";
  --font-device: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI",
    Roboto, "SamsungOne", "Samsung Sans", "MiSans", "HarmonyOS Sans", "OPPO Sans", "vivo Sans",
    Helvetica, Arial, sans-serif, var(--font-emoji);
  --font: var(--font-device);
  --fs-11: 11px;
  --fs-12: 12px;
  --fs-13: 13px;
  --fs-15: 16px;
  --fs-16: 16px;
  --fs-17: 17px;
  --fs-20: 20px;
  --fs-22: 22px;
  --lh-11: 13px;
  --lh-12: 16px;
  --lh-13: 16px;
  --lh-15: 20px;
  --lh-16: 21px;
  --lh-17: 24px;
  --lh-20: 24px;
  --lh-22: 26px;
  --fw: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
}

html[lang="zh-Hans"] {
  --font: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei UI", "Microsoft YaHei", "MiSans", "HarmonyOS Sans SC", "HarmonyOS Sans",
    "OPPO Sans", "vivo Sans", "SamsungOne", "Noto Sans SC", "Noto Sans CJK SC",
    "Source Han Sans SC", "Droid Sans Fallback", Roboto, "Segoe UI", Helvetica, Arial,
    sans-serif, var(--font-emoji);
}
html[lang="ko"] {
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "SamsungOne", "Samsung Sans", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR",
    Roboto, "Segoe UI", Helvetica, Arial, sans-serif, var(--font-emoji);
}
html[lang="th"] {
  --font: system-ui, -apple-system, BlinkMacSystemFont, Thonburi, "Leelawadee UI", Leelawadee,
    "Noto Sans Thai", Sarabun, Roboto, "Segoe UI", Helvetica, Arial, sans-serif, var(--font-emoji);
}
html[lang="vi"], html[lang="en"] {
  --font: var(--font-device);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; min-height: 100%; min-height: 100svh; background: var(--bg);
  /* clip 不会把滚动容器改掉。hidden 在手机上会让固定的顶栏和底栏跟着页面一起滚走。 */
  overflow-x: hidden;
  overflow-x: clip;
  font-family: var(--font);
  font-size: var(--fs-15);
  font-weight: var(--fw);
  line-height: var(--lh-15);
  letter-spacing: -0.15px;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
img, video {
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
}

#app { min-height: 100vh; min-height: 100svh; }
.shell {
  width: min(var(--max), 100%);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg);
  /* 顶栏、底栏固定后，正文要让出它们的高度，否则第一屏内容会被挡住。 */
  padding-top: calc(108px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  position: relative;
}
/* 返回钮停在原地。这条空条贴在顶栏下面，滚动时也不让开，正文从它下面走，避免滑上去被按钮挡住。 */
body.page-back .shell:not(.chat-shell)::before {
  content: "";
  display: block;
  position: sticky;
  top: calc(108px + env(safe-area-inset-top, 0px));
  height: 72px;
  background: var(--bg);
  z-index: 25;
}

.top {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: min(var(--max), 100%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 4px;
  min-height: calc(100px + env(safe-area-inset-top, 0px));
  height: auto;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 8px 8px;
  background: rgba(12,16,20,.92);
  border-bottom: 1px solid var(--line);
}
.top-title {
  display: block;
  text-align: center;
  color: var(--text);
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: 0;
}
.brand-slot { position: relative; display: flex; justify-content: center; }
.brand-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; background: none; cursor: pointer; color: var(--text); -webkit-text-fill-color: var(--text);
  font: inherit; font-size: 18px; line-height: 24px; font-weight: 700;
}
.brand-caret {
  width: 0; height: 0; margin-top: 3px;
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
}
.brand-pop {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 60;
  min-width: 196px; padding: 6px;
  background: #262626; border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0,0,0,.45);
}
.brand-pop a, .brand-pop button {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 12px; border: 0; border-radius: 10px;
  background: none; color: #fff; -webkit-text-fill-color: #fff;
  font-size: 16px; line-height: 20px; text-align: left; cursor: pointer;
}
.brand-pop svg { width: 22px; height: 22px; flex: 0 0 auto; }
.brand-pop .is-off, .brand-pop .is-off svg {
  color: #8e8e8e; -webkit-text-fill-color: #8e8e8e; cursor: default;
}
.top-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  min-width: 0;
}
.searchwrap {
  display: flex; gap: 8px; align-items: center;
  padding: 8px 14px;
  background: var(--bg);
}
.searchwrap input {
  flex: 1; min-width: 0; width: auto; background: var(--surface); border: 0; border-radius: 10px; padding: 10px 12px;
  font-size: var(--fs-16); line-height: var(--lh-16); letter-spacing: 0;
  color: var(--text); -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
}
.searchwrap input::placeholder {
  color: var(--dim); -webkit-text-fill-color: var(--dim); opacity: 1;
}
.cats {
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.cats button {
  border: 0; background: none; cursor: pointer;
  color: var(--muted); font-size: var(--fs-12); line-height: var(--lh-12);
  font-weight: var(--fw); letter-spacing: 0;
  padding: 10px 3px 9px; white-space: normal;
}
.cats button.on {
  color: var(--text); -webkit-text-fill-color: var(--text); font-weight: var(--fw-semibold);
  box-shadow: inset 0 -2px 0 var(--text);
}
.brand {
  display: flex; align-items: center; gap: 6px;
  flex: 0 0 auto; min-width: 0;
  font-weight: var(--fw-bold);
  font-size: 18px; line-height: 22px; letter-spacing: -0.3px;
  white-space: nowrap;
}
.brand img { width: 26px; height: 26px; border-radius: 8px; object-fit: cover; display: block; }
.brand b { font-weight: var(--fw-bold); }
.lang-slot { position: relative; flex: 0 0 auto; }
.lang-pop {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 50;
  min-width: 112px; padding: 4px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.lang-pop button {
  display: block; width: 100%; border: 0; background: none; cursor: pointer;
  text-align: left; border-radius: 8px; padding: 8px 10px;
  font-size: 14px; line-height: 18px; color: var(--text);
}
.lang-pop button.on, .lang-pop button:active { background: var(--raised); }
.locate-slot { position: relative; flex: 0 0 auto; }
.icon-btn.locate .locate-dot {
  position: absolute; right: 7px; bottom: 7px; z-index: 2; pointer-events: none;
  width: 8px; height: 8px; border-radius: 50%;
  background: #8a8a8a; border: 1.5px solid var(--bg);
}
.icon-btn.locate .locate-dot.on { background: var(--ok); }
.locate-pop {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 50;
  width: min(220px, 68vw);
  padding: 10px 12px;
  text-align: left;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.locate-pop p {
  margin: 0; white-space: normal; user-select: text; -webkit-user-select: text;
  font-size: 14px; line-height: 1.45;
}
.shell.ig-shell { padding-top: calc(52px + env(safe-area-inset-top, 0px)); }
.ig-top {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: min(var(--max), 100%);
  z-index: 30;
  display: flex; align-items: center; gap: 4px;
  min-height: calc(48px + env(safe-area-inset-top, 0px));
  padding: calc(2px + env(safe-area-inset-top, 0px)) 8px 2px;
  background: rgba(12,16,20,.92);
  border-bottom: 1px solid var(--line);
}
.ig-side { width: 40px; flex: 0 0 40px; }
.ig-top .icon-btn { width: 40px; height: 40px; flex: 0 0 40px; }
.ig-top .icon-btn svg { width: 24px; height: 24px; }
.ig-title {
  flex: 1; min-width: 0;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  font-size: 16px; line-height: 22px; font-weight: 700;
}
.ig-title > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ig-search { padding: 8px 16px 4px; }
.ig-search input {
  width: 100%; box-sizing: border-box;
  background: var(--surface); border: 0; border-radius: 10px;
  padding: 9px 12px; font-size: 15px; line-height: 20px;
}
.ig-notes {
  display: flex; gap: 14px; overflow-x: auto; padding: 12px 16px 6px;
  scrollbar-width: none;
}
.ig-notes::-webkit-scrollbar { display: none; }
.ig-notes a { flex: 0 0 74px; width: 74px; text-align: center; color: var(--text); }
.ig-notes img, .ig-notes .act-ph {
  width: 62px; height: 62px; border-radius: 50%; object-fit: cover;
  display: block; margin: 0 auto 6px; background: var(--surface);
}
.ig-notes span {
  display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: 12px; line-height: 16px;
}
.ig-sec {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px 4px; font-size: 16px; line-height: 22px; font-weight: 700;
}
.ig-sec button {
  border: 0; background: none; color: #0095f6; font-weight: 600; font-size: 15px; cursor: pointer;
}
.ig-sec button.on { color: var(--text); }
.thread.ig-thread { align-items: flex-start; padding: 8px 16px; border-bottom: 0; }
.thread.ig-thread img, .thread.ig-thread .act-ph { width: 56px; height: 56px; }
.ig-thread-mid { flex: 1; min-width: 0; padding-top: 6px; }
.ig-thread-mid b { display: block; font-size: 14px; line-height: 18px; font-weight: 600; }
.thread.unread .ig-thread-mid b { font-weight: 700; }
.ig-profile { padding: 0 0 24px; }
.ig-head { display: flex; align-items: center; gap: 28px; padding: 16px 16px 8px; }
.ig-avatar { position: relative; width: 86px; height: 86px; flex: 0 0 86px; }
.ig-avatar img { width: 86px; height: 86px; border-radius: 50%; object-fit: cover; background: var(--surface); }
.ig-avatar .presence-dot { width: 14px; height: 14px; right: 4px; bottom: 4px; }
.ig-stats { flex: 1; display: flex; justify-content: space-around; text-align: center; }
.ig-stats b { display: block; font-size: 16px; line-height: 20px; font-weight: 700; }
.ig-stats span { display: block; margin-top: 2px; font-size: 13px; line-height: 16px; }
.ig-bio { margin: 0; padding: 4px 16px 0; font-size: 14px; line-height: 18px; white-space: pre-wrap; }
.ig-meta { margin: 4px 16px 0; color: var(--muted); font-size: 13px; line-height: 18px; }
.ig-actions { display: flex; gap: 8px; padding: 12px 16px; }
.ig-pill {
  flex: 1; height: 32px; border: 0; border-radius: 8px;
  background: var(--surface); color: var(--text); -webkit-text-fill-color: var(--text);
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.ig-tabs { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.ig-tabs button {
  height: 44px; border: 0; background: none; color: var(--muted);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.ig-tabs button.on { color: var(--text); box-shadow: inset 0 -1px 0 var(--text); }
.ig-tabs svg { width: 24px; height: 24px; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; }
.ig-grid .tile { min-height: 0; }
.ig-cell {
  position: relative; aspect-ratio: 1; overflow: hidden; background: transparent;
  border: 0; padding: 0; display: block; width: 100%;
}
.ig-cell img, .ig-cell video { width: 100%; height: 100%; object-fit: cover; }
.ig-empty { padding: 28px 16px; text-align: center; }
.ig-menu {
  position: absolute; top: calc(100% + 4px); right: 8px; z-index: 40;
  min-width: 196px; padding: 0; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
}
.ig-menu button, .ig-menu a {
  display: block; width: 100%; text-align: left; background: none; border: 0;
  border-bottom: 1px solid var(--line); padding: 14px 16px;
  font-size: 15px; line-height: 20px; color: var(--text); cursor: pointer;
}
.ig-menu button:last-child, .ig-menu a:last-child { border-bottom: 0; }
.ig-menu button.danger { color: #ed4956; }
.ig-menu p { margin: 0; padding: 14px 16px; color: var(--muted); font-size: 14px; }
.ig-about {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
}
.ig-about[hidden], .ig-menu[hidden] { display: none !important; }
.ig-about-card {
  width: min(340px, 100%); max-height: 80vh; overflow: auto;
  background: var(--card); color: var(--text); border-radius: 16px;
  padding: 18px 16px 8px; text-align: center;
}
.ig-about-card h3 { margin: 0 0 12px; font-size: 16px; }
.ig-about-card img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin: 0 auto 8px; }
.ig-about-card .hint { text-align: left; }
.ig-about-row {
  display: flex; align-items: center; gap: 10px; width: 100%;
  text-align: left; background: none; border: 0; border-top: 1px solid var(--line);
  padding: 12px 2px; color: var(--text); font-size: 14px; cursor: pointer;
}
.ig-about-row svg { width: 22px; height: 22px; flex: 0 0 22px; }
.ig-about-row span { flex: 1; }
.ig-about-row b { font-weight: 600; }
.ig-former { text-align: left; padding: 0 8px 8px 34px; }
.ig-former p { margin: 0 0 6px; font-size: 14px; }
.ig-about-card .ghost { width: 100%; margin-top: 4px; }
.care-row {
  display: flex; gap: 12px; overflow-x: auto; padding: 10px 14px 8px;
  border-bottom: 1px solid var(--line); scrollbar-width: none;
}
.care-row::-webkit-scrollbar { display: none; }
.care-person { flex: 0 0 68px; text-align: center; color: var(--text); }
.care-ava {
  position: relative; display: block; width: 56px; height: 56px; margin: 0 auto 4px;
}
.care-person img, .care-person .act-ph {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover; display: block; margin: 0;
  background: var(--surface);
}
.care-ava .presence-dot { width: 12px; height: 12px; right: 0; bottom: 0; }
.care-person b, .care-person small {
  display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: 12px; line-height: 16px; font-weight: 600;
}
.care-person small { color: var(--muted); font-weight: 400; }
.care-empty { margin: 8px 14px; }
.country-switch {
  position: relative;
  flex: 0 0 auto;
  width: 4.6em;
  z-index: 32;
}
.country-btn {
  position: relative;
  display: block;
  width: 4.6em;
  max-width: 4.6em;
  box-sizing: border-box;
  appearance: none; -webkit-appearance: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  font-size: 12px; line-height: 16px; font-weight: var(--fw-semibold);
  padding: 5px 14px 5px 8px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  text-align: left;
}
.country-btn::after {
  content: "";
  position: absolute;
  right: 7px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
}
.country-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 7.5em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px;
  z-index: 40;
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
}
.country-opt {
  display: block;
  width: 100%;
  border: 0; background: none;
  color: var(--text);
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px; line-height: 16px; font-weight: var(--fw-semibold);
}
.country-opt.on, .country-opt:active { background: var(--raised); }
.top-right {
  display: flex; align-items: center; gap: 0;
  flex: 0 0 auto; margin-left: auto;
}
.icon-btn, .ghost, .btn {
  border: 0; cursor: pointer; background: none;
}
.icon-btn {
  position: relative; width: 32px; height: 32px; color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 32px;
}
.icon-btn svg { width: 24px; height: 24px; display: block; }
.top .icon-btn { width: 40px; height: 40px; flex-basis: 40px; }
.top .icon-btn svg { width: 28px; height: 28px; }
.icon-btn .dot {
  position: absolute; top: 5px; right: 5px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #ff3040; border: 1.5px solid #000;
  pointer-events: none;
}
.icon-btn.on { color: var(--text); -webkit-text-fill-color: var(--text); }
.icon-btn.star-on { color: #f5c518; }
.star-btn {
  min-width: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text); -webkit-text-fill-color: var(--text);
}
.star-btn svg { width: 22px; height: 22px; display: block; }
.star-btn.on { color: #f5c518; }
.pill {
  font-size: var(--fs-12); line-height: var(--lh-12); letter-spacing: 0;
  color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px;
}

.stories {
  display: flex; gap: 12px; overflow-x: auto;
  padding: 12px 14px 8px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.stories::-webkit-scrollbar { display: none; }
.story { flex: 0 0 74px; text-align: center; color: var(--text); position: relative; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.story .ring {
  position: relative;
  width: 66px; height: 66px; margin: 0 auto 6px; padding: 2px;
  border-radius: 50%; background: var(--ring);
}
.story.agency .ring { background: linear-gradient(135deg, #f5d76e, #c9a227); }
.story.off .ring { background: #333; }
.story img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 2px solid #000; }
.story span { display: block; font-size: var(--fs-12); line-height: var(--lh-12); letter-spacing: 0; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.presence-dot {
  position: absolute; z-index: 2; pointer-events: none;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--ok); border: 2px solid var(--bg);
}
.story .presence-dot { top: auto; right: 1px; bottom: 1px; }
.tile .badge {
  position: absolute; top: 6px; left: 6px; z-index: 2;
  font-size: var(--fs-11); line-height: var(--lh-11); letter-spacing: 0;
  background: rgba(0,0,0,.7); border-radius: 6px; padding: 2px 6px;
}
.tile.blur img { filter: blur(10px); transform: scale(1.08); }
.tile.blur { background: #1a1a1a; min-height: 140px; }
.tile .lock-cap {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-12); line-height: var(--lh-12); letter-spacing: 0;
  color: #fff; -webkit-text-fill-color: #fff;
  text-shadow: 0 1px 4px #000;
}
.link { color: #0095f6; font-size: var(--fs-15); line-height: var(--lh-15); }

.contacts {
  position: relative; margin: 16px 0 8px; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px; overflow: hidden;
}
.c-head { font-size: var(--fs-13); line-height: var(--lh-13); letter-spacing: 0; color: var(--muted); margin-bottom: 8px; }
.c-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-top: 1px solid var(--line); font-size: var(--fs-15); line-height: var(--lh-15);
}
.c-row span { color: var(--muted); }
.c-row b { font-weight: var(--fw-semibold); word-break: break-all; text-align: right; }
.contacts.locked .c-row b { filter: blur(6px); user-select: none; }
.contacts .lock {
  position: absolute; inset: 0; background: rgba(0,0,0,.72);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: #fff; -webkit-text-fill-color: #fff;
}
.contacts .lock p { margin: 0; }
.story img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 2px solid #000; }
.story span { display: block; font-size: var(--fs-12); line-height: var(--lh-12); letter-spacing: 0; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.explore {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  padding-bottom: 24px;
}
.ad-banner {
  grid-column: 1 / -1;
  position: relative;
  display: block;
  min-height: 112px;
  background: #1a1a1a;
  overflow: hidden;
}
.ad-banner img {
  width: 100%;
  height: 132px;
  object-fit: cover;
  display: block;
}
.ad-banner .ad-tag {
  position: absolute; left: 10px; top: 10px;
  background: rgba(0,0,0,.62); color: #fff;
  font-size: var(--fs-11); line-height: var(--lh-11);
  border-radius: 4px; padding: 3px 6px;
}
.ad-banner .ad-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 12px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,.78));
  font-size: var(--fs-15); line-height: var(--lh-15); font-weight: var(--fw-semibold);
}
.shop-list { padding: 0 0 24px; }
.search-lead {
  margin: 4px 14px 10px;
}
.shop-card {
  display: grid; grid-template-columns: 96px 1fr; gap: 12px;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
  color: inherit;
}
.shop-card img, .shop-ph {
  width: 96px; height: 72px; object-fit: cover; border-radius: 10px; background: #1a1a1a;
}
.shop-card b { display: block; font-size: var(--fs-15); line-height: var(--lh-15); }
.shop-card small { display: block; margin-top: 4px; color: var(--muted); font-size: var(--fs-12); }
.shop-card p { margin: 6px 0 0; color: var(--muted); font-size: var(--fs-13); line-height: var(--lh-13); }
.tile { position: relative; aspect-ratio: 1; background: #111; }
button.tile {
  display: block; width: 100%; border: 0; padding: 0; margin: 0;
  color: inherit; font: inherit; cursor: pointer;
}
.tile.blur { cursor: pointer; }
.tile .lock-cap { pointer-events: none; }
.report-photo {
  display: block;
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--dim);
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile .cap {
  position: absolute; left: 6px; bottom: 6px;
  font-size: var(--fs-12); line-height: var(--lh-12); letter-spacing: 0; font-weight: var(--fw-semibold);
  text-shadow: 0 1px 4px #000;
}

.tabs {
  /* 底栏同样固定，滚动时不用先滑回去才能换页。 */
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(var(--max), 100%);
  height: calc(58px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--bar); border-top: 1px solid var(--line); z-index: 40;
}
.tabs a {
  display: flex; align-items: center; justify-content: center; color: var(--text); -webkit-text-fill-color: var(--text);
}
.tabs a.active { opacity: 1; }
.tabs a:not(.active) { opacity: .55; }
.tabs svg { width: 28px; height: 28px; }
.tab-me { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; display: block; }
.tabs a.active .tab-me { box-shadow: 0 0 0 2px var(--text); }

.searchbar {
  display: flex; gap: 8px; padding: 10px 14px; align-items: center;
}
.hint.empty { padding: 24px 16px; text-align: center; }
.searchbar.geo {
  display: grid; grid-template-columns: 1fr 1fr 42px; gap: 6px;
}
.searchbar.geo select { min-width: 0; font-size: var(--fs-15); line-height: var(--lh-15); letter-spacing: 0; }
.searchbar.geo .locate {
  grid-column: 3; grid-row: 1 / -1;
  width: 100%; min-height: 44px; padding: 0;
  background: var(--surface); border: 0; border-radius: 10px;
  color: var(--text); -webkit-text-fill-color: var(--text); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.searchbar.geo .locate svg { width: 22px; height: 22px; }
.searchbar.geo .locate.on { color: #0095f6; }
.searchbar.geo .locate.busy { opacity: .55; }
.searchbar.geo .locate.busy svg { animation: hfspin .9s linear infinite; }
@keyframes hfspin { to { transform: rotate(360deg); } }
.mapwrap {
  position: relative;
  margin: 0 0 8px;
  border-bottom: 1px solid var(--line);
  background: #0d0d0d;
}
#hfMap {
  width: 100%;
  height: 280px;
}
.map-tools {
  position: absolute; left: 8px; top: 8px; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 52px);
}
.map-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 32px; padding: 0 10px;
  background: rgba(18,18,18,.92); color: #f5f5f5;
  border: 1px solid var(--line); border-radius: 8px;
  font-size: var(--fs-12); line-height: var(--lh-12); font-weight: var(--fw-semibold);
  cursor: pointer; text-decoration: none;
}
.map-btn svg { width: 16px; height: 16px; }
.map-hint {
  margin: 0; padding: 6px 14px 10px;
  color: var(--muted); font-size: var(--fs-11); line-height: var(--lh-11);
}
.map-pin {
  width: 36px; height: 36px; padding: 0; border: 2px solid #fff;
  border-radius: 50%; overflow: hidden; background: #111; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.map-pin img { width: 100%; height: 100%; object-fit: cover; }
.map-pin.agent, .map-pin.shop { border-color: #f5d76e; }
.map-me {
  width: 16px; height: 16px; border-radius: 50%;
  background: #0095f6; border: 2px solid #fff;
  box-shadow: 0 0 0 6px rgba(0,149,246,.25);
}
.maplibregl-popup-content {
  background: #1a1a1a; color: #f5f5f5; border-radius: 12px;
  padding: 10px 12px; box-shadow: 0 8px 24px rgba(0,0,0,.45);
}
.maplibregl-popup-anchor-bottom .maplibregl-popup-tip { border-top-color: #1a1a1a; }
.maplibregl-popup-anchor-top .maplibregl-popup-tip { border-bottom-color: #1a1a1a; }
.maplibregl-ctrl-attrib { font-size: 10px; }
.map-pop { min-width: 132px; }
.map-pop b { display: block; font-size: var(--fs-15); line-height: var(--lh-15); }
.map-pop span { display: block; color: var(--muted); font-size: var(--fs-12); line-height: var(--lh-12); margin: 4px 0 8px; }
.map-pop a { color: #0095f6; font-size: var(--fs-12); font-weight: var(--fw-semibold); margin-right: 8px; }
.lang {
  appearance: none; -webkit-appearance: none;
  display: block;
  width: auto;
  min-width: 4.6em;
  max-width: none;
  box-sizing: border-box;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  font-size: 12px; line-height: 16px; font-weight: var(--fw-semibold);
  padding: 6px 8px;
  text-align: center;
  text-align-last: center;
}
.searchbar input, .searchbar select, .composer input {
  flex: 1; background: var(--surface); color: var(--text); -webkit-text-fill-color: var(--text); border: 0; border-radius: 10px; padding: 10px 12px;
  font-size: var(--fs-16); line-height: var(--lh-16); letter-spacing: 0;
}
.tile .cap small { display: block; font-size: var(--fs-11); line-height: var(--lh-11); opacity: .88; font-weight: var(--fw); }
.hint.coming { color: #f9ce34; }
.apply-form { text-align: left; }
.apply-form label {
  display: block; font-size: var(--fs-12); line-height: var(--lh-12); letter-spacing: 0; color: var(--muted); margin: 12px 0 4px;
}
.apply-form input, .apply-form select {
  width: 100%; background: var(--surface); color: var(--text); -webkit-text-fill-color: var(--text); border: 0; border-radius: 10px; padding: 10px 12px;
  font-size: var(--fs-16); line-height: var(--lh-16); letter-spacing: 0;
}
.apply-form .btn { width: 100%; margin-top: 16px; }
.apply-list { margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 14px 10px; scrollbar-width: none; }
.chip {
  flex: 0 0 auto; border: 1px solid var(--line); background: transparent;
  color: var(--text); border-radius: 8px; padding: 6px 10px; cursor: pointer;
  font-size: var(--fs-13); line-height: var(--lh-13); letter-spacing: 0; font-weight: var(--fw-semibold);
}
.chip.on { background: var(--chip-on); color: var(--chip-on-text); -webkit-text-fill-color: var(--chip-on-text); border-color: var(--chip-on); }
.hash-hints {
  display: flex; flex-wrap: nowrap; gap: 16px;
  overflow-x: auto; padding: 2px 14px 12px;
  background: var(--bg); scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.hash-hints::-webkit-scrollbar { display: none; }
.hash-hint {
  flex: 0 0 auto; background: none; border: 0; padding: 0; margin: 0;
  color: var(--dim); -webkit-text-fill-color: var(--dim); cursor: pointer;
  font-size: var(--fs-13); line-height: var(--lh-13); font-weight: var(--fw);
  white-space: nowrap;
}
.hash-hint.in, .hash-hint:active { color: var(--text); -webkit-text-fill-color: var(--text); }
.s-range { margin: 0 0 10px; }
.s-range-h {
  display: flex; justify-content: space-between; align-items: baseline;
  color: var(--muted); font-size: var(--fs-12); line-height: var(--lh-12);
}
.s-range-h b { color: var(--text); font-weight: var(--fw-semibold); }
.range-wrap { position: relative; height: 28px; margin-top: 2px; }
.range-track, .range-fill {
  position: absolute; left: 0; right: 0; top: 13px; height: 3px;
  border-radius: 99px; background: var(--line); pointer-events: none;
}
.range-fill { right: auto; background: var(--text); }
.range-wrap input[type="range"] {
  position: absolute; left: 0; top: 0; width: 100%; height: 28px; margin: 0;
  background: none; appearance: none; -webkit-appearance: none;
}
.range-wrap.dual input[type="range"] { pointer-events: none; }
.range-wrap:not(.dual) input[type="range"] { pointer-events: auto; }
.range-wrap input[type="range"]::-webkit-slider-runnable-track { height: 3px; background: transparent; }
.range-wrap input[type="range"]::-moz-range-track { height: 3px; background: transparent; }
.range-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--text); border: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,.5);
  margin-top: -7px; cursor: pointer;
}
.range-wrap input[type="range"]::-moz-range-thumb {
  pointer-events: auto; width: 18px; height: 18px; border-radius: 50%;
  background: var(--text); border: 0; cursor: pointer;
}
.sec-h {
  grid-column: 1 / -1;
  margin: 0; padding: 14px 14px 10px; background: var(--bg); color: var(--text);
  font-size: var(--fs-15); line-height: var(--lh-15); font-weight: var(--fw-semibold);
}

.profile { padding: 16px 16px 24px; }
.page-center,
.profile-me,
.apply-head { text-align: center; }
.page-center h1,
.profile-me h1,
.apply-head h1 { margin: 8px 0 0; }
.page-center .hint,
.page-center .auth-switch,
.page-center .legal-box,
.page-center .kicker,
.profile-me .hint,
.profile-me .auth-switch,
.profile-me .legal-box,
.apply-head .hint,
.apply-head .kicker { text-align: center; margin-left: auto; margin-right: auto; }
.page-center .legal-box,
.profile-me .legal-box { max-width: 36ch; text-align: center; }
.profile-me .who {
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.profile-me .who-photo { margin: 0 auto; }
.profile-me .tags { justify-content: center; }
.profile-me .facts { margin-left: auto; margin-right: auto; max-width: 360px; text-align: left; }
.page-center .actions,
.profile-me .actions { max-width: 320px; margin-left: auto; margin-right: auto; }
.actions:has(> :only-child),
.actions-one { grid-template-columns: 1fr; max-width: 240px; margin-left: auto; margin-right: auto; }
.who { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: center; }
.who img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; }
.who h1 { margin: 0; font-size: var(--fs-20); line-height: var(--lh-20); letter-spacing: 0; font-weight: var(--fw-bold); }
.at-id {
  margin-left: 6px;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 500;
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
  letter-spacing: 0;
}
.who p { margin: 6px 0 0; color: var(--muted); font-size: var(--fs-13); line-height: var(--lh-13); letter-spacing: 0; }
.bio { margin: 14px 0; font-size: var(--fs-15); line-height: var(--lh-15); color: var(--text); }
.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.btn, a.btn {
  display: inline-flex; align-items: center; justify-content: center;
  box-sizing: border-box; width: auto; min-height: 32px;
  border: 0; text-decoration: none; cursor: pointer;
  background: #0095f6; color: #fff; border-radius: 8px; padding: 7px 12px;
  font-size: var(--fs-14, 14px); line-height: 18px; letter-spacing: 0; font-weight: var(--fw-semibold);
}
.actions > .btn, .actions > a.btn,
.admin-acts > .btn, .fav-actions > .btn,
.pay-row > .btn, .map-pick > .btn, .map-pick > a.btn, .map-pick-links .btn { width: 100%; }
.map-pick-links { display: flex; flex-direction: column; gap: 8px; }
.btn.gray { background: var(--surface); color: var(--text); -webkit-text-fill-color: var(--text); }
.hint { color: var(--muted); font-size: var(--fs-12); line-height: var(--lh-12); letter-spacing: 0; margin: 10px 0 0; }

.inbox { display: flex; flex-direction: column; min-height: calc(100svh - 134px); }
.inbox-list { min-height: calc(100svh - 134px); }
.thread {
  display: flex; gap: 12px; padding: 12px 14px; align-items: center;
  width: 100%; margin: 0; border: 0; border-bottom: 1px solid var(--line);
  background: transparent; color: inherit; font: inherit; text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.thread:active, .thread.on { background: var(--surface); }
.thread img, .thread .admin-av, .thread .act-ph {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  background: var(--surface); flex-shrink: 0; color: var(--text); -webkit-text-fill-color: var(--text);
}
.thread b { font-size: var(--fs-15); line-height: var(--lh-15); font-weight: var(--fw-semibold); letter-spacing: 0; }
.chat { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.msgs { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 75%; padding: 8px 12px; border-radius: 18px; background: var(--raised); color: var(--ink); -webkit-text-fill-color: var(--ink); font-size: var(--fs-15); line-height: var(--lh-15); }
.bubble.me { margin-left: auto; background: #3797f0; color: #fff; -webkit-text-fill-color: #fff; }
.composer { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }

.plans { display: flex; flex-direction: column; gap: 10px; padding: 8px 14px 24px; }
.partner-offers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px 12px 24px;
}
.partner-offer {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  min-width: 0;
}
.partner-offer.featured { border-color: var(--text); }
.partner-offer h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
}
.partner-offer .offer-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
}
.partner-offer .price {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
}
.partner-offer .btn {
  margin-top: auto;
  width: 100%;
  min-width: 0;
  padding: 8px 4px;
  color: #fff;
  -webkit-text-fill-color: #fff;
}
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.plan.featured { border-color: var(--text); }
.price { font-size: var(--fs-22); line-height: var(--lh-22); letter-spacing: 0; font-weight: var(--fw-bold); margin: 6px 0 10px; }
.price small { font-size: var(--fs-13); line-height: var(--lh-13); letter-spacing: 0; color: var(--muted); font-weight: var(--fw); }
.kicker { color: var(--muted); font-size: var(--fs-12); line-height: var(--lh-12); text-transform: uppercase; letter-spacing: .08em; }
.page { padding: 16px 14px 8px; text-align: center; }
.page h1 { margin: 0 0 8px; font-size: var(--fs-22); line-height: var(--lh-22); letter-spacing: 0; font-weight: var(--fw-bold); }
.page .hint,
.page .auth-switch,
.page .kicker { margin-left: auto; margin-right: auto; }
.page .legal-box { max-width: 36ch; margin-left: auto; margin-right: auto; text-align: center; }
.page .actions { max-width: 320px; margin: 12px auto 0; }
.page > .btn,
.page > a.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 160px; margin: 12px auto 0;
}

.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.6); display: none;
  align-items: flex-end; justify-content: center; z-index: 80;
}
.modal.show { display: flex; }
.dialog {
  width: min(var(--max), 100%); background: var(--surface); color: var(--text); border-radius: 16px 16px 0 0;
  padding: 18px 16px 28px;
}
.pay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.pay-row > .btn[hidden] { display: none !important; }
.pay-row.one { grid-template-columns: 1fr; justify-items: center; }
.pay-row.one > .btn { width: min(240px, 100%); }
.wechat-qr { display: block; width: min(280px, 100%); margin: 12px auto; background: #fff; }
.wechat-actions, .wechat-choices { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 8px 0; }
.wechat-actions .btn, .wechat-choices .btn { width: auto; min-width: 0; padding: 7px 16px; }
.map-pick .btn, .map-pick .ghost { display: flex; width: 100%; justify-content: center; margin-top: 8px; }

.gate {
  position: fixed; inset: 0; background: var(--bg); color: var(--text); z-index: 100;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px;
}
.toast {
  position: fixed; left: 50%; bottom: 76px; transform: translateX(-50%);
  background: #1a1a1a; color: #fff; -webkit-text-fill-color: #fff;
  border: 1px solid #333; padding: 10px 14px; border-radius: 8px;
  display: none; z-index: 90; font-size: var(--fs-13); line-height: var(--lh-13); letter-spacing: 0;
  max-width: min(420px, calc(100vw - 28px)); text-align: left; white-space: normal;
}
.otp-note {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; margin: 8px 0 10px;
  color: var(--panel-text); -webkit-text-fill-color: var(--panel-text); font-size: var(--fs-13); line-height: 1.55;
  text-align: left;
}
.ghost { color: var(--muted); padding: 8px; }
footer.tiny { display: none; }

.apply-head h1 {
  font-size: var(--fs-22); line-height: var(--lh-22); font-weight: var(--fw-bold);
}
.page-center > .btn,
.page-center > a.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 160px; margin: 12px auto 0;
}
.login-dialog h3,
.login-dialog > .hint { text-align: center; }
.plan { text-align: left; }
.fav-tabs { justify-content: center; padding: 4px 14px 10px; }
.fav-list { padding: 0 0 24px; }
.fav-row {
  padding: 12px 14px 14px;
  border-bottom: 1px solid var(--line);
}
.fav-who {
  display: grid; grid-template-columns: 52px 1fr; gap: 12px;
  align-items: center; color: inherit; text-decoration: none;
}
.fav-who img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.fav-who b { display: block; font-size: var(--fs-15); line-height: var(--lh-15); }
.fav-who small { display: block; margin-top: 4px; color: var(--muted); font-size: var(--fs-12); line-height: var(--lh-12); }
.fav-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.fav-face {
  width: 52px; height: 52px; border-radius: 50%;
  overflow: hidden; display: block;
}
.fav-masked .fav-face img {
  width: 100%; height: 100%; border-radius: 0;
  filter: blur(6px); transform: scale(1.22);
}
.fav-masked .fav-actions { grid-template-columns: 1fr; }
.daddy-who {
  display: grid; grid-template-columns: 52px 1fr; gap: 12px;
  align-items: center; margin-bottom: 8px;
}
.daddy-who img, .daddy-who .admin-av {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: #1a1a1a;
}
.daddy-who h2 { margin: 4px 0 0; }
.daddy-note {
  display: block; width: calc(100% - 28px); margin: 0 14px 8px;
  text-align: left; background: var(--panel); color: var(--panel-text); -webkit-text-fill-color: var(--panel-text);
  border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; cursor: pointer;
}

.lab { padding: 16px 14px 32px; }
.lab h1 { margin: 6px 0 8px; font-size: var(--fs-22); line-height: var(--lh-22); letter-spacing: 0; font-weight: var(--fw-bold); }
.lab .card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px; margin: 12px 0;
}
.lab input, .dialog input, .dialog select, .dialog textarea, .profile input, .profile select, .profile textarea, .admin-shell input, .admin-shell select, .admin-shell textarea, .login-page input, .login-page select, .login-page textarea {
  width: 100%; background: var(--field); color: var(--text); -webkit-text-fill-color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; margin: 8px 0;
  font-size: var(--fs-16); line-height: var(--lh-16); letter-spacing: 0;
}
.dialog textarea, .profile textarea, .admin-shell textarea { min-height: 72px; resize: vertical; }
.login-dialog {
  max-height: 100dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.gate-check { min-height: 65px; margin: 8px 0 4px; }
#profileModal { align-items: stretch; }
#profileModal .dialog {
  border-radius: 0;
  min-height: 100dvh;
  max-height: 100dvh;
}
/* 138：进度条下移后，正文仍从进度条下面开始，不会钻进进度条。有返回钮时，外壳里那条 72px 空条已经让过按钮，这里改成 66，避免空出两截。 */
.profile-edit { padding: 138px 16px 36px; }
body.page-back .profile-edit { padding-top: 66px; }
.profile-geo {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.profile-geo #meCountry { grid-column: 1 / -1; }
.live-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-top: 8px;
}
.live-head .field-label { margin: 0; }
.locate-mini {
  width: 36px; height: 36px; border: 0; border-radius: 10px;
  background: var(--surface); color: var(--text); -webkit-text-fill-color: var(--text); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.locate-mini svg { width: 20px; height: 20px; display: block; }
.locate-mini.busy { opacity: .55; }
.locate-mini.busy svg { animation: hfspin .9s linear infinite; }
.birthday-row {
  display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 6px;
}
.lang-row {
  display: grid; grid-template-columns: 1fr minmax(108px, 34%);
  gap: 6px; align-items: start;
}
.lang-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.lang-chips label {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--chip); color: var(--chip-text); -webkit-text-fill-color: var(--chip-text);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 10px; font-size: var(--fs-12); line-height: var(--lh-12); cursor: pointer;
}
.lang-chips label.on { background: var(--chip-on); color: var(--chip-on-text); -webkit-text-fill-color: var(--chip-on-text); border-color: var(--chip-on); }
.lang-chips input { width: 14px; height: 14px; margin: 0; }
.lang-row select { min-width: 0; }
.purpose-group { margin: 10px 0; }
.purpose-group h4 {
  margin: 0 0 6px; color: var(--muted);
  font-size: var(--fs-12); line-height: var(--lh-12); font-weight: var(--fw-semibold);
}
.purpose-list { display: flex; flex-wrap: wrap; gap: 6px; }
.purpose-list label {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--chip); color: var(--chip-text); -webkit-text-fill-color: var(--chip-text);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 10px; font-size: var(--fs-12); line-height: var(--lh-12); cursor: pointer;
}
.purpose-list label.on { background: var(--chip-on); color: var(--chip-on-text); -webkit-text-fill-color: var(--chip-on-text); border-color: var(--chip-on); }
.purpose-list input { width: 14px; height: 14px; margin: 0; }
.purpose-daddy {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 8px 0 4px;
}
.purpose-daddy label {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--chip); color: var(--chip-text); -webkit-text-fill-color: var(--chip-text);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 10px; font-size: var(--fs-12); line-height: var(--lh-12); cursor: pointer;
}
.purpose-daddy label.on { background: var(--chip-on); color: var(--chip-on-text); -webkit-text-fill-color: var(--chip-on-text); border-color: var(--chip-on); }
.purpose-daddy input { width: 14px; height: 14px; margin: 0; }
.purpose-daddy small { color: var(--muted); font-size: var(--fs-12); line-height: var(--lh-12); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; align-items: center; }
.tag-label {
  color: var(--muted);
  font-size: var(--fs-13); line-height: var(--lh-13); font-weight: var(--fw-semibold);
  margin-right: 2px;
}
.tag {
  background: var(--raised); border-radius: 999px; padding: 3px 8px;
  font-size: var(--fs-11); line-height: var(--lh-11); color: var(--ink); -webkit-text-fill-color: var(--ink);
}
.tile-tags {
  position: absolute; left: 6px; top: 6px; right: 6px;
  font-size: 11px; line-height: 13px; font-weight: 600;
  text-shadow: 0 1px 4px #000; color: #fff;
}
.ascii-pass {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  ime-mode: disabled;
}
.login-page {
  width: min(480px, 100%);
  margin: 0 auto;
  padding: 32px 16px 48px;
}
.welcome-home { padding-top: 28px; text-align: center; }
.welcome-home h1 {
  font-size: 28px; line-height: 1.3; margin: 18px 0 8px;
  font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Noto Sans SC", sans-serif;
}
.welcome-stage { position: relative; height: 280px; margin: 8px auto 0; max-width: 340px; }
.welcome-card {
  position: absolute; border-radius: 28px; background-size: cover; background-position: center;
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
}
.welcome-card.back-l {
  width: 150px; height: 210px; left: 8px; top: 36px; transform: rotate(-10deg);
  background-image: url("https://images.unsplash.com/photo-1511632765486-a01980e01a18?auto=format&fit=crop&w=600&q=70");
}
.welcome-card.back-r {
  width: 150px; height: 210px; right: 8px; top: 28px; transform: rotate(9deg);
  background-image: url("https://images.unsplash.com/photo-1521017432531-fbd92d768814?auto=format&fit=crop&w=600&q=70");
}
.welcome-card.front {
  width: 176px; height: 236px; left: 82px; top: 8px;
  background-image: url("https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?auto=format&fit=crop&w=700&q=70");
}
.welcome-dot { position: absolute; font-size: 22px; }
.welcome-dot.heart { left: 18px; top: 18px; color: #ff4d6d; }
.welcome-dot.plane { right: 22px; bottom: 18px; color: #3d9cf0; }
.welcome-line { margin: 0 0 18px; color: var(--muted); font-size: 16px; }
.welcome-start, .welcome-have { display: block; width: 100%; max-width: 420px; margin: 0 auto 10px; border-radius: 12px; min-height: 48px; }
.welcome-home .minor-notice { text-align: left; margin-top: 22px; }
.login-page h1, .ig-mark {
  margin: 8px 0 12px;
  text-align: center;
  font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0;
}
.welcome-home h1 {
  font-size: 28px; line-height: 1.3; margin: 18px 0 8px;
}
.ig-entry { margin: 0 0 16px; text-align: center; font-size: 16px; line-height: 1.6; }
.ig-entry .link { font-size: 16px; font-weight: 600; padding: 0 2px; }
.avatar-pick {
  width: 96px; height: 96px; margin: 8px auto 16px; border-radius: 50%;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: var(--panel); border: 1px solid var(--line); cursor: pointer; position: relative;
}
.avatar-pick img { width: 100%; height: 100%; object-fit: cover; }
.avatar-pick span { font-size: 32px; color: var(--muted); }
.avatar-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.login-page h2 { margin: 0 0 8px; text-align: center; font-size: 20px; }
.minor-notice {
  margin: 8px 0 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.auth-fields { margin-top: 4px; }
.minor-notice p {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
}
.minor-notice p + p { margin-top: 18px; }
.minor-notice .drop {
  font-size: 1.85em;
  font-weight: 700;
  line-height: 1;
  margin-right: 2px;
}
.login-dialog input[type="email"],
.login-page input[type="email"],
.login-dialog input[type="text"],
.login-page input[type="text"],
.admin-shell input[type="text"],
.pass-line {
  height: 44px;
  box-sizing: border-box;
}
.pass-line {
  position: relative;
  margin: 8px 0;
}
.pass-line .ascii-pass {
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 44px 0 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 44px;
  letter-spacing: 0.22em;
  -webkit-text-security: disc;
}
.pass-line .ascii-pass.shown {
  -webkit-text-security: none;
  letter-spacing: 0;
}
.pass-line .ascii-pass::placeholder {
  -webkit-text-security: none;
  letter-spacing: 0;
  font-size: 16px;
}
.pass-eye {
  position: absolute;
  top: 0;
  right: 4px;
  width: 40px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8e8e8e;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
html[data-theme="night"] .pass-eye,
html:not([data-theme="day"]) .pass-eye { color: #a8a8a8; }
.pass-eye svg { width: 24px; height: 24px; display: block; }
.pass-eye .eye-shut { display: none; }
.pass-eye.shown .eye-open { display: none; }
.pass-eye.shown .eye-shut { display: block; }
.lab pre, #labLog {
  background: #111; border-radius: 8px; padding: 10px;
  overflow: auto; font-size: 12px; color: #86efac; white-space: pre-wrap;
}

@media (min-width: 900px) {
  body { background: var(--bg); }
  .shell { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}

.ig-verified {
  display: inline-flex; width: 15px; height: 15px; margin: 0 2px -2px;
  vertical-align: middle;
}
.ig-verified svg { width: 100%; height: 100%; display: block; }
.ig-verified.on-story {
  position: absolute; right: 6px; bottom: 18px; width: 16px; height: 16px;
  margin: 0; background: #000; border-radius: 50%;
}
.ig-verified.on-avatar {
  position: absolute; right: 2px; bottom: 2px; width: 20px; height: 20px;
  margin: 0; background: #000; border-radius: 50%;
}
.who-photo { position: relative; }
.who-photo img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; }
.cap .ig-verified { width: 13px; height: 13px; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 4px; }
.seg .chip { text-align: center; }
.agree {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 10px 0 8px; color: var(--muted);
  font-size: var(--fs-12); line-height: var(--lh-12);
}
.agree input { width: 18px; height: 18px; margin: 1px 0 0; flex: 0 0 auto; }
.legal-box {
  max-height: 200px; overflow: auto;
  white-space: pre-wrap;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; margin: 8px 0;
  color: var(--panel-text); -webkit-text-fill-color: var(--panel-text);
  font-size: var(--fs-12); line-height: 1.55;
  text-align: left;
}
.legal-box.short { max-height: none; }
.gate .legal-box { margin: 0 auto 18px; max-width: 40ch; }
.auth-switch {
  margin: 12px 0 0; color: var(--muted);
  font-size: var(--fs-13); line-height: var(--lh-13); text-align: center;
}
button.link, a.link {
  background: none; border: 0; padding: 0; margin: 0;
  color: var(--text); -webkit-text-fill-color: var(--text); font: inherit; font-weight: var(--fw-semibold);
  cursor: pointer; text-decoration: none;
}
.photo-pick {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; margin: 8px 0 12px; min-height: 120px;
  background: var(--panel); border: 1px dashed var(--line); border-radius: 12px;
  padding: 12px; cursor: pointer; color: var(--panel-text); -webkit-text-fill-color: var(--panel-text);
  font-size: var(--fs-13); line-height: var(--lh-13);
}
.photo-pick img {
  width: 96px; height: 96px; object-fit: cover; border-radius: 12px;
  background: #000;
}
.album-row {
  display: grid;
  grid-template-columns: 1fr 32%;
  gap: 6px;
  align-items: start;
  margin: 8px 0 12px;
}
.album-row .photo-edit { margin: 0; }
.intro-slot-wrap { position: relative; }
.intro-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; width: 100%; aspect-ratio: 3 / 4;
  padding: 8px; border: 1px dashed var(--line); border-radius: 10px;
  background: var(--panel); color: var(--panel-text); -webkit-text-fill-color: var(--panel-text);
  text-align: center; cursor: pointer;
}
.intro-slot svg { width: 28px; height: 28px; flex: 0 0 auto; }
.intro-slot span { font-size: 11px; line-height: 14px; }
.intro-slot.has { padding: 0; overflow: hidden; }
.intro-slot img { width: 100%; height: 100%; object-fit: cover; }
.intro-slot-x {
  position: absolute; top: 4px; right: 4px; z-index: 2;
  width: 24px; height: 24px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.7); color: #fff; -webkit-text-fill-color: #fff;
  cursor: pointer; font-size: 16px; line-height: 24px;
}
.photo-edit {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 8px 0 12px;
}
.photo-edit-cell {
  position: relative;
  aspect-ratio: 3 / 4;
  background: transparent;
  border-radius: 10px;
  overflow: hidden;
}
.photo-edit-cell img,
.photo-edit-cell video,
.photo-edit-img {
  width: 100%; height: 100%;
  object-fit: cover;
  border: 0; padding: 0; background: transparent; color: inherit;
}
.photo-edit-img { display: block; cursor: pointer; }
.photo-edit-cell.add {
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--line);
  background: var(--panel); color: var(--panel-text); -webkit-text-fill-color: var(--panel-text);
  font-size: 28px; cursor: pointer;
}
.photo-edit-cell.add input {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
}
.photo-edit-cell.on { outline: 2px solid var(--text); outline-offset: -2px; }
.photo-edit-del {
  position: absolute; top: 4px; right: 4px; z-index: 2;
  width: 24px; height: 24px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.7); color: #fff; cursor: pointer;
  font-size: 16px; line-height: 24px;
}
.form-h {
  margin: 16px 0 8px; padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-16); line-height: var(--lh-16); font-weight: var(--fw-semibold);
}
.field-label {
  margin: 10px 0 0; color: var(--muted);
  font-size: var(--fs-12); line-height: var(--lh-12);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.income-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
}
.income-head .field-label { margin: 10px 0 0; }
.income-head b { color: var(--text); -webkit-text-fill-color: var(--text); font-size: 16px; line-height: 21px; font-weight: 600; }
.profile .income-split, .admin-shell .income-split {
  display: flex; gap: 8px; align-items: center;
}
.profile .income-split select, .admin-shell .income-split select {
  width: 118px; flex: 0 0 118px;
}
.profile .income-split input, .admin-shell .income-split input {
  width: auto; flex: 1 1 auto; min-width: 0;
}
.gender-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 4px; }
.gender-card {
  display: flex; align-items: center; justify-content: center;
  min-height: 72px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--chip); color: var(--chip-text); -webkit-text-fill-color: var(--chip-text);
  font-size: var(--fs-13); text-align: center;
  width: 100%; font: inherit; cursor: pointer;
}
.gender-card.on { background: var(--chip-on); color: var(--chip-on-text); -webkit-text-fill-color: var(--chip-on-text); border-color: var(--chip-on); }
button.gender-card:disabled { cursor: default; opacity: 1; }
.facts {
  margin: 10px 0 12px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.facts div {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border-bottom: 1px solid var(--line);
  font-size: var(--fs-13); line-height: var(--lh-13);
}
.facts div:last-child { border-bottom: 0; }
.facts span { color: var(--muted); }
.facts b { font-weight: var(--fw-semibold); text-align: right; }
.code-wrap { margin-top: 8px; }
.admin-shell {
  padding-top: calc(52px + env(safe-area-inset-top, 0px));
  padding-bottom: 32px;
}
body.admin-on {
  padding-top: 0;
  padding-bottom: 0;
}
.admin-shell .top {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: calc(52px + env(safe-area-inset-top, 0px));
  height: calc(52px + env(safe-area-inset-top, 0px));
  padding: calc(6px + env(safe-area-inset-top, 0px)) 10px 6px;
}
.admin-tools {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  margin-left: auto;
}
.admin-shell .chips.fav-tabs {
  justify-content: flex-start;
  padding-top: 10px;
}
.admin-list { padding: 0 0 28px; }
.admin-card {
  margin: 0 0 16px;
  background: var(--card);
  overflow: hidden;
  border-bottom: 10px solid var(--bg);
}
.admin-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: #000;
}
.admin-photos img,
.admin-ph {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #1a1a1a;
}
.admin-photos .admin-hero {
  grid-column: 1 / -1;
  aspect-ratio: 3 / 4;
  max-height: 78vh;
}
.admin-body { padding: 14px 14px 18px; }
.admin-st {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--raised);
  color: var(--ink); -webkit-text-fill-color: var(--ink);
  font-size: var(--fs-12);
  line-height: var(--lh-12);
}
.admin-body h2 {
  margin: 8px 0 4px;
  font-size: var(--fs-22);
  line-height: var(--lh-22);
  font-weight: var(--fw-bold);
}
.admin-body > p { margin: 4px 0; color: var(--muted); }
.admin-body .bio { margin: 10px 0; color: var(--text); }
.admin-contact {
  margin: 8px 0 0;
  color: var(--text);
  font-size: var(--fs-13);
  line-height: var(--lh-13);
  word-break: break-all;
}
.admin-mail {
  margin: 16px 0 8px;
  color: var(--muted);
  font-size: var(--fs-12);
  line-height: var(--lh-12);
  word-break: break-all;
}
.admin-acts {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px;
}
.admin-acts .btn { flex: 1 1 calc(50% - 8px); }
.admin-back { display: block; margin: 4px 14px 8px; color: var(--muted); }
.admin-photos img.on { outline: 2px solid #0095f6; outline-offset: -2px; }
.admin-person {
  display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center;
  width: 100%; padding: 10px 14px; border: 0; background: none;
  color: inherit; text-align: left; border-bottom: 1px solid var(--line);
}
.admin-person img, .admin-av {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: #1a1a1a;
}
.admin-person b { display: block; font-size: var(--fs-15); line-height: var(--lh-15); font-weight: var(--fw-semibold); }
.admin-person small { display: block; margin-top: 4px; color: var(--muted); font-size: var(--fs-12); }
.admin-user-meta { margin: 0 14px 8px; }
#adminUserQ { width: calc(100% - 28px); margin: 8px 14px; }
.admin-edit-card .admin-body { padding-bottom: 36px; }
.admin-edit-card .field-label { margin-top: 12px; }
.admin-confirm-list {
  margin: 10px 0 16px;
  padding: 0 0 0 18px;
  max-height: 40vh;
  overflow: auto;
  color: var(--text);
  font-size: var(--fs-13);
  line-height: 1.55;
}
.admin-confirm-list li { margin: 6px 0; }
#adminConfirmModal { z-index: 96; align-items: center; }
#adminConfirmModal .dialog { border-radius: 16px; margin: 16px; }
.admin-chat-title {
  margin: 0 14px 8px; font-size: var(--fs-15); line-height: var(--lh-15); font-weight: var(--fw-semibold);
}
.admin-chat { min-height: 40vh; padding-bottom: 16px; }
.admin-dm {
  display: grid;
  grid-template-columns: 44px auto 44px 1fr;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.admin-dm-face, .admin-msg-who {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; margin: 0; padding: 0; border: 0; background: none;
  color: inherit; font: inherit; cursor: pointer; min-width: 44px;
}
.admin-dm-face img, .admin-dm-face .admin-av,
.admin-msg-who img, .admin-msg-who .admin-av {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #1a1a1a;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #f5f5f5;
}
.admin-av {
  display: flex; align-items: center; justify-content: center;
  background: #1a1a1a; color: #f5f5f5; font-size: 14px; font-weight: 600;
}
.admin-dm-face small, .admin-msg-who small {
  max-width: 52px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--muted); font-size: var(--fs-11); line-height: var(--lh-11);
}
.admin-dm-arrow { color: var(--muted); font-size: 16px; padding: 0 2px; }
.admin-dm-body {
  display: block; width: 100%; margin: 0; padding: 4px 0 4px 6px;
  border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.admin-dm-body b { display: block; font-size: var(--fs-15); line-height: var(--lh-15); font-weight: var(--fw-semibold); }
.admin-dm-body .preview {
  display: block; margin-top: 2px; color: var(--muted);
  font-size: var(--fs-12); line-height: var(--lh-12);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.admin-dm-body .admin-dm-meta {
  display: block; margin-top: 2px; color: #737373;
  font-size: var(--fs-11); line-height: var(--lh-11);
}
.admin-support .admin-chat-head {
  display: flex; align-items: center; gap: 10px; margin: 0 14px 8px;
}
.admin-support .admin-chat-head img, .admin-support .admin-chat-head .admin-av {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #1a1a1a;
}
.admin-support .msgs { min-height: 180px; }
.admin-support .composer { padding: 8px 14px 16px; }
.verify-preview, .admin-verify-player {
  width: 100%; max-height: 46vh; background: #000; border-radius: 12px; margin-top: 8px;
}
.admin-chat-head {
  display: flex; align-items: center; gap: 8px;
  margin: 0 14px 10px; min-width: 0;
}
.admin-chat-head .admin-dm-face { flex-direction: row; gap: 8px; min-width: 0; }
.admin-chat-head .admin-dm-face small {
  max-width: 120px; color: var(--text); font-size: var(--fs-15); line-height: var(--lh-15); font-weight: 600;
}
.admin-msg { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin: 8px 0; }
.admin-msg .bubble {
  background: var(--raised); color: var(--ink); -webkit-text-fill-color: var(--ink); max-width: 88%;
}
.admin-msg .admin-msg-who { flex-direction: row; gap: 8px; }
.admin-msg .admin-msg-who img, .admin-msg .admin-msg-who .admin-av {
  width: 28px; height: 28px; font-size: 12px;
}
.admin-st { margin-right: 6px; }
.admin-log {
  display: grid; grid-template-columns: 1fr auto; gap: 12px;
  padding: 12px 14px; border-bottom: 1px solid var(--line); align-items: start;
}
.admin-log-body b { display: block; margin-top: 4px; font-size: var(--fs-15); line-height: var(--lh-15); }
.admin-log-body small { color: var(--muted); font-size: var(--fs-12); }
.admin-log-body p { margin: 4px 0 0; color: var(--muted); font-size: var(--fs-13); }
.admin-log-thumbs { display: flex; gap: 4px; }
.admin-log-thumbs img {
  width: 72px; height: 72px; object-fit: cover; background: #1a1a1a; border-radius: 8px;
}
.photo-grid { padding-bottom: 8px; background: transparent; gap: 8px; }
.photo-cell { background: transparent; display: flex; flex-direction: column; min-width: 0; }
.photo-cell .tile { aspect-ratio: 1; }
.tile[data-open-photo], .who-photo img[data-open-photo] { cursor: pointer; }
.photo-peek {
  position: fixed; inset: 0; z-index: 95;
  display: none;
  touch-action: none;
  overscroll-behavior: none;
}
.photo-peek.show { display: block; }
.photo-peek-bg {
  position: absolute; inset: 0;
  background: #000;
  opacity: 0;
}
.photo-peek-clip {
  position: absolute; inset: 0;
  overflow: hidden;
}
.photo-peek-clip img {
  position: absolute;
  display: block;
  transform-origin: 50% 50%;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  background: #000;
}
.photo-peek-clip img[hidden] { display: none !important; }
.photo-peek-x,
.photo-peek-more {
  position: absolute;
  top: calc(10px + env(safe-area-inset-top));
  width: 36px; height: 36px;
  border: 0; padding: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-size: 22px; line-height: 36px;
  cursor: pointer;
  opacity: 0;
  z-index: 2;
}
.photo-peek-x { right: 12px; font-size: 28px; }
.photo-peek-more { right: 56px; letter-spacing: 1px; }
.photo-peek-more[hidden], .photo-peek-menu[hidden] { display: none !important; }
.photo-peek-menu {
  position: absolute;
  top: calc(54px + env(safe-area-inset-top));
  right: 12px;
  z-index: 3;
  min-width: 180px;
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
}
.photo-peek-menu button {
  display: block; width: 100%;
  border: 0; background: none; color: #fff; -webkit-text-fill-color: #fff;
  text-align: left; padding: 12px 14px; cursor: pointer;
  font-size: 15px; line-height: 20px;
}
.photo-peek-menu button + button { border-top: 1px solid #333; }
.photo-peek-dots {
  position: absolute;
  left: 0; right: 0;
  bottom: calc(16px + env(safe-area-inset-bottom));
  display: flex; justify-content: center; gap: 6px;
  z-index: 2; pointer-events: none;
}
.photo-peek-dots[hidden] { display: none; }
.photo-peek-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.35);
}
.photo-peek-dots span.on { background: #fff; }
.photo-peek-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 56px; border: 0; padding: 0;
  background: none; color: #fff; font-size: 42px; line-height: 56px;
  text-shadow: 0 0 8px rgba(0,0,0,.7);
  cursor: pointer; z-index: 2;
}
.photo-peek-nav.prev { left: 4px; }
.photo-peek-nav.next { right: 4px; }
.photo-peek-nav[hidden] { display: none; }
body.photo-peeking { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .photo-peek-bg, .photo-peek-clip, .photo-peek-clip img, .photo-peek-x {
    transition: none !important;
  }
}
.like-bar {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 8px 8px 10px; background: var(--bg);
  font-size: var(--fs-12); line-height: var(--lh-12); color: var(--muted);
}
.like-btn, .like-heart {
  background: none; border: 0; padding: 0; margin: 0;
  color: var(--text); -webkit-text-fill-color: var(--text); font-size: 18px; line-height: 1; cursor: pointer;
}
.like-heart { cursor: default; opacity: .85; }
.like-btn.on, .like-heart.on { color: #ed4956; }
.like-count { color: var(--text); -webkit-text-fill-color: var(--text); font-weight: var(--fw-semibold); }
.like-unit { color: var(--muted); }
.like-who-list { max-height: 40vh; overflow: auto; margin: 12px 0; }
.like-who-list div {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
  font-size: var(--fs-15); line-height: var(--lh-15);
}
.like-who-list span { color: var(--muted); font-size: var(--fs-12); line-height: var(--lh-12); }
.act-head h1, .act-page h1 { margin: 0 0 4px; }
.act-list { padding: 4px 0 24px; }
.act-row {
  display: grid; grid-template-columns: 44px 1fr 22px;
  gap: 12px; align-items: center;
  width: 100%; padding: 10px 16px;
  color: inherit; text-align: left;
}
.act-row.new { background: rgba(0, 149, 246, .08); }
.act-row img, .act-ph {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  background: var(--surface); color: var(--text); -webkit-text-fill-color: var(--text);
}
.act-ph { display: flex; align-items: center; justify-content: center; color: var(--text); -webkit-text-fill-color: var(--text); }
.act-ph svg { width: 22px; height: 22px; color: var(--text); -webkit-text-fill-color: var(--text); }
.act-row p { margin: 0; font-size: var(--fs-15); line-height: var(--lh-15); }
.act-row p b { font-weight: var(--fw-semibold); }
.act-row span { display: block; margin-top: 2px; color: var(--muted); font-size: var(--fs-12); line-height: var(--lh-12); }
.act-row svg { width: 18px; height: 18px; color: var(--muted); }
.act-empty {
  padding: 72px 28px; text-align: center; color: var(--muted);
}
.act-empty svg { width: 72px; height: 72px; margin: 0 auto 16px; }
.act-empty p {
  margin: 0 0 8px; color: var(--text);
  font-size: var(--fs-20); line-height: var(--lh-20); font-weight: var(--fw-semibold);
}
.act-empty small { font-size: var(--fs-13); line-height: var(--lh-13); }
.thread-list { border-bottom: 1px solid var(--line); }
.thread .preview {
  color: var(--muted); font-size: var(--fs-12); line-height: var(--lh-12);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.thread.unread b { font-weight: var(--fw-bold); }
body.chat-open {
  position: fixed;
  inset: 0;
  width: 100%;
  overflow: hidden;
}
.shell.chat-shell {
  height: 100svh;
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.chat-top {
  position: relative;
  top: auto; left: auto; transform: none;
  width: auto;
  flex-shrink: 0;
  min-height: calc(48px + env(safe-area-inset-top, 0px));
}
.float-back {
  position: fixed;
  /* 在顶栏下面单独悬着，不进站名那一行，四周留空，避免贴着误触。 */
  z-index: 110;
  top: calc(108px + env(safe-area-inset-top, 0px) + 8px);
  left: max(18px, calc(50% - var(--max) / 2 + 18px));
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
body.chat-open .float-back {
  top: calc(56px + env(safe-area-inset-top, 0px));
}
.float-back svg { width: 22px; height: 22px; }
.chat-who {
  display: flex; align-items: center; gap: 10px;
  min-width: 0; flex: 1; color: inherit;
}
.chat-who img, .chat-who .act-ph {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--surface);
  color: var(--text); -webkit-text-fill-color: var(--text); flex-shrink: 0;
}
.chat-who b {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: var(--fs-15); line-height: var(--lh-15); font-weight: var(--fw-semibold);
}
.inbox-chat {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.inbox.inbox-chat { min-height: 0; }
.inbox-chat .chat { flex: 1; min-height: 0; }
.inbox-chat .msgs {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* 68：返回钮在顶栏下 16px、高 40px，再留 12px。第一条消息从这一行下面开始。 */
  padding-top: 68px;
}
.inbox-chat .composer {
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  background: var(--bg);
  z-index: 21;
  padding: 8px 10px calc(10px + env(safe-area-inset-bottom, 0px));
}
.chat-head {
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  font-size: var(--fs-15); line-height: var(--lh-15); font-weight: var(--fw-semibold);
}
.composer { flex-direction: column; align-items: stretch; gap: 6px; }
.composer-row { display: flex; gap: 8px; width: 100%; align-items: center; }
.composer-row input {
  flex: 1; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: 10px 14px; color: var(--text);
}
.composer-row input::placeholder { color: var(--muted); }
.composer-send {
  flex-shrink: 0; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: none; color: var(--text); display: inline-flex; align-items: center; justify-content: center;
}
.composer-send svg { width: 26px; height: 26px; }
.composer-send.is-loading { opacity: .35; }
.composer-row .btn {
  flex-shrink: 0; border-radius: 22px; padding: 10px 14px; min-width: 64px;
}
.composer-row .btn.is-loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}
.composer-row .btn.is-loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: hfspin .7s linear infinite;
}
.msg-modes {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  padding: 0 2px 2px;
}
.msg-modes.compact { padding: 0; flex-wrap: wrap; }
.msg-mode {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid var(--line); background: transparent;
  border-radius: 999px; padding: 5px 10px;
  font-size: var(--fs-12); line-height: var(--lh-12); color: var(--muted);
}
.msg-modes.compact .msg-mode { padding: 4px 8px; }
.msg-mode svg { width: 12px; height: 12px; }
.msg-mode.on { background: var(--chip-on); color: var(--chip-on-text); -webkit-text-fill-color: var(--chip-on-text); border-color: var(--chip-on); }
.msg-mode.locked { opacity: .42; }
.msg-mode-hint {
  margin: 2px 0 0; flex: 1 0 100%;
  color: var(--muted);
  font-size: var(--fs-12); line-height: var(--lh-12);
}
.bubble { position: relative; }
.bubble .msg-lock { display: inline-flex; margin-right: 6px; vertical-align: -2px; }
.bubble .msg-lock svg { width: 12px; height: 12px; }
.bubble.burned {
  background: transparent; border: 1px dashed var(--line); color: var(--muted);
  text-align: center;
}
.bubble.burned small { display: block; margin-top: 4px; font-size: var(--fs-12); }
.bubble.burn-wait {
  width: 100%; max-width: 75%;
  background: var(--panel); border: 1px solid var(--line);
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--panel-text); -webkit-text-fill-color: var(--panel-text); cursor: pointer;
}
.bubble.burn-wait svg { width: 16px; height: 16px; color: #ed4956; }
.burn-view {
  position: fixed; inset: 0; z-index: 96;
  display: none; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 32px 24px; background: #000;
  text-align: center;
}
.burn-view.show { display: flex; }
.burn-view p {
  margin: 0; max-width: 18em;
  font-size: var(--fs-22); line-height: var(--lh-22); font-weight: var(--fw-semibold);
}
.burn-timer { margin-top: 20px; color: #ed4956; font-size: var(--fs-13); letter-spacing: .08em; }

button.tile, button.story {
  appearance: none; -webkit-appearance: none;
  background: none; border: 0; padding: 0; margin: 0;
  cursor: pointer; font: inherit; color: inherit;
}
button.tile { display: block; width: 100%; text-align: left; overflow: hidden; }
.guest-tease {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  position: relative;
  overflow: hidden;
}
.guest-lock {
  position: absolute; inset: 0; z-index: 4;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 20px 88px;
  background: linear-gradient(to bottom, rgba(0,0,0,.12) 0%, rgba(0,0,0,.72) 38%, rgba(0,0,0,.96) 100%);
}
.guest-lock-solo {
  grid-column: 1 / -1;
  position: relative;
  min-height: 240px;
  background: var(--bg);
}
.guest-lock-card {
  margin-top: 28px;
  max-width: 280px;
  text-align: center;
}
.guest-lock-card h2 {
  margin: 0 0 8px;
  font-size: var(--fs-17);
  line-height: var(--lh-17);
  font-weight: var(--fw-semibold);
}
.guest-lock-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: var(--fs-13);
  line-height: 1.45;
}

.stories-h {
  margin: 0;
  padding: 10px 14px 0;
  font-size: var(--fs-13);
  line-height: var(--lh-13);
  font-weight: var(--fw-semibold);
  color: var(--muted);
}
.feed { padding-bottom: 20px; background: var(--bg); color: var(--text); }
.feed-post { border-bottom: 1px solid var(--line); }
.feed-head {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 8px 12px;
  background: none; border: 0; color: inherit;
}
.feed-who-link {
  display: flex; align-items: center; gap: 10px;
  min-width: 0; flex: 1;
  background: none; border: 0; padding: 0; margin: 0;
  color: inherit; text-align: left; cursor: pointer; font: inherit;
}
a.feed-who-link { color: inherit; }
.feed-ava {
  width: 32px; height: 32px; border-radius: 50%; overflow: visible;
  background: #1a1a1a; flex-shrink: 0; position: relative;
}
.feed-ava .presence-dot { width: 10px; height: 10px; right: -1px; bottom: -1px; }
.who-photo .presence-dot { width: 14px; height: 14px; right: 2px; bottom: 2px; }
.feed-ava img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.feed-who { min-width: 0; flex: 1; }
.feed-who b {
  display: block; font-size: 14px; line-height: 18px;
  font-weight: var(--fw-semibold);
}
.feed-who small {
  display: block; margin-top: 1px; color: var(--muted);
  font-size: var(--fs-12); line-height: var(--lh-12);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.feed-tools { display: flex; align-items: center; gap: 10px; margin-left: 12px; flex: 0 0 auto; }
.feed-more {
  width: 36px; height: 36px; padding: 0; border: 0; background: none;
  color: var(--text); -webkit-text-fill-color: var(--text); cursor: pointer;
}
.feed-more svg { width: 22px; height: 22px; display: block; margin: 0 auto; }
.feed-sheet {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
  background: rgba(0,0,0,.55);
}
.feed-sheet[hidden] { display: none !important; }
.feed-sheet-card {
  width: min(420px, 100%);
  background: #262626; border-radius: 16px; overflow: hidden;
}
.feed-sheet-card button, .feed-sheet-card a {
  display: block; width: 100%;
  padding: 16px 12px;
  border: 0; border-bottom: 1px solid rgba(255,255,255,.1);
  background: none; color: #fff; -webkit-text-fill-color: #fff;
  font-size: 16px; line-height: 22px; text-align: center; cursor: pointer;
}
.feed-sheet-card .danger { color: #ed4956; -webkit-text-fill-color: #ed4956; }
.feed-sheet-card .is-off { color: #737373; -webkit-text-fill-color: #737373; cursor: default; }
.feed-sheet-card button:last-child, .feed-sheet-card a:last-child { border-bottom: 0; }
.feed-follow {
  flex-shrink: 0;
  border: 0; border-radius: 8px;
  padding: 6px 12px;
  background: var(--ink); color: var(--bg); -webkit-text-fill-color: var(--bg);
  font-size: 13px; line-height: 16px; font-weight: var(--fw-semibold);
  cursor: pointer;
}
.feed-follow.on {
  background: var(--raised); color: var(--ink); -webkit-text-fill-color: var(--ink);
}
.feed-album {
  position: relative; width: 100%; aspect-ratio: 3 / 4;
  overflow: hidden; background: #111; touch-action: pan-y;
  cursor: default; user-select: none;
  overscroll-behavior-x: contain;
}
a.feed-album { display: block; color: inherit; cursor: pointer; }
.feed-track { display: flex; width: 100%; height: 100%; will-change: transform; }
.feed-slide { flex: 0 0 100%; width: 100%; height: 100%; }
.feed-slide img {
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none; user-select: none; -webkit-user-drag: none;
}
.feed-idx {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: var(--fs-12); line-height: var(--lh-12);
  border-radius: 999px; padding: 3px 8px;
}
.feed-dots {
  position: absolute; left: 0; right: 0; bottom: 10px; z-index: 2;
  display: flex; justify-content: center; gap: 4px; pointer-events: none;
}
.feed-dots span {
  width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.38);
}
.feed-dots span.on { background: #fff; }
.feed-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.42); color: #fff; z-index: 3;
  font-size: 20px; line-height: 28px; padding: 0; cursor: pointer;
}
.feed-nav.prev { left: 8px; }
.feed-nav.next { right: 8px; }
.like-bar.feed-engage {
  display: block; padding: 0; background: transparent;
}
.feed-bar {
  display: flex; align-items: center; gap: 2px;
  padding: 4px 6px 0;
}
.feed-ico {
  width: 40px; height: 40px; border: 0; background: none; color: var(--text); -webkit-text-fill-color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; cursor: pointer;
}
.feed-ico svg { width: 24px; height: 24px; display: block; }
.feed-ico.on { color: #ed4956; }
.feed-ico.star-btn.on { color: #f5c518; }
.feed-grow { flex: 1; }
.feed-meta {
  margin: 0; padding: 2px 14px 10px;
  font-size: var(--fs-13); line-height: var(--lh-13); color: var(--muted);
}
.feed-ad-tag {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  background: rgba(0,0,0,.62); color: #fff;
  font-size: var(--fs-11); line-height: var(--lh-11);
  border-radius: 4px; padding: 3px 6px;
}
.feed-ad-cap {
  display: block;
  margin: 0; padding: 10px 14px 12px;
  font-size: var(--fs-14, 14px); line-height: var(--lh-15);
}
.feed-post.is-lock .feed-slide img { filter: blur(10px); transform: scale(1.06); }
.feed .guest-tease {
  display: block;
  grid-template-columns: none;
  position: relative;
}
.suggest {
  padding: 12px 0 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.suggest-h {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2px 14px 10px;
}
.suggest-h b { font-size: var(--fs-15); line-height: var(--lh-15); }
.suggest-h a {
  color: #0095f6; font-size: var(--fs-13); line-height: var(--lh-13);
  font-weight: var(--fw-semibold);
}
.suggest-row {
  display: flex; flex-wrap: nowrap; gap: 10px;
  overflow-x: auto; overflow-y: hidden;
  padding: 0 14px 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
}
.suggest-row::-webkit-scrollbar { display: none; }
.suggest-card {
  flex: 0 0 140px; width: 140px; min-width: 140px;
  background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 12px 12px; text-align: center;
}
.suggest-face {
  position: relative;
  display: block; width: 88px; height: 88px; margin: 0 auto;
  padding: 0; border: 0; background: #1a1a1a; border-radius: 50%; overflow: visible;
  cursor: pointer;
}
.suggest-face .presence-dot { width: 14px; height: 14px; right: 2px; bottom: 2px; }
.suggest-face img { width: 88px; height: 88px; object-fit: cover; border-radius: 50%; }
.suggest-name {
  display: block; width: 100%; margin-top: 10px;
  border: 0; background: none; color: inherit; padding: 0; cursor: pointer; font: inherit;
}
.suggest-card b {
  display: block; margin-top: 10px;
  font-size: var(--fs-13); line-height: var(--lh-13);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.suggest-name b { margin-top: 0; }
.suggest-card small {
  display: block; margin: 4px 0 10px; min-height: 16px;
  color: var(--muted); font-size: var(--fs-12); line-height: var(--lh-12);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.suggest-go {
  width: 100%; padding: 7px 8px;
  font-size: var(--fs-13); line-height: var(--lh-13);
}
.ig-file {
  position: fixed; left: -9999px; top: 0;
  width: 1px; height: 1px; opacity: 0;
}
.ig-pop-mask {
  position: fixed; inset: 0; z-index: 70;
  border: 0; padding: 0; margin: 0; background: transparent; cursor: default;
}
.ig-pop {
  position: fixed; z-index: 80;
  min-width: 196px;
  background: var(--raised);
  color: var(--ink);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,.5);
  overflow: hidden;
  padding: 4px 0;
}
.ig-pop[hidden], .ig-pop-mask[hidden] { display: none !important; }
.ig-pop button {
  display: flex; align-items: center; gap: 12px;
  width: 100%; border: 0; background: none;
  color: var(--ink); -webkit-text-fill-color: var(--ink); padding: 12px 16px;
  font-size: 15px; line-height: 20px; text-align: left; cursor: pointer;
}
.ig-pop button + button { border-top: 1px solid var(--line); }
.ig-pop button svg { width: 22px; height: 22px; flex-shrink: 0; }
.ig-pop-pick { min-width: 210px; }

.chips.gender-want {
  padding: 8px 14px 0;
  border: 0;
}
.pin-tag, .tier-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
  letter-spacing: 0;
  vertical-align: middle;
  background: var(--raised);
  color: var(--ink); -webkit-text-fill-color: var(--ink);
}
.tier-tag.gold, .pin-tag {
  background: #c9a227;
  color: #111;
}
.daddy-gate { padding: 24px 16px 40px; }
.sponsor-card .admin-acts { flex-wrap: wrap; }
.feed-cap {
  margin: 0;
  padding: 0 14px 14px;
  font-size: var(--fs-13);
  line-height: 18px;
  color: var(--text); -webkit-text-fill-color: var(--text);
}
.feed-cap b { margin-right: 6px; font-weight: var(--fw-semibold); }

.story-peek {
  position: fixed; inset: 0; z-index: 90;
  background: #000;
  display: flex; align-items: center; justify-content: center;
}
.story-peek[hidden] { display: none !important; }
.story-peek img {
  width: 100%; height: 100%; object-fit: contain; background: #000;
}
.story-peek-bars {
  position: absolute; left: 10px; right: 10px; top: calc(10px + env(safe-area-inset-top));
  display: flex; gap: 4px; z-index: 2;
}
.story-peek-bars span {
  flex: 1; height: 2px; border-radius: 99px; background: rgba(255,255,255,.28);
}
.story-peek-bars span.done, .story-peek-bars span.on { background: #fff; }
.story-peek-meta {
  position: absolute; left: 14px; right: 14px; bottom: calc(56px + env(safe-area-inset-bottom));
  z-index: 2; color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.7);
}
.story-peek-meta b { display: block; font-size: 15px; line-height: 20px; }
.story-peek-meta p { margin: 6px 0 0; font-size: 14px; line-height: 20px; color: #f5f5f5; }
.story-peek-hit {
  position: absolute; top: 0; bottom: 0; width: 42%; border: 0; background: none; z-index: 3;
}
.story-peek-hit.left { left: 0; }
.story-peek-hit.right { right: 0; }
.story-peek-x {
  position: absolute; top: calc(22px + env(safe-area-inset-top)); right: 10px; z-index: 4;
  width: 36px; height: 36px; border: 0; background: none; color: #fff;
  font-size: 28px; line-height: 36px; cursor: pointer;
}
.story-peek-go {
  position: absolute; left: 14px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 4;
  color: #fff; border: 1px solid rgba(255,255,255,.45); border-radius: 8px;
  padding: 8px 12px; font-size: 13px; line-height: 16px;
}
.partner-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin: 0 14px 10px;
  text-align: left;
}
#verifyPreview, video[data-admin-video-box] {
  width: 100%;
  max-height: 420px;
  margin: 0;
  background: #000;
  border-radius: 12px;
}
.sugar-banner {
  margin: 0;
  padding: 18px 16px;
  text-align: center;
  background: #1a1408;
  color: #e4c36a;
  -webkit-text-fill-color: #e4c36a;
  font-size: 28px;
  line-height: 1.35;
  font-weight: 700;
}
.sugar-banner em {
  margin-left: 8px;
  font-style: italic;
  font-weight: 500;
  font-family: "Savoye LET", "Snell Roundhand", "Segoe Script", "Apple Chancery", cursive;
  font-size: 1.25em;
  letter-spacing: 0.02em;
}
.sugar-fee {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 0;
  color: #c9a227;
  -webkit-text-fill-color: #c9a227;
  font-size: 14px;
}
.sugar-support {
  color: #e4c36a;
  -webkit-text-fill-color: #e4c36a;
  width: 28px;
  height: 28px;
}
.sugar-support svg { width: 22px; height: 22px; }
.verify-stage {
  position: relative;
  margin: 8px 0;
  aspect-ratio: 3 / 4;
  max-height: 460px;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
}
.verify-stage #verifyPreview {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  border-radius: 0;
  transform: scaleX(-1);
}
.verify-mask {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.verify-mask[hidden] { display: none; }
.verify-mask svg { width: 100%; height: 100%; display: block; }
.verify-prompt {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 88px;
  margin: 0;
  text-align: center;
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-size: 16px;
  font-weight: 650;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.verify-rec {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 4px solid #fff;
  background: #e11d48;
  padding: 0;
  cursor: pointer;
}
.verify-rec[hidden] { display: none; }
.verify-time {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 36px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}
.verify-time[hidden] { display: none; }
.partner-guide .partner-name {
  margin: 8px 0 22px;
  text-align: center;
  font-size: 30px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
}
.partner-ad { margin: 0 0 18px; text-align: left; }
.partner-ad h2 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 700;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
}
.partner-ad p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
}
.partner-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 18px; }
.partner-card .hint { margin-top: 8px; }
.partner-preview { margin-top: 10px; }
.partner-row {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.partner-row.featured b { color: #f9ce34; }
.partner-cta { padding: 8px 14px 24px; display: flex; flex-direction: column; gap: 8px; }
.street-note { margin: 4px 0 12px; }
.apply-preview, [data-apply-preview] { margin-top: 18px; }
.shop-face { margin: 0 0 28px; }
.shop-face h1 { margin: 0 0 6px; font-size: 22px; line-height: 1.3; }
.shop-where, .shop-street {
  margin: 0 0 6px;
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.shop-banners { margin: 12px 0 4px; }
.shop-banner {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 0 10px;
  background: var(--panel);
}
.shop-banner-home { aspect-ratio: 1080 / 1440; }
.shop-banner-search { aspect-ratio: 1080 / 304; }
.moments { margin: 18px 0 8px; }
.moments h2 { margin: 0 0 10px; font-size: 18px; }
.moment-compose {
  margin: 0 0 14px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
}
.moment-compose textarea {
  width: 100%; min-height: 88px; border: 0; resize: vertical; background: transparent; color: var(--text);
}
.fb-previews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 8px; }
.fb-previews img, .fb-previews video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #111; }
.fb-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.fb-pick { position: relative; display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 8px; background: var(--surface); color: var(--text); font-size: 14px; }
.fb-pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.moment { margin: 0 0 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.moment header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.moment header b { font-size: 15px; }
.moment time { display: block; color: var(--muted); font-size: 12px; }
.moment > p { margin: 8px 0; font-size: 15px; line-height: 1.5; white-space: pre-wrap; }
.moment-grid { display: grid; gap: 3px; margin-top: 8px; }
.moment-grid.n1 { grid-template-columns: 1fr; }
.moment-grid.n2, .moment-grid.n4 { grid-template-columns: 1fr 1fr; }
.moment-grid.n3 { grid-template-columns: 1.4fr 1fr; }
.moment-grid.n3 .moment-cell:first-child { grid-row: span 2; }
.moment-cell { position: relative; background: #111; min-height: 120px; overflow: hidden; }
.moment-cell img, .moment-cell video { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; display: block; }
.moment-grid.n1 .moment-cell img, .moment-grid.n1 .moment-cell video { aspect-ratio: 4 / 5; }
.moment-more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.45); color: #fff; font-size: 28px; font-weight: 700; }
.moment-lock { margin-top: 8px; padding: 28px 12px; text-align: center; background: var(--panel); color: var(--muted); border-radius: 8px; }
.moment-like { margin-top: 8px; border: 0; background: transparent; color: var(--text); font-size: 14px; }
.moment-like.on { color: #e11d48; }
.moment-place { margin: 0 0 8px; color: var(--muted); -webkit-text-fill-color: var(--muted); font-size: 13px; line-height: 18px; }
.shot-board { margin: 12px 0 8px; }
.shot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.shot-cell, .shot-empty {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #111;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
}
.shot-cell img, .shot-cell video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.shot-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  background: transparent;
  border: 1px dashed var(--line);
  text-align: center;
  cursor: pointer;
}
.shot-empty svg { width: 36px; height: 36px; }
.shot-empty-text { font-size: 13px; line-height: 18px; }
.shot-empty-btn {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  background: #0095f6;
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
}
.shot-composer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  justify-content: center;
  align-items: stretch;
  height: 100%;
  height: 100dvh;
  background: rgba(0, 0, 0, .72);
}
.shot-composer[hidden] { display: none !important; }
.shot-phone {
  width: 100%;
  max-width: 440px;
  height: 100%;
  max-height: 100dvh;
  background: #0c1014;
  color: #fff;
  -webkit-text-fill-color: #fff;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.shot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 4px;
  flex: 0 0 auto;
}
.shot-top b { font-size: 16px; font-weight: 600; }
.shot-x, .shot-go {
  min-width: 64px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-size: 16px;
}
.shot-x { font-size: 28px; line-height: 1; }
.shot-go { color: #4c9aff; -webkit-text-fill-color: #4c9aff; font-weight: 600; text-align: right; }
.shot-go:disabled { opacity: .45; }
.shot-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  flex: 0 0 auto;
  background: #000;
  overflow: hidden;
  touch-action: none;
}
.shot-stage[hidden], .shot-tabs[hidden], .shot-filters[hidden], .shot-share[hidden] { display: none !important; }
.shot-stage canvas { width: 100%; height: 100%; display: block; }
.shot-thirds {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, transparent 33.33%, rgba(255,255,255,.55) 33.33%, rgba(255,255,255,.55) calc(33.33% + 1px), transparent calc(33.33% + 1px)),
    linear-gradient(to right, transparent 66.66%, rgba(255,255,255,.55) 66.66%, rgba(255,255,255,.55) calc(66.66% + 1px), transparent calc(66.66% + 1px)),
    linear-gradient(to bottom, transparent 33.33%, rgba(255,255,255,.55) 33.33%, rgba(255,255,255,.55) calc(33.33% + 1px), transparent calc(33.33% + 1px)),
    linear-gradient(to bottom, transparent 66.66%, rgba(255,255,255,.55) 66.66%, rgba(255,255,255,.55) calc(66.66% + 1px), transparent calc(66.66% + 1px));
}
.shot-tool {
  position: absolute;
  bottom: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: #fff;
  -webkit-text-fill-color: #fff;
}
.shot-tool.fit { left: 12px; }
.shot-tool.turn { right: 12px; }
.shot-tool svg { width: 22px; height: 22px; display: block; margin: 0 auto; }
.shot-filters {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 12px 4px;
  flex: 0 0 auto;
}
.shot-filter {
  flex: 0 0 auto;
  width: 72px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-size: 11px;
  line-height: 16px;
}
.shot-filter i {
  display: block;
  width: 72px;
  height: 72px;
  margin-bottom: 4px;
  border-radius: 4px;
  background: #222 center / cover no-repeat;
  border: 2px solid transparent;
}
.shot-filter.on i { border-color: #fff; }
.shot-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 0 0 auto;
  border-top: 1px solid rgba(255,255,255,.15);
}
.shot-tabs button {
  height: 44px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.5);
  -webkit-text-fill-color: rgba(255,255,255,.5);
  font-size: 15px;
}
.shot-tabs button.on {
  color: #fff;
  -webkit-text-fill-color: #fff;
  box-shadow: inset 0 -2px 0 #fff;
}
.shot-share { flex: 0 0 auto; }
.shot-share-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; }
.shot-ava { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #222; flex: 0 0 auto; }
.shot-share-row textarea {
  flex: 1;
  min-height: 72px;
  border: 0;
  resize: none;
  background: transparent;
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-size: 16px;
  line-height: 22px;
}
.shot-composer input, .shot-composer textarea { font-size: 16px; }
.shot-thumb { width: 56px; height: 70px; border-radius: 6px; object-fit: cover; background: #222; flex: 0 0 auto; }
.shot-place {
  display: block;
  margin: 0;
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-size: 15px;
}
.shot-place span { display: block; margin-bottom: 8px; }
.shot-place input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: #1c2228;
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-size: 15px;
}
.moment-file { display: none; }
.shop-contacts { margin: 12px 0 8px; }
.shop-phone { display: flex; justify-content: center; margin: 0 0 12px; }
.shop-phone a, .shop-phone span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18ch; max-width: 100%;
  padding: 10px 18px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--card);
  color: var(--text); -webkit-text-fill-color: var(--text);
  font-size: 16px; line-height: 22px; letter-spacing: 0;
}
.shop-chan { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.shop-ico { width: 32px; height: 32px; flex: 0 0 32px; }
.shop-ico svg { width: 32px; height: 32px; display: block; }
.shop-id {
  flex: 1; min-width: 0; height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--card);
  color: var(--text); -webkit-text-fill-color: var(--text);
  line-height: 32px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.shop-qr, .shop-qr-empty {
  width: 32px; height: 32px; flex: 0 0 32px; margin-left: 4px;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--card);
  color: var(--muted); -webkit-text-fill-color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  padding: 0; overflow: hidden;
}
.shop-qr { cursor: pointer; }
.shop-qr img { width: 100%; height: 100%; object-fit: cover; display: block; }
.apply-chan { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.apply-chan input:not([type="file"]) { width: auto; flex: 1; min-width: 0; margin: 0; }
.apply-form label.shop-qr-pick,
.shop-qr-pick {
  position: relative; width: 32px; height: 32px; flex: 0 0 32px; margin: 0 0 0 4px;
  border: 1px dashed var(--line); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); -webkit-text-fill-color: var(--muted);
  font-size: 18px; line-height: 1;
  cursor: pointer; overflow: hidden;
}
.shop-qr-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.shop-qr-pick img { display: none; width: 100%; height: 100%; object-fit: cover; }
.shop-qr-pick.has-file span { display: none; }
.shop-qr-pick.has-file img { display: block; }
.apply-form label.ad-drop,
.ad-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 0 0 14px;
  padding: 12px;
  overflow: hidden;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--panel);
  cursor: pointer;
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
}
.ad-drop-home { aspect-ratio: 1080 / 1440; }
.ad-drop-search { aspect-ratio: 1080 / 304; }
.ad-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.ad-plus {
  display: block;
  font-size: 36px;
  line-height: 1;
  font-weight: 400;
  text-align: center;
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
}
.ad-drop-note {
  display: block;
  width: 100%;
  max-width: 34ch;
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.ad-drop-search .ad-drop-note { font-size: 11px; line-height: 1.35; }
.ad-drop.has-file { padding: 0; }
.ad-drop.has-file .ad-plus,
.ad-drop.has-file .ad-drop-note { display: none; }
.ad-drop img { display: none; }
.ad-drop.has-file img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.filter-sheet { padding: 4px 14px 12px; }
.range-dual { display: grid; gap: 6px; }
.profile-meter {
  position: fixed; z-index: 40; top: 12px; left: 50%; transform: translateX(-50%);
  width: min(calc(var(--max) - 20px), calc(100% - 20px));
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 12px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
/* 返回钮在顶栏下 16px、高 40px。进度条再隔 12px，避免和半透明返回钮叠在一起。 */
.profile-edit .profile-meter { top: calc(108px + env(safe-area-inset-top, 0px) + 56px); }
.profile-meter-track { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.profile-meter-track span { display: block; height: 100%; width: 0; background: var(--text); border-radius: 99px; }
.profile-meter p { margin: 8px 0 0; color: var(--text); -webkit-text-fill-color: var(--text); font-size: 14px; line-height: 18px; }
#profileModal .dialog { padding-top: 86px; }
.msg-bubble {
  position: fixed; z-index: 70; left: 12px; right: 12px; bottom: 78px;
  border: 0; border-radius: 14px; background: var(--raised); color: var(--ink); -webkit-text-fill-color: var(--ink);
  text-align: left; padding: 12px 14px;
}
.msg-tr { border: 0; background: none; color: var(--dim); font-size: 12px; padding: 0 0 0 8px; cursor: pointer; }
.msg-read, .msg-auto { display: block; color: var(--dim); font-size: 11px; }
.help-btn { margin-left: 4px; }
.faq { text-align: left; margin: 14px 0; }
.faq p { color: var(--muted); margin: 4px 0 0; }
.renew-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 10px 14px; border: 0; background: none; color: inherit; text-align: left; }
.country-coming { text-align: center; padding: 8px 14px 0; }
.intro-wrap { position: relative; margin: 12px 0; background: #000; border-radius: 12px; overflow: hidden; }
.intro-video { width: 100%; max-height: 70vh; background: #000; display: block; }
.intro-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  border: 0; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff;
  -webkit-text-fill-color: #fff; padding: 10px 16px; cursor: pointer;
}
.intro-preview { width: 100%; max-height: 240px; background: #000; border-radius: 12px; margin: 8px 0; }
.intro-edit { margin-top: 12px; }

/* 白天：只改页面底色和字。大图、故事仍用黑底。未手动选择时跟手机系统。 */
html[data-theme="day"] {
  color-scheme: light;
  --bg: #fff;
  --bar: #fff;
  --line: #dbdbdb;
  --text: #111;
  --muted: #737373;
  --card: #fafafa;
  --field: #efefef;
  --chip: #efefef;
  --chip-text: #111;
  --chip-on: #111;
  --chip-on-text: #fff;
  --panel: #fff;
  --panel-text: #111;
  --surface: #efefef;
  --raised: #e8e8e8;
  --ink: #111;
  --dim: #737373;
}
html[data-theme="day"] .top,
html[data-theme="day"] .ig-top {
  background: rgba(255, 255, 255, .94);
}
html[data-theme="day"] .tabs,
html[data-theme="day"] .searchwrap,
html[data-theme="day"] .cats,
html[data-theme="day"] .feed,
html[data-theme="day"] .hash-hints,
html[data-theme="day"] .photo-cell,
html[data-theme="day"] .like-bar,
html[data-theme="day"] .page,
html[data-theme="day"] main.profile,
html[data-theme="day"] .inbox,
html[data-theme="day"] .inbox-chat .composer,
html[data-theme="day"] .thread-list {
  background: var(--bg);
  color: var(--text);
}
html[data-theme="day"] .country-btn,
html[data-theme="day"] .country-menu,
html[data-theme="day"] .dialog,
html[data-theme="day"] .bubble,
html[data-theme="day"] .bubble.me {
  background: var(--field);
  color: var(--text);
  -webkit-text-fill-color: var(--text);
}
html[data-theme="day"] input,
html[data-theme="day"] select,
html[data-theme="day"] textarea,
html[data-theme="day"] .searchwrap input,
html[data-theme="day"] .apply-form input,
html[data-theme="day"] .apply-form select,
html[data-theme="day"] .searchbar input,
html[data-theme="day"] .searchbar select,
html[data-theme="day"] .composer input,
html[data-theme="day"] .composer-row input {
  background: var(--field);
  color: var(--text);
  -webkit-text-fill-color: var(--text);
}
html[data-theme="day"] .searchwrap input::placeholder,
html[data-theme="day"] .composer-row input::placeholder {
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
}
html[data-theme="day"] .bio,
html[data-theme="day"] .shop-card p,
html[data-theme="day"] .income-head b,
html[data-theme="day"] .feed-cap,
html[data-theme="day"] .admin-confirm-list,
html[data-theme="day"] .admin-body .bio,
html[data-theme="day"] button.link,
html[data-theme="day"] a.link {
  color: var(--text);
  -webkit-text-fill-color: var(--text);
}
/* 深色按钮不能继承弹窗的黑字，否则高德、Kakao 这类按钮会黑字叠深灰。 */
html[data-theme="day"] .btn:not(.gray),
html[data-theme="day"] a.btn:not(.gray) {
  color: #fff;
  -webkit-text-fill-color: #fff;
}
html[data-theme="day"] .ghost {
  background: transparent;
  color: #111;
  -webkit-text-fill-color: #111;
}
html[data-theme="day"] .tier-tag.gold,
html[data-theme="day"] .pin-tag {
  color: #111;
  -webkit-text-fill-color: #111;
}
html[data-theme="day"] .chip.on {
  background: var(--chip-on);
  color: var(--chip-on-text);
  -webkit-text-fill-color: var(--chip-on-text);
  border-color: var(--chip-on);
}
html[data-theme="day"] .float-back {
  background: rgba(0, 0, 0, .45);
  border-color: rgba(255, 255, 255, .35);
}
/* 这些字原来写死成浅色，白天底改白之后会贴在一起。 */
html[data-theme="day"] .tabs a,
html[data-theme="day"] .like-btn,
html[data-theme="day"] .like-heart,
html[data-theme="day"] .like-count,
html[data-theme="day"] .feed-ico,
html[data-theme="day"] .icon-btn,
html[data-theme="day"] .icon-btn.on,
html[data-theme="day"] .report-photo {
  color: var(--text);
  -webkit-text-fill-color: var(--text);
}
html[data-theme="day"] .like-btn.on,
html[data-theme="day"] .like-heart.on,
html[data-theme="day"] .feed-ico.on {
  color: #ed4956;
  -webkit-text-fill-color: #ed4956;
}
html[data-theme="day"] .icon-btn.star-on,
html[data-theme="day"] .feed-ico.star-btn.on {
  color: #c9a227;
  -webkit-text-fill-color: #c9a227;
}
html[data-theme="day"] .partner-row.featured b,
html[data-theme="day"] .hint.coming {
  color: #7a4e00;
  -webkit-text-fill-color: #7a4e00;
}
html[data-theme="day"] .toast {
  background: #111;
  color: #fff;
  -webkit-text-fill-color: #fff;
  border-color: #111;
}
/* 这些块的底色写死成黑夜的黑，字却跟着白天变成深灰或黑。注册须知就是灰字叠黑底。 */
html[data-theme="day"] .daddy-note,
html[data-theme="day"] .suggest,
html[data-theme="day"] .suggest-card,
html[data-theme="day"] .bubble.burn-wait {
  background: var(--panel);
  color: var(--panel-text);
  -webkit-text-fill-color: var(--panel-text);
}
html[data-theme="day"] .daddy-note,
html[data-theme="day"] .suggest-card {
  border-color: var(--line);
}
html[data-theme="day"] .suggest-card small {
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
}
/* 压在照片、黑遮罩、全屏查看上的字。白天页面变成黑字后，这些字仍要白字配黑底，底和字写在一起。 */
html[data-theme="day"] .tile .cap,
html[data-theme="day"] .tile-tags,
html[data-theme="day"] .tile .lock-cap,
html[data-theme="day"] .ad-banner .ad-cap,
html[data-theme="day"] .ad-banner .ad-tag,
html[data-theme="day"] .feed-idx,
html[data-theme="day"] .feed-nav,
html[data-theme="day"] .feed-ad-tag,
html[data-theme="day"] .guest-lock,
html[data-theme="day"] .guest-lock-card,
html[data-theme="day"] .guest-lock-card h2,
html[data-theme="day"] .guest-lock-card p,
html[data-theme="day"] .contacts .lock,
html[data-theme="day"] .photo-peek-x,
html[data-theme="day"] .photo-peek-more,
html[data-theme="day"] .photo-peek-menu,
html[data-theme="day"] .photo-peek-menu button,
html[data-theme="day"] .photo-peek-nav,
html[data-theme="day"] .story-peek-meta,
html[data-theme="day"] .story-peek-meta b,
html[data-theme="day"] .story-peek-meta p,
html[data-theme="day"] .story-peek-x,
html[data-theme="day"] .story-peek-go,
html[data-theme="day"] .intro-slot-x,
html[data-theme="day"] .toast,
html[data-theme="day"] .msg-bubble,
html[data-theme="day"] .float-back {
  color: #fff;
  -webkit-text-fill-color: #fff;
}
/* 手机仍是一列。宽窗口只加列，不让原图把格子撑开。 */
@media (min-width: 960px) {
  :root { --max: 960px; }
  .feed {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .feed > * { min-width: 0; max-width: 100%; }
  .feed > .suggest,
  .feed > .feed-ad,
  .feed > .guest-tease,
  .feed > .guest-lock {
    grid-column: 1 / -1;
  }
  .feed-post { border-right: 1px solid var(--line); overflow: hidden; }
  .feed-album { max-height: 520px; }
  .feed-slide,
  .feed-slide img { min-width: 0; max-width: 100%; }
  .explore { grid-template-columns: repeat(6, 1fr); }
  .explore > * { min-width: 0; }
}
@media (min-width: 1280px) {
  :root { --max: 1200px; }
  .feed { grid-template-columns: 1fr 1fr 1fr; }
  .explore { grid-template-columns: repeat(6, 1fr); }
}

.front-page { padding: 28px 18px 64px; text-align: center; }
.front-logo img {
  width: 76px; height: 76px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px #e85aa0, 0 0 0 9px #7b5cff;
}
.front-page h1 { margin: 14px 0 4px; font-size: 28px; line-height: 1.25; }
.front-en { margin: 0; letter-spacing: .14em; font-size: 11px; color: var(--muted); }
.front-search { margin: 18px auto 0; max-width: 420px; }
.front-search input {
  width: 100%; box-sizing: border-box; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  padding: 12px 16px; font-size: 16px;
}
.front-auth { display: flex; gap: 10px; justify-content: center; margin: 14px 0; }
.front-auth .btn { min-width: 108px; border-radius: 999px; }
.front-link { color: var(--text); font-size: 14px; }
.front-cats {
  display: flex; gap: 16px; justify-content: flex-start; overflow-x: auto;
  padding: 8px 2px 16px; margin: 0 auto; max-width: 520px;
}
.front-cat {
  flex: 0 0 72px; width: 72px; height: 72px; border-radius: 50%; border: 0;
  background: var(--chip); color: var(--chip-text); font-size: 12px; line-height: 1.2;
}
.front-cat.on { background: #e85aa0; color: #fff; }
.front-hero {
  text-align: left; margin: 8px auto 22px; max-width: 520px;
  padding: 22px 18px; border-radius: 22px;
  background: #241428; color: #fff;
}
.front-hero h2 { margin: 0 0 8px; font-size: 20px; }
.front-hero p { margin: 0 0 16px; color: #d8d0de; font-size: 14px; line-height: 1.5; }
.front-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.front-actions .btn { border-radius: 999px; }
.front-shops { text-align: left; max-width: 520px; margin: 0 auto; }
.front-shops h2 { margin: 0 0 10px; font-size: 18px; }
