/* TT —— 按 Telegram 的设计语言来。
   人本来就在 Telegram 上，界面长得像那边，第一眼就不用适应。

   抄的是这三样（这是 TG 最好认的记号）：
     · 那支蓝 #3390EC（Telegram Web 的主色，比 logo 的 #229ED9 更亮更干净）
     · **几乎没有阴影**。TG 是扁的，靠 1px 描边和圆角分层，不靠投影
     · 头像的 7 套渐变色 —— TG 给每个用户分一套，没传图的摊位就用它 */
:root {
  --bg: #f4f4f5;
  --card: #fff;
  --ink: #000;
  --mut: #707579;
  --mut2: #a2acb4;
  --line: #e6e8ea;
  --tg: #3390ec;
  --tg-h: #2b7fd4;
  --tg-soft: #e7f3ff;
  --r: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: 15px/1.45 -apple-system, "SF Pro Text", "PingFang SC", Roboto, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ── 顶栏 ───────────────────────────────────────────────────────────
   TG 桌面版的顶栏是白底 + 一条极细的线，没有模糊没有投影。 */
.top { position: sticky; top: 0; z-index: 20; background: var(--card); border-bottom: 1px solid var(--line); }
.top-in {
  max-width: 1120px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 12px;
}
.logo { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 600; letter-spacing: -.2px; }
.logo b {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(180deg, #2aabee, #229ed9); color: #fff;
  font-size: 13px; font-weight: 700; letter-spacing: -.3px;
}
.grow { flex: 1; }

.btn {
  border: none; border-radius: 10px; padding: 9px 16px;
  font: inherit; font-size: 14.5px; font-weight: 500; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  transition: background .12s, opacity .12s;
}
.btn:active { opacity: .82; }
.btn-tg { background: var(--tg); color: #fff; }
.btn-tg:hover { background: var(--tg-h); }
/* TG 的次级按钮不是描边按钮，是**蓝字无底** —— 这个细节最像。 */
.btn-ghost { background: transparent; color: var(--tg); }
.btn-ghost:hover { background: var(--tg-soft); }
.btn-soft { background: var(--tg-soft); color: var(--tg); }
.btn[disabled] { opacity: .5; cursor: default; }

/* ── 瀑布流 ─────────────────────────────────────────────────────── */
.feed { max-width: 1120px; margin: 0 auto; padding: 16px; columns: 4; column-gap: 12px; }
@media (max-width: 1024px) { .feed { columns: 3; } }
@media (max-width: 720px)  { .feed { columns: 2; } .top-in { padding: 9px 12px; } .feed { padding: 12px; column-gap: 10px; } }

.booth {
  break-inside: avoid; margin-bottom: 12px; background: var(--card);
  border-radius: var(--r); overflow: hidden; cursor: pointer;
  border: 1px solid var(--line); transition: border-color .14s, transform .14s;
}
.booth:hover { border-color: #cfd4d9; transform: translateY(-2px); }
.booth img.cover { display: block; width: 100%; height: auto; background: #eceef0; }
/* 没传图的摊位：用 TG 那套头像渐变 + 名字首字。不会变成坏卡片。 */
.cover-text { aspect-ratio: 4/3; display: grid; place-items: center; font-size: 40px; font-weight: 600; color: #fff; }
.booth-b { padding: 11px 12px 12px; }
.booth h3 { margin: 0 0 3px; font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: -.1px; }
.booth p { margin: 0; font-size: 13.5px; color: var(--mut); line-height: 1.4; }
.row { display: flex; align-items: center; gap: 7px; margin-top: 10px; }
.ava { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; object-fit: cover; display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 600; }
.uname { font-size: 13px; color: var(--tg); }
.price { margin-left: auto; font-size: 13px; color: var(--mut); }
.chip { font-size: 12px; color: var(--mut2); }

/* ── 空状态 ─────────────────────────────────────────────────────── */
.empty { max-width: 420px; margin: 15vh auto; text-align: center; padding: 0 24px; }
.empty .ic {
  width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 18px;
  background: linear-gradient(180deg, #2aabee, #229ed9); display: grid; place-items: center;
}
.empty h2 { font-size: 19px; font-weight: 600; margin: 0 0 8px; letter-spacing: -.2px; }
.empty p { color: var(--mut); margin: 0 0 20px; font-size: 14.5px; line-height: 1.5; }
.empty .hint { font-size: 13px; color: var(--mut2); margin-top: 14px; }

/* ── 详情 ───────────────────────────────────────────────────────── */
.sheet-bg {
  position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 50;
  display: grid; place-items: center; padding: 18px; animation: fade .16s ease both;
}
@keyframes fade { from { opacity: 0 } }
.sheet {
  background: var(--card); border-radius: 16px; width: min(480px, 100%);
  max-height: 86vh; overflow: auto; animation: rise .2s cubic-bezier(.2,.8,.3,1) both;
}
@keyframes rise { from { transform: scale(.97); opacity: .5 } }
.sheet-photos { display: flex; gap: 3px; overflow-x: auto; }
.sheet-photos img { height: 180px; flex-shrink: 0; object-fit: cover; }
.sheet-in { padding: 18px; }
.sheet-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sheet-head .ava { width: 48px; height: 48px; font-size: 19px; }
.sheet h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.2px; }
.sheet .tag { color: var(--mut); margin: 2px 0 0; font-size: 14px; }
.sheet .about { white-space: pre-wrap; font-size: 14.5px; margin: 0 0 16px; color: #222; }
/* TG 的信息行：左边标签灰、右边值。 */
.kv { display: flex; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.kv b { font-weight: 400; color: var(--mut); width: 86px; flex-shrink: 0; }
.acts { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.acts .btn { width: 100%; padding: 12px; font-size: 15px; font-weight: 500; }

/* ── 表单 ───────────────────────────────────────────────────────── */
.wrap { max-width: 560px; margin: 0 auto; padding: 18px 14px 60px; }
.card { background: var(--card); border-radius: var(--r); padding: 20px; border: 1px solid var(--line); }
.card h1 { font-size: 20px; font-weight: 600; margin: 0 0 5px; letter-spacing: -.3px; }
.card .sub { color: var(--mut); margin: 0 0 20px; font-size: 14px; line-height: 1.5; }
label { display: block; margin-bottom: 15px; }
label .lb { display: block; font-size: 13px; font-weight: 500; color: var(--tg); margin-bottom: 5px; }
label .lb span { color: var(--mut2); font-weight: 400; }
input[type=text], textarea, select {
  width: 100%; border: 1px solid var(--line); background: var(--card); border-radius: 10px;
  padding: 11px 12px; font: inherit; font-size: 15px; color: var(--ink); outline: none;
  transition: border-color .12s, box-shadow .12s;
}
/* TG 输入框聚焦：**描边变成两像素蓝**，没有外发光。 */
input:focus, textarea:focus, select:focus { border-color: var(--tg); box-shadow: inset 0 0 0 1px var(--tg); }
textarea { resize: vertical; min-height: 84px; }
.hint2 { font-size: 12.5px; color: var(--mut2); margin-top: 5px; line-height: 1.45; }
.pre { display: flex; }
.pre b {
  display: grid; place-items: center; padding: 0 11px; font-weight: 400; color: var(--mut);
  background: #f4f4f5; border: 1px solid var(--line); border-right: none;
  border-radius: 10px 0 0 10px; font-size: 14.5px;
}
.pre input { border-radius: 0 10px 10px 0; }
.pre:focus-within b { border-color: var(--tg); }

.pickrow { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.avatar-pick {
  width: 62px; height: 62px; border-radius: 50%; flex-shrink: 0; cursor: pointer;
  background: var(--tg-soft); display: grid; place-items: center; color: var(--tg);
  overflow: hidden; font-size: 12px;
}
.avatar-pick img { width: 100%; height: 100%; object-fit: cover; }
.shots { display: flex; gap: 7px; flex-wrap: wrap; }
.shot { width: 74px; height: 74px; border-radius: 10px; overflow: hidden; position: relative; border: 1px solid var(--line); }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot i {
  position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center;
  font-style: normal; font-size: 12px; cursor: pointer; line-height: 1;
}
.shot.add { border-style: dashed; display: grid; place-items: center; cursor: pointer; color: var(--tg); font-size: 24px; background: var(--tg-soft); border-color: #bcdcfb; }
.err { color: #e53935; font-size: 13.5px; margin: 0 0 10px; min-height: 1px; }
.note { font-size: 12.5px; color: var(--mut2); margin-top: 13px; line-height: 1.5; }

/* ── Telegram 式的分组表单 ──────────────────────────────────────────
   这是 TG（和 iOS）表单的核心：**输入框不是一个个独立的框，
   是一张卡片里的一行行，中间用发丝线分开。** 视觉上的"框"从 9 个变成 3 个，
   一眼看过去复杂度就少一半 —— 字段一个没减，但人觉得简单多了。
   每组上面一行小灰字当标题，下面一行小灰字当说明。 */
.bar {
  position: sticky; top: 0; z-index: 20; background: var(--card);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 4px; padding: 9px 8px;
}
.bar .back {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  color: var(--tg); cursor: pointer;
}
.bar .back:hover { background: var(--tg-soft); }
.bar h1 { font-size: 16px; font-weight: 600; margin: 0; letter-spacing: -.1px; }

.form { max-width: 480px; margin: 0 auto; padding: 22px 14px 60px; }

/* 头像居中，底下一个蓝色小字。TG 改资料就是这个样子。 */
.ava-center { text-align: center; margin-bottom: 26px; }
.ava-center .pick {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 9px; cursor: pointer;
  background: linear-gradient(180deg, #2aabee, #229ed9); display: grid; place-items: center;
  overflow: hidden; position: relative;
}
.ava-center .pick img { width: 100%; height: 100%; object-fit: cover; }
.ava-center .t { font-size: 14px; color: var(--tg); cursor: pointer; }

.cap { font-size: 12.5px; color: var(--mut); padding: 0 14px 6px; }
.group {
  background: var(--card); border: 1px solid var(--line); border-radius: 11px;
  overflow: hidden; margin-bottom: 6px;
}
.group .r { display: flex; align-items: center; padding: 0 14px; border-top: 1px solid var(--line); }
.group .r:first-child { border-top: none; }
.group .r > b { color: var(--mut); font-weight: 400; font-size: 15px; flex-shrink: 0; padding-right: 2px; }
/* 行内的输入框**没有自己的边框**，靠行与行之间那条线分隔。 */
.group input[type=text], .group select, .group textarea {
  border: none; background: transparent; border-radius: 0; padding: 13px 0; box-shadow: none;
}
.group input:focus, .group select:focus, .group textarea:focus { border: none; box-shadow: none; }
.group select { appearance: none; color: var(--ink); cursor: pointer; }
.group .r.sel::after { content: "›"; color: var(--mut2); font-size: 19px; transform: rotate(90deg); margin-left: -14px; pointer-events: none; }
.group textarea { min-height: 74px; padding: 12px 0; }
.group .pad { padding: 12px 14px; }
.foot { font-size: 12.5px; color: var(--mut); padding: 0 14px; margin: 0 0 22px; line-height: 1.5; }

/* ── 人数。放在最底下，很淡。**不做成大数字横幅** ——
   数字小的时候，横幅是在提醒人"没什么人"，那比不显示更糟。
   放在脚底下，有人看见就看见，冷清的时候也不刺眼。 */
.tally {
  text-align: center; font-size: 12.5px; color: var(--mut2);
  padding: 18px 16px 30px; line-height: 1.6;
}
.tally b { font-weight: 600; color: var(--mut); }
.tally .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #4dcf5e; margin-right: 5px; vertical-align: 1px;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

/* ── 卡片（没有作品图的版本）───────────────────────────────────────── */
.who { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.ava.big { width: 40px; height: 40px; font-size: 17px; }
.who-t { min-width: 0; }
.who-t h3 { margin: 0; }
.who-t .uname { font-size: 12.5px; }
.chan {
  display: flex; align-items: center; gap: 5px; margin-top: 11px;
  font-size: 12.5px; color: var(--tg); background: var(--tg-soft);
  padding: 6px 9px; border-radius: 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}

/* ── 登录闸 ─────────────────────────────────────────────────────────
   没登录的时候整页只有一件事可做。给表单只会让人填完才发现要登录。 */
.gate { text-align: center; padding: 8vh 10px 0; }
.gate-ic {
  width: 82px; height: 82px; border-radius: 50%; margin: 0 auto 18px;
  background: linear-gradient(180deg, #2aabee, #229ed9); display: grid; place-items: center;
}
.gate h2 { font-size: 20px; font-weight: 600; margin: 0 0 8px; }
.gate p { color: var(--mut); margin: 0 0 22px; font-size: 14.5px; line-height: 1.55; }
.gate .devnote { font-size: 12.5px; color: var(--mut2); margin: 26px 0 10px; }
#tgWidget { display: flex; justify-content: center; }

.ava-center .pick .ini {
  width: 100%; height: 100%; display: grid; place-items: center;
  color: #fff; font-size: 36px; font-weight: 600;
}
.uline { font-size: 13px; color: var(--mut); margin-top: 8px; }
.uline .ok { color: #35a85b; }
.uline .warn { color: #d9822b; }

/* ── 审核面板 ────────────────────────────────────────────────────── */
.badge { background: #ff3b30; color: #fff; border-radius: 999px; padding: 3px 9px; font-size: 12.5px; font-weight: 600; }
.rev { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 15px; margin-bottom: 10px; }
.rev.pending { border-left: 3px solid var(--tg); }
.rev.rejected { opacity: .62; }
.rev .who { margin-bottom: 10px; }
.rev .st { margin-left: auto; font-size: 12px; padding: 3px 9px; border-radius: 999px; background: #eef0f2; color: var(--mut); }
.rev .st.pending { background: var(--tg-soft); color: var(--tg); }
.rev .st.live { background: #e6f7ec; color: #1f9d55; }
.rev .st.rejected { background: #fdecea; color: #d93025; }
.rev .tl { margin: 0 0 4px; font-size: 14.5px; }
.rev .cat { margin: 0; font-size: 12.5px; color: var(--mut2); }
.rev .why { margin: 10px 0 0; font-size: 13px; color: #d93025; }
.rev .links { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 0; }
.rev .links .btn { justify-content: flex-start; font-size: 13.5px; padding: 9px 12px; }
.revacts { display: flex; gap: 8px; margin-top: 12px; }
.revacts .btn { flex: 1; padding: 10px; font-weight: 600; }
.btn.ok { background: #1f9d55; color: #fff; }
.btn.no { background: #fdecea; color: #d93025; }

/* 商家自己看到的审核状态 */
.status-box { border-radius: 12px; padding: 13px 15px; margin-bottom: 16px; font-size: 14px; line-height: 1.55; }
.status-box.pending { background: var(--tg-soft); color: #1c6fb8; }
.status-box.live { background: #e6f7ec; color: #1a7f43; }
.status-box.rejected { background: #fdecea; color: #c5221f; }
.status-box b { display: block; margin-bottom: 3px; }
