/* 水云电竞 H5 · 样式（A 暗夜霓虹·克制化版，色板与 app.wxss 一致） */
:root {
  --bg: #0D1420;
  --card: #16212E;
  --sub: #1C2938;
  --text: #F2F5F8;
  --text-2: #A7B3C2;
  --text-3: #8291A3;
  --accent: #FF5A6A;
  --btn: #D43C52;
  --gold: #F2C45E;
  --green: #42C7A5;
  --blue: #70AEFF;
  --line: rgba(255, 255, 255, 0.06);
  --divider: rgba(255, 255, 255, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
  padding-bottom: calc(56px + env(safe-area-inset-bottom));
}
a { color: var(--accent); text-decoration: none; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--divider);
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.topbar .logo { font-size: 18px; font-weight: 800; letter-spacing: 1px; }
.topbar .logo em { color: var(--accent); font-style: normal; }
.topbar .tip { font-size: 12px; color: var(--text-3); }

.page { padding: 12px 16px 24px; }
.notice {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text-3); font-size: 12px; line-height: 1.6;
  padding: 10px 12px; margin-bottom: 12px;
}

.filters { display: flex; gap: 8px; margin-bottom: 12px; }
.filters select {
  flex: 1; min-width: 0;
  background: var(--sub); color: var(--text-2);
  border: 1px solid var(--line); border-radius: 8px;
  height: 34px; padding: 0 8px; font-size: 13px;
  appearance: none; -webkit-appearance: none;
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}
.card.pinned {
  background: #1A2433;
  border-left: 3px solid var(--accent);
  padding-left: 11px;
}
.card .head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--sub); color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; flex-shrink: 0;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.head .who { flex: 1; min-width: 0; }
.head .nick { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.head .meta { font-size: 12px; color: var(--text-3); margin-top: 2px; }

.tag {
  display: inline-block; font-size: 11px; line-height: 1;
  padding: 4px 8px; border-radius: 6px;
  background: var(--sub); color: var(--text-2);
  margin-right: 6px; margin-bottom: 6px;
}
.tag.rank { color: var(--gold); border: 1px solid rgba(242, 196, 94, 0.35); background: transparent; }
.tag.gender-f { color: var(--accent); border: 1px solid rgba(255, 90, 106, 0.35); background: transparent; }
.tag.pin { color: var(--gold); }
.tag.online { color: var(--green); }

.card .note {
  font-size: 13px; color: var(--text-2); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 10px;
}
.card .foot { display: flex; align-items: center; justify-content: space-between; }
.card .time { font-size: 11px; color: var(--text-3); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 18px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  border: none; cursor: pointer;
  background: var(--sub); color: var(--text);

/* 表单 */
.field { margin-bottom: 16px; }
.field .label { font-size: 13px; color: var(--text-2); margin-bottom: 8px; display: flex; justify-content: space-between; }
.field .label .hint { color: var(--text-3); font-size: 11px; }
.field input[type="text"], .field input[type="tel"], .field textarea {
  width: 100%; background: var(--sub); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  height: 44px; padding: 0 12px; font-size: 14px; outline: none;
}
.field textarea { height: 88px; padding: 10px 12px; resize: none; line-height: 1.5; }
.field input:focus, .field textarea:focus { border-color: rgba(255, 90, 106, 0.4); }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  padding: 8px 14px; border-radius: 8px; font-size: 13px;
  background: var(--sub); color: var(--text-2);
  border: 1px solid var(--line); cursor: pointer; user-select: none;
}
.opt.on { border-color: var(--accent); color: var(--accent); background: rgba(255, 90, 106, 0.08); }
.opt.gold.on { border-color: var(--gold); color: var(--gold); background: rgba(242, 196, 94, 0.08); }

.cost-bar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px; margin-bottom: 16px; font-size: 13px; color: var(--text-2);
}
.cost-bar .num { color: var(--gold); font-weight: 700; font-size: 16px; }
.cost-bar .free { color: var(--green); font-weight: 600; }

.empty { text-align: center; color: var(--text-3); font-size: 13px; padding: 48px 0; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  height: calc(56px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: #0F1725;
  border-top: 1px solid var(--divider);
  display: flex;
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 11px; gap: 2px;
}
.tabbar a .ico { font-size: 20px; line-height: 1; }
.tabbar a.on { color: var(--accent); }

.mask {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.6);
  display: none; align-items: flex-end; justify-content: center;
}
.mask.show { display: flex; }
.sheet {
  width: 100%; max-width: 480px;
  background: var(--card); border-radius: 16px 16px 0 0;
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.sheet h3 { font-size: 16px; margin-bottom: 14px; }
.sheet .row { display: flex; gap: 10px; margin-top: 16px; }
.sheet .row .btn { flex: 1; }

.gid-box {

/* 消息页 */
.chat-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.chat-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; }
.chat-item .bubble {
  flex: 1; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 10px; font-size: 13px; line-height: 1.5;
}
.chat-item .bubble .n { color: var(--text-3); font-size: 11px; margin-bottom: 2px; }
.chat-item.mine { flex-direction: row-reverse; }
.chat-item.mine .bubble { background: rgba(212, 60, 82, 0.16); border-color: rgba(212, 60, 82, 0.3); }
.chat-input {
  position: fixed; left: 0; right: 0; z-index: 25;
  bottom: calc(56px + env(safe-area-inset-bottom));
  display: flex; gap: 8px; padding: 8px 12px;
  background: #0F1725; border-top: 1px solid var(--divider);
}
.chat-input input {
  flex: 1; height: 38px; background: var(--sub); color: var(--text);
  border: 1px solid var(--line); border-radius: 19px; padding: 0 14px; font-size: 13px; outline: none;
}

/* 我的 */
.mine-head { display: flex; align-items: center; gap: 14px; padding: 20px 4px 16px; }
.mine-head .avatar { width: 60px; height: 60px; font-size: 24px; }
.mine-head .nick { font-size: 18px; font-weight: 700; }
.mine-head .sub { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.wallet {
  display: flex; align-items: center;
  background: linear-gradient(135deg, rgba(242, 196, 94, 0.12), rgba(242, 196, 94, 0.03));
  border: 1px solid rgba(242, 196, 94, 0.25);
  border-radius: 14px; padding: 16px; margin-bottom: 12px;
}
.wallet .d { font-size: 22px; font-weight: 800; color: var(--gold); }
.wallet .t { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.menu { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 12px; }
.menu a, .menu .item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 14px; font-size: 14px; color: var(--text);
  border-bottom: 1px solid var(--divider); cursor: pointer;
}
.menu a:last-child, .menu .item:last-child { border-bottom: none; }
.menu .arrow { color: var(--text-3); font-size: 12px; }

.toast {
  position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.82); color: #fff;
  padding: 12px 20px; border-radius: 10px; font-size: 14px;
  z-index: 99; display: none; max-width: 80%;
}
.toast.show { display: block; }

.login-cta { padding: 60px 24px; text-align: center; }
.login-cta p { color: var(--text-3); font-size: 13px; margin: 14px 0 22px; }

  background: var(--sub); border: 1px dashed rgba(242, 196, 94, 0.4);
  border-radius: 10px; padding: 16px; text-align: center;
  font-size: 18px; font-weight: 700; color: var(--gold);
  letter-spacing: 1px; margin: 8px 0 4px; user-select: all;
}
.gid-tip { font-size: 12px; color: var(--text-3); text-align: center; margin-top: 8px; }

}
.btn:active { opacity: 0.85; }
.btn-main { background: var(--btn); color: #fff; }
.btn-ghost { background: transparent; border: 1px solid var(--accent); color: var(--accent); }
.btn-gold { background: transparent; border: 1px solid var(--gold); color: var(--gold); }
.btn-sm { height: 30px; padding: 0 12px; font-size: 12px; border-radius: 8px; }
.btn-block { display: flex; width: 100%; height: 46px; font-size: 15px; }
.btn[disabled] { opacity: 0.45; }
