/* ============================================================
   同频 · AI 社交社区
   深色为主，青紫渐变点缀；手机优先，桌面居中
   ============================================================ */
:root {
  --bg: #0b1114;
  --bg-2: #0f171b;
  --card: #131d21;
  --card-2: #1a262b;
  --line: rgba(203, 235, 230, .075);
  --line-2: rgba(203, 235, 230, .15);
  --tx: #e6efee;
  --tx-2: #94a8a8;
  --tx-3: #5a6c6c;
  --accent: #7ac8bb;
  --accent-2: #8badd2;
  --accent-soft: rgba(122, 200, 187, .13);
  --danger: #ff6b6b;
  --r: 16px;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --ease: cubic-bezier(.22, .8, .3, 1);
}

html[data-theme="light"] {
  --bg: #f7faf8;
  --bg-2: #edf4f1;
  --card: #ffffff;
  --card-2: #eff6f3;
  --line: rgba(14, 40, 38, .08);
  --line-2: rgba(14, 40, 38, .15);
  --tx: #11201e;
  --tx-2: #556a67;
  --tx-3: #90a4a1;
  --accent: #2c8b7d;
  --accent-2: #4f7ea6;
  --accent-soft: rgba(44, 139, 125, .1);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--tx);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; background: none; border: 0; outline: none; width: 100%; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }

#app {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 520px;
  height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
}

@media (min-width: 560px) {
  body { background: #070d0f; }
  html[data-theme="light"] body { background: #e6efe9; }
  #app {
    height: calc(100dvh - 32px);
    margin: 16px auto;
    border-radius: 22px;
    border: 1px solid var(--line);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  }
}

/* ---------------- 顶栏 ---------------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 0 16px;
  flex: none;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .08em;
}

.brand-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px var(--accent);
}

.topbar-right { display: flex; gap: 6px; }

.icon-btn {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  color: var(--tx-2); font-size: 17px;
  transition: background .18s, color .18s;
}
.icon-btn:hover { background: var(--card-2); color: var(--tx); }

/* ---------------- 视图容器 ---------------- */
#stage { flex: 1; position: relative; overflow: hidden; }

.view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .22s var(--ease), transform .22s var(--ease);
  scrollbar-width: none;
}
.view::-webkit-scrollbar { display: none; }
.view.active { opacity: 1; pointer-events: auto; transform: none; }

/* ---------------- 广场 ---------------- */
.feed-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 14px 6px;
  flex: none;
  position: sticky;
  top: 0;
  background: linear-gradient(var(--bg) 70%, transparent);
  z-index: 5;
}

.ftab {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--tx-3);
  transition: color .18s, background .18s;
}
.ftab.on { color: var(--bg); background: var(--tx); font-weight: 500; }
html[data-theme="light"] .ftab.on { color: #fff; background: var(--tx); }

.feed-list { padding: 4px 12px 20px; display: flex; flex-direction: column; gap: 10px; }

.post {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 14px 8px;
  animation: rise .32s var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

.p-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }

.p-ava {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 600; color: #062e2a;
  background: linear-gradient(135deg, var(--accent), #a9e2d7);
  flex: none;
}
.p-ava.v2 { background: linear-gradient(135deg, #6f9fca, #a9cbe6); color: #0a2436; }
.p-ava.v3 { background: linear-gradient(135deg, #d9a67e, #ecd4bb); color: #3a2a1c; }
.p-ava.v4 { background: linear-gradient(135deg, #c99aae, #e3cfda); color: #3a1c28; }

.p-name { font-size: 14px; font-weight: 500; }
.p-time { font-size: 12px; color: var(--tx-3); }

.p-tag {
  margin-left: auto;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.p-tag.ai { color: var(--accent-2); background: rgba(127, 168, 212, .13); border-color: rgba(127, 168, 212, .3); }

.p-text { font-size: 15px; line-height: 1.72; white-space: pre-wrap; word-break: break-word; }
.p-text .emoji { font-size: 17px; }

.p-imgs { display: grid; gap: 6px; margin-top: 10px; }
.p-imgs.one { grid-template-columns: 1fr; }
.p-imgs.two { grid-template-columns: 1fr 1fr; }
.p-imgs.many { grid-template-columns: repeat(3, 1fr); }
.p-imgs img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 12px; background: var(--card-2);
  border: 1px solid var(--line);
}
.p-imgs.one img { aspect-ratio: 4 / 3; }

.p-actions {
  display: flex; align-items: center; gap: 18px;
  margin-top: 12px; padding-top: 8px;
  border-top: 1px solid var(--line);
}

.act {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; color: var(--tx-3);
  padding: 6px 2px;
  transition: color .18s;
}
.act svg { width: 18px; height: 18px; }
.act:hover { color: var(--tx-2); }
.act.on { color: var(--accent); }
.act.on.like svg { fill: var(--accent); stroke: var(--accent); }
.act.right { margin-left: auto; }

.feed-end { text-align: center; font-size: 12.5px; color: var(--tx-3); padding: 8px 0 26px; }

/* ---------------- 对话 ---------------- */
.chat-head {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.chat-ava {
  width: 40px; height: 40px; border-radius: 13px;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 600;
  color: #06302c;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.chat-name { font-size: 14.5px; font-weight: 500; }
.chat-sub { font-size: 11.5px; color: var(--tx-3); }

.chat-list {
  flex: 1; overflow-y: auto;
  padding: 16px 14px 8px;
  display: flex; flex-direction: column; gap: 12px;
  scrollbar-width: none;
}
.chat-list::-webkit-scrollbar { display: none; }

.msg { display: flex; gap: 8px; max-width: 88%; animation: rise .26s var(--ease) both; }
.msg.me { margin-left: auto; flex-direction: row-reverse; }

.bubble {
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--card);
  border: 1px solid var(--line);
  border-top-left-radius: 5px;
}
.msg.me .bubble {
  background: linear-gradient(135deg, var(--accent), #9adace);
  color: #062e2a;
  border: 0;
  border-top-left-radius: 16px;
  border-top-right-radius: 5px;
}
html[data-theme="light"] .msg.me .bubble { color: #fff; background: linear-gradient(135deg, var(--accent), #3aa294); }

.bubble .caret { display: inline-block; width: 2px; height: 14px; background: currentColor; vertical-align: -2px; animation: blink .9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.chat-sugs { display: flex; gap: 8px; padding: 0 14px 10px; overflow-x: auto; flex: none; scrollbar-width: none; }
.chat-sugs::-webkit-scrollbar { display: none; }
.sug {
  flex: none;
  font-size: 12.5px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--tx-2);
  background: var(--card);
  white-space: nowrap;
}
.sug:hover { border-color: var(--accent); color: var(--accent); }

.chat-input {
  display: flex; align-items: flex-end; gap: 8px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  flex: none;
  background: var(--bg);
}
#chat-text {
  flex: 1;
  max-height: 110px;
  padding: 10px 14px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 14.5px;
  resize: none;
  line-height: 1.5;
}
#chat-text:focus { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }

.send-btn {
  flex: none;
  height: 40px; padding: 0 18px;
  border-radius: 20px;
  font-size: 14px; font-weight: 500;
  color: #062e2a;
  background: linear-gradient(135deg, var(--accent), #a5e0d5);
}
.send-btn:disabled { opacity: .45; }

/* ---------------- 数字人 ---------------- */
#view-avatar { padding-bottom: 10px; }

.ava-stage {
  position: relative;
  flex: none;
  margin: 12px 12px 0;
  border-radius: 22px;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 20%, #0f2b2c 0%, #0a1215 62%);
  border: 1px solid var(--line);
}
html[data-theme="light"] .ava-stage { background: radial-gradient(120% 90% at 50% 20%, #dceee9 0%, #f3f8f6 65%); }

#avatar-canvas { display: block; width: 100%; height: auto; aspect-ratio: 1; }

.ava-hud {
  position: absolute; left: 14px; top: 12px;
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; letter-spacing: .06em;
  color: rgba(255, 255, 255, .62);
  background: rgba(0, 0, 0, .28);
  padding: 4px 10px; border-radius: 999px;
  backdrop-filter: blur(6px);
}
html[data-theme="light"] .ava-hud { color: #2c4644; background: rgba(255, 255, 255, .7); }
.hud-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.ava-hud.live .hud-dot { animation: pulse .9s infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.7); } }

.ava-style {
  position: absolute; right: 12px; top: 10px;
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  color: rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px);
}
html[data-theme="light"] .ava-style { color: #2c4644; background: rgba(255, 255, 255, .8); border-color: rgba(0, 0, 0, .08); }

.ava-panel { padding: 14px 14px 0; }
.ava-say {
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--tx-2);
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
}
.ava-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pill {
  font-size: 12.5px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--tx-2);
  background: var(--card);
}
.pill:hover { color: var(--accent); border-color: var(--accent); }

.ava-form {
  display: flex; gap: 8px; margin-top: 10px;
}
.ava-form input {
  flex: 1; padding: 10px 14px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line);
  font-size: 14px;
}
.ava-form button {
  flex: none; padding: 0 18px; border-radius: 12px;
  font-size: 14px; font-weight: 500; color: #062e2a;
  background: linear-gradient(135deg, var(--accent), #a5e0d5);
}
.ava-foot { font-size: 11.5px; color: var(--tx-3); margin-top: 10px; text-align: center; }

/* ---------------- 我 ---------------- */
#view-me { padding: 16px 14px; gap: 14px; }

.me-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--card), var(--card-2));
  border: 1px solid var(--line);
}
.me-ava {
  width: 58px; height: 58px; border-radius: 18px;
  display: grid; place-items: center;
  font-size: 20px; font-weight: 600; color: #062e2a;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  flex: none;
}
.me-box { flex: 1; min-width: 0; }
.me-name { font-size: 17px; font-weight: 600; padding: 2px 0; }
.me-name:focus { border-bottom: 1px solid var(--accent); }
.me-sub { font-size: 11.5px; color: var(--tx-3); margin-top: 2px; }

.me-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
}
.ms { padding: 14px 0; text-align: center; border-right: 1px solid var(--line); }
.ms:last-child { border-right: 0; }
.ms b { display: block; font-size: 19px; font-weight: 600; }
.ms span { font-size: 11.5px; color: var(--tx-3); }

.me-list { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.mrow {
  display: block; width: 100%; text-align: left;
  padding: 14px 16px; font-size: 14px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.mrow:last-child { border-bottom: 0; }
.mrow.note { font-size: 12px; color: var(--tx-3); line-height: 1.7; }
#btn-clear { color: var(--danger); }

/* ---------------- 底部导航 ---------------- */
.tabbar {
  flex: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  height: 58px;
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
  z-index: 20;
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 10.5px; color: var(--tx-3);
  padding: 5px 0;
  transition: color .18s;
}
.tab svg { width: 21px; height: 21px; }
.tab.on { color: var(--accent); }

.tab-plus {
  justify-self: center;
  width: 46px; height: 46px;
  border-radius: 15px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06302c;
  box-shadow: 0 6px 20px rgba(226, 184, 119, .26);
  transition: transform .16s var(--ease);
}
.tab-plus:active { transform: scale(.93); }
.tab-plus svg { width: 24px; height: 24px; stroke-width: 2.2; }

/* ---------------- 浮层 ---------------- */
.sheet {
  position: fixed; inset: 0;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .22s var(--ease);
  z-index: 60;
}
.sheet.open { opacity: 1; pointer-events: auto; }

.sheet-mask { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); backdrop-filter: blur(2px); }

.sheet-body {
  position: relative;
  width: 100%; max-width: 520px;
  max-height: 88dvh;
  display: flex; flex-direction: column;
  background: var(--bg-2);
  border-radius: 20px 20px 0 0;
  border-top: 1px solid var(--line-2);
  padding: 0 16px calc(16px + env(safe-area-inset-bottom));
  transform: translateY(18px);
  transition: transform .26s var(--ease);
  overflow-y: auto;
}
.sheet.open .sheet-body { transform: none; }
.detail-body { max-height: 92dvh; }

.sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  height: 52px; flex: none;
}
.sheet-head b { font-size: 15px; font-weight: 500; }
.sheet-x { font-size: 13.5px; color: var(--tx-3); width: 52px; text-align: left; }
.sheet-ok {
  width: 52px; text-align: right;
  font-size: 13.5px; font-weight: 500;
  color: var(--accent);
}
.sheet-ok:disabled { color: var(--tx-3); }

.post-text {
  min-height: 96px; max-height: 40dvh;
  font-size: 15.5px; line-height: 1.7;
  resize: none;
}

.post-media { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.post-media .pm {
  position: relative;
  width: 76px; height: 76px; border-radius: 12px;
  overflow: hidden; border: 1px solid var(--line);
}
.post-media .pm img { width: 100%; height: 100%; object-fit: cover; }
.post-media .pm button {
  position: absolute; right: 2px; top: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(0, 0, 0, .6); color: #fff; font-size: 11px;
  display: grid; place-items: center;
}
.post-media .pm.loading::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent);
  animation: sweep 1.1s infinite;
}
@keyframes sweep { to { transform: translateX(100%); } }

.post-tools { display: flex; gap: 8px; padding-top: 4px; flex-wrap: wrap; }
.tool {
  font-size: 12.5px; padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--tx-2);
}
.tool:hover { color: var(--accent); border-color: var(--accent); }

.emoji-panel {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  margin-top: 10px;
  max-height: 132px; overflow-y: auto;
  padding: 8px; border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
}
.emoji-panel button { font-size: 19px; padding: 3px 0; border-radius: 8px; }
.emoji-panel button:hover { background: var(--card-2); }

.ai-img-box { display: flex; gap: 8px; margin-top: 10px; }
.ai-img-box input {
  flex: 1; padding: 9px 12px; border-radius: 11px;
  background: var(--card); border: 1px solid var(--line); font-size: 13.5px;
}
.ai-img-box button {
  flex: none; padding: 0 15px; border-radius: 11px; font-size: 13.5px;
  color: #06302c; background: linear-gradient(135deg, var(--accent), #a5e0d5);
}
.ai-img-box button:disabled { opacity: .5; }

/* 详情 */
.detail-post { padding: 4px 0 12px; }
.detail-post .p-text { font-size: 16px; }

.cm-title { font-size: 12.5px; color: var(--tx-3); padding: 12px 0 8px; border-top: 1px solid var(--line); }
.cm-item { display: flex; gap: 9px; padding: 8px 0; }
.cm-ava {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 600;
  background: var(--card-2); color: var(--tx-2);
}
.cm-body { flex: 1; min-width: 0; }
.cm-name { font-size: 12.5px; color: var(--tx-2); }
.cm-text { font-size: 14px; line-height: 1.6; word-break: break-word; }
.cm-empty { font-size: 13px; color: var(--tx-3); padding: 10px 0; }

.cm-form { display: flex; gap: 8px; margin-top: 10px; position: sticky; bottom: 0; background: var(--bg-2); padding: 8px 0; }
.cm-form input {
  flex: 1; padding: 9px 13px; border-radius: 20px;
  background: var(--card); border: 1px solid var(--line); font-size: 14px;
}
.cm-form button {
  flex: none; padding: 0 16px; border-radius: 20px;
  font-size: 13.5px; color: #06302c;
  background: linear-gradient(135deg, var(--accent), #a5e0d5);
}

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 92px;
  transform: translate(-50%, 10px);
  padding: 9px 16px; border-radius: 999px;
  font-size: 13px;
  background: rgba(20, 24, 34, .94);
  border: 1px solid var(--line-2);
  color: #fff;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 99;
}
html[data-theme="light"] .toast { background: rgba(28, 33, 46, .92); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* 详情/发布浮层打开时，toast 上移避开按钮 */
body:has(.sheet.open) .toast { bottom: 55%; }

/* 信件页的 AI 说明 */
.letter-note {
  margin: 10px 14px 0;
  padding: 9px 13px;
  border-radius: 11px;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--tx-3);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}
.msg.ai .bubble { border-top-left-radius: 16px; border-top-right-radius: 5px; }
.msg .ai-mark {
  display: block;
  margin-top: 6px;
  font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--tx-3);
}

/* ============================================================
   新增：入口卡 / 账号 / 登录 / 视频工作室 / 视频通话
   ============================================================ */

/* —— 它 页的两个入口 —— */
.ava-entries {
  display: grid; grid-template-columns: 1fr 1fr; gap: 9px;
  margin: 0 14px 12px;
}
.ava-entry {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 12px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line);
  text-align: left; transition: transform .18s var(--ease), border-color .18s;
}
.ava-entry:active { transform: scale(.975); }
.ava-entry.hot { border-color: color-mix(in srgb, var(--accent) 34%, transparent); background: color-mix(in srgb, var(--accent) 9%, var(--card)); }
.ae-icon {
  width: 28px; height: 28px; flex: none; border-radius: 9px;
  display: grid; place-items: center; font-size: 12px;
  background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent);
}
.ae-text { display: flex; flex-direction: column; min-width: 0; }
.ae-text b { font-size: 13px; font-weight: 600; letter-spacing: .01em; }
.ae-text i { font-size: 10.5px; font-style: normal; color: var(--tx-3); line-height: 1.45; margin-top: 1px; }

/* —— 我 页的账号卡 —— */
.me-account {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 14px 12px; padding: 13px 14px;
  border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--card)), var(--card));
}
.ma-left { display: flex; align-items: center; gap: 11px; min-width: 0; }
.ma-avatar {
  width: 38px; height: 38px; flex: none; border-radius: 12px;
  display: grid; place-items: center; font-size: 15px; font-weight: 600;
  background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent);
}
.ma-txt { display: flex; flex-direction: column; min-width: 0; }
.ma-txt b { font-size: 14px; font-weight: 600; }
.ma-txt span { font-size: 11px; color: var(--tx-3); }
.ma-btn {
  flex: none; padding: 7px 15px; border-radius: 999px; font-size: 12.5px;
  background: var(--accent); color: #06302c; font-weight: 600;
}
html[data-theme="light"] .ma-btn { color: #ffffff; }

/* —— 登录弹层 —— */
.auth-sheet .sheet-body { padding-bottom: 22px; }
.auth-hero { display: flex; gap: 12px; padding: 4px 16px 14px; }
.auth-mark {
  width: 44px; height: 44px; flex: none; border-radius: 13px;
  display: grid; place-items: center; font-size: 19px; font-family: "Songti SC", serif;
  background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent);
}
.auth-copy { display: flex; flex-direction: column; gap: 3px; }
.auth-copy b { font-size: 14.5px; }
.auth-copy span { font-size: 11.5px; color: var(--tx-3); line-height: 1.6; }

.auth-tabs { display: flex; gap: 6px; padding: 0 16px 12px; }
.atab {
  flex: 1; padding: 9px; border-radius: 11px; font-size: 13px;
  color: var(--tx-2); background: var(--card); border: 1px solid var(--line);
}
.atab.on { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); }

.auth-pane { padding: 0 16px; }
.afield {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; margin-bottom: 9px;
  border-radius: 13px; background: var(--card); border: 1px solid var(--line);
}
.afield > span { font-size: 12px; color: var(--tx-3); width: 44px; flex: none; }
.afield input { font-size: 15px; letter-spacing: .03em; }
.afield input::placeholder { color: var(--tx-3); letter-spacing: 0; }
.asend {
  flex: none; font-size: 12.5px; color: var(--accent); padding: 4px 2px 4px 10px;
  border-left: 1px solid var(--line); min-width: 52px; text-align: right;
}
.asend:disabled { color: var(--tx-3); }
.ahint { font-size: 11.5px; color: var(--tx-3); line-height: 1.6; padding: 2px 2px 12px; }
.ahint.ok { color: var(--accent); }
.ahint.err { color: #e58a8a; }

.abtn {
  width: 100%; padding: 13px; border-radius: 13px; font-size: 15px; font-weight: 600;
  background: var(--accent); color: #06302c; margin-top: 2px;
}
html[data-theme="light"] .abtn { color: #ffffff; }
.abtn:disabled { opacity: .55; }

.wx-box { text-align: center; padding: 10px 0 4px; }
.wx-icon {
  width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 17px;
  display: grid; place-items: center; font-size: 22px;
  background: #1aad19; color: #fff; font-weight: 600;
}
.wx-copy { font-size: 12.5px; color: var(--tx-2); line-height: 1.7; margin-bottom: 14px; }
.wx-btn { background: #1aad19; color: #fff; }

.auth-foot {
  padding: 16px 16px 0; font-size: 10.5px; color: var(--tx-3);
  text-align: center; line-height: 1.7;
}

/* —— 视频工作室 —— */
.studio .sheet-body { height: 90%; }
.studio-body { flex: 1; overflow-y: auto; padding: 4px 16px 26px; -webkit-overflow-scrolling: touch; }
.studio-lead { font-size: 12px; color: var(--tx-3); line-height: 1.7; margin-bottom: 14px; }

.st-pick {
  border: 1px dashed color-mix(in srgb, var(--accent) 40%, var(--line));
  border-radius: 15px; padding: 26px 12px; text-align: center;
  color: var(--tx-2); font-size: 12.5px; background: color-mix(in srgb, var(--accent) 5%, transparent);
}
.st-pick-inner { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.st-plus { font-size: 22px; color: var(--accent); line-height: 1; }

.st-preview { position: relative; border-radius: 15px; overflow: hidden; background: #000; }
.st-preview img { width: 100%; max-height: 260px; object-fit: cover; display: block; }
.st-change {
  position: absolute; right: 9px; bottom: 9px; padding: 6px 12px; border-radius: 999px;
  font-size: 11.5px; background: rgba(0,0,0,.58); color: #fff; backdrop-filter: blur(6px);
}

.st-row { margin-top: 15px; }
.st-row.col { display: flex; flex-direction: column; gap: 8px; }
.st-label { font-size: 11.5px; color: var(--tx-3); letter-spacing: .06em; margin-bottom: 8px; }
.st-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.st-chip {
  padding: 8px 14px; border-radius: 999px; font-size: 12.5px;
  background: var(--card); border: 1px solid var(--line); color: var(--tx-2);
  transition: all .16s var(--ease);
}
.st-chip.on { background: color-mix(in srgb, var(--accent) 15%, transparent); border-color: color-mix(in srgb, var(--accent) 46%, transparent); color: var(--accent); }
.st-input {
  padding: 11px 13px; border-radius: 12px; background: var(--card);
  border: 1px solid var(--line); font-size: 13.5px;
}
.st-input::placeholder { color: var(--tx-3); }

.st-progress { margin: 16px 0 10px; display: flex; align-items: center; gap: 10px; }
.st-bar { flex: 1; height: 5px; border-radius: 99px; background: var(--card-2); overflow: hidden; }
.st-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .18s linear; }
.st-pct { font-size: 11.5px; color: var(--tx-3); width: 38px; text-align: right; }

.st-result { margin-top: 16px; }
.st-result video { width: 100%; border-radius: 15px; background: #000; display: block; }
.st-result-actions { display: flex; gap: 8px; margin-top: 10px; }
.st-dl, .st-share, .st-again {
  flex: 1; text-align: center; padding: 11px; border-radius: 12px; font-size: 13px;
  border: 1px solid var(--line); background: var(--card); color: var(--tx);
  text-decoration: none;
}
.st-dl { background: var(--accent); color: #06302c; border-color: transparent; font-weight: 600; }
html[data-theme="light"] .st-dl { color: #ffffff; }
.st-note { font-size: 11px; color: var(--tx-3); margin-top: 9px; text-align: center; }

.st-cloud {
  margin-top: 20px; padding: 12px 14px; border-radius: 13px;
  background: var(--card); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
}
.st-cloud b { font-size: 12.5px; }
.st-cloud span { font-size: 11px; color: var(--tx-3); line-height: 1.65; }

/* —— 视频通话 —— */
.live {
  position: fixed; inset: 0; z-index: 300;
  display: flex; flex-direction: column; align-items: center;
  background: #05090a; opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
  --pulse: 1;
}
.live.on { opacity: 1; pointer-events: auto; }
.live-bg {
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 0%, #0f2a2c 0%, #0a1216 46%, #070d0e 100%);
}
.live-top {
  position: relative; z-index: 2; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) 20px 0;
}
.live-name { display: flex; align-items: center; gap: 8px; }
.live-name b { font-size: 15px; letter-spacing: .02em; }
.live-badge {
  font-size: 9.5px; padding: 2px 7px; border-radius: 999px; letter-spacing: .06em;
  background: rgba(255,255,255,.09); color: rgba(255,255,255,.62); border: 1px solid rgba(255,255,255,.1);
}
.live-time { font-size: 12px; color: rgba(255,255,255,.5); font-variant-numeric: tabular-nums; }

.live-stage {
  position: relative; z-index: 1; flex: 1; width: 100%;
  display: grid; place-items: center; overflow: hidden;
  transition: transform .5s var(--ease);
}
.live-stage canvas { width: min(88vw, 78vh); height: min(88vw, 78vh); display: block; }
.live.talking .live-stage { transform: scale(calc(1 + (var(--pulse) - 1) * .5)); }
.live-photo {
  width: min(88vw, 78vh); height: min(88vw, 78vh); object-fit: cover;
  border-radius: 22px;
  animation: breathe 4.2s ease-in-out infinite;
  filter: saturate(.96) contrast(1.03);
}
.live.talking .live-photo { animation: breathe 1.5s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.018); }
}

.live-cam {
  position: absolute; right: 16px; bottom: 132px; z-index: 3;
  width: 84px; height: 112px; border-radius: 14px; overflow: hidden;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  display: grid; place-items: center;
  box-shadow: 0 8px 26px rgba(0,0,0,.4);
}
.live-cam.on { border-color: rgba(255,255,255,.24); }
.live-cam video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.live-cam-off { font-size: 10px; color: rgba(255,255,255,.4); text-align: center; line-height: 1.5; padding: 6px; }

.live-sub {
  position: relative; z-index: 2; width: calc(100% - 40px); max-width: 460px;
  min-height: 46px; margin-bottom: 10px; padding: 0 4px;
  font-size: 15.5px; line-height: 1.55; color: rgba(255,255,255,.92);
  text-align: center; opacity: 0; transition: opacity .25s;
}
.live-sub.on { opacity: 1; }
.live-sub .who {
  display: block; font-size: 10px; letter-spacing: .16em;
  color: var(--accent); margin-bottom: 3px; opacity: .85;
}

.live-typing {
  position: absolute; bottom: 176px; z-index: 3;
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; color: rgba(255,255,255,.45);
}
.live-typing i {
  width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.5);
  animation: typing 1.1s infinite;
}
.live-typing i:nth-child(2) { animation-delay: .15s; }
.live-typing i:nth-child(3) { animation-delay: .3s; }
.live-typing span { margin-left: 5px; }
@keyframes typing { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.live-actions {
  position: relative; z-index: 3; display: flex; align-items: center; gap: 16px;
  padding: 10px 0 calc(env(safe-area-inset-bottom, 0px) + 20px);
}
.lv-btn {
  width: 54px; height: 54px; border-radius: 50%; font-size: 19px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
}
.lv-btn.on { background: var(--accent); color: #06302c; }
.lv-hang {
  width: 78px; height: 54px; border-radius: 27px; font-size: 13.5px; font-weight: 600;
  background: #d9534f; border-color: transparent; color: #fff;
}

.live-input {
  position: relative; z-index: 3; display: flex; gap: 8px;
  width: calc(100% - 32px); max-width: 460px; margin-bottom: 14px;
}
.live-input input {
  flex: 1; padding: 11px 15px; border-radius: 999px; font-size: 14px;
  background: rgba(255,255,255,.09); color: #fff; border: 1px solid rgba(255,255,255,.12);
}
.live-input input::placeholder { color: rgba(255,255,255,.35); }
.live-input button {
  padding: 0 20px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: var(--accent); color: #06302c;
}
.live-tip {
  position: absolute; bottom: calc(env(safe-area-inset-bottom, 0px) + 84px); z-index: 3;
  font-size: 11px; color: rgba(255,255,255,.34); text-align: center; width: 100%;
}

/* ============================================================
   样板间：示例标记 / 导览 / 别人的信
   ============================================================ */

/* —— 顶部说明条 —— */
.demo-note {
  display: flex; align-items: flex-start; gap: 9px;
  margin: 10px 14px 2px; padding: 10px 12px;
  border-radius: 12px;
  font-size: 11.5px; line-height: 1.65; color: var(--tx-2);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent);
}
.demo-note b { color: var(--accent); font-weight: 600; }
.demo-note .dn-x {
  flex: none; margin-left: auto; padding: 0 2px 0 8px;
  font-size: 14px; color: var(--tx-3); line-height: 1.3;
}

/* —— 帖子的示例角标 —— */
.p-demo {
  flex: none; align-self: flex-start;
  font-size: 9.5px; letter-spacing: .08em;
  padding: 2px 6px; border-radius: 5px;
  color: var(--tx-3);
  border: 1px solid color-mix(in srgb, var(--tx-3) 34%, transparent);
}
.p-head { position: relative; }
.p-head > .p-demo { margin-left: auto; }

/* —— 新手导览 —— */
.tour {
  position: fixed; inset: 0; z-index: 320;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(6, 5, 10, .62);
  backdrop-filter: blur(7px);
  opacity: 0; pointer-events: none;
  transition: opacity .28s var(--ease);
}
.tour.on { opacity: 1; pointer-events: auto; }
.tour-card {
  width: calc(100% - 24px); max-width: 460px;
  margin-bottom: calc(env(safe-area-inset-bottom, 0px) + 76px);
  padding: 20px 20px 16px;
  border-radius: 22px;
  background: linear-gradient(165deg, #122225, #0e191c 62%);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .03) inset;
  transform: translateY(14px) scale(.985);
  transition: transform .34s var(--ease);
}
html[data-theme="light"] .tour-card {
  background: linear-gradient(165deg, #fbfdfb, #eef5f2 62%);
  box-shadow: 0 24px 60px rgba(90, 70, 30, .18);
}
.tour.on .tour-card { transform: none; }
.tour-step {
  font-size: 10px; letter-spacing: .18em; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.tour-title {
  margin: 9px 0 9px; font-size: 18.5px; line-height: 1.42; font-weight: 600;
  font-family: "Songti SC", "Noto Serif SC", serif; letter-spacing: .01em;
  color: #e8f2ef;
}
html[data-theme="light"] .tour-title { color: #16231f; }
.tour-body {
  font-size: 13px; line-height: 1.85; color: var(--tx-2);
  white-space: pre-line;
}
.tour-foot { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.tour-go {
  flex: 1; padding: 12px; border-radius: 13px;
  font-size: 14px; font-weight: 600;
  background: var(--accent); color: #06302c;
}
html[data-theme="light"] .tour-go { color: #ffffff; }
.tour-skip {
  flex: none; padding: 12px 14px; font-size: 12.5px; color: var(--tx-3);
}
.tour-dots { display: flex; gap: 5px; margin-top: 14px; }
.tour-dots i {
  width: 5px; height: 5px; border-radius: 99px;
  background: color-mix(in srgb, var(--tx-3) 45%, transparent);
  transition: width .22s var(--ease), background .22s;
}
.tour-dots i.on { width: 16px; background: var(--accent); }

/* —— 信页：别人写过的信 —— */
.dl-wrap { padding: 14px 2px 6px; }
.dl-head {
  font-size: 11px; letter-spacing: .06em; color: var(--tx-3);
  margin: 2px 2px 10px; display: flex; align-items: center; gap: 8px;
}
.dl-head::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tx-3) 26%, transparent), transparent);
}
.dl-card {
  margin-bottom: 9px; padding: 12px 13px;
  border-radius: 14px;
  background: var(--card); border: 1px solid var(--line);
  transition: border-color .18s var(--ease);
}
.dl-card.open { border-color: color-mix(in srgb, var(--accent) 32%, transparent); }
.dl-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.dl-ava {
  width: 24px; height: 24px; flex: none; border-radius: 8px;
  display: grid; place-items: center; font-size: 11px; font-weight: 600;
  background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent);
}
.dl-who { font-size: 12px; color: var(--tx-2); }
.dl-who i { font-style: normal; color: var(--tx-3); font-size: 10.5px; margin-left: 5px; }
.dl-preview { font-size: 12.5px; line-height: 1.7; color: var(--tx-2); }
.dl-preview::before { content: "「"; color: var(--tx-3); }
.dl-preview::after { content: "…」"; color: var(--tx-3); }
.dl-full { display: none; margin-top: 10px; }
.dl-card.open .dl-full { display: block; }
.dl-card.open .dl-preview { display: none; }
.dl-line { display: flex; margin-bottom: 7px; }
.dl-line.me { justify-content: flex-end; }
.dl-bubble {
  max-width: 84%; padding: 8px 11px; border-radius: 12px;
  font-size: 12.5px; line-height: 1.7; color: var(--tx);
  background: var(--card-2);
}
.dl-line.me .dl-bubble {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: color-mix(in srgb, var(--accent) 92%, #000);
  border-bottom-right-radius: 4px;
}
html[data-theme="light"] .dl-line.me .dl-bubble { color: #1c5a50; }
.dl-line.ai .dl-bubble { border-bottom-left-radius: 4px; }
.dl-mark { display: block; margin-top: 5px; font-size: 9.5px; color: var(--tx-3); }
.dl-toggle {
  width: 100%; margin-top: 9px; padding-top: 9px;
  border-top: 1px dashed color-mix(in srgb, var(--tx-3) 22%, transparent);
  font-size: 11.5px; color: var(--accent); text-align: center;
}
.dl-note { font-size: 10.5px; color: var(--tx-3); line-height: 1.65; padding: 4px 2px 10px; }

/* ============================================================
   卡通化按钮：圆角厚底 + 高光 + 图标
   ============================================================ */

/* 图标容器（按钮里的小图标） */
.bi {
  width: 16px; height: 16px; flex: none;
  display: inline-block; vertical-align: -3px;
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}
.bi.lg { width: 19px; height: 19px; }
.bi.fill { fill: currentColor; stroke: none; }
button .bi + span, button span + .bi { margin-left: 0; }

/* 主按钮：厚底按钮（按下去会陷进去一点） */
.send-btn, .sheet-ok, #ai-img-go, .ava-form button, .ma-btn,
.tour-go, .abtn, .st-dl, .lv-btn.on {
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .34),
    0 2px 0 color-mix(in srgb, var(--accent) 46%, #04211f),
    0 8px 18px -10px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease), filter .16s;
}
html[data-theme="light"] .send-btn, html[data-theme="light"] .sheet-ok,
html[data-theme="light"] #ai-img-go, html[data-theme="light"] .ava-form button,
html[data-theme="light"] .ma-btn, html[data-theme="light"] .tour-go,
html[data-theme="light"] .abtn, html[data-theme="light"] .st-dl {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .5),
    0 2px 0 color-mix(in srgb, var(--accent) 78%, #000),
    0 8px 16px -10px color-mix(in srgb, var(--accent) 60%, transparent);
}
.send-btn:active, .sheet-ok:active, #ai-img-go:active, .ava-form button:active,
.ma-btn:active, .tour-go:active, .abtn:active, .st-dl:active {
  transform: translateY(2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 0 0 color-mix(in srgb, var(--accent) 40%, #04211f);
}
.send-btn, .sheet-ok, #ai-img-go, .ava-form button, .tour-go {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.send-btn { padding: 0 16px; border-radius: 999px; }

/* 小胶囊按钮：图标 + 字 */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 1px 2px rgba(0, 0, 0, .18);
}
.pill:active { transform: translateY(1px) scale(.985); }
.pill .bi { width: 14px; height: 14px; opacity: .85; }

/* 圆形图标按钮 */
.icon-btn {
  width: 34px; height: 34px; border-radius: 12px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 9%, var(--card));
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: transform .14s var(--ease), background .16s;
}
.icon-btn:active { transform: scale(.93); background: color-mix(in srgb, var(--accent) 18%, var(--card)); }

/* 入口卡图标：做成小圆角方块 */
.ae-icon {
  width: 32px; height: 32px; border-radius: 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 2px 6px -3px color-mix(in srgb, var(--accent) 60%, transparent);
}
.ae-icon .bi { width: 17px; height: 17px; }
.ava-entry:active .ae-icon { transform: scale(.94); }
.ae-icon { transition: transform .16s var(--ease); }

/* 底部导航：选中项有一小块软背景（糖果感） */
.tab { position: relative; }
.tab.on::before {
  content: ""; position: absolute; left: 50%; top: 3px;
  transform: translateX(-50%);
  width: 40px; height: 27px; border-radius: 13px;
  background: var(--accent-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.tab svg { position: relative; z-index: 1; }
.tab.on svg { stroke-width: 2; }
.tab-plus {
  box-shadow: 0 3px 0 color-mix(in srgb, var(--accent) 42%, #04211f),
              0 10px 20px -10px color-mix(in srgb, var(--accent) 80%, transparent);
}
.tab-plus:active { transform: translateY(2px); box-shadow: 0 1px 0 color-mix(in srgb, var(--accent) 42%, #04211f); }

/* 工作室里的选项片：更像积木 */
.st-chip {
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: 12px;
  box-shadow: 0 1.5px 0 rgba(0, 0, 0, .22);
}
.st-chip.on { box-shadow: 0 1.5px 0 color-mix(in srgb, var(--accent) 34%, transparent); }
.st-chip:active { transform: translateY(1px); }

/* 其他零散修饰 */
.p-pet { font-size: 11px; color: var(--tx-3); font-weight: 400; margin-left: 5px; }
.detail-demo-note {
  margin-top: 14px; padding: 9px 12px; border-radius: 10px;
  font-size: 11px; line-height: 1.6; color: var(--tx-3);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  border: 1px dashed color-mix(in srgb, var(--accent) 22%, transparent);
}
.dl-toggle .bi { width: 13px; height: 13px; vertical-align: -2px; margin-right: 3px; }

/* —— Logo 标记 —— */
.brand-mark {
  width: 26px; height: 26px; flex: none;
  display: grid; place-items: center;
  border-radius: 9px;
  background: linear-gradient(142deg, var(--accent-2), var(--accent) 62%);
  color: #05302c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 3px 9px -5px var(--accent);
}
.brand-mark .bi { width: 17px; height: 17px; stroke-width: 1.55; }
.brand-dot { display: none; }
.brand { gap: 8px; }

/* —— 发布按钮改成实心胶囊 —— */
.sheet-ok {
  width: auto; min-width: 64px; text-align: center;
  padding: 6px 13px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: #05302c; background: var(--accent);
}
html[data-theme="light"] .sheet-ok { color: #fff; }
.sheet-ok:disabled {
  color: var(--tx-3); background: var(--card-2); box-shadow: none;
}

/* —— 换毛色按钮 —— */
.ava-style { display: inline-flex; align-items: center; gap: 4px; }
.ava-style .bi { width: 13px; height: 13px; }
