:root {
  --main: #667eea;
  --main2: #764ba2;
  --bg: #f5f6fa;
  --card: #fff;
  --text: #2d3748;
  --gray: #8a94a6;
  --line: #edf0f5;
  --ok: #2f855a;
  --warn: #c05621;
  --err: #c53030;
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  font: 14px/1.7 -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text)
}

a {
  color: var(--main);
  text-decoration: none
}

a:hover {
  text-decoration: underline
}

.wrap {
  max-width: 1180px;
  margin: 0 auto
}

/* 顶部导航 */
.nav {
  background: linear-gradient(90deg, var(--main), var(--main2));
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
  position: sticky;
  top: 0;
  z-index: 100
}

.nav .wrap {
  display: flex;
  align-items: center;
  height: 54px;
  gap: 20px
}

.logo {
  font-size: 19px;
  font-weight: 700;
  color: #fff
}

.logo:hover {
  text-decoration: none
}

.nav a {
  color: rgba(255, 255, 255, .9);
  font-size: 14px
}

.nav a:hover {
  color: #fff
}

.nav .right {
  margin-left: auto;
  display: flex;
  gap: 14px;
  align-items: center
}

.nav .ava {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #fff
}

.badge {
  background: #e53e3e;
  color: #fff;
  border-radius: 10px;
  padding: 0 6px;
  font-size: 11px;
  margin-left: 3px
}

/* 布局 */
.main {
  padding: 18px 0 40px
}

.grid {
  display: flex;
  gap: 16px;
  align-items: flex-start
}

.side {
  width: 240px;
  flex: none
}

.content {
  flex: 1;
  min-width: 0
}

.card {
  background: var(--card);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .05)
}

.card h3 {
  margin: 0 0 12px;
  font-size: 15px;
  border-left: 3px solid var(--main);
  padding-left: 8px
}

/* 列表 */
.list .item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 10px
}

.list .item:last-child {
  border-bottom: 0
}

.tavatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--main), var(--main2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex: none
}

.item .meta {
  color: var(--gray);
  font-size: 12px
}

.item .tt {
  font-size: 15px;
  font-weight: 600;
  color: var(--text)
}

.reply-count {
  background: #f0f2f7;
  border-radius: 10px;
  padding: 1px 9px;
  font-size: 12px;
  color: var(--gray);
  flex: none
}

.tag {
  background: #eef2ff;
  color: var(--main);
  border-radius: 4px;
  padding: 1px 7px;
  font-size: 12px;
  margin-right: 5px
}

.tag.top {
  background: #fed7d7;
  color: #c53030
}

.tag.good {
  background: #c6f6d5;
  color: #2f855a
}

/* 按钮表单 */
.btn {
  display: inline-block;
  padding: 7px 16px;
  background: var(--main);
  color: #fff;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px
}

.btn:hover {
  opacity: .9;
  text-decoration: none;
  color: #fff
}

.btn.gray {
  background: #718096
}

.btn.red {
  background: #e53e3e
}

.btn.sm {
  padding: 4px 10px;
  font-size: 12px
}

input[type=text],
input[type=password],
input[type=email],
input[type=number],
select,
textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 14px;
  outline: none
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--main)
}

textarea {
  min-height: 120px;
  resize: vertical
}

.field {
  margin-bottom: 14px
}

.field label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  font-size: 13px
}

/* 提示 */
.alert {
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 14px
}

.alert.ok {
  background: #f0fff4;
  color: var(--ok)
}

.alert.err {
  background: #fff5f5;
  color: var(--err)
}

.alert.warn {
  background: #fffaf0;
  color: var(--warn)
}

.empty {
  text-align: center;
  color: var(--gray);
  padding: 40px 0
}

/* 分页 */
.pages {
  margin-top: 14px;
  text-align: center
}

.pages a {
  display: inline-block;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  margin: 0 2px;
  color: var(--text)
}

.pages a.cur {
  background: var(--main);
  color: #fff;
  border-color: var(--main)
}

/* 表格 */
table.tb {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px
}

table.tb th {
  background: #f7f8fc;
  padding: 9px 8px;
  text-align: left;
  border-bottom: 2px solid var(--line);
  font-weight: 600;
  white-space: nowrap
}

table.tb td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle
}

table.tb tr:hover td {
  background: #fafbfe
}

/* IM 聊天 */
.im {
  display: flex;
  height: 560px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .05)
}

.im-side {
  width: 240px;
  border-right: 1px solid var(--line);
  overflow-y: auto;
  background: #fafbfd
}

.im-side .c {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  cursor: pointer
}

.im-side .c:hover,
.im-side .c.on {
  background: #eef2ff
}

.im-side .c .n {
  font-weight: 600;
  font-size: 14px
}

.im-side .c .m {
  color: var(--gray);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.im-main {
  flex: 1;
  display: flex;
  flex-direction: column
}

.im-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-weight: 600
}

.im-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #f7f8fa
}

.msg {
  margin-bottom: 14px;
  display: flex;
  gap: 8px
}

.msg.me {
  flex-direction: row-reverse
}

.msg .bubble {
  max-width: 62%;
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
  word-break: break-word;
  white-space: pre-wrap
}

.msg.me .bubble {
  background: var(--main);
  color: #fff
}

.msg .who {
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 3px
}

.im-foot {
  border-top: 1px solid var(--line);
  padding: 10px;
  display: flex;
  gap: 8px;
  background: #fff
}

.im-foot textarea {
  min-height: 46px;
  flex: 1;
  resize: none
}

/* 礼物 */
.gifts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px
}

.gift {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  width: 92px;
  text-align: center;
  cursor: pointer
}

.gift:hover,
.gift.on {
  border-color: var(--main);
  background: #f0f4ff
}

.gift .ic {
  font-size: 28px
}

.gift .nm {
  font-size: 13px;
  margin-top: 2px
}

.gift .pr {
  color: var(--warn);
  font-size: 12px
}

/* 商品 */
.prods {
  display: flex;
  flex-wrap: wrap;
  gap: 14px
}

.prod {
  width: 176px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06)
}

.prod .pic {
  height: 130px;
  background: #f0f2f7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px
}

.prod .info {
  padding: 9px
}

.prod .pr {
  color: #e53e3e;
  font-size: 16px;
  font-weight: 700
}

.prod .nm {
  font-size: 13px;
  height: 36px;
  overflow: hidden
}

/* 后台 */
.admin {
  display: flex;
  min-height: 100vh
}

.admin-side {
  width: 190px;
  background: #2d3748;
  color: #cbd5e0;
  flex: none
}

.admin-side .t {
  padding: 16px;
  font-size: 16px;
  color: #fff;
  font-weight: 700;
  background: #1a202c
}

.admin-side a {
  display: block;
  padding: 10px 16px;
  color: #cbd5e0;
  font-size: 13px
}

.admin-side a:hover,
.admin-side a.on {
  background: #4a5568;
  color: #fff;
  text-decoration: none
}

.admin-side .grp {
  padding: 12px 16px 4px;
  font-size: 11px;
  color: #718096;
  text-transform: uppercase
}

.admin-main {
  flex: 1;
  padding: 20px;
  background: var(--bg);
  min-width: 0
}

.stat {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px
}

.stat .s {
  flex: 1;
  min-width: 130px;
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .05)
}

.stat .s .v {
  font-size: 24px;
  font-weight: 700;
  color: var(--main)
}

.stat .s .k {
  color: var(--gray);
  font-size: 12px
}

.pill {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 11px
}

.pill.g {
  background: #c6f6d5;
  color: #2f855a
}

.pill.r {
  background: #fed7d7;
  color: #c53030
}

.pill.y {
  background: #feebc8;
  color: #c05621
}

/* 语义化别名：ok=正常(绿) warn=警告(橙)，供系统监控等新模块使用 */
.pill.ok {
  background: #c6f6d5;
  color: #2f855a
}

.pill.warn {
  background: #feebc8;
  color: #c05621
}

.pill.b {
  background: #bee3f8;
  color: #2b6cb0
}

.pill.n {
  background: #e2e8f0;
  color: #4a5568
}

.foot {
  text-align: center;
  color: var(--gray);
  padding: 20px;
  font-size: 12px
}

/* ===== 通知开关 ===== */
.switch-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  cursor: pointer
}

.sw-txt {
  flex: 1;
  min-width: 0
}

.sw-txt b {
  display: block;
  font-size: 14px;
  margin-bottom: 3px
}

.sw-txt em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--gray);
  line-height: 1.6;
  word-break: break-all
}

.sw {
  flex: none;
  position: relative;
  width: 48px;
  height: 27px
}

.sw input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 2
}

.sw i {
  position: absolute;
  inset: 0;
  background: #cbd5e0;
  border-radius: 27px;
  transition: .22s
}

.sw i::after {
  content: '';
  position: absolute;
  width: 23px;
  height: 23px;
  left: 2px;
  top: 2px;
  background: #fff;
  border-radius: 50%;
  transition: .22s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2)
}

.sw input:checked+i {
  background: var(--main)
}

.sw input:checked+i::after {
  transform: translateX(21px)
}

/* ===== 图片查看器 ===== */
.qv-mask {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .92);
  display: none;
  flex-direction: column;
  opacity: 0;
  transition: opacity .2s
}

.qv-mask.on {
  display: flex;
  opacity: 1
}

.qv-bar {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: #fff;
  flex: none
}

.qv-counter {
  font-size: 13px;
  opacity: .8
}

.qv-acts {
  margin-left: auto;
  display: flex;
  gap: 6px
}

.qv-b {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: .15s
}

.qv-b:hover {
  background: rgba(255, 255, 255, .28)
}

.qv-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  min-height: 0
}

.qv-img {
  max-width: 100%;
  max-height: 100%;
  transform-origin: center center;
  transition: transform .12s ease-out;
  user-select: none;
  -webkit-user-drag: none;
  display: block
}

.qv-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 2
}

.qv-nav:hover {
  background: rgba(255, 255, 255, .3)
}

.qv-nav.prev {
  left: 14px
}

.qv-nav.next {
  right: 14px
}

.qv-cap {
  flex: none;
  text-align: center;
  color: rgba(255, 255, 255, .75);
  font-size: 13px;
  padding: 10px 20px 0;
  min-height: 20px
}

.qv-thumbs {
  flex: none;
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 12px 16px 18px;
  overflow-x: auto
}

.qv-thumbs:empty {
  display: none
}

.qv-t {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: .5;
  border: 2px solid transparent;
  flex: none;
  transition: .15s
}

.qv-t:hover {
  opacity: .85
}

.qv-t.on {
  opacity: 1;
  border-color: #fff
}

/* ===== 视频播放器 ===== */
.qp {
  position: relative;
  max-width: 100%;
  margin: 6px 0;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
  font-size: 13px
}

.qp-video {
  width: 100%;
  max-height: 420px;
  display: block;
  background: #000;
  line-height: 1
}

.qp-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none
}

.qp.playing .qp-center {
  opacity: 0
}

.qp-center .qp-big {
  pointer-events: auto;
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  transition: .2s
}

.qp-center .qp-big:hover {
  background: rgba(0, 0, 0, .78);
  transform: scale(1.06)
}

.qp-center {
  transition: opacity .2s
}

.qp-loading {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px
}

.qp-loading span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  animation: qpbounce .9s infinite ease-in-out
}

.qp-loading span:nth-child(2) {
  animation-delay: .15s
}

.qp-loading span:nth-child(3) {
  animation-delay: .3s
}

@keyframes qpbounce {

  0%,
  80%,
  100% {
    transform: scale(.6);
    opacity: .5
  }

  40% {
    transform: scale(1);
    opacity: 1
  }
}

.qp-err {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  text-align: center;
  color: #feb2b2;
  background: rgba(0, 0, 0, .8);
  line-height: 1.7;
  font-size: 13px
}

.qp-err small {
  color: #90a0b0;
  font-size: 11px;
  word-break: break-all
}

.qp-open {
  color: #63b3ed;
  text-decoration: underline;
  margin-top: 4px
}

.qp-ctrl {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 22px 12px 9px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .82));
  opacity: 0;
  transition: opacity .25s;
  line-height: 1
}

.qp.show-ctrl .qp-ctrl,
.qp:hover .qp-ctrl,
.qp:not(.playing) .qp-ctrl {
  opacity: 1
}

.qp-btn {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  padding: 3px 5px;
  border-radius: 5px;
  flex: none;
  line-height: 1
}

.qp-btn:hover {
  background: rgba(255, 255, 255, .18)
}

.qp-rate {
  font-size: 12px;
  min-width: 34px
}

.qp-time {
  color: #fff;
  font-size: 11.5px;
  opacity: .9;
  flex: none;
  font-variant-numeric: tabular-nums
}

.qp-bar {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, .26);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  min-width: 40px
}

.qp-buf,
.qp-prog {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 3px;
  width: 0
}

.qp-buf {
  background: rgba(255, 255, 255, .28)
}

.qp-prog {
  background: #5b8ff9
}

.qp-dot {
  position: absolute;
  top: 50%;
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .5);
  left: 0
}

.qp-vol {
  width: 54px;
  height: 5px;
  background: rgba(255, 255, 255, .26);
  border-radius: 3px;
  cursor: pointer;
  flex: none;
  position: relative
}

.qp-vfill {
  height: 100%;
  width: 100%;
  background: #fff;
  border-radius: 3px
}

/* ===== 论坛富媒体 ===== */
.media-bar {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  background: #fafbfd
}

.mb-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  margin: 0 6px 6px 0;
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  background: #fff;
  font-size: 13px;
  color: #4a5568;
  cursor: pointer;
  transition: .15s;
  user-select: none
}

.mb-btn:hover {
  border-color: var(--main);
  color: var(--main)
}

.mb-btn.rec {
  background: #e53e3e;
  color: #fff;
  border-color: #e53e3e
}

.mb-info {
  display: block;
  font-size: 11.5px;
  color: #a0aec0;
  margin-top: 2px
}

.mb-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px
}

.mb-preview:empty {
  display: none
}

.mb-preview .pv {
  position: relative;
  padding: 6px 10px;
  background: #eef2ff;
  border-radius: 6px;
  font-size: 12px;
  color: var(--main)
}

.mb-preview .pv b {
  margin-left: 6px;
  cursor: pointer;
  color: #a0aec0;
  font-weight: 400
}

.mb-preview .pv b:hover {
  color: #e53e3e
}

/* 内容展示 */
.fc-body {
  word-break: break-word;
  overflow-wrap: anywhere
}

.fc-img {
  max-width: 100%;
  max-height: 420px;
  border-radius: 8px;
  margin: 6px 0;
  cursor: zoom-in;
  display: block
}

.fc-video {
  max-width: 100%;
  max-height: 400px;
  border-radius: 8px;
  margin: 6px 0;
  display: block;
  background: #000
}

.fc-voice {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  background: linear-gradient(135deg, var(--main), var(--main2));
  color: #fff;
  border-radius: 16px;
  font-size: 13px;
  cursor: pointer;
  margin: 4px 0;
  user-select: none
}

.fc-voice.playing {
  opacity: .75
}

.fc-file {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 13px;
  margin: 4px 0;
  text-decoration: none
}

.fc-file:hover {
  text-decoration: none;
  border-color: var(--main)
}

.fc-file em {
  font-style: normal;
  font-size: 11px;
  color: var(--gray)
}

@media(max-width:768px) {
  .mobile-post-card {
    display: block
  }

  .mb-btn {
    padding: 9px 14px;
    font-size: 13.5px
  }

  .fc-img,
  .fc-video {
    max-height: 260px
  }
}

@media(min-width:769px) {
  .mobile-post-card {
    display: none
  }

  .im-back {
    display: none
  }
}

/* ===== IM 工具栏 ===== */
.im-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  background: #fafbfd;
  flex-wrap: wrap
}

.im-tools .tl {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font-size: 12.5px;
  color: #5a6a7a;
  cursor: pointer;
  user-select: none;
  transition: .15s
}

.im-tools .tl:hover {
  border-color: var(--main);
  color: var(--main)
}

.im-tools .tl.rec {
  background: #e53e3e;
  color: #fff;
  border-color: #e53e3e
}

.im-tools .tl.dis {
  opacity: .5;
  cursor: not-allowed
}

.im-tools .tl-info {
  margin-left: auto;
  font-size: 11.5px;
  color: #a0aec0
}

/* ===== 商品详情页 ===== */
.prod-card {
  padding: 0 !important;
  overflow: hidden
}

/* 桌面端：左右分栏 */
.pc-pic {
  width: 340px;
  height: 340px;
  background: #f4f6fa;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  float: left;
  margin: 0 26px 16px 0
}

.pc-pic img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain
}

.pc-noimg {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #b8c1cc
}

.pc-noimg span {
  font-size: 66px;
  line-height: 1
}

.pc-noimg em {
  font-style: normal;
  font-size: 13px
}

.prod-card::after {
  content: '';
  display: block;
  clear: both
}

.pc-info {
  padding: 22px 22px 0 0
}

.pc-name {
  margin: 0 0 12px;
  font-size: 21px;
  line-height: 1.45
}

.pc-price {
  background: linear-gradient(90deg, #fff5f5, #fffaf0);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 2px
}

.pc-cur {
  color: #e53e3e;
  font-size: 17px;
  font-weight: 700
}

.pc-num {
  color: #e53e3e;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1
}

.pc-oos {
  margin-left: 10px;
  font-size: 12px;
  background: #cbd5e0;
  color: #fff;
  padding: 2px 9px;
  border-radius: 10px
}

.pc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #8a94a6;
  font-size: 13px;
  padding: 0 2px 14px
}

.pc-meta b {
  color: #4a5568
}

.pc-cat {
  background: #eef2ff;
  color: var(--main);
  padding: 1px 9px;
  border-radius: 9px;
  font-size: 12px
}

.pc-shop {
  display: flex;
  align-items: center;
  gap: 11px;
  background: #fafbfd;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  margin-bottom: 6px
}

.pc-avatar {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--main), var(--main2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 600;
  flex: none
}

.pc-shopinfo {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column
}

.pc-shopname {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none
}

.pc-shopname:hover {
  color: var(--main);
  text-decoration: none
}

.pc-shoptip {
  font-size: 11.5px;
  color: #8a94a6
}

.pc-detail {
  clear: both;
  padding: 0 22px 22px
}

.pc-detail h3 {
  font-size: 16px;
  margin: 0 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line)
}

/* 底部购买栏：仅移动端显示 */
.pc-buybar {
  display: none
}

@media(max-width:768px) {
  .prod-card {
    padding: 0 !important;
    margin-bottom: 12px
  }

  /* 图片改为通栏 */
  .pc-pic {
    float: none;
    width: 100%;
    height: 260px;
    margin: 0
  }

  .pc-info {
    padding: 16px 14px 0
  }

  .pc-name {
    font-size: 19px;
    margin-bottom: 10px
  }

  .pc-price {
    padding: 14px 16px;
    margin-bottom: 14px
  }

  .pc-num {
    font-size: 30px
  }

  .pc-meta {
    gap: 14px;
    font-size: 13.5px;
    padding-bottom: 16px
  }

  .pc-shop {
    padding: 12px 14px
  }

  .pc-detail {
    padding: 0 14px 16px
  }

  .pc-detail h3 {
    font-size: 15.5px
  }

  /* 移动端底部购买栏：固定在底部导航之上 */
  .pc-buybar {
    display: flex;
    align-items: center;
    gap: 12px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(58px + env(safe-area-inset-bottom));
    z-index: 998;
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    padding: 9px 14px;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .06)
  }

  .pc-buyprice {
    display: flex;
    flex-direction: column;
    line-height: 1.25
  }

  .pc-buyprice span {
    color: #e53e3e;
    font-size: 20px;
    font-weight: 700
  }

  .pc-buyprice em {
    font-style: normal;
    font-size: 11.5px;
    color: #8a94a6
  }

  .pc-buybtn {
    margin-left: auto;
    padding: 12px 30px;
    font-size: 15px;
    border-radius: 22px;
    flex: none
  }

  /* 给底部购买栏与导航留出空间，避免内容被遮挡 */
  .prod-card {
    margin-bottom: calc(62px + env(safe-area-inset-bottom))
  }
}

/* ===== 帖子预览遮罩（列表模式游客） ===== */
.gtp-body {
  position: relative;
  max-height: 240px;
  overflow: hidden;
  line-height: 1.9
}

.gtp-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 110px;
  background: linear-gradient(transparent, #fff 78%)
}

.gtp-lock {
  text-align: center;
  padding: 24px 18px;
  background: linear-gradient(135deg, #fafbff, #f7f5ff);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 4px
}

.gtp-lock b {
  font-size: 15.5px
}

/* ===== 游客访问引导页 ===== */
.gate {
  max-width: 620px;
  margin: 0 auto
}

.gate-hero {
  background: linear-gradient(135deg, var(--main), var(--main2));
  color: #fff;
  border-radius: 14px;
  padding: 34px 24px 28px;
  text-align: center;
  margin-bottom: 14px
}

.gate-logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
  margin: 0 auto 14px
}

.gate-hero h1 {
  margin: 0 0 8px;
  font-size: 25px;
  font-weight: 700
}

.gate-desc {
  margin: 0 0 20px;
  opacity: .92;
  font-size: 14px
}

.gate-stats {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin-bottom: 22px;
  flex-wrap: wrap
}

.gate-stats div {
  display: flex;
  flex-direction: column
}

.gate-stats b {
  font-size: 21px;
  font-weight: 700
}

.gate-stats span {
  font-size: 12px;
  opacity: .85;
  margin-top: 2px
}

.gate-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap
}

.gate-btns .btn {
  background: #fff !important;
  color: var(--main) !important;
  padding: 12px 34px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  min-width: 116px
}

.gate-btns .btn.gray {
  background: rgba(255, 255, 255, .3) !important;
  color: #fff !important
}

.gate-tip {
  margin: 16px 0 0;
  font-size: 12.5px;
  opacity: .85
}

.gate-feat h3 {
  margin: 0 0 14px
}

.gate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

.gate-grid div {
  background: #fafbfd;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px
}

.gate-grid b {
  font-size: 14px
}

.gate-grid span {
  font-size: 12.5px;
  color: #8a94a6;
  line-height: 1.6
}

@media(max-width:768px) {
  .gate-hero {
    padding: 26px 18px 22px;
    border-radius: 12px
  }

  .gate-hero h1 {
    font-size: 22px
  }

  .gate-grid {
    grid-template-columns: 1fr
  }

  .gate-btns .btn {
    flex: 1;
    min-width: 130px
  }
}

/* ===== 录音按钮：禁止长按菜单/选中/滚动干扰 ===== */
.mb-voice,
#vbtn {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent
}

.mb-voice.rec,
#vbtn.rec {
  background: linear-gradient(135deg, #e53e3e, #c53030) !important;
  color: #fff;
  animation: recPulse 1.1s infinite
}

@keyframes recPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(229, 62, 62, .5)
  }

  50% {
    box-shadow: 0 0 0 8px rgba(229, 62, 62, 0)
  }
}

/* ===== 好友申请 ===== */
.friend-reqs {
  background: linear-gradient(135deg, #fff8f0, #fff5f5);
  border: 1px solid #fed7aa;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 14px
}

.fr-head {
  font-size: 14.5px;
  font-weight: 600;
  color: #9c4221;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px
}

.fr-badge {
  background: #e53e3e;
  color: #fff;
  font-size: 11.5px;
  padding: 1px 8px;
  border-radius: 10px;
  font-weight: 600
}

.fr-btns {
  display: flex;
  gap: 6px;
  flex: none
}

.fr-accept {
  background: linear-gradient(135deg, var(--main), var(--main2)) !important
}

@media(max-width:768px) {
  .friend-reqs {
    padding: 11px
  }

  /* 移动端按钮加大，避免误触 */
  .fr-btns .btn {
    padding: 9px 15px;
    font-size: 13.5px
  }

  .fr-btns {
    gap: 8px
  }
}

/* ===== 查找好友 ===== */
.friend-search {
  background: #fafbfd;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 14px
}

.fs-form {
  display: flex;
  gap: 8px;
  align-items: stretch
}

.fs-form input[type=text] {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 10px 13px;
  font-size: 14px
}

.fs-form .btn {
  flex: none;
  padding: 10px 20px;
  white-space: nowrap
}

.fs-result {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line)
}

@media(max-width:768px) {
  .friend-search {
    padding: 11px;
    margin-bottom: 12px
  }

  .fs-form input[type=text] {
    font-size: 16px;
    padding: 11px 13px
  }

  .fs-form .btn {
    padding: 11px 16px;
    font-size: 14px
  }
}

/* ===== 会员徽章 ===== */
.vip-tag {
  display: inline-block;
  font-size: 11px;
  padding: 0 6px;
  border-radius: 9px;
  margin-left: 5px;
  vertical-align: middle;
  font-weight: 600;
  line-height: 17px
}

.vip-tag.vip1 {
  background: linear-gradient(135deg, #63b3ed, #4299e1);
  color: #fff
}

.vip-tag.vip2 {
  background: linear-gradient(135deg, #a78bfa, #805ad5);
  color: #fff
}

.vip-tag.vip3 {
  background: linear-gradient(135deg, #f6ad55, #ed8936);
  color: #fff
}

@media(max-width:768px) {
  .im-tools {
    padding: 7px 10px;
    gap: 6px
  }

  .im-tools .tl {
    padding: 7px 12px;
    font-size: 13px
  }

  .im-tools .tl-info {
    display: none
  }
}

/* ===== 充值快捷金额 ===== */
.quick-amt {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px
}

.quick-amt span {
  flex: 1;
  min-width: 68px;
  text-align: center;
  padding: 9px 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  background: #fff;
  transition: .15s;
  user-select: none
}

.quick-amt span:hover {
  border-color: var(--main)
}

.quick-amt span.on {
  background: var(--main);
  color: #fff;
  border-color: var(--main)
}

/* ===== 会员中心 ===== */
.vip-hero {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 14px;
  padding: 22px 20px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px
}

.vip-hero .vh-l {
  flex: 1;
  min-width: 0
}

.vh-name {
  font-size: 21px;
  font-weight: 700
}

.vh-sub {
  font-size: 13px;
  opacity: .9;
  margin-top: 4px
}

.vip-hero .btn {
  background: rgba(255, 255, 255, .22);
  border: 1px solid rgba(255, 255, 255, .35);
  flex: none
}

.vip-plans {
  display: flex;
  flex-wrap: wrap;
  gap: 14px
}

.vip-p {
  flex: 1;
  min-width: 168px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
  position: relative;
  background: #fff;
  transition: .2s
}

.vip-p:hover {
  border-color: var(--main);
  box-shadow: 0 4px 16px rgba(102, 126, 234, .15);
  transform: translateY(-2px)
}

.vip-p.lv2 {
  border-color: #bee3f8
}

.vip-p.lv3 {
  background: linear-gradient(180deg, #fffaf0, #fff);
  border-color: #feebc8
}

.vp-badge {
  position: absolute;
  top: -9px;
  right: 8px;
  background: #e53e3e;
  color: #fff;
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 10px
}

.vp-lv {
  font-size: 13px;
  color: var(--main);
  font-weight: 700
}

.vp-nm {
  font-size: 15px;
  font-weight: 600;
  margin: 4px 0 8px
}

.vp-pr {
  color: #e53e3e
}

.vp-pr b {
  font-size: 25px
}

.vp-pr s {
  color: #cbd5e0;
  font-size: 12px;
  margin-left: 5px
}

.vp-day {
  font-size: 12px;
  color: var(--gray);
  margin-top: 2px
}

.vp-perks {
  margin: 10px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center
}

.vp-perks span {
  background: #f7f9fc;
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 11px;
  color: #5a6a7a
}

.vp-btn {
  display: block;
  margin-top: 12px
}

.vip-buy .vb-row {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px
}

.vip-buy .vb-row:last-child {
  border-bottom: 0
}

@media(max-width:768px) {
  .vip-plans {
    gap: 10px
  }

  .vip-p {
    min-width: calc(50% - 5px)
  }

  .vip-hero {
    padding: 18px 16px
  }

  .vh-name {
    font-size: 19px
  }

  .vp-pr b {
    font-size: 22px
  }
}

/* ===== 通知类型标签 ===== */
.nt-types {
  margin-top: 16px;
  padding: 14px 15px;
  background: #f7f9fc;
  border-radius: 8px;
  line-height: 2.2
}

.nt-h {
  font-size: 13px;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 6px
}

.nt-i {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 3px 11px;
  font-size: 12.5px;
  color: #5a6a7a;
  margin: 0 6px 6px 0
}

/* ===== 个人中心 ===== */
.me-head {
  background: linear-gradient(135deg, var(--main), var(--main2));
  border-radius: 14px;
  padding: 22px 18px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px
}

.me-ava {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  flex: none
}

.me-info {
  flex: 1;
  min-width: 0
}

.me-name {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap
}

.me-name .pill {
  background: rgba(255, 255, 255, .28);
  color: #fff
}

.me-sub {
  font-size: 12px;
  opacity: .88;
  margin-top: 4px;
  word-break: break-all
}

.me-head .btn {
  background: rgba(255, 255, 255, .22);
  border: 1px solid rgba(255, 255, 255, .35);
  flex: none
}

.me-stat {
  display: flex;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
  overflow: hidden
}

.me-stat a {
  flex: 1;
  text-align: center;
  padding: 15px 4px;
  text-decoration: none;
  color: var(--text);
  position: relative
}

.me-stat a+a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22%;
  height: 56%;
  width: 1px;
  background: var(--line)
}

.me-stat a:hover {
  text-decoration: none;
  background: #fafbfe
}

.me-stat b {
  display: block;
  font-size: 17px;
  color: var(--main);
  line-height: 1.3
}

.me-stat span {
  display: block;
  font-size: 12px;
  color: var(--gray);
  margin-top: 2px
}

.me-menu .mi {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--text)
}

.me-menu .mi:last-child {
  border-bottom: 0
}

.me-menu .mi:hover {
  text-decoration: none;
  background: #fafbfe
}

.me-menu .mi i {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #f0f2f7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-style: normal;
  flex: none
}

.me-menu .mi.admin i {
  background: linear-gradient(135deg, var(--main), var(--main2));
  color: #fff
}

.me-menu .mi.vip i {
  background: linear-gradient(135deg, #f6ad55, #ed8936);
  color: #fff
}

.me-menu .mi span {
  font-size: 15px;
  font-weight: 600;
  flex: none
}

.me-menu .mi em {
  flex: 1;
  min-width: 0;
  font-style: normal;
  font-size: 12px;
  color: var(--gray);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.me-menu .mi b {
  flex: none;
  color: #cbd5e0;
  font-size: 17px;
  font-weight: 400
}

/* ===== 移动端底部导航 ===== */
.tabbar {
  display: none
}

@media(max-width:768px) {
  .side {
    display: none
  }

  .grid {
    flex-direction: column
  }

  /* 好友页：移动端把「查找用户 / 好友申请」前置，否则入口被挤到页面最底部 */
  .grid.friend-page .side {
    order: 1;
    width: 100%
  }

  .grid.friend-page .content {
    order: 2;
    width: 100%
  }

  /* 松开间距，避免手机上过于紧凑 */
  body {
    font-size: 15px;
    line-height: 1.75;
    padding-bottom: calc(64px + env(safe-area-inset-bottom))
  }

  .wrap {
    padding: 0 12px
  }

  .nav .wrap {
    height: 50px;
    gap: 12px;
    padding: 0 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch
  }

  .nav-desk {
    display: none
  }

  /* 顶部只保留 logo + 常用入口，其余交给底部 Tab */
  .nav .right {
    gap: 12px
  }

  .nav .right a[href*="c=auth&a=logout"] {
    display: none
  }

  .nav .right a[href*="admin.php"] {
    font-size: 12px
  }

  .nav .logo {
    font-size: 17px;
    flex: none
  }

  .main {
    padding: 14px 0 24px
  }

  .card {
    padding: 16px 14px;
    margin-bottom: 14px;
    border-radius: 12px
  }

  .card h3 {
    font-size: 16px;
    margin-bottom: 14px
  }

  .list .item {
    padding: 14px 0
  }

  .item .tt {
    font-size: 15px;
    line-height: 1.55
  }

  .item .meta {
    font-size: 12.5px
  }

  /* 触摸目标加大 */
  .btn {
    padding: 11px 18px;
    font-size: 14.5px;
    border-radius: 8px
  }

  .btn.sm {
    padding: 7px 13px;
    font-size: 13px
  }

  input[type=text],
  input[type=password],
  input[type=email],
  input[type=number],
  select,
  textarea {
    padding: 12px 13px;
    font-size: 16px;
    /* 16px 可避免 iOS 聚焦时自动放大 */
    border-radius: 8px
  }

  .field {
    margin-bottom: 16px
  }

  /* 移动端 IM：高度由 JS 实测（--im-h）设定，
     否则 100vh/dvh 在移动端含地址栏，底部输入区会被挤出可视区 */
  .im {
    /* --im-h 由 JS 实测写入；JS 未生效时用保守值兜底，宁可矮一点也不让输入区被挤出屏幕 */
    height: var(--im-h, calc(100dvh - 250px));
    max-height: var(--im-h, calc(100dvh - 150px));
    min-height: 300px;
    flex-direction: column;
    position: relative
  }

  /* 输入区与工具栏禁止被压缩，保证始终可见 */
  .im-tools,
  .im-foot {
    flex: none
  }

  /* 消息区必须能收缩，否则会把输入区顶出容器 */
  .im-body {
    min-height: 0;
    flex: 1 1 0
  }

  .im-side {
    width: 100%;
    flex: 1;
    max-height: none;
    border-right: 0;
    border-bottom: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch
  }

  .im-main {
    display: none
  }

  /* 选中会话后：显示聊天栏、隐藏列表 */
  .im.has-chat .im-side {
    display: none
  }

  .im.has-chat .im-main {
    display: flex
  }

  /* URL 直接带 conv 时进聊天栏；点返回回到列表 */
  .im.show-list .im-side {
    display: block
  }

  .im.show-list .im-main {
    display: none !important
  }

  .im-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-right: 8px;
    border-radius: 8px;
    background: #f0f2f7;
    color: #4a5568;
    font-size: 21px;
    line-height: 1;
    text-decoration: none;
    vertical-align: middle
  }

  .im-back:hover {
    background: #e2e8f0;
    text-decoration: none
  }

  .im-head {
    display: flex;
    align-items: center;
    padding: 10px 12px
  }

  .im-side .c {
    padding: 13px
  }

  .im-body {
    padding: 14px
  }

  .msg .bubble {
    max-width: 76%;
    padding: 9px 13px;
    font-size: 14.5px
  }

  .im-foot {
    padding: 10px 12px
  }

  .prods {
    gap: 12px
  }

  .prod {
    width: calc(50% - 6px)
  }

  .prod .pic {
    height: 118px
  }

  .gift {
    width: calc(33.33% - 7px)
  }

  .stat .s {
    min-width: calc(50% - 7px);
    padding: 14px
  }

  table.tb {
    font-size: 12.5px
  }

  table.tb th,
  table.tb td {
    padding: 10px 6px
  }

  .foot {
    font-size: 11.5px;
    padding: 16px 12px
  }

  /* 分页按钮触摸区加大 */
  .pages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px
  }

  .pages a {
    min-width: 38px;
    padding: 9px 12px;
    font-size: 14px;
    text-align: center
  }

  /* 礼物选择器：触摸友好 */
  .gift {
    padding: 12px 6px;
    border-radius: 10px
  }

  .gift .ic {
    font-size: 30px
  }

  /* 标签与徽章 */
  .tag,
  .pill {
    display: inline-block
  }

  /* 空状态提示 */
  .empty {
    padding: 34px 12px;
    font-size: 14px
  }

  /* 头像固定尺寸不被压缩 */
  .tavatar {
    flex: none
  }

  /* 卡片内标题右侧操作按钮换行显示 */
  .card h3 .btn,
  .card h3 a {
    float: none !important;
    display: inline-block;
    margin: 4px 0 0
  }

  /* 表单按钮全宽 */
  .card form>.btn,
  .card form>button.btn {
    width: 100%;
    padding: 13px;
    font-size: 15px
  }

  /* 前台表格（群成员、订单等）横向滚动 */
  .card table.tb {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch
  }

  .card table.tb tbody,
  .card table.tb thead {
    display: table;
    width: 100%;
    min-width: 520px
  }

  .card table.tb th,
  .card table.tb td {
    white-space: nowrap
  }

  /* IM 会话列表：加大触摸区 */
  .im-side .c {
    padding: 15px 14px
  }

  .im-side .c .n {
    font-size: 15px
  }

  /* IM 输入框 */
  .im-foot textarea {
    min-height: 44px;
    font-size: 16px
  }

  .im-foot .btn {
    padding: 11px 18px;
    flex: none
  }

  /* 用户主页头部 */
  .me-head,
  .vip-hero {
    flex-wrap: wrap
  }

  /* 商品详情：图片自适应、详情区取消最小宽度 */
  .card div[style*="width:240px"],
  .card div[style*="width: 240px"] {
    width: 100% !important;
    height: 200px !important;
    font-size: 48px !important
  }

  .card div[style*="min-width:240px"],
  .card div[style*="min-width: 240px"] {
    min-width: 0 !important;
    flex: 1 1 100%
  }

  /* 通用：取消内联 min-width 造成的溢出 */
  .card div[style*="min-width"] {
    min-width: 0
  }

  /* 大号价格文字适度缩小 */
  .card div[style*="font-size:28px"],
  .card p[style*="font-size:26px"] {
    font-size: 24px !important
  }

  /* 商品图片 */
  .prod .pic img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover
  }

  .me-head {
    padding: 20px 16px
  }

  .me-stat b {
    font-size: 16px
  }

  /* 底部 Tab 栏 */
  .tabbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .06);
    padding-bottom: env(safe-area-inset-bottom)
  }

  .tabbar .tb-i {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 58px;
    gap: 3px;
    text-decoration: none;
    color: #9aa5b5;
    position: relative;
    -webkit-tap-highlight-color: transparent
  }

  .tabbar .tb-i i {
    font-size: 21px;
    font-style: normal;
    line-height: 1;
    transition: transform .18s
  }

  .tabbar .tb-i span {
    font-size: 11.5px;
    line-height: 1.2
  }

  .tabbar .tb-i.on {
    color: var(--main)
  }

  .tabbar .tb-i.on i {
    transform: translateY(-1px) scale(1.12)
  }

  .tabbar .tb-i:hover,
  .tabbar .tb-i:active {
    text-decoration: none
  }

  .tabbar .dot {
    position: absolute;
    top: 6px;
    left: 50%;
    margin-left: 6px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: #e53e3e;
    color: #fff;
    border-radius: 8px;
    font-size: 10px;
    font-style: normal;
    line-height: 16px;
    text-align: center
  }
}

/* 超小屏微调 */
@media(max-width:360px) {
  .tabbar .tb-i span {
    font-size: 11px
  }

  .me-stat b {
    font-size: 15px
  }

  .prod {
    width: 100%
  }

  .vip-p {
    min-width: 100%
  }
}

/* ===== 全局：内联固定宽度在移动端自动撑满 ===== */
@media(max-width:768px) {

  /* 表单容器：所有 max-width 卡片在手机上占满宽度 */
  .card[style*="max-width"],
  div[style*="max-width"] {
    max-width: 100% !important
  }

  /* 表格外层自动横向滚动，避免撑破布局 */
  .card>div[style*="overflow"],
  .tb-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch
  }

  /* 内联 flex 布局在窄屏允许换行（覆盖各处 style="display:flex"） */
  .card div[style*="display:flex"],
  .card form>div[style*="display:flex"],
  .card>div[style*="display:flex"],
  .card li[style*="display:flex"] {
    flex-wrap: wrap
  }

  /* 换行后 auto 外边距不再把元素推到最右 */
  .card div[style*="margin-left:auto"] {
    margin-left: 0 !important
  }

  /* 头像 + 文本的行布局：文本区给最小宽度，避免挤成竖条 */
  .list .item>div[style*="flex:1"],
  .item>div[style*="flex:1"] {
    min-width: 0
  }

  /* 图片不溢出 */
  img,
  video {
    max-width: 100%;
    height: auto
  }

  /* 长串文本（订单号、邮箱、邀请码）自动断行 */
  .meta,
  .tt,
  td,
  th {
    overflow-wrap: anywhere;
    word-break: break-word
  }

  code {
    display: inline-block;
    max-width: 100%;
    overflow-x: auto;
    font-size: 11.5px
  }

  /* 按钮组换行，避免挤成一条 */
  .card>.btn,
  .card>a.btn {
    margin-bottom: 8px
  }

  /* 提示条内链接可点区域加大 */
  .alert a {
    display: inline-block;
    padding: 2px 0
  }
}

/* ===== 后台移动端 ===== */
.admin-top {
  display: none
}

.admin-mask {
  display: none
}

.admin-close {
  display: none
}

@media(max-width:768px) {
  .admin-top {
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 1001;
    height: 50px;
    padding: 0 14px;
    background: linear-gradient(90deg, var(--main), var(--main2));
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12)
  }

  .admin-burger {
    width: 34px;
    height: 34px;
    border: 0;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    border-radius: 8px;
    font-size: 17px;
    cursor: pointer;
    flex: none
  }

  .admin-top-title {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
  }

  /* 侧栏变抽屉 */
  .admin {
    flex-direction: column;
    min-height: calc(100dvh - 50px)
  }

  .admin-side {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    max-width: 82vw;
    z-index: 1100;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-100%);
    transition: transform .25s ease;
    box-shadow: 2px 0 16px rgba(0, 0, 0, .3)
  }

  .admin.nav-open .admin-side {
    transform: translateX(0)
  }

  .admin-mask {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s
  }

  .admin.nav-open .admin-mask {
    opacity: 1;
    visibility: visible
  }

  .admin-close {
    display: block;
    float: right;
    width: 28px;
    height: 28px;
    border: 0;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px
  }

  .admin-side .t {
    padding: 14px 16px;
    font-size: 15px;
    position: sticky;
    top: 0
  }

  .admin-side a {
    padding: 13px 16px;
    font-size: 14px
  }

  .admin-main {
    padding: 14px 12px 30px;
    min-width: 0
  }

  .admin-head {
    display: flex;
    align-items: center;
    margin-bottom: 12px
  }

  .admin-title {
    font-size: 17px !important
  }

  /* 统计卡两列 */
  .stat {
    gap: 10px;
    margin-bottom: 12px
  }

  .stat .s {
    min-width: calc(50% - 5px);
    padding: 13px;
    border-radius: 10px
  }

  .stat .s .v {
    font-size: 19px
  }

  .stat .s .k {
    font-size: 11.5px
  }

  /* 后台卡片 */
  .admin-main .card {
    padding: 14px 12px;
    border-radius: 12px;
    margin-bottom: 12px
  }

  .admin-main .card h3 {
    font-size: 15.5px;
    margin-bottom: 12px
  }

  /* 表格：外层横向滚动，内部保持表格布局 */
  .admin-main table.tb {
    font-size: 12.5px;
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch
  }

  .admin-main table.tb tbody,
  .admin-main table.tb thead {
    display: table;
    width: 100%;
    min-width: 620px
  }

  .admin-main table.tb th,
  .admin-main table.tb td {
    padding: 10px 8px;
    white-space: nowrap
  }

  /* 滚动提示阴影 */
  .admin-main .card {
    position: relative
  }

  /* 后台按钮触摸区加大 */
  .admin-main .btn,
  .admin-main a.btn {
    padding: 9px 14px;
    font-size: 13.5px
  }

  .admin-main .btn.sm {
    padding: 7px 11px;
    font-size: 12.5px
  }

  /* 后台输入框 16px 防 iOS 缩放 */
  .admin-main input[type=text],
  .admin-main input[type=password],
  .admin-main input[type=email],
  .admin-main input[type=number],
  .admin-main select,
  .admin-main textarea {
    font-size: 16px;
    padding: 11px 12px
  }

  /* 后台内联表单项全宽 */
  .admin-main form>div>div[style*="min-width"],
  .admin-main form>div>div[style*="flex:"] {
    min-width: 100% !important;
    margin-bottom: 8px
  }

  /* 搜索栏换行 */
  .admin-main form[method=get],
  .admin-main form[method="get"] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
  }

  /* 后台内联输入框（搜索框等）撑满 */
  .admin-main input[style*="max-width"],
  .admin-main select[style*="max-width"] {
    max-width: 100% !important;
    min-width: 120px;
    flex: 1
  }

  /* 后台内联 flex 容器 */
  .admin-main div[style*="display:flex"] {
    flex-wrap: wrap
  }
}

/* 后台平板：侧栏保留但收窄 */
@media(min-width:769px) and (max-width:1100px) {
  .admin-side {
    width: 160px
  }

  .admin-main {
    padding: 16px
  }
}

/* ===== 统一头像（含会员头像框 / 角标 / 在线点） ===== */
.ava {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--main), var(--main2));
  color: #fff;
  font-weight: 600;
  overflow: visible;
  flex: none;
  vertical-align: middle
}

.ava img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block
}

/* 头像框：用 padding + 渐变底模拟描边 */
.av-frame {
  padding: 2.5px;
  background: var(--main)
}

.av-frame.lv1 {
  background: linear-gradient(135deg, #90caf9, #42a5f5)
}

.av-frame.lv2 {
  background: linear-gradient(135deg, #ce93d8, #ab47bc)
}

.av-frame.lv3 {
  background: linear-gradient(135deg, #ffd700, #ff8f00, #ffd700, #ff4081);
  background-size: 300% 300%;
  animation: avFlow 4s ease infinite
}

@keyframes avFlow {
  0% {
    background-position: 0% 50%
  }

  50% {
    background-position: 100% 50%
  }

  100% {
    background-position: 0% 50%
  }
}

/* 会员角标 */
.av-vip {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  font-size: 9px;
  font-style: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  background: #9e9e9e;
  color: #fff;
  line-height: 1
}

.av-vip.lv1 {
  background: linear-gradient(135deg, #42a5f5, #1e88e5)
}

.av-vip.lv2 {
  background: linear-gradient(135deg, #ab47bc, #8e24aa)
}

.av-vip.lv3 {
  background: linear-gradient(135deg, #ffb300, #ff6f00)
}

/* 在线状态点 */
.av-dot {
  position: absolute;
  left: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e0;
  border: 2px solid #fff
}

.av-dot.on {
  background: #48bb78
}

.ava-link {
  text-decoration: none;
  display: inline-flex
}

/* 会员铭牌（昵称旁） */
.vip-plate {
  display: inline-block;
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 9px;
  margin-left: 6px;
  color: #fff;
  vertical-align: middle
}

.vip-plate.lv1 {
  background: linear-gradient(135deg, #42a5f5, #1e88e5)
}

.vip-plate.lv2 {
  background: linear-gradient(135deg, #ab47bc, #8e24aa)
}

.vip-plate.lv3 {
  background: linear-gradient(135deg, #ffd700, #ffa000, #ff4081);
  background-size: 200% 200%;
  animation: avFlow 3s ease infinite;
  /* 金色背景白字对比度仅 1.44，改深棕字保证可读 */
  color: #4a2c00;
  text-shadow: 0 1px 1px rgba(255, 255, 255, .4)
}

/* 自定义头衔 */
.u-title {
  display: inline-block;
  font-size: 10.5px;
  padding: 0 6px;
  border-radius: 8px;
  margin-left: 5px;
  background: #eef2ff;
  color: var(--main);
  vertical-align: middle;
  font-weight: 500
}

/* ===== 资料卡（装扮背景下的文字可读性） =====
   深色背景 → 白字；浅色背景（.light）→ 深色字
   解决「梦幻/薄荷」等浅色装扮下白字融入背景看不见的问题 */

.user-home:not(.light),
.me-head:not(.light) {
  color: #fff
}

.user-home:not(.light) .meta,
.me-head:not(.light) .me-sub {
  color: rgba(255, 255, 255, .88) !important
}

.user-home:not(.light) h3,
.me-head:not(.light) .me-name {
  color: #fff
}

.user-home:not(.light)>div>div>div:last-child {
  color: rgba(255, 255, 255, .92) !important
}

.user-home:not(.light) .u-title {
  background: rgba(255, 255, 255, .25);
  color: #fff
}

/* 浅色背景：深色文字 */
.user-home.light,
.me-head.light {
  color: #1a202c
}

.user-home.light .meta,
.me-head.light .me-sub {
  color: rgba(26, 32, 44, .72) !important
}

.user-home.light h3,
.me-head.light .me-name {
  color: #1a202c
}

.user-home.light>div>div>div:last-child {
  color: rgba(26, 32, 44, .82) !important
}

.user-home.light .u-title {
  background: rgba(0, 0, 0, .08);
  color: #2d3748
}

/* 浅色背景上的半透明按钮/标签需同步反色 */
.me-head.light .btn {
  background: rgba(255, 255, 255, .55) !important;
  border-color: rgba(0, 0, 0, .18) !important;
  color: #1a202c !important
}

.me-head.light .me-name .pill {
  background: rgba(255, 255, 255, .6);
  color: #2d3748
}

/* 文字描边保底：任何背景下都有轮廓，避免极端配色糊成一片 */
.me-head .me-name,
.me-head .me-sub,
.user-home.light h3,
.user-home.light .meta {
  text-shadow: 0 1px 2px rgba(255, 255, 255, .35)
}

.me-head:not(.light) .me-name,
.me-head:not(.light) .me-sub {
  text-shadow: 0 1px 3px rgba(0, 0, 0, .25)
}

/* ===== 主色区域白字可读性保底 =====
   主色由装扮皮肤决定，极端配色下白字会发虚，统一加投影增强轮廓 */
.nav,
.nav a,
.logo,
.btn:not(.gray),
.tabbar .tb-on,
.me-stat b {
  text-shadow: 0 1px 2px rgba(0, 0, 0, .18)
}

/* 统计数字：主色过浅时回落到深色，保证任何皮肤下都看得见 */
.me-stat b {
  color: var(--main);
  /* 兜底：若主色极浅（亮度保护未生效时的二次保险），用深色描边勾出轮廓 */
  -webkit-text-stroke: 0
}

@supports (color: color-mix(in srgb, red, blue)) {
  .me-stat b {
    color: color-mix(in srgb, var(--main) 82%, #1a202c)
  }
}

/* ===== 头像编辑器 ===== */
.av-editor {
  display: flex;
  gap: 20px;
  align-items: flex-start
}

.ave-left {
  flex: none;
  text-align: center
}

.ave-big {
  margin-bottom: 12px
}

.ave-acts {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap
}

.ave-right {
  flex: 1;
  min-width: 0
}

#avCanvas {
  width: 100%;
  max-width: 240px;
  height: auto;
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #f0f2f7;
  cursor: grab;
  touch-action: none;
  display: block
}

.ave-zoom {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 13px;
  color: #5a6a7a
}

.ave-zoom input[type=range] {
  flex: 1;
  margin: 0
}

@media(max-width:768px) {
  .av-editor {
    flex-direction: column;
    align-items: center
  }

  .ave-right {
    width: 100%
  }

  #avCanvas {
    max-width: 100%
  }
}

/* ===== 装扮选择 ===== */
.decor-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: #fafbfd;
  border-radius: 12px;
  border: 1px solid var(--line)
}

.dp-name {
  font-weight: 600;
  margin-bottom: 8px
}

.decor-preview[data-font=round] .dp-name {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif
}

.decor-preview[data-font=serif] .dp-name {
  font-family: "Songti SC", serif
}

.decor-preview[data-font=kai] .dp-name {
  font-family: "Kaiti SC", serif
}

.decor-preview[data-font=bold] .dp-name {
  font-weight: 800;
  letter-spacing: .5px
}

.decor-preview[data-font=fancy] .dp-name {
  font-weight: 800;
  background: linear-gradient(90deg, #667eea, #f093fb, #f5576c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent
}

.bubble.demo {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 12px;
  color: #fff;
  font-size: 13.5px
}

.decor-preview[data-bubble=default] .bubble.demo {
  background: linear-gradient(135deg, #667eea, #764ba2)
}

.decor-preview[data-bubble=ocean] .bubble.demo {
  background: linear-gradient(135deg, #2196f3, #21cbf3)
}

.decor-preview[data-bubble=sunset] .bubble.demo {
  background: linear-gradient(135deg, #ff9a44, #fc6076)
}

.decor-preview[data-bubble=forest] .bubble.demo {
  background: linear-gradient(135deg, #43a047, #66bb6a)
}

.decor-preview[data-bubble=berry] .bubble.demo {
  background: linear-gradient(135deg, #ec407a, #ab47bc)
}

.decor-preview[data-bubble=gold] .bubble.demo {
  background: linear-gradient(135deg, #f6d365, #fda085)
}

.decor-preview[data-bubble=aurora] .bubble.demo {
  background: linear-gradient(135deg, #a18cd1, #fbc2eb, #8fd3f4)
}

.decor-preview[data-bubble=nebula] .bubble.demo {
  background: linear-gradient(135deg, #0f2027, #2c5364, #00c9ff)
}

.decor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 12px
}

.decor-item {
  margin: 0;
  text-align: center
}

.di-swatch {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  transition: .15s
}

.di-swatch:hover {
  transform: scale(1.04)
}

.decor-item.on .di-swatch {
  border-color: var(--main);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, .18)
}

.decor-item.locked .di-swatch {
  filter: grayscale(.75);
  opacity: .6;
  cursor: not-allowed
}

.di-lock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px
}

.di-name {
  font-size: 12.5px;
  margin-top: 6px;
  color: var(--text)
}

.di-on {
  color: var(--main);
  font-size: 11px;
  margin-left: 3px
}

.di-min {
  font-size: 11px;
  color: #8a94a6
}

/* ===== 表情池 ===== */
.emoji-pool {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  gap: 8px;
  margin-top: 10px
}

.emoji-btn {
  aspect-ratio: 1;
  font-size: 21px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  transition: .15s
}

.emoji-btn:hover {
  background: #f7f9fc;
  transform: scale(1.08)
}

.emoji-btn.on {
  background: #eef2ff;
  border-color: var(--main);
  box-shadow: inset 0 0 0 1px var(--main)
}

/* ===== 好友分组 / 管理 ===== */
.fg-block {
  margin-bottom: 16px
}

.fg-head {
  font-size: 13.5px;
  font-weight: 600;
  color: #4a5568;
  padding: 6px 10px;
  background: #f7f9fc;
  border-radius: 8px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px
}

.fg-cnt {
  font-size: 11.5px;
  color: #8a94a6;
  font-weight: 400
}

.sp-star {
  font-size: 12px
}

.fr-ops {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end
}

.fr-ops .btn {
  padding: 5px 10px;
  font-size: 12px
}

.fg-manage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px
}

.fgm-item {
  padding: 13px;
  background: #fafbfd;
  border: 1px solid var(--line);
  border-radius: 10px
}

.fgm-item b {
  display: block;
  margin-bottom: 4px
}

.fgm-tip {
  font-size: 12px;
  color: #8a94a6;
  margin-top: 6px
}

.fgm-form {
  display: flex;
  gap: 6px;
  margin-top: 8px
}

.fgm-form input {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 7px 10px
}

@media(max-width:768px) {
  .fr-ops {
    width: 100%;
    justify-content: flex-start;
    margin-top: 8px
  }

  .fr-ops .btn {
    flex: 1;
    min-width: 62px
  }
}

/* ===== 礼物分档面板 ===== */
.gift-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line)
}

.gtab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  color: #5a6a7a;
  font-size: 13px;
  cursor: pointer;
  transition: .15s
}

.gtab span {
  font-size: 11px;
  opacity: .65
}

.gtab:hover {
  border-color: var(--main)
}

.gtab.on {
  color: #fff;
  border-color: transparent
}

.gtab.t1.on {
  background: linear-gradient(135deg, #90a4ae, #607d8b)
}

.gtab.t2.on {
  background: linear-gradient(135deg, #4fc3f7, #1976d2)
}

.gtab.t3.on {
  background: linear-gradient(135deg, #ba68c8, #7b1fa2)
}

.gtab.t4.on {
  background: linear-gradient(135deg, #ffb74d, #f57c00)
}

.gtab.t5.on {
  background: linear-gradient(135deg, #ffd700, #ff6f00, #e91e63);
  background-size: 200% 200%;
  animation: avFlow 3s ease infinite
}

.gift-pane {
  animation: gfIn .22s ease
}

@keyframes gfIn {
  from {
    opacity: 0;
    transform: translateY(6px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

/* 礼物卡片（按档位区分质感） */
.gift {
  position: relative;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff
}

.gift .ic {
  font-size: 30px
}

.gift.t2 {
  border-color: #bbdefb;
  background: linear-gradient(180deg, #f5fbff, #fff)
}

.gift.t3 {
  border-color: #e1bee7;
  background: linear-gradient(180deg, #fdf5ff, #fff)
}

.gift.t4 {
  border-color: #ffe0b2;
  background: linear-gradient(180deg, #fffaf2, #fff);
  box-shadow: 0 2px 8px rgba(245, 124, 0, .1)
}

.gift.t5 {
  border-color: #ffd700;
  background: linear-gradient(180deg, #fffdf5, #fff);
  box-shadow: 0 3px 12px rgba(255, 183, 0, .22)
}

.g-badge {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  padding: 1px 7px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #ff8f00, #e91e63);
  white-space: nowrap;
  z-index: 2
}

/* 选中态 */
.gift input[type=radio]:checked~.ic {
  transform: scale(1.15)
}

.gift:has(input[type=radio]:checked) {
  border-color: var(--main);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, .16)
}

.gift.t5:has(input[type=radio]:checked) {
  box-shadow: 0 0 0 3px rgba(255, 183, 0, .3)
}

/* 礼物图标特效 */
.ef-bounce .ic {
  animation: gfBounce 1.4s ease-in-out infinite
}

@keyframes gfBounce {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-6px)
  }
}

.ef-pulse .ic {
  animation: gfPulse 1.6s ease-in-out infinite
}

@keyframes gfPulse {

  0%,
  100% {
    transform: scale(1)
  }

  50% {
    transform: scale(1.18)
  }
}

.ef-star .ic {
  animation: gfStar 2.2s linear infinite
}

@keyframes gfStar {
  0% {
    filter: drop-shadow(0 0 0 rgba(255, 215, 0, .9))
  }

  50% {
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, .95))
  }

  100% {
    filter: drop-shadow(0 0 0 rgba(255, 215, 0, .9))
  }
}

.ef-flame .ic {
  animation: gfFlame 1.8s ease-in-out infinite
}

@keyframes gfFlame {
  0% {
    filter: drop-shadow(0 0 2px rgba(255, 87, 34, .7))
  }

  50% {
    filter: drop-shadow(0 0 10px rgba(255, 87, 34, .95))
  }

  100% {
    filter: drop-shadow(0 0 2px rgba(255, 87, 34, .7))
  }
}

.ef-rainbow .ic {
  background: linear-gradient(90deg, #f44336, #ff9800, #ffeb3b, #4caf50, #2196f3, #9c27b0);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gfRainbow 3s linear infinite
}

@keyframes gfRainbow {
  to {
    background-position: 400% 0
  }
}

.ef-rocket .ic {
  animation: gfRocket 2.4s ease-in-out infinite
}

@keyframes gfRocket {

  0%,
  70%,
  100% {
    transform: translateY(0) rotate(0)
  }

  80% {
    transform: translateY(-9px) rotate(-8deg)
  }

  90% {
    transform: translateY(-4px) rotate(8deg)
  }
}

.ef-castle .ic {
  animation: gfCastle 3s ease-in-out infinite
}

@keyframes gfCastle {

  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 3px rgba(255, 215, 0, .6))
  }

  50% {
    transform: scale(1.12);
    filter: drop-shadow(0 0 14px rgba(255, 215, 0, .95))
  }
}

/* 数量选择 */
.gift-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0
}

.gq-label {
  font-size: 13.5px;
  color: #5a6a7a;
  font-weight: 500
}

.gq-opts {
  display: flex;
  gap: 6px;
  flex-wrap: wrap
}

.gq-btn {
  padding: 6px 13px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: .15s
}

.gq-btn:hover {
  border-color: var(--main)
}

.gq-btn.on {
  background: var(--main);
  border-color: var(--main);
  color: #fff
}

.gift-qty input[type=number] {
  width: 90px;
  margin: 0
}

.gift-total {
  font-size: 15px;
  color: #5a6a7a
}

.gift-total b {
  font-size: 19px;
  color: var(--main)
}

@media(max-width:768px) {
  .gtab {
    padding: 6px 12px;
    font-size: 12.5px
  }

  .gift .ic {
    font-size: 26px
  }

  .gift-qty input[type=number] {
    flex: 1;
    min-width: 80px
  }
}

/* ===== 打赏飘屏 ===== */
.gift-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff6e5, #fff0f5);
  border: 1px solid #ffe0b2;
  margin-bottom: 12px;
  overflow: hidden
}

.gb-label {
  flex: none;
  font-size: 12.5px;
  font-weight: 600;
  color: #e65100
}

.gb-track {
  flex: 1;
  min-width: 0;
  position: relative;
  height: 22px;
  overflow: hidden
}

.gb-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: #5a3e2b;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(100%);
  animation: gbRoll 4s linear infinite
}

/* 多条依次滚动 */
.gb-item:nth-child(1) {
  animation-delay: 0s
}

.gb-item:nth-child(2) {
  animation-delay: 4s
}

.gb-item:nth-child(3) {
  animation-delay: 8s
}

.gb-item:nth-child(4) {
  animation-delay: 12s
}

.gb-item:nth-child(5) {
  animation-delay: 16s
}

.gb-item:nth-child(6) {
  animation-delay: 20s
}

.gb-item:nth-child(7) {
  animation-delay: 24s
}

.gb-item:nth-child(8) {
  animation-delay: 28s
}

@keyframes gbRoll {
  0% {
    opacity: 0;
    transform: translateY(100%)
  }

  8% {
    opacity: 1;
    transform: translateY(0)
  }

  92% {
    opacity: 1;
    transform: translateY(0)
  }

  100% {
    opacity: 0;
    transform: translateY(-100%)
  }
}

.gb-item.t4,
.gb-item.t5 {
  font-weight: 600;
  color: #b71c1c
}

.gb-item em {
  font-style: normal;
  color: #e65100;
  font-weight: 700
}

/* 档位色标 */
.pill.t1 {
  background: #eceff1;
  color: #546e7a
}

.pill.t2 {
  background: #e3f2fd;
  color: #1565c0
}

.pill.t3 {
  background: #f3e5f5;
  color: #6a1b9a
}

.pill.t4 {
  background: #fff3e0;
  color: #e65100
}

.pill.t5 {
  background: linear-gradient(135deg, #ffd700, #ff8f00);
  color: #fff
}

@media(max-width:768px) {
  .gift-banner {
    padding: 7px 10px
  }

  .gb-item {
    font-size: 12px
  }
}

/* ===== 打赏榜 ===== */
.gift-rank {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.gr-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #fafbfd;
  border: 1px solid var(--line)
}

.gr-no {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center
}

.gr-item.top1 {
  background: linear-gradient(135deg, #fff8e1, #fffaf0);
  border-color: #ffd700
}

.gr-item.top1 .gr-no {
  background: linear-gradient(135deg, #ffd700, #ff8f00);
  color: #fff
}

.gr-item.top2 {
  background: linear-gradient(135deg, #f5f5f5, #fafafa);
  border-color: #c0c4cc
}

.gr-item.top2 .gr-no {
  background: linear-gradient(135deg, #b0bec5, #78909c);
  color: #fff
}

.gr-item.top3 {
  background: linear-gradient(135deg, #fff3e0, #fffaf5);
  border-color: #ffb74d
}

.gr-item.top3 .gr-no {
  background: linear-gradient(135deg, #ffb74d, #f57c00);
  color: #fff
}

.gr-info {
  flex: 1;
  min-width: 0
}

.gr-nm {
  font-weight: 600;
  font-size: 14px
}

.gr-amt {
  flex: none;
  font-size: 15px;
  color: #e65100
}

.gr-item.top1 .gr-amt {
  font-size: 17px
}

/* ==================== 礼物打赏全屏特效 ==================== */
#giftfx {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden
}

/* 遮罩 */
.gfx-mask {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(40, 20, 60, .55), rgba(0, 0, 0, .78));
  opacity: 0;
  transition: opacity .5s ease
}

.gfx-mask.in {
  opacity: 1
}

/* 旋转光芒 */
.gfx-rays {
  position: absolute;
  left: 50%;
  top: 45%;
  width: 160vmax;
  height: 160vmax;
  margin: -80vmax 0 0 -80vmax;
  opacity: 0;
  transition: opacity .6s ease;
  background: repeating-conic-gradient(from 0deg,
      rgba(255, 215, 0, .32) 0deg 6deg,
      transparent 6deg 18deg);
  animation: gfxSpin 9s linear infinite
}

.gfx-rays.t5 {
  background: repeating-conic-gradient(from 0deg,
      rgba(255, 215, 0, .38) 0deg 5deg,
      rgba(255, 64, 129, .22) 5deg 9deg,
      transparent 9deg 18deg)
}

.gfx-rays.in {
  opacity: 1
}

@keyframes gfxSpin {
  to {
    transform: rotate(360deg)
  }
}

/* 中心主体 */
.gfx-core {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%) scale(.2);
  opacity: 0;
  text-align: center;
  transition: transform .55s cubic-bezier(.2, 1.5, .4, 1), opacity .35s ease
}

.gfx-core.in {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1
}

.gfx-core.out {
  transform: translate(-50%, -50%) scale(1.35);
  opacity: 0;
  transition: transform .45s ease, opacity .45s ease
}

.gfx-ic {
  font-size: 96px;
  line-height: 1;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .45));
  animation: gfxFloat 1.6s ease-in-out infinite
}

@keyframes gfxFloat {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-12px)
  }
}

.gfx-core.t4 .gfx-ic {
  font-size: 118px;
  filter: drop-shadow(0 0 18px rgba(255, 215, 0, .9))
}

.gfx-core.t5 .gfx-ic {
  font-size: 138px;
  filter: drop-shadow(0 0 26px rgba(255, 215, 0, 1))
}

.gfx-nm {
  margin-top: 12px;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .6)
}

.gfx-q {
  color: #ffd700
}

.gfx-amt {
  margin-top: 6px;
  font-size: 30px;
  font-weight: 800;
  color: #ffd700;
  text-shadow: 0 2px 14px rgba(255, 143, 0, .8)
}

.gfx-combo {
  margin-top: 8px;
  font-size: 15px;
  color: #fff;
  opacity: .9
}

/* 连击大字 */
.gfx-combo-big {
  position: absolute;
  left: 50%;
  top: 22%;
  transform: translate(-50%, 0) scale(.4);
  opacity: 0;
  font-size: 42px;
  font-weight: 900;
  font-style: italic;
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 87, 34, .95), 0 3px 8px rgba(0, 0, 0, .5);
  transition: transform .4s cubic-bezier(.2, 1.7, .4, 1), opacity .3s ease;
  white-space: nowrap
}

.gfx-combo-big.in {
  transform: translate(-50%, 0) scale(1);
  opacity: 1
}

.gfx-combo-big.hot {
  font-size: 58px;
  background: linear-gradient(90deg, #ffeb3b, #ff5722, #e91e63);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gfxHot 1.1s linear infinite
}

@keyframes gfxHot {
  to {
    background-position: 200% 0
  }
}

/* 粒子画布 */
.gfx-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none
}

/* 顶部飘屏横幅 */
.gfx-banner {
  position: absolute;
  left: 50%;
  top: 12px;
  transform: translate(-50%, -140%);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 92vw;
  padding: 9px 18px 9px 12px;
  border-radius: 26px;
  background: rgba(28, 22, 40, .93);
  color: #fff;
  font-size: 13.5px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .35);
  transition: transform .5s cubic-bezier(.2, 1.4, .4, 1);
  white-space: nowrap;
  z-index: 2
}

.gfx-banner.in {
  transform: translate(-50%, 0)
}

.gfx-b-ic {
  font-size: 22px;
  animation: gfxFloat 1.4s ease-in-out infinite
}

.gfx-b-txt b {
  color: #ffd700
}

.gfx-b-txt em {
  font-style: normal;
  margin-left: 6px;
  color: #ff8f00;
  font-weight: 700
}

.gfx-banner.t4,
.gfx-banner.t5 {
  background: linear-gradient(90deg, #7b1fa2, #e91e63, #ff8f00, #e91e63, #7b1fa2);
  background-size: 300% 100%;
  animation: gfxRoll 3s linear infinite
}

@keyframes gfxRoll {
  to {
    background-position: 300% 0
  }
}

@media(max-width:768px) {
  .gfx-ic {
    font-size: 72px
  }

  .gfx-core.t4 .gfx-ic,
  .gfx-core.t5 .gfx-ic {
    font-size: 92px
  }

  .gfx-nm {
    font-size: 18px
  }

  .gfx-amt {
    font-size: 25px
  }

  .gfx-combo-big {
    font-size: 32px
  }

  .gfx-combo-big.hot {
    font-size: 42px
  }

  .gfx-banner {
    font-size: 12.5px;
    padding: 8px 14px 8px 10px
  }
}

/* 礼物墙 */
.gwall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px
}

.gw-item {
  padding: 14px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  text-align: center
}

.gw-item .ic {
  font-size: 34px
}

.gw-item .nm {
  font-size: 13.5px;
  font-weight: 600;
  margin-top: 4px
}

.gw-item .ct {
  font-size: 12px;
  color: #8a94a6;
  margin-top: 2px
}

.gw-item .amt {
  font-size: 13px;
  color: #e65100;
  font-weight: 700;
  margin-top: 3px
}

/* ==================== 积分商城 ==================== */
.pts-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  border: none
}

.ptshero,
.pts-hero h3 {
  color: #fff
}

.ph-label {
  font-size: 13px;
  opacity: .85
}

.ph-num {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.1;
  margin: 2px 0 4px
}

.ph-tip {
  font-size: 12.5px;
  opacity: .9
}

.pts-hero .btn {
  background: #fff;
  color: #5a3ea8;
  border: none;
  font-weight: 700
}

.pts-hero .btn.gray {
  background: rgba(255, 255, 255, .22);
  color: #fff
}

/* 快捷入口 */
.pts-quick {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px
}

.pq {
  flex: 1;
  min-width: 100px;
  padding: 10px;
  text-align: center;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  color: #4a5568;
  font-size: 13.5px;
  text-decoration: none
}

.pq:hover {
  border-color: var(--main);
  color: var(--main)
}

/* 商品网格 */
.pts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px
}

.pg-card {
  position: relative;
  display: block;
  padding: 16px 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: .16s
}

.pg-card:hover {
  transform: translateY(-3px);
  border-color: var(--main);
  box-shadow: 0 6px 18px rgba(102, 126, 234, .16)
}

.pg-card.disabled {
  opacity: .55
}

.pg-card.disabled:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--line)
}

.pg-ic {
  font-size: 40px;
  line-height: 1
}

.pg-nm {
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
  min-height: 20px
}

.pg-pt {
  margin-top: 6px;
  font-size: 12.5px;
  color: #8a94a6
}

.pg-pt b {
  font-size: 18px;
  color: #e65100
}

.pg-meta {
  margin-top: 4px;
  font-size: 11.5px;
  color: #a0aec0
}

.pg-vip {
  display: inline-block;
  margin-top: 5px;
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffd700, #ff8f00);
  color: #fff
}

.pg-mask {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  padding: 4px 14px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .72);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  z-index: 2
}

/* 商品详情 */
.pgd-top {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  flex-wrap: wrap
}

.pgd-ic {
  flex: none;
  width: 110px;
  height: 110px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f7f8fc, #eef1f8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 54px
}

.pgd-info {
  flex: 1;
  min-width: 200px
}

.pgd-pt {
  margin-top: 8px;
  font-size: 13px;
  color: #8a94a6
}

.pgd-pt b {
  font-size: 30px;
  color: #e65100
}

.pgd-desc {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line)
}

.pgd-desc h3 {
  border: none;
  padding: 0;
  margin: 0 0 6px
}

/* 获得途径 */
.pts-rules {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px
}

.pr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fafbfd;
  border: 1px solid var(--line);
  font-size: 13.5px
}

.pr b {
  color: #38a169;
  font-size: 15px
}

/* 订单发放内容 */
.pts-deliver {
  margin-top: 5px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #f0fff4;
  border: 1px solid #c6f6d5;
  color: #276749;
  font-size: 12.5px;
  word-break: break-all
}

/* 后台统计卡 */
.adm-stat {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
  margin: 4px 0 10px
}

.adm-stat>div {
  padding: 12px;
  border-radius: 10px;
  background: #fafbfd;
  border: 1px solid var(--line);
  text-align: center
}

.adm-stat b {
  display: block;
  font-size: 21px;
  color: var(--main)
}

.adm-stat span {
  font-size: 12px;
  color: #8a94a6
}

@media(max-width:768px) {
  .ph-num {
    font-size: 31px
  }

  .pts-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px
  }

  .pg-ic {
    font-size: 34px
  }

  .pgd-ic {
    width: 84px;
    height: 84px;
    font-size: 42px
  }

  .pts-rules {
    grid-template-columns: 1fr 1fr
  }

  .pr {
    padding: 9px 11px;
    font-size: 12.5px
  }
}

/* ==================== QQ 风格好友列表 ==================== */
.qq-friend-page {
  position: relative;
  padding-bottom: 20px
}

/* 吸顶搜索栏 */
.qq-search {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 10px 12px;
  background: linear-gradient(135deg, #667eea, #764ba2)
}

.qq-search-box {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  height: 38px;
  border-radius: 19px;
  background: #fff
}

.qq-search-box .qs-ic {
  font-size: 14px;
  opacity: .55;
  flex: none
}

.qq-search-box input {
  flex: 1;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  outline: none;
  font-size: 14px
}

.qq-search-box input:focus {
  box-shadow: none
}

.qs-clear {
  flex: none;
  border: none;
  background: #e2e8f0;
  color: #718096;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  font-size: 11px;
  cursor: pointer;
  padding: 0
}

/* 功能入口 */
.qq-entries {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border-bottom: 1px solid var(--line)
}

.qq-entry {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 9px 4px;
  border-radius: 10px;
  text-decoration: none;
  color: #4a5568;
  transition: .15s
}

.qq-entry:active {
  background: #f1f3f8
}

.qe-ic {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px
}

.qe-ic.new {
  background: linear-gradient(135deg, #ff9a9e, #fad0c4)
}

.qe-ic.star {
  background: linear-gradient(135deg, #fddb92, #ffd571)
}

.qe-ic.grp {
  background: linear-gradient(135deg, #a1c4fd, #c2e9fb)
}

.qe-ic.inv {
  background: linear-gradient(135deg, #c3cfe2, #e0e7f1)
}

.qe-tx {
  font-size: 12px
}

/* 红点角标 */
.qe-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #f5222d;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  border: 2px solid #fff;
  box-sizing: content-box
}

.qe-cnt {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: #8a94a6;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  border: 2px solid #fff
}

/* 区块 */
.qq-sec {
  margin-top: 9px;
  background: #fff
}

.qq-sec-hd {
  padding: 10px 14px 6px;
  font-size: 12.5px;
  color: #8a94a6
}

/* 分组头（可折叠） */
.qq-grp-hd {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: #2d3748
}

.qq-grp-hd.static {
  cursor: default;
  background: #fafbfd
}

.qq-grp-hd:not(.static):active {
  background: #f7f8fa
}

.qg-arrow {
  font-size: 11px;
  color: #a0aec0;
  transition: transform .2s;
  display: inline-block
}

.qq-grp-hd.fold .qg-arrow {
  transform: rotate(-90deg)
}

.qg-nm {
  flex: 1
}

.qg-cnt {
  font-size: 12px;
  font-weight: 400;
  color: #a0aec0
}

/* 好友行（QQ 风格） */
.qq-list {
  background: #fff
}

.qq-fr {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 14px;
  border-bottom: 1px solid #f2f4f7;
  cursor: pointer;
  transition: background .15s
}

.qq-fr:active {
  background: #f5f6f8
}

.qq-fr[data-uid]:hover {
  background: #fafbfd
}

.qq-fr-av {
  position: relative;
  flex: none
}

/* 在线小绿点 */
.qq-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #cbd5e0;
  border: 2px solid #fff
}

.qq-dot.on {
  background: #38a169
}

.qq-fr-info {
  flex: 1;
  min-width: 0
}

.qq-fr-nm {
  font-size: 15px;
  font-weight: 500;
  color: #1a202c;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap
}

.qq-fr-sg {
  font-size: 12.5px;
  color: #a0aec0;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.qq-fr-st {
  flex: none;
  font-size: 11.5px;
  color: #cbd5e0
}

.qq-fr-st.on {
  color: #38a169
}

.qq-fr-st.wait {
  color: #d69e2e
}

.qq-tag {
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 8px;
  font-weight: 400;
  white-space: nowrap
}

.qq-tag.star {
  background: #fff5e6;
  color: #dd6b20
}

.qq-tag.title {
  background: #edf2ff;
  color: #5b8ff9
}

/* 申请行右侧按钮组 */
.qq-fr-ops {
  flex: none;
  display: flex;
  gap: 6px
}

.qq-fr.req {
  background: #fffaf0
}

/* 好友管理区 */
.qq-mgr {
  padding: 4px 14px 12px
}

.qm-item {
  padding: 11px 0;
  border-bottom: 1px solid #f2f4f7
}

.qm-item:last-child {
  border-bottom: none
}

.qm-item b {
  font-size: 13.5px;
  margin-right: 8px
}

.qm-meta {
  font-size: 12px;
  color: #8a94a6
}

.qm-tip {
  display: block;
  font-size: 11.5px;
  color: #cbd5e0;
  margin-top: 3px
}

.qm-del {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px
}

.qmd-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 4px 3px 9px;
  border-radius: 12px;
  background: #f7f8fa;
  font-size: 12px
}

.qmd-chip .btn-recover {
  border: none;
  background: var(--main);
  color: #fff;
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 10px;
  cursor: pointer
}

.qm-form {
  display: flex;
  gap: 6px;
  margin-top: 7px
}

.qm-form input {
  width: 130px;
  margin: 0
}

.qq-fr-sum {
  padding: 14px;
  text-align: center;
  font-size: 12px;
  color: #a0aec0
}

/* 右侧字母索引 */
.qq-index {
  position: fixed;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 5px 2px;
  border-radius: 10px;
  background: rgba(0, 0, 0, .04)
}

.qq-index span {
  font-size: 10.5px;
  color: #5b8ff9;
  text-align: center;
  padding: 1px 3px;
  cursor: pointer;
  font-weight: 600
}

.qq-index span:active {
  color: #fff;
  background: #5b8ff9;
  border-radius: 4px
}

/* 底部操作面板 ActionSheet */
.qq-sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, .45);
  opacity: 0;
  transition: opacity .22s
}

.qq-sheet-mask.in {
  opacity: 1
}

.qq-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 101;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(100%);
  transition: transform .24s cubic-bezier(.2, .9, .3, 1);
  max-width: 520px;
  margin: 0 auto
}

.qq-sheet.in {
  transform: translateY(0)
}

.qs-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--line)
}

.qs-hd-av {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 700;
  overflow: hidden;
  flex: none
}

.qs-hd-av img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.qs-hd-nm {
  font-size: 15.5px;
  font-weight: 600;
  color: #1a202c
}

.qs-hd-sg {
  font-size: 12px;
  color: #a0aec0;
  margin-top: 2px
}

.qs-body {
  padding: 4px 0
}

.qs-item {
  padding: 14px 16px;
  font-size: 14.5px;
  color: #2d3748;
  cursor: pointer;
  border-bottom: 1px solid #f7f8fa
}

.qs-item:active {
  background: #f5f6f8
}

.qs-item.danger {
  color: #e53e3e
}

.qs-cancel {
  padding: 14px;
  text-align: center;
  font-size: 15px;
  color: #4a5568;
  background: #f7f8fa;
  cursor: pointer
}

.qs-cancel:active {
  background: #edf0f4
}

@media(max-width:768px) {
  .qq-entries {
    gap: 5px;
    padding: 9px 8px
  }

  .qq-entry {
    padding: 7px 2px
  }

  .qe-ic {
    width: 38px;
    height: 38px;
    font-size: 19px;
    border-radius: 12px
  }

  .qe-tx {
    font-size: 11.5px
  }

  .qq-fr {
    padding: 9px 12px;
    gap: 10px
  }

  .qq-fr-nm {
    font-size: 14.5px
  }

  .qq-grp-hd {
    padding: 10px 12px
  }

  .qq-index {
    right: 0;
    padding: 4px 1px
  }

  .qq-index span {
    font-size: 9.5px;
    padding: 1px 2px
  }
}


/* ===== 个人中心菜单行：强制单行，禁止折行 =====
   现象：窄屏下 .mi 行被折成「图标 / 标题 / 描述 / 箭头」多行，
   行高从 62px 涨到 130px+，行与行之间露出大片空白，看起来像整页空白。
   这里强制 nowrap + 各段宽度约束，保证任何屏宽下都是紧凑单行。 */
@media(max-width:768px) {
  .me-menu .mi {
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 2px !important;
    min-height: 0
  }

  .me-menu .mi i {
    width: 32px;
    height: 32px;
    font-size: 16px;
    flex: none
  }

  .me-menu .mi span {
    flex: 0 1 auto;
    font-size: 14.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 42%
  }

  .me-menu .mi em {
    flex: 1 1 0;
    min-width: 0;
    max-width: 50%;
    font-size: 11.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
  }

  .me-menu .mi b {
    flex: none;
    font-size: 16px;
    margin-left: auto
  }
}

/* ==================== 系统监控（图形化） ==================== */
.sys-page {
  display: flex;
  flex-direction: column;
  gap: 0
}

/* 顶部实时卡 */
.sys-hero {
  background: linear-gradient(135deg, #1a202c, #2d3748);
  color: #fff;
  border-radius: 14px;
  padding: 18px 16px 8px
}

.sys-hero-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px
}

.sys-hero-hd h3 {
  color: #fff
}

.sys-hero-rt {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px
}

.sys-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #9ae6b4
}

.sys-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #48bb78;
  animation: sysPulse 1.6s ease-in-out infinite
}

@keyframes sysPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1)
  }

  50% {
    opacity: .35;
    transform: scale(1.5)
  }
}

.sys-time {
  color: #a0aec0;
  font-variant-numeric: tabular-nums
}

.sys-auto {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  color: #cbd5e0
}

.sys-auto input {
  width: 14px;
  height: 14px;
  margin: 0
}

.sys-hero .btn {
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  padding: 5px 12px;
  font-size: 12.5px
}

/* 环形图组 */
.sys-rings {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 2px 14px;
  -webkit-overflow-scrolling: touch
}

.sys-ring {
  flex: 1 1 0;
  min-width: 128px;
  text-align: center;
  position: relative
}

.sr-svg {
  width: 108px;
  height: 108px;
  display: block;
  margin: 0 auto
}

.sr-bar {
  transition: stroke-dashoffset .8s cubic-bezier(.2, .9, .3, 1)
}

.sr-mid {
  position: absolute;
  top: 54px;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  pointer-events: none
}

.sr-pct {
  display: block;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  font-variant-numeric: tabular-nums
}

.sr-lb {
  display: block;
  font-size: 11.5px;
  color: #a0aec0;
  margin-top: 1px
}

.sr-sub {
  font-size: 11px;
  color: #718096;
  margin-top: 6px;
  line-height: 1.5;
  min-height: 30px;
  word-break: break-all
}

/* 趋势图 */
.sys-legend {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #718096;
  margin-bottom: 8px
}

.sys-legend i {
  display: inline-block;
  width: 10px;
  height: 3px;
  border-radius: 2px;
  margin-right: 5px;
  vertical-align: middle
}

.sys-chart-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px
}

.sc-lb {
  width: 38px;
  flex: none;
  font-size: 12px;
  color: #718096
}

.sc-ct {
  flex: 1;
  min-width: 0;
  background: #fafbfd;
  border-radius: 6px;
  padding: 4px 0;
  border: 1px solid var(--line)
}

.sc-v {
  width: 54px;
  flex: none;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums
}

.sys-spark {
  width: 100%;
  height: 74px;
  display: block
}

.sys-spark.empty {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #a0aec0;
  background: #fafbfd;
  border-radius: 6px
}

/* 双列栅格 */
.sys-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px
}

/* 磁盘 */
.sys-disk {
  margin-bottom: 14px
}

.sys-disk:last-child {
  margin-bottom: 0
}

.sd-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 5px;
  flex-wrap: wrap
}

.sd-top b {
  font-weight: 600
}

.sd-top span {
  color: #718096;
  font-size: 12px
}

.sd-top em {
  margin-left: auto;
  font-style: normal;
  font-weight: 700;
  font-variant-numeric: tabular-nums
}

.sd-top em.red {
  color: #e53e3e
}

.sd-top em.orange {
  color: #dd6b20
}

.sd-bt {
  font-size: 11.5px;
  color: #a0aec0;
  margin-top: 3px
}

.sys-bar {
  height: 8px;
  background: #edf0f5;
  border-radius: 4px;
  overflow: hidden
}

.sys-bar i {
  display: block;
  height: 100%;
  border-radius: 4px;
  transition: width .6s ease
}

/* GPU */
.sys-gpu {
  padding: 10px 0;
  border-bottom: 1px solid var(--line)
}

.sys-gpu:last-child {
  border-bottom: none
}

.sg-nm {
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 8px;
  word-break: break-all
}

.sg-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  margin-bottom: 6px
}

.sg-row span {
  width: 42px;
  flex: none;
  color: #718096
}

.sg-row .sys-bar {
  flex: 1
}

.sg-row b {
  width: 96px;
  flex: none;
  text-align: right;
  font-variant-numeric: tabular-nums
}

.sg-meta {
  font-size: 11.5px;
  color: #a0aec0;
  margin-top: 5px
}

/* 网络速率 */
.sys-net-rate {
  display: flex;
  gap: 12px;
  margin-bottom: 6px
}

.sn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 8px;
  border-radius: 10px;
  background: #fafbfd
}

.sn-item b {
  font-size: 15px;
  font-variant-numeric: tabular-nums
}

.sn-item span:last-child {
  font-size: 11.5px;
  color: #718096
}

.sn-item .sn-ic {
  font-size: 17px;
  font-weight: 700
}

.sn-item.down .sn-ic {
  color: #38a169
}

.sn-item.up .sn-ic {
  color: #3182ce
}

/* 数据库六宫格 */
.sys-stat4 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px
}

.sys-stat4 .ss {
  background: #fafbfd;
  border-radius: 10px;
  padding: 13px 10px;
  text-align: center
}

.sys-stat4 .ss b {
  display: block;
  font-size: 16px;
  color: var(--main);
  margin-bottom: 2px;
  word-break: break-all
}

.sys-stat4 .ss span {
  font-size: 11.5px;
  color: #718096
}

/* 扩展标签 */
.sys-exts {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px
}

.sys-ext {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px
}

.sys-ext.on {
  background: #f0fff4;
  color: #276749
}

.sys-ext.off {
  background: #fff5f5;
  color: #c53030
}

@media(max-width:768px) {
  .sys-hero {
    padding: 14px 12px 6px
  }

  .sys-hero-rt {
    gap: 8px;
    font-size: 12px
  }

  .sys-rings {
    gap: 4px
  }

  .sys-ring {
    min-width: 106px
  }

  .sr-svg {
    width: 88px;
    height: 88px
  }

  .sr-mid {
    top: 44px
  }

  .sr-pct {
    font-size: 16px
  }

  .sr-sub {
    font-size: 10px;
    min-height: 26px
  }

  .sys-grid2 {
    grid-template-columns: 1fr;
    gap: 0
  }

  .sys-stat4 {
    grid-template-columns: repeat(2, 1fr)
  }

  .sc-v {
    width: 46px;
    font-size: 12px
  }

  .sg-row b {
    width: 78px;
    font-size: 11px
  }
}


/* ===== 点赞按钮：移动端跟手交互 ===== */
/* 设计要点：
   1. touch-action:manipulation —— 消除移动端 300ms 点击延迟（最关键的一条）
   2. tap-highlight 透明       —— 去掉点击时的蓝色闪块（否则观感很"网页"）
   3. pointerdown 即缩放        —— 按下瞬间有反馈，不等 click
   4. user-select/callout:none  —— 禁止长按选中与系统菜单打断 */

.js-like {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: transform .13s cubic-bezier(.34, 1.56, .64, 1), background-color .2s ease, color .2s ease, border-color .2s ease !important;
    will-change: transform
}

/* 按下即缩放（pointerdown 触发，比 click 早约 100-300ms，这是"跟手"的核心） */
.js-like.is-pressing {
    transform: scale(.9) !important;
    transition-duration: .06s !important
}

/* 已赞态：淡红底 + 红字 */
.js-like.is-liked {
    background: #fff0f3 !important;
    border-color: #ffb3c1 !important;
    color: #e53e5c !important
}

/* 数字：等宽风格，避免 +1/-1 时宽度跳动 */
.js-like .js-like-num {
    font-variant-numeric: tabular-nums;
    font-weight: 600
}

/* 图标弹跳 */
.js-like .js-like-icon {
    display: inline-block;
    transition: transform .26s cubic-bezier(.34, 1.56, .64, 1)
}

.js-like.is-liked .js-like-icon {
    transform: scale(1.2)
}

@keyframes qjLikePop {
    0% { transform: scale(1) }
    35% { transform: scale(1.5) }
    62% { transform: scale(.9) }
    100% { transform: scale(1.2) }
}

.js-like.pop .js-like-icon {
    animation: qjLikePop .44s cubic-bezier(.34, 1.56, .64, 1)
}

/* 请求中：轻微降透明度，但不阻塞再次点击（点了会排队执行最后一次意图） */
.js-like.is-loading {
    opacity: .82
}

/* 尊重"减少动态效果"的系统设置 */
@media (prefers-reduced-motion: reduce) {

    .js-like,
    .js-like .js-like-icon {
        transition: none !important
    }

    .js-like.pop .js-like-icon {
        animation: none
    }
}
