:root {
  --brand: #E8542F;
  --brand-weak: #FBE3D9;
  --paper: #FFF9EC;
  --paper-line: #E3D5B8;
  --ink: #1B1D21;
  --sub: #6B6255;
  --line: #E7E1D6;
  --bg: #F6F3EC;
  --green: #2F6B4F;
  --r1: 10px;
  --r2: 14px;
  --r3: 18px;
  --full: 999px;
  --e1: 0 4px 14px rgba(30, 25, 18, .08);
  --e2: 0 12px 32px rgba(30, 25, 18, .14);
  --shu: "STXingkai", "华文行楷", "Xingkai SC", "行楷", "STKaiti", "KaiTi", serif;
}

* { box-sizing: border-box; }
:focus-visible { outline: 3px solid #1D6B4F; outline-offset: 2px; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.hidden { display: none !important; }

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  max-width: 480px;
  height: 56px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 249, 236, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  position: relative;
  border: 0;
  background: transparent;
  padding: 0 0 5px;
  font-family: var(--shu);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .5px;
}
.brand::after {
  content: "";
  position: absolute;
  left: 1px; right: 26px; bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(232, 84, 47, .95), rgba(232, 84, 47, .28) 68%, transparent);
  border-radius: 50% 30% 50% 30% / 60% 40% 60% 40%;
  transform: rotate(-1.6deg);
  transform-origin: left center;
}
.brand span { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 9px; font-weight: 400; color: var(--sub); margin-left: 2px; }

.quote {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: var(--sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.cta {
  background: var(--brand);
  color: #fff;
  border-radius: var(--full);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.menu {
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  width: min(340px, calc(100vw - 32px));
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: var(--r3);
  box-shadow: var(--e2);
}

.menu-user {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 2px 10px;
  margin-bottom: 2px;
  border-bottom: 1px dashed var(--paper-line);
}
.menu-user .ava {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-weak); color: var(--brand);
  font-weight: 900;
}
.menu-user b { display: block; font-size: 14px; }
.menu-user small { display: block; font-size: 11px; color: var(--sub); }

.menu > a {
  padding: 11px 12px;
  border: 1px solid var(--paper-line);
  border-radius: var(--r1);
  background: rgba(255, 255, 255, .55);
  font-size: 13px;
  font-weight: 700;
}

.menu-primary,
.menu-secondary {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
}

.menu-primary { grid-template-columns: repeat(5, 1fr); }
.menu-secondary { grid-template-columns: repeat(3, 1fr); }

.menu-primary a,
.menu-secondary a {
  padding: 11px 4px;
  border: 1px solid var(--paper-line);
  border-radius: var(--r1);
  background: rgba(255, 255, 255, .55);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.menu-primary a:nth-child(3) {
  font-weight: 800;
}

.menu-more-label {
  grid-column: 1 / -1;
  font-size: 10px;
  color: var(--sub);
  padding: 4px 2px 0;
}

.screen {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 16px 80px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.page-head h1 { margin: 0; font-size: 22px; letter-spacing: -.4px; }
.page-head p { margin: 4px 0 0; font-size: 12px; color: var(--sub); }
.page-head .more { font-size: 12px; color: var(--sub); }

.section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0 10px;
}
.section h2 { margin: 0; font-size: 15px; }
.section span { font-size: 12px; color: var(--sub); }

.skeleton {
  position: relative;
  overflow: hidden;
  background: #EDE7DA;
  border-radius: var(--r2);
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  animation: shimmer 1.6s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

.sk-line { height: 10px; border-radius: 6px; }
.sk-line + .sk-line { margin-top: 8px; }

/* 首页短视频骨架 */
.feed-mode { background: #000; }
.feed-mode .top {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,0));
  border-bottom: 0;
  color: #fff;
}
.feed-mode .quote { color: rgba(255,255,255,.8); }
.feed-mode .screen { padding: 0 10px; max-width: none; }

.feed-frame {
  position: relative;
  height: 100vh;
  scroll-snap-align: start;
  background: linear-gradient(150deg, #0f241b, #2f6b4f 55%, #0d1512);
  overflow: hidden;
}

.feed-frame.real::after { display: none; }

.feed-frame video,
.feed-frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.feed-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.45), transparent 30%, transparent 52%, rgba(0,0,0,.78));
}

.feed-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: rgba(255,255,255,.18);
  z-index: 4;
}
.feed-progress i { display: block; width: 0; height: 100%; background: rgba(255,255,255,.9); }

.feed-scroll {
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: none;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
}
.feed-scroll::-webkit-scrollbar { display: none; }

.feed-topbar {
  position: fixed;
  top: 64px; left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: none;
  padding: 0 10px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.feed-topbar .feed-tabs { position: static; }
.feed-topbar .feed-loc { color: rgba(255,255,255,.9); font-size: 12px; }
.feed-topbar .feed-loc a { color: #fff; }


.feed-empty {
  height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255,255,255,.75);
  font-size: 13px;
  text-align: center;
  padding: 0 24px;
}
.feed-frame::after {
  content: "短视频区 · 9:16";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255,255,255,.35);
  font-size: 12px;
  border: 1px dashed rgba(255,255,255,.3);
  border-radius: var(--full);
  padding: 6px 12px;
}

.feed-tabs {
  position: absolute;
  top: 68px; left: 16px;
  display: flex; gap: 14px;
  z-index: 2;
  font-size: 13px;
  color: rgba(255,255,255,.6);
  font-weight: 700;
}
.feed-tabs b { color: #fff; border-bottom: 2px solid #fff; padding-bottom: 2px; }

.feed-tabs button {
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.62);
  font-size: 13px;
  font-weight: 700;
  padding: 0;
}
.feed-tabs button.on {
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  border-bottom: 2px solid #fff;
  padding-bottom: 2px;
}

.feed-rail {
  position: absolute;
  right: 0; bottom: calc(4px + env(safe-area-inset-bottom));
  z-index: 2;
  display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.rail-dot {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.5);
  display: grid; place-items: center;
  color: #fff; font-size: 16px;
}
.rail-label { font-size: 10px; color: rgba(255,255,255,.8); text-align: center; }
.rail-dot.liked { color: #ff6a4d; border-color: #ff6a4d; }

.comment-mask {
  position: fixed;
  inset: 0;
  z-index: 75;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.comment-sheet {
  width: 100%;
  max-width: 480px;
  max-height: 72vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--r3) var(--r3) 0 0;
  padding-bottom: env(safe-area-inset-bottom);
}
.comment-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.comment-close { border: 0; background: transparent; font-size: 22px; color: var(--sub); }
.comment-list { flex: 1; overflow-y: auto; padding: 8px 16px; min-height: 120px; }
.comment-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.comment-item:last-child { border-bottom: 0; }
.comment-ava { width: 32px; height: 32px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; }
.comment-body { flex: 1; min-width: 0; }
.comment-body b { display: block; font-size: 12px; color: var(--sub); margin-bottom: 2px; }
.comment-body span { display: block; font-size: 14px; line-height: 20px; }
.comment-del { border: 0; background: transparent; color: #b0a79b; font-size: 11px; padding: 4px 0; }
.comment-form { display: flex; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line); }
.comment-form input { flex: 1; border: 1px solid var(--line); border-radius: var(--full); padding: 10px 14px; font-size: 14px; background: var(--bg); }
.comment-form button { border: 0; border-radius: var(--full); background: var(--brand); color: #fff; padding: 0 16px; font-size: 13px; font-weight: 800; }

.chat-list { display: flex; flex-direction: column; gap: 8px; padding: 8px 0 16px; min-height: 180px; }
.chat-bubble {
  align-self: flex-start;
  max-width: 78%;
  padding: 9px 12px;
  border-radius: 14px 14px 14px 4px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 14px;
  line-height: 20px;
}
.chat-bubble.mine { align-self: flex-end; background: var(--brand); border-color: var(--brand); color: #fff; border-radius: 14px 14px 4px 14px; }

.feed-copy {
  position: absolute;
  left: 0; right: 48px; bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 2;
  color: #fff;
}
.feed-copy b { font-size: 16px; }
.feed-copy p { margin: 4px 0 8px; font-size: 13px; line-height: 20px; }

.feed-pair { display: flex; gap: 8px; margin-top: 6px; }
.feed-topics { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 6px; }
.feed-place { color: rgba(255,255,255,.9); font-size: 11px; margin-top: 2px; }
.feed-topic {
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  background: rgba(255, 255, 255, .18);
  border-radius: var(--full);
  padding: 3px 9px;
}
.mini-action {
  border: 0;
  border-radius: var(--full);
  background: rgba(255, 249, 236, .94);
  color: var(--ink);
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 800;
}
.mini-action:disabled { opacity: .45; }

.info-mask {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, .45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}
.info-card {
  width: 100%;
  max-width: 360px;
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: var(--r3);
  padding: 18px 16px;
  margin-bottom: 24px;
  box-shadow: var(--e2);
}
.info-kicker { font-size: 10px; color: var(--brand); font-weight: 800; letter-spacing: 1px; }
.info-card h2 { margin: 6px 0 10px; font-size: 18px; line-height: 25px; }

.quote-note {
  position: relative;
  background: #fff8df;
  background-image: linear-gradient(rgba(160, 130, 60, .06) 1px, transparent 1px);
  background-size: 100% 26px;
  border: 1px solid #e4d6a8;
  box-shadow: 0 14px 34px rgba(60, 45, 15, .28);
  transform: rotate(-.45deg);
  max-height: 80vh;
  overflow-y: auto;
  padding: 42px 18px 18px;
}

.quote-page {
  max-width: 560px;
  max-height: none;
  overflow: visible;
  margin: 0 auto;
  transform: none;
  box-shadow: none;
  padding: 42px 16px 20px;
}
.quote-mode .screen { padding-bottom: 0; }
.quote-mode .quote-page {
  min-height: calc(100vh - 104px);
  border-radius: var(--r3) var(--r3) 0 0;
}

.quote-actions {
  position: absolute; top: 9px; right: 10px;
  display: flex; align-items: center; gap: 8px;
  z-index: 2;
}
.quote-like {
  width: 30px; height: 30px; padding: 0;
  border: 1px solid #d9c58e;
  background: rgba(255, 255, 255, .45);
  color: #c6432b;
  border-radius: 50%;
  font-size: 17px;
  line-height: 1;
  display: grid;
  place-items: center;
}
.quote-read-seal {
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 30px;
  padding: 0 6px;
  border: 2px solid #c6432b;
  color: #b53a24;
  background: rgba(255, 255, 255, .28);
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei", serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 2px;
  transform: rotate(-7deg);
  border-radius: 3px;
}
.quote-close {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid #d8c69a;
  background: rgba(255, 255, 255, .5);
  color: #7c6438;
  font-size: 18px;
  line-height: 1;
  display: grid; place-items: center;
}

/* 广场工具条：范围/城市/地图/日历/附近/搜索同一行 */
.plaza-tools {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.plaza-tools::-webkit-scrollbar { display: none; }
.tool {
  flex: none;
  height: 32px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}
.tool.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.tool.search-tool {
  width: 34px; padding: 0;
  font-size: 14px;
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-weak);
}
.quote-note::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 96px;
  height: 20px;
  transform: translateX(-50%) rotate(1.5deg);
  background: rgba(224, 208, 158, .75);
  border-left: 1px dashed rgba(140, 115, 55, .35);
  border-right: 1px dashed rgba(140, 115, 55, .35);
}
.quote-note h2 {
  font-family: var(--shu);
  font-size: 21px;
  line-height: 1.55;
  color: #3d3220;
  text-align: center;
  margin: 4px 0 8px;
}
.quote-source {
  text-align: center;
  color: #8a7448;
  font-size: 11px;
  margin-bottom: 16px;
}
.quote-label {
  color: #9a6b2f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  margin: 12px 0 4px;
}
.quote-text { color: #4d4030; font-size: 13px; line-height: 1.9; }
.quote-original {
  color: #5d4d36;
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei", serif;
  font-size: 13px;
  line-height: 1.95;
  border-top: 1px dashed #d8c69a;
  padding-top: 10px;
}
.quote-foot {
  color: #a18c62;
  font-size: 10px;
  text-align: right;
  margin: 14px 0 10px;
}

/* 2026-10 排版整理：统一外壳、间距、卡片和表单层级 */
:root {
  --shell: 100%;
  --page-pad: clamp(16px, 4vw, 22px);
  --r-card: 20px;
  --r-control: 13px;
}

body {
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(232, 84, 47, .07), transparent 60%),
    radial-gradient(700px 420px at 100% 0%, rgba(47, 107, 79, .06), transparent 55%),
    var(--bg);
}

.top {
  max-width: var(--shell);
  height: 58px;
  margin-top: 10px;
  border: 1px solid var(--paper-line);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(30, 25, 18, .07);
  padding: 0 14px;
}

.screen {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 8px var(--page-pad) 24px;
}

.page-head {
  align-items: center;
  margin-bottom: 18px;
}
.page-head h1 { font-size: 26px; letter-spacing: -.7px; }
.page-head p { font-size: 12px; line-height: 1.6; }

.section {
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(227, 213, 184, .55);
}
.section h2 { font-size: 16px; letter-spacing: -.2px; }
.section span { font-size: 11px; }

.cards {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.card {
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(30, 25, 18, .07);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(30, 25, 18, .11); }

.form-skeleton {
  background: #FFFDF8;
  border: 1px solid var(--paper-line);
  border-radius: var(--r-card);
  padding: 20px;
  box-shadow: 0 8px 24px rgba(30, 25, 18, .05);
}
.form-row { margin-bottom: 14px; }
.form-row label { display: block; margin-bottom: 6px; font-size: 12px; color: var(--sub); font-weight: 700; }

.btn {
  min-height: 46px;
  border-radius: var(--r-control);
  font-weight: 800;
  letter-spacing: .2px;
}
.btn.ghost { background: rgba(255, 255, 255, .7); }
.btn:disabled { background: #d1d5db; color: #fff; cursor: not-allowed; }
.chip { border-radius: 10px; padding: 9px 13px; }

@media (min-width: 760px) {
  .top { margin-top: 18px; }
  .screen { padding-top: 26px; }
  .menu { top: 86px; }
}

@media (max-width: 420px) {
  .top { margin: 8px 8px 0; width: calc(100% - 16px); }
  .screen { padding-left: 14px; padding-right: 14px; }
  .page-head h1 { font-size: 23px; }
}
.feed-event {
  display: flex; align-items: center; gap: 8px;
  padding: 8px;
  background: rgba(255,249,236,.96);
  color: var(--ink);
  border-radius: var(--r2);
}
.feed-event .thumb { width: 36px; height: 36px; border-radius: 8px; background: #2f6b4f; flex: none; }
.feed-event .grow { flex: 1; min-width: 0; }
.feed-event small { display: block; font-size: 11px; color: var(--sub); }
.feed-next {
  position: absolute;
  top: 100px; right: 16px;
  z-index: 2;
  width: 180px;
  padding: 9px 12px;
  background: rgba(255,249,236,.95);
  border-radius: var(--r2);
  color: var(--ink);
}
.feed-next span { font-size: 10px; color: var(--brand); font-weight: 800; }
.feed-next b { display: block; font-size: 12px; margin: 2px 0; }
.feed-next small { font-size: 10px; color: var(--sub); }

.video-live-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid var(--paper-line);
  border-radius: 12px;
  background: #FFFDF8;
}
.video-live-entry.live { background: linear-gradient(90deg, #FFF1EC, #FFFDF8); border-color: #F2C3B4; }
.video-live-entry .grow, .video-live-entry > span:nth-child(2) { flex: 1; min-width: 0; }
.video-live-entry b { display: block; font-size: 13px; }
.video-live-entry small { display: block; margin-top: 2px; font-size: 10px; color: var(--sub); }
.live-pulse {
  width: 12px; height: 12px; flex: none;
  border-radius: 50%;
  background: #E8542F;
  box-shadow: 0 0 0 5px rgba(232, 84, 47, .14);
  animation: livePulse 1.5s ease-out infinite;
}
.live-outline {
  width: 22px; height: 22px; flex: none;
  border: 2px solid #E8542F; border-radius: 50%;
  position: relative;
}
.live-outline::after {
  content: ""; position: absolute; left: 7px; top: 5px;
  border-left: 7px solid #E8542F; border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(232, 84, 47, .35); }
  100% { box-shadow: 0 0 0 9px rgba(232, 84, 47, 0); }
}

.live-hero {
  padding: 22px 20px;
  border-radius: 22px;
  color: #FFF4E8;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(232, 84, 47, .55), transparent 58%),
    linear-gradient(135deg, #2A1A16, #5A2B21 65%, #2A1714);
  box-shadow: 0 12px 28px rgba(45, 22, 16, .18);
}
.live-eyebrow { display: flex; align-items: center; gap: 7px; font-size: 10px; letter-spacing: 2px; color: #FFB9A4; font-weight: 800; }
.live-hero h2 { margin: 9px 0 4px; font-size: 24px; letter-spacing: -.6px; }
.live-hero p { margin: 0; font-size: 12px; color: rgba(255, 244, 232, .72); }
.live-actions { display: flex; gap: 9px; margin-top: 16px; }
.live-actions .btn { flex: none; width: auto; min-width: 108px; margin: 0; padding: 10px 16px; }
.live-actions .btn.ghost { color: #FFF4E8; border-color: rgba(255, 244, 232, .4); background: rgba(255, 255, 255, .06); }
.live-start-card {
  padding: 18px;
  background: #FFFDF8;
  border: 1px solid var(--paper-line);
  border-radius: 18px;
}
.live-start-card b { display: block; font-size: 15px; }
.live-start-card .na { margin-top: 5px; }
.live-start-card .btn { width: auto; margin-top: 12px; }
.live-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.live-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.live-cover { position: relative; height: 120px; background: linear-gradient(135deg, #2b2a4a, #6b5b95); }
.live-cover.c3 { background: linear-gradient(135deg, #2b2a4a, #6b5b95); }
.live-badge {
  position: absolute; left: 9px; top: 9px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 7px; border-radius: 5px;
  background: #E8542F; color: #fff; font-size: 9px; font-weight: 900; letter-spacing: 1px;
}
.live-badge i { width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.live-viewers { position: absolute; right: 9px; bottom: 9px; color: #fff; font-size: 10px; background: rgba(0, 0, 0, .35); padding: 2px 6px; border-radius: 5px; }
.live-card-body { padding: 10px 12px; }
.live-card-body b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-card-body small { display: block; margin-top: 3px; font-size: 10px; color: var(--sub); }
.live-empty { grid-column: 1 / -1; padding: 28px 16px; text-align: center; border: 1px dashed var(--paper-line); border-radius: 16px; }
.live-empty b { display: block; margin: 9px 0 4px; }
.live-empty .btn { width: auto; display: inline-flex; margin-top: 10px; }

/* 通用卡片 */
.cards { display: grid; gap: 12px; }
.card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r2);
  overflow: hidden;
}
.card .cover { height: 150px; }
.card .cover.c1 { background: linear-gradient(135deg, #1e3a2f, #4d7c5f); }
.card .cover.c2 { background: linear-gradient(135deg, #4a1d1d, #a34b3f); }
.card .cover.c3 { background: linear-gradient(135deg, #2b2a4a, #6b5b95); }
.card .cover.c4 { background: linear-gradient(135deg, #3d2b1f, #8a5a3b); }
.card .body { padding: 10px 12px; }
.card .body b { display: block; font-size: 14px; margin-bottom: 4px; }
.card .meta { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--sub); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.chips.wrap { flex-wrap: wrap; overflow-x: visible; }
.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--full);
  padding: 7px 12px;
  font-size: 12px;
  white-space: nowrap;
}
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.searchbar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--full);
  font-size: 13px;
  color: var(--sub);
  margin-bottom: 12px;
}

/* 组局骨架 */
.entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.entry {
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r2);
}
.entry b { display: block; font-size: 14px; margin-bottom: 4px; }
.entry small { color: var(--sub); font-size: 11px; line-height: 18px; }
.entry.wide { grid-column: 1 / -1; background: var(--paper); border-color: var(--paper-line); }

.form-skeleton {
  margin-top: 14px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r2);
}
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 11px; color: var(--sub); margin-bottom: 6px; }
.form-row .skeleton { height: 38px; border-radius: 8px; }

/* 消息骨架 */
.seg { display: flex; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 10px; }
.seg b { font-size: 14px; border-bottom: 2px solid var(--brand); padding-bottom: 8px; }
.seg span { font-size: 12px; color: var(--sub); }
.seg span.on { color: var(--ink); font-weight: 800; border-bottom: 2px solid var(--brand); padding-bottom: 8px; }
.msg-tabs { margin: 4px 0 12px; }
.route-loading {
  min-height: 46vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--sub);
  font-size: 11px;
}
.route-loading i {
  width: 18px; height: 18px;
  border: 2px solid var(--paper-line);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.msg-row { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.msg-row .ava { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-weak); flex: none; }
.msg-row .lines { flex: 1; }

/* 我的骨架 */
.profile-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.profile-head .ava { width: 56px; height: 56px; border-radius: 50%; background: var(--brand-weak); color: var(--brand); display: grid; place-items: center; font-weight: 900; font-size: 20px; overflow: hidden; }
.profile-head .ava img, .msg-row .ava img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.profile-head b { font-size: 17px; }
.profile-head small { display: block; color: var(--sub); font-size: 11px; margin-top: 3px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r2); padding: 10px; text-align: center; }
.stat b { display: block; font-size: 18px; }
.stat span { font-size: 10px; color: var(--sub); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.grid a { background: #fff; border: 1px solid var(--line); border-radius: var(--r2); padding: 12px 4px; text-align: center; font-size: 11px; }
.grid i { display: block; font-style: normal; font-size: 18px; margin-bottom: 4px; }

/* 我的页面 */
.me-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--paper-line);
  border-radius: 22px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(232, 84, 47, .12), transparent 55%),
    #FFFDF8;
  box-shadow: 0 10px 28px rgba(30, 25, 18, .07);
}
.me-avatar {
  width: 64px; height: 64px; flex: none;
  border-radius: 22px;
  display: grid; place-items: center;
  background: var(--brand); color: #fff;
  font-size: 26px; font-weight: 900;
  box-shadow: 0 8px 18px rgba(232, 84, 47, .28);
}
.me-body { flex: 1; min-width: 0; }
.me-name { font-size: 21px; font-weight: 900; letter-spacing: -.4px; }
.me-sub { margin-top: 4px; font-size: 11px; color: var(--sub); }
.me-quick { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 9px; }
.me-quick a { font-size: 11px; color: var(--brand); font-weight: 700; }
.me-settings { align-self: flex-start; font-size: 20px; color: var(--sub); padding: 2px 4px; }
.me-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.me-stats a { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 6px; text-align: center; }
.me-stats b { display: block; font-size: 20px; }
.me-stats span { font-size: 10px; color: var(--sub); }
.me-guide {
  position: relative; display: block; margin: 0 0 12px; padding: 12px 74px 12px 14px;
  border: 1px dashed rgba(201, 162, 92, .6); border-radius: 12px; background: rgba(201, 162, 92, .07);
}
.me-guide span { display: block; font-size: 13px; font-weight: 700; color: var(--ink); }
.me-guide small { display: block; margin-top: 3px; font-size: 11px; line-height: 1.55; color: var(--sub); }
.me-guide b { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--brand); }
.me-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.me-grid a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 7px; min-height: 76px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  font-size: 11px; color: var(--ink);
}
.me-grid i {
  width: 32px; height: 32px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--brand-weak); color: var(--brand);
  font-style: normal; font-size: 14px; font-weight: 900;
}
@media (max-width: 360px) { .me-grid { grid-template-columns: repeat(3, 1fr); } }

/* 我的：抖音式个人主页 */
.dy-cover {
  position: relative;
  height: 176px;
  margin: -20px calc(var(--page-pad) * -1) 0;
  background:
    radial-gradient(80% 120% at 15% 0%, rgba(232, 84, 47, .55), transparent 58%),
    radial-gradient(70% 100% at 100% 100%, rgba(168, 112, 52, .32), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255, 245, 220, .035) 0 1px, transparent 1px 8px),
    linear-gradient(135deg, #2E211A 0%, #4A2B20 58%, #241814 100%);
  overflow: hidden;
}
.dy-cover::before, .dy-cover::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 245, 220, .14);
  border-radius: 50%;
}
.dy-cover::before { width: 260px; height: 260px; right: -90px; top: -130px; }
.dy-cover::after { width: 180px; height: 180px; left: -70px; bottom: -110px; }
.dy-cover.is-empty { cursor: pointer; }
.dy-cover-empty {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px;
  color: rgba(255, 244, 216, .9);
}
.dy-cover-empty b { font-size: 15px; font-weight: 800; letter-spacing: 1px; }
.dy-cover-empty small { font-size: 10px; color: rgba(255, 244, 216, .5); letter-spacing: .5px; }
.dy-cover-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px dashed rgba(255, 244, 216, .45); border-radius: 50%; margin-bottom: 2px; }
.dy-cover-icon svg { width: 22px; height: 22px; }
.dy-cover.has-img {
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 -96px 90px -50px rgba(20, 12, 8, .7);
}
.dy-cover.has-img::before, .dy-cover.has-img::after { display: none; }
.dy-cover-btn {
  position: absolute; right: 14px; bottom: 14px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: var(--full);
  background: rgba(0, 0, 0, .32);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.dy-seal {
  position: absolute; right: 90px; bottom: 14px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 2px solid rgba(224, 72, 45, .9);
  color: rgba(255, 216, 190, .95);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 17px; font-weight: 900;
  transform: rotate(-8deg);
  background: rgba(120, 30, 20, .28);
}
.dy-settings {
  position: absolute; right: 16px; top: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, .2); color: #fff; font-size: 18px;
  backdrop-filter: blur(6px);
}
.dy-profile {
  position: relative;
  margin-top: -46px;
  padding: 0 4px;
}
.dy-avatar {
  position: relative;
  width: 88px; height: 88px;
  border-radius: 50%;
  border: 4px solid var(--bg);
  background: var(--brand);
  color: #fff;
  display: grid; place-items: center;
  font-size: 34px; font-weight: 900;
  box-shadow: 0 8px 22px rgba(80, 35, 20, .22);
}
.dy-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.ava-merchant {
  position: absolute;
  left: 100%; top: 50%;
  transform: translateY(-50%);
  margin-left: 6px;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px; line-height: 1; font-weight: 800; letter-spacing: .2px;
  color: #6B4A12;
  background: linear-gradient(135deg, #FBEBC7, #E6C27B);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 2px 10px rgba(120, 80, 20, .28);
}
.dy-name { margin-top: 8px; font-size: 24px; font-weight: 900; letter-spacing: -.7px; display: flex; align-items: center; gap: 8px; }
.dy-verified { font-size: 10px; color: var(--brand); background: var(--brand-weak); padding: 3px 7px; border-radius: 6px; font-weight: 700; }
.dy-id { margin-top: 4px; font-size: 11px; color: var(--sub); }
.dy-bio { margin-top: 8px; font-size: 13px; line-height: 1.6; color: #4d4438; }
.dy-stats { display: flex; gap: 28px; margin: 14px 0 0; }
.dy-stats a { display: flex; align-items: baseline; gap: 5px; }
.dy-stats b { font-size: 18px; }
.dy-stats span { font-size: 11px; color: var(--sub); }
.dy-actions { display: flex; gap: 10px; margin-top: 14px; }
.dy-btn {
  flex: 1; min-height: 40px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
}
.dy-btn.primary { background: var(--brand); color: #fff; }
.dy-btn.ghost { background: #fff; border: 1px solid var(--paper-line); color: var(--ink); }
.dy-tabs {
  display: flex; gap: 22px; margin: 20px 0 0;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.dy-tabs a { padding: 0 0 10px; font-size: 13px; color: var(--sub); white-space: nowrap; }
.dy-tabs a.on { color: var(--ink); font-weight: 900; border-bottom: 2px solid var(--ink); }
.dy-profile + .dy-tabs + .me-role { margin-top: 10px; }

/* 子页 */
.back { display: inline-block; font-size: 12px; color: var(--sub); margin-bottom: 6px; }
.detail-cover { height: 210px; border-radius: var(--r2); background: linear-gradient(150deg, #0f241b, #2f6b4f); margin-bottom: -18px; }
.sheet { position: relative; background: var(--paper); border-radius: var(--r3); padding: 16px; border: 1px solid var(--paper-line); }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--paper-line); font-size: 13px; }
.kv span:first-child { color: var(--sub); }
.btn { display: block; width: 100%; border: 0; border-radius: var(--r1); background: var(--brand); color: #fff; padding: 12px; text-align: center; font-weight: 800; font-size: 14px; margin-top: 14px; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.na { color: var(--sub); font-size: 12px; line-height: 20px; }

.notice {
  padding: 10px 12px;
  border-radius: var(--r1);
  background: #FBE3D9;
  color: #8A3A22;
  font-size: 12px;
  line-height: 19px;
}

.video-detail { position: relative; }
.video-detail video {
  display: block;
  width: 100%;
  max-height: 68vh;
  background: #000;
  border-radius: var(--r2);
}
.video-poster {
  display: block;
  width: 100%;
  max-height: 68vh;
  object-fit: cover;
  background: #000;
  border-radius: var(--r2);
}
.video-live-float {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: var(--full);
  background: rgba(18, 12, 10, .62);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}
.video-live-float.live { background: rgba(190, 45, 28, .88); }
.video-live-float .live-pulse { width: 7px; height: 7px; box-shadow: none; animation: none; background: #fff; }
.video-live-float .live-outline { width: 14px; height: 14px; border-color: #fff; }
.video-live-float .live-outline::after { left: 4px; top: 3px; border-left-width: 5px; border-top-width: 3px; border-bottom-width: 3px; border-left-color: #fff; }

.video-info { padding: 12px 0; }
.video-info h1 { margin: 8px 0 4px; font-size: 20px; line-height: 28px; }

.live-room video { display: block; width: 100%; max-height: 65vh; background: #000; border-radius: var(--r2); }
.live-room video.beauty { filter: brightness(1.08) saturate(1.12) contrast(1.02); }

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}
.splash-logo { font-size: 38px; font-weight: 900; letter-spacing: 4px; color: var(--brand); }

.toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(12px); background: #1B1D21; color: #fff; border-radius: var(--full); padding: 9px 16px; font-size: 12px; opacity: 0; pointer-events: none; transition: .2s; z-index: 80; }
.toast.on { opacity: .92; transform: translateX(-50%) translateY(0); }

/* 排版整理最终覆盖：确保晚于通用卡片/表单规则 */
.cards { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.card { border-radius: var(--r-card); box-shadow: 0 8px 24px rgba(30, 25, 18, .07); }
.card .body { padding: 13px 14px; }
.card .body b { font-size: 15px; line-height: 1.4; }
.form-skeleton { background: #FFFDF8; border: 1px solid var(--paper-line); border-radius: var(--r-card); padding: 20px; box-shadow: 0 8px 24px rgba(30, 25, 18, .05); }
.btn { min-height: 46px; border-radius: var(--r-control); }
.chip { border-radius: 10px; padding: 8px 12px; }
.section { margin: 28px 0 12px; padding-bottom: 8px; border-bottom: 1px solid rgba(227, 213, 184, .55); }
.section h2 { font-size: 16px; }
.screen { max-width: var(--shell); padding: 4px var(--page-pad) 24px; }
.top { max-width: var(--shell); height: 52px; margin-top: 0; border: 0; border-bottom: 1px solid var(--line); box-shadow: none; }
.feed-mode .screen { max-width: none; padding: 0 10px; }
.feed-mode .top { border: 0; border-radius: 0; box-shadow: none; margin: 0; }.feed-mode .brand { color: #fff; }

.sheet > .btn.ghost,
.sheet > a.btn.ghost {
  display: inline-flex;
  width: auto;
  min-height: 40px;
  margin: 8px 8px 0 0;
  padding: 9px 13px;
  font-size: 13px;
}

/* 操作按钮组：避免 .btn 的 100% 宽度把快捷入口撑成整行 */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 14px; }
.actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  flex: 0 1 auto;
  min-height: 40px;
  margin: 0;
  padding: 9px 14px;
  font-size: 13px;
  border-radius: 11px;
}
.actions .btn.small { min-height: 34px; padding: 7px 11px; font-size: 12px; }

.mini-map {
  position: relative;
  height: 300px;
  margin: 12px 0;
  overflow: hidden;
  border: 1px solid #d9d0bd;
  border-radius: 18px;
  background:
    linear-gradient(rgba(175, 160, 130, .14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(175, 160, 130, .14) 1px, transparent 1px),
    radial-gradient(120% 90% at 20% 10%, #f3efe2, #e7e0cf);
  background-size: 34px 34px, 34px 34px, auto;
  box-shadow: inset 0 0 50px rgba(90, 75, 45, .08);
}
.mini-river {
  position: absolute; left: -10%; right: -10%; top: 58%;
  height: 20px; background: rgba(88, 139, 160, .22);
  transform: rotate(-6deg); border-radius: 50%;
}
.mini-road { position: absolute; height: 3px; background: rgba(255, 255, 255, .8); box-shadow: 0 0 0 1px rgba(160, 145, 115, .18); }
.mini-road.r1 { left: -6%; right: -6%; top: 32%; transform: rotate(8deg); }
.mini-road.r2 { left: 12%; right: -12%; top: 74%; transform: rotate(-15deg); }
.mini-pin { position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; z-index: 2; }
.mini-pin b { width: 30px; height: 30px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 12px; box-shadow: 0 4px 10px rgba(120, 45, 20, .3); }
.mini-pin b i { font-style: normal; transform: rotate(45deg); }
.mini-pin span { display: none; position: absolute; bottom: 38px; white-space: nowrap; padding: 4px 8px; border-radius: 8px; background: rgba(27, 29, 33, .88); color: #fff; font-size: 10px; }
.mini-pin:hover span, .mini-pin:focus span { display: block; }
.mini-legend { position: absolute; left: 10px; bottom: 10px; font-size: 10px; color: #6b6255; background: rgba(255, 249, 236, .85); padding: 3px 8px; border-radius: 6px; }

.list { display: flex; flex-direction: column; gap: 8px; }
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: #FFFDF8;
  border: 1px solid var(--paper-line);
  border-radius: 12px;
}
.list-item .grow { flex: 1; min-width: 0; }
.list-item b { display: block; font-size: 14px; line-height: 1.45; color: var(--ink); }
.list-item small { display: block; margin-top: 3px; font-size: 11px; line-height: 1.55; color: var(--sub); }
.list-item .btn { flex: none; }

.form-row input, .form-row select, .form-row textarea {
  border-radius: var(--r-control) !important;
  border-color: var(--line) !important;
  background: #fff !important;
  min-height: 44px;
}
.form-row textarea { min-height: 96px; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  border-color: var(--brand) !important;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(232, 84, 47, .12);
}

.ai-entry {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid #F2C3B4;
  border-radius: 12px;
  background: linear-gradient(90deg, #FFF1EC, #FFFDF8);
}
.ai-entry-btn {
  flex: none;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
}
.ai-entry span { font-size: 10px; line-height: 1.45; color: var(--sub); }
.ai-mask { align-items: flex-start; padding-top: 8vh; }
.ai-card { max-height: 84vh; overflow-y: auto; }
.ai-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ai-card-head h2 { margin: 6px 0 0; font-size: 21px; }
.ai-card .form-row { margin-top: 14px; }
.ai-card .form-row textarea { width: 100%; height: 86px; padding: 11px; }
.ai-card .actions { margin-top: 14px; }
.ai-card .actions .btn { flex: 1; width: auto; margin: 0; }

/* 发起活动：分步表单 */
.create-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.create-eyebrow { font-size: 9px; letter-spacing: 2px; color: var(--brand); font-weight: 900; }
.create-top h1 { margin: 4px 0 4px; font-size: 26px; letter-spacing: -.8px; }
.create-top p { margin: 0; font-size: 11px; color: var(--sub); }
.ai-field { position: relative; display: block; }
.ai-badge {
  width: 30px; height: 30px;
  border: 0; border-radius: 50%;
  background: linear-gradient(135deg, #FF8A5C, var(--brand));
  color: #fff;
  font-size: 10px; font-weight: 900; letter-spacing: .4px;
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(232, 84, 47, .35);
}
.ai-badge:disabled { opacity: .6; }
.ai-badge.in-field {
  position: absolute;
  right: 8px; bottom: 8px;
  width: 26px; height: 26px;
  font-size: 9px;
}
.ai-field input + .ai-badge.in-field { bottom: auto; top: 50%; transform: translateY(-50%); }
.create-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.create-progress::-webkit-scrollbar { display: none; }
.create-progress span {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--sub);
  font-size: 10px;
  white-space: nowrap;
}
.create-progress span b {
  width: 17px; height: 17px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--line);
  color: var(--sub);
  font-size: 9px;
}
.create-progress span.on { border-color: var(--brand); color: var(--brand); font-weight: 800; }
.create-progress span.on b { background: var(--brand); color: #fff; }
.create-progress span.done b { background: var(--green); color: #fff; }
.create-form { padding: 16px; }
.create-block { padding: 4px 0 18px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.create-block:last-of-type { border-bottom: 0; padding-bottom: 4px; }
.create-block .create-step-title { margin-bottom: 12px; }
.create-templates { margin-bottom: 4px; }
.create-step { display: none; padding-top: 14px; }
.create-step.on { display: block; }
.create-step-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.create-step-title b { font-size: 17px; letter-spacing: -.3px; }
.create-step-title span { font-size: 10px; color: var(--sub); }
.create-form .form-row { margin-bottom: 13px; }
.create-form .form-row input,
.create-form .form-row select,
.create-form .form-row textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}
.create-form .form-row textarea { height: 112px; resize: vertical; }
.create-form .ai-field input,
.create-form .ai-field textarea { padding-right: 44px; }
.create-form .form-row label { font-size: 11px; color: var(--sub); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-grid.time-grid { grid-template-columns: 1fr; gap: 0; }
.form-grid.three { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.form-grid.three .form-row label { white-space: nowrap; }
.cat-picker { display: flex; flex-wrap: wrap; gap: 7px; }
.cat-pill {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 12px;
}
.cat-pill.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 800; }
.create-form .cat-picker .cat-other {
  flex: 1 1 96px;
  width: auto;
  min-width: 80px;
  height: 32px;
  padding: 0 12px;
  border: 1px dashed var(--paper-line);
  border-radius: 9px;
  background: rgba(255, 255, 255, .7);
  font-size: 12px;
}
.create-form .cat-picker .cat-other::placeholder { color: var(--sub); }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice {
  text-align: left;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}
.choice b { display: block; font-size: 13px; }
.choice small { display: block; margin-top: 3px; font-size: 10px; color: var(--sub); }
.choice.on { border-color: var(--brand); background: #FFF1EC; box-shadow: inset 0 0 0 1px var(--brand); }
.create-tip {
  margin: 2px 0 14px;
  padding: 9px 11px;
  border-left: 3px solid var(--brand);
  border-radius: 6px;
  background: #FFF8EC;
  color: var(--sub);
  font-size: 10px;
  line-height: 1.55;
}
.draft-notice { margin-bottom: 12px; }
.draft-toggle {
  flex: none;
  align-self: flex-start;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--full);
  background: rgba(255, 255, 255, .6);
  color: var(--sub);
  font-size: 11px;
  font-weight: 700;
}
.draft-toggle.on {
  color: var(--brand);
  border-color: rgba(232, 84, 47, .3);
  background: var(--brand-weak);
}
.create-count { text-align: right; margin-top: 3px; font-size: 10px; color: var(--sub); }
.create-total {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 0 12px; padding: 11px 13px;
  border: 1px dashed rgba(201, 162, 92, .6); border-radius: 11px;
  background: rgba(201, 162, 92, .08);
}
.create-total span { display: block; font-size: 11px; color: var(--sub); }
.create-total small { display: block; margin-top: 2px; font-size: 10px; color: var(--sub); }
.create-total b { font-size: 20px; letter-spacing: -.3px; color: var(--brand); }
.create-summary {
  padding: 14px;
  border: 1px dashed var(--paper-line);
  border-radius: 12px;
  background: #FFFDF8;
}
.create-summary-label { display: block; margin-bottom: 5px; font-size: 9px; letter-spacing: 1px; color: var(--brand); font-weight: 800; }
.create-summary b { display: block; font-size: 16px; line-height: 1.4; }
.create-summary small { display: block; margin-top: 4px; font-size: 11px; color: var(--sub); }
.create-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.create-actions .btn { flex: 1; width: auto; margin: 0; }
.create-actions .btn.ghost { flex: 0 0 auto; padding-left: 14px; padding-right: 14px; }
@media (max-width: 360px) {
  .form-grid.three { grid-template-columns: 1fr 1fr; }
  .create-progress span { font-size: 9px; }
}

/* 发布中心 */
.publish-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.publish-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 148px;
  padding: 16px;
  border: 1px solid var(--paper-line);
  border-radius: 20px;
  background: #FFFDF8;
  box-shadow: 0 8px 22px rgba(30, 25, 18, .06);
  overflow: hidden;
}
.publish-card::after {
  content: "";
  position: absolute; right: -28px; bottom: -38px;
  width: 100px; height: 100px; border-radius: 50%;
  background: rgba(232, 84, 47, .06);
}
.publish-icon {
  width: 40px; height: 40px;
  margin-bottom: 16px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--brand-weak);
  color: var(--brand);
  font-size: 16px; font-weight: 900;
}
.publish-icon.table { background: #EAF3ED; color: var(--green); }
.publish-icon.video { background: #EFEAF8; color: #6B5B95; }
.publish-icon.live { background: #FDE8E4; color: #C6432B; }
.publish-card b { font-size: 16px; letter-spacing: -.3px; }
.publish-card small { margin-top: 4px; font-size: 10px; line-height: 1.5; color: var(--sub); }
.publish-card i { position: absolute; right: 14px; bottom: 12px; font-style: normal; color: var(--brand); font-weight: 900; }

/* 顶部古籍轮播：纯文字，无卡片底色 */
.top {
  height: 52px;
  margin: 0 auto;
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: blur(10px);
  box-shadow: none;
  max-width: var(--shell);
}
.quote {
  font-family: var(--shu);
  font-size: 19px;
  font-weight: 800;
  -webkit-text-stroke: .3px currentColor;
  letter-spacing: .5px;
  color: var(--ink);
  white-space: normal;
  line-height: 1.35;
  max-height: 46px;
}
.top-msg {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--sub);
  font-size: 17px;
}
.feed-mode .top-msg { color: rgba(255, 255, 255, .92); }
.feed-mode .top { background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,0)); }
.feed-mode .quote { color: rgba(255,255,255,.92); font-size: 14px; white-space: nowrap; }
@media (max-width: 420px) {
  .quote { font-size: 15px; letter-spacing: 0; }
  .top { gap: 4px; }
}

/* 首页互动图标尺寸 */
.rail-dot svg { width: 22px; height: 22px; }
.top-msg svg { width: 19px; height: 19px; }
.feed-loc { display: inline-flex; align-items: center; gap: 10px; }
.feed-loc svg { width: 16px; height: 16px; }

.chips, .dy-tabs { scrollbar-width: none; -ms-overflow-style: none; }
.chips::-webkit-scrollbar, .dy-tabs::-webkit-scrollbar { display: none; }

/* 三端适配：手机铺满 / 平板 720 双列 / 桌面侧栏 + 1080 三列 */
.side { display: none; }

@media (min-width: 768px) {
  :root { --shell: 720px; }
  body { background: #14110d; }
  body.feed-mode { background: #000; }
  .screen {
    min-height: calc(100vh - 68px);
    background: var(--bg);
    border-left: 1px solid rgba(255, 255, 255, .06);
    border-right: 1px solid rgba(255, 255, 255, .06);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
  }
  body.feed-mode .screen { background: #000; border: 0; box-shadow: none; min-height: 100vh; }
  .top {
    background: rgba(255, 249, 236, .96);
    border-left: 1px solid rgba(255, 255, 255, .06);
    border-right: 1px solid rgba(255, 255, 255, .06);
  }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-card, .comment-card, .sheet { max-width: 520px; margin-left: auto; margin-right: auto; }
}

@media (min-width: 1100px) {
  :root { --shell: 1080px; }
  body {
    padding-left: 240px;
    min-height: 100vh;
    background: #14110d;
  }
  .side {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0; top: 0;
    width: 240px;
    height: 100vh;
    padding: 20px 14px;
    background: #17130f;
    border-right: 1px solid rgba(255, 255, 255, .08);
    z-index: 30;
  }
  .side-brand { padding: 6px 10px 22px; }
  .side-brand span { position: relative; display: inline-block; font-family: var(--shu); font-size: 28px; font-weight: 700; letter-spacing: 3px; color: var(--brand); }
  .side-brand span::after {
    content: "";
    position: absolute;
    left: 2px; right: 8px; bottom: -2px;
    height: 5px;
    background: linear-gradient(90deg, rgba(232, 84, 47, .95), rgba(232, 84, 47, .25) 70%, transparent);
    border-radius: 50% 30% 50% 30% / 60% 40% 60% 40%;
    transform: rotate(-1.6deg);
    transform-origin: left center;
  }
  .side-brand small { display: block; margin-top: 7px; font-size: 11px; color: rgba(255, 255, 255, .45); letter-spacing: 1px; }
  .side-nav { display: flex; flex-direction: column; gap: 4px; }
  .side-nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 12px; border-radius: 12px;
    color: rgba(255, 255, 255, .68); font-size: 14px;
    transition: background .15s, color .15s;
  }
  .side-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
  .side-nav a.on { background: rgba(232, 84, 47, .16); color: #fff; font-weight: 700; }
  .side-nav svg { width: 20px; height: 20px; }
  .side-foot { margin-top: auto; display: flex; gap: 14px; padding: 12px; font-size: 12px; color: rgba(255, 255, 255, .4); }
  .side-foot a:hover { color: #fff; }

  .top { max-width: var(--shell); height: 52px; margin: 0 auto; }
  .screen { min-height: calc(100vh - 76px); }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-head h1 { font-size: 30px; }
  .page-head p { font-size: 13px; }
  .menu { left: calc(50% + 120px); }
  .toast { left: calc(50% + 120px); }
  body.feed-mode { padding-left: 240px; }

  /* 桌面已有侧栏品牌，顶部栏只保留操作入口 */
  body:not(.feed-mode) .brand,
  body:not(.feed-mode) .quote { display: none; }
  body:not(.feed-mode) .top {
    justify-content: flex-end;
    height: 52px;
    margin-top: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 249, 236, .96);
    box-shadow: none;
  }
  body.feed-mode .screen { max-width: none; margin: 0; }
  body.feed-mode .top { display: none; }
  body.feed-mode .feed-topbar { top: 20px; left: 240px; right: 0; width: auto; max-width: none; transform: none; }
}

/* 活动状态语义色：ok 已成局/满员，warn 审核/待确认，danger 驳回，muted 结束/取消，active 招募中 */
.st-ok, .st-warn, .st-danger, .st-muted, .st-active { font-weight: 600; }
.st-ok, .st-active { color: var(--brand); }
.st-warn { color: #B26A00; }
.st-danger { color: #B42318; }
.st-muted { color: var(--sub); }

/* 详情页主 CTA 吸底，避免长页面中按钮在视口外点不到 */
.detail-cta { position: sticky; bottom: 14px; z-index: 6; box-shadow: 0 10px 24px rgba(232, 84, 47, .28); }
