/* 泰拉风云 —— 手机优先深色主题（配色跟 App 图标一套） */

:root {
  --bg:      #0E1512;
  --surface: #16211B;
  --surface2:#1E2C24;
  --line:    #2C4234;
  --text:    #EAF4EC;
  --muted:   #8FAF9C;
  --gold:    #3DD68C;
  --gold-dim:#1F7A4D;
  --purple:  #E8A33D;
  --danger:  #E5534B;
  --ok:      #5CE0A5;
  --radius:  14px;
  --topbar:  54px;
  --tabbar:  58px;
}

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

/* ★★ 必须的：只要给某个类写了 display:flex/block，它的优先级就【压过】浏览器默认的
   [hidden]{display:none} ⇒ 带 hidden 的元素照样显示。全屏浮层就栽在这上面
   （.overlay 写了 display:flex，结果三个浮层一直盖在首页上）。这条兜住全局。 */
[hidden] { display: none !important; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--text);
  font: 15px/1.5 -apple-system, "PingFang SC", "Noto Sans CJK SC",
        "Microsoft YaHei", system-ui, sans-serif;
  overscroll-behavior-y: none;
}
input, textarea, button { font-family: inherit; }

/* ============================================================ 顶栏 */

#topbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--topbar);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px; padding-top: env(safe-area-inset-top);
  background: linear-gradient(180deg, #14211A, #101B15);
  border-bottom: 1px solid var(--line);
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; letter-spacing: .5px; }
.logo  { color: var(--gold); font-size: 19px; }
.icon-btn {
  background: none; border: 1px solid var(--line); color: var(--muted);
  width: 34px; height: 34px; border-radius: 10px; font-size: 17px;
  cursor: pointer; line-height: 1; flex: 0 0 auto;
}
.icon-btn:active { background: var(--surface2); }

/* ============================================================ 主体 */

#main {
  padding: calc(var(--topbar) + env(safe-area-inset-top) + 10px) 12px
           calc(var(--tabbar) + env(safe-area-inset-bottom) + 14px);
  min-height: 100vh;
}
.page { animation: fade .16s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; } }

/* ============================================================ 卡片 / 通用 */

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px; margin-bottom: 12px;
}
.card h2 { margin: 0 0 6px; font-size: 17px; }
.card h3 { margin: 0 0 8px; font-size: 15px; color: var(--gold); }
.card.subtle { background: var(--surface2); }
.card p { margin: 6px 0; }

.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 4px 0; }
.row .k { color: var(--muted); font-size: 14px; }
.row .v { font-weight: 600; font-size: 14px; text-align: right; }
.muted { color: var(--muted); font-size: 13px; }
.loading { color: var(--muted); text-align: center; padding: 26px 0; font-size: 14px; }
.msg { margin-top: 10px; padding: 9px 11px; border-radius: 9px; font-size: 13.5px; }
.msg.ok  { background: rgba(63,185,80,.13); color: var(--ok); border: 1px solid rgba(63,185,80,.35); }
.msg.bad { background: rgba(229,83,75,.13); color: var(--danger); border: 1px solid rgba(229,83,75,.35); }
.plain { white-space: pre-wrap; word-break: break-word; font-size: 14.5px; line-height: 1.85; }

/* ============================================================ 表单 */

label { display: block; margin: 12px 0; font-size: 13px; color: var(--muted); }
/* 「注册必填」这种小角标 */
label .req {
  display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 5px;
  font-size: 10.5px; font-weight: 600;
  background: rgba(240,180,41,.18); color: var(--gold); border: 1px solid var(--gold-dim);
}
/* ★ select 也要列进来 —— 不然发车表单那个地图下拉是浏览器默认的白底色 */
input[type=text], input[type=password], input[type=search], select, textarea {
  display: block; width: 100%; margin-top: 6px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 12px; font-size: 15px;
}
select { appearance: none; -webkit-appearance: none; cursor: pointer; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold-dim); }

button.primary, button.ghost {
  display: block; width: 100%; margin-top: 12px;
  padding: 13px; border-radius: 11px; font-size: 15.5px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent;
}
button.primary { background: var(--gold); color: #241A02; }
button.primary:active { background: #d29c1c; }
button.primary:disabled { opacity: .5; }
button.ghost { background: none; color: var(--muted); border-color: var(--line); }
button.ghost:active { background: var(--surface2); }
button.ghost.danger { color: var(--danger); border-color: rgba(229,83,75,.4); }
/* 行内的小按钮（「改」这种） */
button.mini {
  margin: 0 0 0 8px; padding: 2px 9px; border-radius: 7px;
  background: none; color: var(--muted); border: 1px solid var(--line);
  font-size: 11.5px; cursor: pointer; vertical-align: middle;
}
button.mini:active { background: var(--surface2); }
#contactEdit { margin-top: 8px; }

/* ============================================================ 首页 · 搜索 */

.home-search { display: flex; gap: 9px; margin-bottom: 12px; }
.home-search input {
  margin: 0; flex: 1 1 auto; min-width: 0;
  border-radius: 22px; padding: 11px 16px;
  background: var(--surface);
}
.compose-btn {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold); color: #241A02; border: none;
  font-size: 18px; cursor: pointer; line-height: 1;
}
.compose-btn:active { background: #d29c1c; }

/* ============================================================ 首页 · 轮播 */

.banner {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 132px; margin-bottom: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 20px 16px;
  background: linear-gradient(135deg, #2A3F6E, #4A2E6E 55%, #6E2E52);
  border: 1px solid var(--line);
  background-size: cover; background-position: center;
}
.banner h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: 1px; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.banner p  { margin: 6px 0 0; font-size: 13px; color: #E4E9F5; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.banner .dots { position: absolute; bottom: 8px; right: 12px; display: flex; gap: 5px; }
.banner .dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.35); }
.banner .dot.on { background: #fff; width: 14px; border-radius: 3px; }

/* ============================================================ 首页 · 数据 + 公告 */
/* ============================================================ 首页 · 五宫格 */

.grid5 { display: flex; gap: 4px; margin-bottom: 14px; }
.grid5 .g {
  flex: 1 1 0; min-width: 0; background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 4px 0;
}
.grid5 .g:active { opacity: .6; }
.grid5 .gi {
  width: 48px; height: 48px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff;
  background: linear-gradient(140deg, #3DD68C, #E0813A);
}
.grid5 .g:nth-child(2) .gi { background: linear-gradient(140deg, #4C8BF5, #3A5FD9); }
.grid5 .g:nth-child(3) .gi { background: linear-gradient(140deg, #9B7BF0, #6D4BD0); }
.grid5 .g:nth-child(4) .gi { background: linear-gradient(140deg, #6DB0F5, #4A7BE0); }
.grid5 .g:nth-child(5) .gi { background: linear-gradient(140deg, #4FD0A8, #2E9E7C); }
.grid5 .gl { font-size: 11.5px; color: #B9C2D6; text-align: center; line-height: 1.25; }

/* ============================================================ 首页 · 签到积分 */

.checkin {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: linear-gradient(135deg, #3A2A5C, #26365E);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; margin-bottom: 14px;
}
.ck-label  { font-size: 12.5px; color: #B9C2D6; }
.ck-num    { font-size: 30px; font-weight: 800; color: var(--gold); line-height: 1.15; }
.ck-streak { font-size: 12px; color: #A9B2C6; margin-top: 3px; }
.ck-right  { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; flex: 0 0 auto; }
.ck-dots   { display: flex; gap: 4px; }
.ck-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.22); }
.ck-dots i.on { background: var(--gold); }
.ck-btn {
  padding: 10px 22px; border-radius: 20px; border: none; cursor: pointer;
  background: var(--gold); color: #241A02; font-size: 15px; font-weight: 700;
}
.ck-btn:active { background: #d29c1c; }
.ck-btn:disabled { background: rgba(255,255,255,.14); color: #8FAF9C; }

.pt-rules { font-size: 13px; color: #B9C2D6; line-height: 1.9; }
.pt-rules b { color: var(--gold); }
.pt-log .li { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.pt-log .li:last-child { border-bottom: none; }
.pt-log .l1 { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.pt-log .w { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis;
             white-space: nowrap; color: #B9C2D6; }
.pt-log .t { color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.pt-log .d { font-weight: 700; white-space: nowrap; }
.pt-log .d.plus  { color: var(--ok); }
.pt-log .d.minus { color: var(--danger); }

/* ============================================================ 首页 · 分类 + 帖子 */

.tabs3 { display: flex; gap: 22px; margin: 0 2px 12px; border-bottom: 1px solid var(--line); }
.tab3 {
  background: none; border: none; cursor: pointer; padding: 9px 0 11px;
  color: var(--muted); font-size: 15px; position: relative;
}
.tab3.active { color: var(--text); font-weight: 700; }
.tab3.active::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: -1px; width: 22px; height: 3px; border-radius: 2px; background: var(--gold);
}

.feed { display: flex; flex-direction: column; gap: 10px; }

.post {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 13px; cursor: pointer;
}
.post:active { background: var(--surface2); }
.post.pinned { border-color: var(--gold-dim); }

.p-head { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: 0 0 38px;
  background: linear-gradient(140deg, var(--gold-dim), #4A2E6E);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; color: #fff;
}
.p-name { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.p-time { font-size: 12px; color: var(--muted); margin-top: 1px; }

.lvl {
  display: inline-block; padding: 1px 7px; border-radius: 5px;
  font-size: 11px; font-weight: 600;
  background: rgba(123,76,224,.22); color: #B49BF5;
  border: 1px solid rgba(123,76,224,.45);
}
.adm {
  display: inline-block; padding: 1px 7px; border-radius: 5px;
  font-size: 11px; font-weight: 600;
  background: rgba(240,180,41,.2); color: var(--gold);
  border: 1px solid var(--gold-dim);
}
.pin-tag {
  display: inline-block; padding: 1px 7px; border-radius: 5px; font-size: 11px;
  background: rgba(229,83,75,.18); color: #F08078; border: 1px solid rgba(229,83,75,.4);
}
/* 没绑游戏ID 的账号 —— 能发言，只是标一下 */
.unbound {
  display: inline-block; padding: 1px 7px; border-radius: 5px; font-size: 11px;
  font-weight: 600; background: rgba(138,147,168,.16); color: var(--muted);
  border: 1px solid var(--line);
}

.p-title { font-size: 16px; font-weight: 700; line-height: 1.4; margin-bottom: 5px; word-break: break-word; }
.p-body {
  font-size: 14px; color: #B9C2D6; line-height: 1.6; word-break: break-word;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.p-foot {
  display: flex; gap: 18px; margin-top: 11px; padding-top: 9px;
  border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted);
}
.p-foot span { display: flex; align-items: center; gap: 4px; }
.p-foot .liked { color: var(--danger); }

/* ============================================================ 掉落表 */

.searchbar { margin-bottom: 10px; }
.searchbar input { margin: 0; }
.tabs2 { display: flex; gap: 8px; margin-bottom: 10px; }
.tab2 {
  flex: 1; padding: 9px; border-radius: 10px; font-size: 14px; cursor: pointer;
  background: var(--surface); color: var(--muted);
  border: 1px solid var(--line);
}
.tab2.active { background: rgba(240,180,41,.14); color: var(--gold); border-color: var(--gold-dim); font-weight: 600; }

.list { display: flex; flex-direction: column; gap: 9px; }
.prog-txt { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-top: 6px; }

/* ============================================================ 社区 · 发车 */
/* 一条车 = 谁 / 去哪张图 / 干啥 / 凑几个人 / 备注，5 分钟后自己消失 */

.ride-hd { display: flex; align-items: flex-start; gap: 10px; margin: 2px 0 12px; }
.ride-hd-txt { flex: 1 1 auto; min-width: 0; }   /* 标题和说明是上下两行，不是并排 */
.ride-hd-t { font-size: 17px; font-weight: 700; }
.ride-hd-s { color: var(--muted); font-size: 12.5px; margin-top: 3px; line-height: 1.5; }
.ride-hd .icon-btn { flex: 0 0 auto; }

.ride-list { display: flex; flex-direction: column; gap: 10px; }
/* 底部固定条是浮在上面的，给它留出位置，别把最后一张卡挡住 */
.ride-list { padding-bottom: 96px; }

.ride-card {
  display: flex; gap: 11px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 13px;
}
.ride-card.mine { border-color: var(--gold-dim); background: rgba(240,180,41,.07); }
.ride-av {
  width: 38px; height: 38px; border-radius: 50%; flex: 0 0 38px;
  background: linear-gradient(140deg, var(--gold-dim), #4A2E6E);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; color: #fff;
}
.ride-main { flex: 1 1 auto; min-width: 0; }
.ride-top { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.ride-nick { font-weight: 600; color: var(--text); }
.ride-left { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--gold); }
.ride-left.soon { color: var(--danger); }
/* 地图名是这张卡上最该一眼看到的东西 ⇒ 放大加粗 */
.ride-dest { font-size: 19px; font-weight: 800; margin: 3px 0 2px; word-break: break-all; }
.ride-act  { font-size: 13.5px; color: var(--gold); word-break: break-all; }
.ride-note { font-size: 13px; color: var(--muted); margin-top: 5px; word-break: break-word; }

/* 游戏ID 那一行：组队全靠它，做成一点就复制的样子 */
.ride-gid {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-top: 7px; padding: 6px 9px;
  background: var(--surface2); border: 1px dashed var(--line);
  border-radius: 9px; font-size: 12.5px; cursor: pointer;
  -webkit-user-select: text; user-select: text;   /* 复制失败时长按还能选 */
}
.ride-gid:active { background: #2B3348; border-color: var(--gold-dim); }
.ride-gid .gid-k { color: var(--muted); flex: 0 0 auto; }
.ride-gid .gid-v {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: .3px; word-break: break-all; color: var(--text);
}
.ride-gid .gid-c {
  margin-left: auto; flex: 0 0 auto;
  color: var(--gold); border: 1px solid var(--gold-dim);
  border-radius: 6px; padding: 1px 7px; font-size: 11.5px;
}
/* 没绑的时候：不是按钮，是个提示，点了带你去找绑定 */
.ride-gid.none {
  border-style: solid; border-color: rgba(229,83,75,.35);
  color: var(--danger); background: rgba(229,83,75,.08);
}
.ride-mine .ride-gid { margin-top: 5px; }

/* 发车表单里"你还没绑游戏ID"的警告条 */
.ride-warn {
  margin-top: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.6;
  background: rgba(229,83,75,.10); border: 1px solid rgba(229,83,75,.35);
  border-radius: 10px; color: var(--danger);
}
.ride-warn .lnk { color: var(--gold); text-decoration: underline; cursor: pointer; }

.tag-me, .tag-warn {
  font-size: 11px; padding: 1px 6px; border-radius: 6px; white-space: nowrap;
}
.tag-me   { background: rgba(240,180,41,.16); color: var(--gold); border: 1px solid var(--gold-dim); }
.tag-warn { background: rgba(229,83,75,.15); color: var(--danger); border: 1px solid rgba(229,83,75,.4); }

/* 底部条：没车 = 发车按钮；有车 = 我的车 + 改/取消（跟群聊那条输入框一个位置） */
.ride-foot {
  position: fixed; left: 0; right: 0;
  bottom: calc(var(--tabbar) + env(safe-area-inset-bottom));
  padding: 9px 12px;
  background: linear-gradient(180deg, rgba(18,21,31,.75), var(--bg) 40%);
  border-top: 1px solid var(--line); z-index: 15;
}
.ride-new {
  width: 100%; margin: 0; padding: 13px;
  background: var(--gold); color: #241A02; border: none;
  border-radius: 11px; font-size: 15.5px; font-weight: 600; cursor: pointer;
}
.ride-new:active { background: #d29c1c; }
.ride-mine { display: flex; align-items: center; gap: 8px; }
.rm-txt { flex: 1 1 auto; min-width: 0; }
.rm-1 { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-2 { font-size: 12px; color: var(--muted); margin-top: 2px; }
.ride-mini {
  flex: 0 0 auto; margin: 0; padding: 9px 14px;
  background: var(--surface2); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  font-size: 14px; cursor: pointer;
}
.ride-mini.danger { color: var(--danger); border-color: rgba(229,83,75,.45); }
.ride-mini:disabled { opacity: .5; }

/* 表单里的小胶囊（干啥 / 凑几个人） */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.chip {
  margin: 0; padding: 9px 14px;
  background: var(--surface2); color: var(--text);
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; cursor: pointer;
}
.chip.on { background: rgba(240,180,41,.16); border-color: var(--gold); color: var(--gold); font-weight: 600; }
.ov-body select.big-input { width: 100%; }

/* ============================================================ 我的 */

.profile { display: flex; align-items: center; gap: 13px; }
.profile .avatar { width: 54px; height: 54px; flex: 0 0 54px; font-size: 23px; font-weight: 800; }
.me-name { font-weight: 700; font-size: 17px; }
.me-uid  { font-size: 12.5px; }

/* ============================================================ 底栏 */

#tabbar {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: calc(var(--tabbar) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: flex; background: #101B15;
  border-top: 1px solid var(--line); z-index: 20;
}
.tab {
  flex: 1; background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 11.5px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 0; position: relative;
}
.tab .ic { font-size: 18px; line-height: 1; }
.tab.active { color: var(--gold); }
.tab.active::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 2.5px; background: var(--gold); border-radius: 0 0 3px 3px;
}

/* ============================================================ 全屏浮层 */

.overlay {
  position: fixed; inset: 0; z-index: 60;
  background: var(--bg);
  display: flex; flex-direction: column;
  animation: fade .15s ease;
}
.ov-bar {
  flex: 0 0 auto; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; padding-top: calc(10px + env(safe-area-inset-top));
  border-bottom: 1px solid var(--line); background: #101B15;
}
.ov-title { flex: 1; text-align: center; font-weight: 600; font-size: 16px; }
.ov-body { flex: 1 1 auto; overflow-y: auto; padding: 14px 14px 20px; }
.ov-foot {
  flex: 0 0 auto; display: flex; gap: 8px; padding: 9px 12px;
  padding-bottom: calc(9px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: #101B15;
}
.ov-foot input { margin: 0; flex: 1 1 auto; min-width: 0; }
.ov-foot button {
  flex: 0 0 78px; width: 78px; margin: 0; padding: 12px;
  background: var(--gold); color: #241A02; border: none; border-radius: 11px;
  font-size: 15.5px; font-weight: 600; cursor: pointer;
}

.big-input {
  margin: 0 0 12px; font-size: 17px; font-weight: 600;
  padding: 13px; border-radius: 11px;
}
.big-area {
  min-height: 38vh; font-size: 15px; line-height: 1.7;
  padding: 13px; border-radius: 11px; resize: vertical;
}

/* ============================================================ 服主 · 绑定管理 */

.bindrow {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 11px 13px;
}
.bindmain { flex: 1 1 auto; min-width: 0; }
.bindnick { font-weight: 600; font-size: 14.5px; }
.binduid  { color: var(--muted); font-size: 12px; margin-top: 1px; word-break: break-all; }
.bindgid  { font-size: 13.5px; margin-top: 5px; }
.bind-idv { color: var(--gold); font-weight: 600; word-break: break-all; }
.bindact  { flex: 0 0 auto; display: flex; flex-direction: column; gap: 6px; }
.bindact button.mini { margin: 0; white-space: nowrap; }
button.mini.danger { color: var(--danger); border-color: rgba(229,83,75,.4); }

.tag-adm, .tag-ban, .tag-has, .tag-nosave {
  display: inline-block; padding: 1px 6px; border-radius: 5px;
  font-size: 10.5px; font-weight: 600; vertical-align: middle;
}
.tag-adm    { background: rgba(123,76,224,.18); color: #B79BFF; border: 1px solid rgba(123,76,224,.4); }
.tag-ban    { background: rgba(229,83,75,.15); color: var(--danger); border: 1px solid rgba(229,83,75,.4); }
.tag-has    { background: rgba(63,185,80,.14); color: var(--ok); border: 1px solid rgba(63,185,80,.35); }
.tag-nosave { background: rgba(240,180,41,.15); color: var(--gold); border: 1px solid var(--gold-dim); }

/* 帖子详情里的评论 */
.cmt { display: flex; gap: 9px; padding: 11px 0; border-top: 1px solid var(--line); }
.cmt .avatar { width: 30px; height: 30px; flex: 0 0 30px; font-size: 13px; }
.cmt-main { flex: 1; min-width: 0; }
.cmt-name { font-size: 13px; font-weight: 600; }
.cmt-time { font-size: 11.5px; color: var(--muted); }
.cmt-text { font-size: 14px; margin-top: 3px; word-break: break-word; white-space: pre-wrap; }
/* 评论点赞（满 20 个赞作者得 1 分） */
.cmt-foot { margin-top: 5px; }
.cmt-foot .clk {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12.5px; color: var(--muted); cursor: pointer;
  padding: 3px 10px; border-radius: 20px; border: 1px solid var(--line);
}
.cmt-foot .clk:active { background: var(--surface2); }
.cmt-foot .clk.liked { color: var(--danger); border-color: rgba(229,83,75,.45);
                       background: rgba(229,83,75,.10); }


.detail-title { font-size: 20px; font-weight: 800; line-height: 1.4; margin: 4px 0 10px; }
.detail-body  { font-size: 15.5px; line-height: 1.85; white-space: pre-wrap; word-break: break-word; }
.detail-foot {
  display: flex; gap: 20px; padding: 14px 0; margin-top: 14px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
.detail-foot .lk { cursor: pointer; }
.detail-foot .lk.liked { color: var(--danger); }
/* 🎟 礼包码管理：勾选框那行别让 label 的块级样式把勾和文字拆两行 */
label.chk { display: flex; align-items: flex-start; gap: 8px; line-height: 1.5; }
label.chk input { width: auto; flex: 0 0 auto; margin-top: 2px; }

.sec-label { color: var(--muted); font-size: 13px; padding: 14px 0 4px; }

/* ============================================================ 吐司 */

#toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar) + 76px);
  transform: translateX(-50%);
  background: rgba(0,0,0,.88); color: #fff;
  padding: 10px 18px; border-radius: 22px; font-size: 14px;
  max-width: 84vw; text-align: center; z-index: 90;
  animation: fade .16s ease;
}

/* ============================================================ 顶栏 · 背景音乐 */

/* 顶栏右边原来只有一个 ⟳，现在多一个 ♪ —— 两个按键排一组，
   别让 justify-content:space-between 把音乐键甩到屏幕中间。 */
.top-actions { display: flex; align-items: center; gap: 8px; }

/* 关着 = 普通灰色 ♪；放起来 = 金色 ♫ + 轻轻上下跳那么点意思 */
#bgmBtn.on {
  color: var(--gold);
  border-color: var(--gold-dim);
  background: rgba(240,180,41,.12);
  animation: bgmBeat 1.8s ease-in-out infinite;
}
@keyframes bgmBeat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  #bgmBtn.on { animation: none; }
}

/* ===== 翡翠秘境 换肤覆盖层 2026-10-29（回滚: style.css.bak_retheme_*）===== */
:root{--glow:0 0 18px rgba(61,214,140,.25)}
body{background:
 radial-gradient(1200px 500px at 50% -10%, rgba(61,214,140,.10), transparent 60%),
 radial-gradient(900px 400px at 100% 100%, rgba(232,163,61,.06), transparent 55%),
 var(--bg)}
#topbar{background:linear-gradient(180deg,rgba(20,33,26,.97),rgba(14,21,18,.97));
 border-bottom:1px solid rgba(61,214,140,.35);box-shadow:0 2px 18px rgba(61,214,140,.12)}
.logo{color:var(--gold);text-shadow:0 0 10px rgba(61,214,140,.6)}
.brand{letter-spacing:2px}
.card,.stat-box,.checkin,.banner,.post,.post-card,.cell,.panel{
 background:linear-gradient(160deg,rgba(30,44,36,.92),rgba(22,33,27,.92))!important;
 border:1px solid rgba(61,214,140,.22)!important;border-radius:16px!important;
 box-shadow:0 4px 20px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.04)!important}
.ck-btn,.compose-btn,.primary{
 background:linear-gradient(135deg,#2FBF7F,#1F9A63)!important;border:none!important;
 color:#06130C!important;font-weight:700!important;box-shadow:var(--glow)!important;
 transition:transform .15s ease,filter .15s ease}
.ck-btn:active,.compose-btn:active{transform:scale(.96);filter:brightness(1.1)}
.tab3,.tab2{background:transparent!important;border:1px solid var(--line)!important;
 border-radius:999px!important;color:var(--muted)!important}
.tab3.active,.tab2.active{background:linear-gradient(135deg,rgba(61,214,140,.22),rgba(61,214,140,.08))!important;
 border-color:var(--gold)!important;color:var(--gold)!important;box-shadow:var(--glow)}
input,textarea,select{background:rgba(14,21,18,.8)!important;border:1px solid var(--line)!important;
 border-radius:12px!important;color:var(--text)!important}
input:focus,textarea:focus{border-color:var(--gold)!important;box-shadow:var(--glow)}
#tabbar,.tabbar{background:linear-gradient(0deg,rgba(14,21,18,.98),rgba(20,33,26,.96))!important;
 border-top:1px solid rgba(61,214,140,.25)!important}
.checkin{background:linear-gradient(120deg,rgba(232,163,61,.12),rgba(61,214,140,.10) 55%,rgba(22,33,27,.9))!important}
.ck-num{color:var(--gold);text-shadow:0 0 12px rgba(61,214,140,.5);font-weight:800}
::-webkit-scrollbar{width:6px}::-webkit-scrollbar-thumb{background:#1F7A4D;border-radius:3px}
a,.link,.highlight{color:var(--gold)}
.loading,.empty{color:var(--muted);letter-spacing:1px}
/* ===== 覆盖层结束 ===== */

/* ===== 🛒 积分商城 / 🎁 盲盒（2026-11-03 用户要求新增）===== */
/* 商品列表：一行一件，左边名字+说明，右边价格+兑换按钮 */
.shop-list { margin-top: 6px; }
.shop-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-top: 1px solid var(--line);
}
.shop-item:first-child { border-top: none; }
.shop-item .si-main { flex: 1 1 auto; min-width: 0; }
.shop-item .si-name { font-size: 14.5px; font-weight: 600; }
.shop-item .si-desc { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.shop-item .si-price {
  flex: 0 0 auto; color: var(--gold); font-weight: 700;
  font-size: 13.5px; white-space: nowrap;
}
.shop-item button.buy {
  flex: 0 0 auto; margin: 0; width: auto; padding: 7px 14px;
  border-radius: 9px; font-size: 13px; font-weight: 600;
  background: linear-gradient(135deg,#2FBF7F,#1F9A63); color: #06130C; border: none;
  cursor: pointer;
}
.shop-item button.buy:active { transform: scale(.96); }
.shop-item button.buy:disabled { opacity: .45; }

/* 盲盒奖池公示表 */
.box-pools { margin: 4px 0 12px; }
.box-pool {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px;
}
.box-pool:first-child { border-top: none; }
.box-pool .bp-name { color: var(--text); }
.box-pool .bp-rate { color: var(--gold); font-weight: 700; white-space: nowrap; }
/* 稀有档（概率 <= 1%）高亮一下，让人看得见有天石 */
.box-pool.rare .bp-rate { color: var(--purple); text-shadow: 0 0 8px rgba(232,163,61,.45); }
.box-pool.rare .bp-name::after { content: ' ★'; color: var(--purple); }

/* 抽奖结果那条 msg 稍微强调一点 */
#boxMsg.ok { font-weight: 600; }
