:root {
  --bg: #ffffff;
  --bg-card: #ffffff;
  --bg-elevated: #f5f5f7;
  --text: #111111;
  --text-dim: #777777;
  --accent: #b8436b;
  --accent-hover: #d15681;
  --gold: #d4af37;
  --border: #e6e6ea;
  --danger: #c0392b;
  --success: #27ae60;
  /* 全站统一设计令牌：圆角 / 阴影 / 行高，前台后台共用同一规范 */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06);
  --shadow: 0 4px 14px rgba(0, 0, 0, .10);
  --line-height: 1.5;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

/* ---------- 顶部导航：关注 发现 同城 热门 + 搜索图标 ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 16px;
  gap: 16px;
}
/* 五个标签均分导航宽度（flex 基宽 0）+ 文字居中，加粗的当前项不挤压其他项，
   切换标签/刷新/改窗口宽度时间距恒定不偏移；
   可用宽度不足以放下 5×56px 时（小屏手机）标签不再被压缩，改为导航横向滑动；
   padding-bottom/margin-bottom 抵消选中下划线的溢出，避免被 overflow 裁掉 */
.top-tabs {
  flex: 1 1 0; min-width: 0; position: relative;
  display: flex; align-items: center; gap: 0;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch;
  padding-bottom: 7px; margin-bottom: -7px;
}
.top-tabs::-webkit-scrollbar { display: none; }
.tab-link { flex: 1 1 0; min-width: 56px; display: inline-flex; align-items: center; justify-content: center; text-align: center; color: var(--text-dim); font-size: 15px; line-height: 1; padding: 4px 0; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.tab-link.active { color: var(--text); font-weight: 700; position: relative; }
.tab-link.active::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: -4px; width: 18px; height: 3px; border-radius: 2px; background: var(--accent);
}
/* 搜索图标在滚动容器之外：固定在导航最右侧，不随标签滑动 */
.search-icon { color: var(--text); display: flex; align-items: center; justify-content: center; padding: 4px; flex: 0 0 auto; }

/* ---------- 底部固定导航：纯文字 ---------- */
.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--border);
  z-index: 120;
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-item {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-size: 14px;
  color: var(--text-dim);
}
.nav-item.active { color: var(--text); font-weight: 700; }
.nav-publish { display: flex; align-items: center; justify-content: center; }
.plus-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  margin-top: -14px;
  box-shadow: 0 2px 10px rgba(184, 67, 107, 0.45);
  border: 3px solid #fff;
}
.nav-publish.active .plus-circle { background: var(--accent-hover); }
.footer-note {
  text-align: center;
  color: var(--text-dim);
  font-size: 12px;
  padding: 12px 0 76px;
}

.site-main { max-width: 1000px; margin: 0 auto; padding: 12px 12px 20px; }
.admin-body .site-main { max-width: 1200px; padding-bottom: 20px; }

.page-title { font-size: 20px; margin-bottom: 14px; }
.section-title { font-size: 16px; margin: 18px 0 10px; color: var(--text-dim); }

.notice-banner {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
  color: var(--text-dim);
  font-size: 14px;
}

.btn {
  display: inline-block;
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  font-size: 14px;
  line-height: var(--line-height);
  cursor: pointer;
  background: var(--bg-elevated);
  color: var(--text);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 5px 10px; font-size: 13px; }
.btn:disabled { opacity: 0.6; cursor: wait; }

.alert { padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 12px; font-size: 14px; line-height: var(--line-height); }
.alert-error { background: #fdecea; color: #a93226; border: 1px solid #f5b7b1; }
.alert-success { background: #e9f7ef; color: #1e8449; border: 1px solid #a9dfbf; }

.auth-page { max-width: 380px; margin: 40px auto; }
.auth-title { text-align: center; margin-bottom: 18px; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form input, .auth-form select, .auth-form textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 15px;
}
.age-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--text-dim); }
.age-check input { margin-top: 3px; }
.auth-switch { text-align: center; margin-top: 14px; color: var(--text-dim); font-size: 14px; }
.auth-switch a { color: var(--accent); }
.field-label { font-size: 13px; color: var(--text-dim); margin-bottom: -8px; }

/* ---------- 双列瀑布流信息流：横向间距12px，纵向间距16px ---------- */
.feed { display: flex; gap: 12px; align-items: flex-start; }
.feed-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.work-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.work-media {
  position: relative;
  width: 100%;
  background: var(--bg-elevated);
  overflow: hidden;
}
.work-media video, .work-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-media .work-title-ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 12px; text-align: center;
  color: #fff; font-size: 13px; line-height: 1.6;
  word-break: break-all;
}
/* 无封面时的渐变占位底色，按作品 id 尾数轮换 */
.work-media.ph-0 { background: linear-gradient(135deg, #4b4b57, #7a5a6a); }
.work-media.ph-1 { background: linear-gradient(135deg, #5d4b6b, #3f4a66); }
.work-media.ph-2 { background: linear-gradient(135deg, #6b4a52, #45404f); }
.work-media.ph-3 { background: linear-gradient(135deg, #3d5166, #66576b); }
.work-media.ph-4 { background: linear-gradient(135deg, #57634f, #41434f); }
.work-foot {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 6px;
  padding: 8px 8px 10px;
}
.work-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-flex; align-items: center; justify-content: center;
}
.work-avatar-ph { background: var(--bg-elevated); color: var(--text-dim); font-size: 12px; }
.work-name {
  font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.work-stats { font-size: 11px; color: var(--text-dim); white-space: nowrap; }
.work-stats i { font-style: normal; margin-right: 2px; }
.work-stats .like-i { margin-left: 8px; color: var(--accent); }
.feed-loading { text-align: center; color: var(--text-dim); font-size: 13px; padding: 14px 0; }
.empty-msg { color: var(--text-dim); font-size: 13px; padding: 16px 0; text-align: center; }

.city-bar { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.city-bar select {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 6px; padding: 8px 10px; color: var(--text);
}
.search-bar { display: flex; gap: 8px; margin-bottom: 14px; }
.search-bar input {
  flex: 1; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 6px; padding: 9px 12px; color: var(--text); font-size: 15px;
}

/* ---------- 作品详情 ---------- */
.work-page { max-width: 620px; margin: 0 auto; }
.work-player {
  position: relative;
  width: 100%;
  max-height: 60vh;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}
.work-player video, .work-player img { width: 100%; height: 100%; object-fit: contain; display: block; }
.work-title { font-size: 17px; margin: 12px 0 4px; }
.work-meta { color: var(--text-dim); font-size: 13px; margin-bottom: 12px; }

.edit-form input[type=file] { padding: 8px 0; color: var(--text); }

.user-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.user-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.15s;
}
.user-card:hover { transform: translateY(-2px); }
.card-media { position: relative; aspect-ratio: 1/1.1; background: var(--bg-elevated); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.avatar-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: var(--text-dim); background: var(--bg-elevated);
}
.badge {
  position: absolute; top: 6px; left: 6px;
  font-size: 11px; padding: 2px 7px; border-radius: 10px; font-weight: 600;
}
.badge-vip { background: var(--gold); color: #222; }
.badge-svip { background: linear-gradient(45deg, var(--accent), var(--gold)); color: #fff; }
.badge-danger { background: var(--danger); color: #fff; position: static; }
.badge-free { background: var(--border); color: var(--text-dim); position: static; }
/* 角标在卡片里是绝对定位，写在文字流里（资料页标题、会员中心、VIP页）时必须回到静态定位 */
.profile-info h1 .badge, .member-name .badge, .current-level .badge, .section-title .badge { position: static; display: inline-block; }

.conv-actions { display: flex; gap: 8px; align-items: center; }

.card-body { padding: 8px 10px 12px; }
.card-name { font-weight: 600; font-size: 14px; }
.card-role { color: var(--text-dim); font-size: 12px; margin: 2px 0 6px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag {
  font-size: 11px; background: var(--bg-elevated); color: var(--text-dim);
  padding: 2px 7px; border-radius: 4px;
}

.filter-form { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.filter-form select {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 6px; padding: 8px 10px; color: var(--text);
}
.result-count { color: var(--text-dim); font-size: 13px; margin-bottom: 10px; }

.pagination { display: flex; gap: 6px; margin-top: 18px; justify-content: center; }
.page-link {
  padding: 6px 12px; border-radius: 6px; background: var(--bg-card);
  border: 1px solid var(--border); color: var(--text-dim);
}
.page-link.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.empty-state {
  padding: 40px 0; text-align: center; color: var(--text-dim);
}
.empty-state a { color: var(--accent); }

.profile-page { max-width: 620px; margin: 0 auto; }
.profile-header { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.profile-avatar { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.profile-avatar img, .avatar-placeholder { width: 100%; height: 100%; object-fit: cover; }
.avatar-placeholder.big { font-size: 36px; }
.avatar-placeholder.tiny { width: 40px; height: 40px; border-radius: 50%; font-size: 18px; flex-shrink: 0; }
.profile-info h1 { font-size: 20px; }
.profile-meta { color: var(--text-dim); font-size: 14px; margin-top: 4px; }
.profile-bio { color: var(--text); margin: 10px 0; white-space: normal; }
.tag-group { margin: 12px 0; }
.tag-group-label { font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.photo-thumb, .photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.profile-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center; z-index: 200;
}
.modal-box {
  background: var(--bg-card); border-radius: 12px; padding: 20px;
  width: 90%; max-width: 380px; display: flex; flex-direction: column; gap: 12px;
}
.modal-box select, .modal-box textarea {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 6px; padding: 8px 10px; color: var(--text); min-height: 60px;
}
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; }

.profile-avatar.small { width: 56px; height: 56px; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 14px; text-align: center; }
.stat-num { font-size: 20px; font-weight: 700; }
.stat-label { color: var(--text-dim); font-size: 12px; margin-top: 4px; }

.visitor-list, .blocked-list { display: flex; flex-direction: column; gap: 8px; }
.visitor-item { display: flex; gap: 10px; align-items: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; }
.visitor-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.blocked-item { display: flex; justify-content: space-between; align-items: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; }

.edit-form { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.edit-form .field label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }
.edit-form input[type=text], .edit-form input[type=number], .edit-form input[type=date], .edit-form select, .edit-form textarea {
  width: 100%; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 6px; padding: 9px 12px; color: var(--text); font-size: 15px;
}
.upload-row { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.photo-cell { position: relative; }
.photo-cell img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.photo-del {
  position: absolute; top: 4px; right: 4px; width: 24px; height: 24px;
  border-radius: 50%; border: none; background: rgba(0,0,0,0.6); color: #fff; cursor: pointer;
}

.chat-list { display: flex; flex-direction: column; gap: 8px; }
.chat-item { display: flex; gap: 12px; align-items: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.chat-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.chat-avatar-wrap { width: 44px; flex-shrink: 0; }
.chat-item-main { flex: 1; min-width: 0; }
.chat-item-top { display: flex; justify-content: space-between; }
.chat-name { font-weight: 600; }
.chat-time { color: var(--text-dim); font-size: 12px; }
.chat-item-bottom { display: flex; justify-content: space-between; align-items: center; }
.chat-preview { color: var(--text-dim); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }
.unread-badge { background: var(--accent); color: #fff; font-size: 11px; border-radius: 10px; padding: 1px 7px; }

.conversation-page { display: flex; flex-direction: column; height: calc(100vh - 140px); max-width: 620px; margin: 0 auto; }
.conversation-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.conv-peer { display: flex; gap: 10px; align-items: center; }
.conv-peer img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.message-list { flex: 1; overflow-y: auto; padding: 14px 4px; display: flex; flex-direction: column; gap: 10px; }
.msg { display: flex; }
.msg-mine { justify-content: flex-end; }
.msg-peer { justify-content: flex-start; }
.msg-bubble {
  max-width: 75%; background: var(--bg-elevated); border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px; padding: 8px 12px; position: relative;
}
.msg-mine .msg-bubble { background: var(--accent); color: #fff; border-color: var(--accent); }
.msg-time { display: block; font-size: 10px; color: rgba(255,255,255,0.6); margin-top: 4px; text-align: right; }
.msg-peer .msg-time { color: var(--text-dim); }
.composer { display: flex; gap: 8px; padding: 10px 0; border-top: 1px solid var(--border); }
.composer textarea {
  flex: 1; background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px; padding: 8px 10px; resize: none;
}
.quota-hint { font-size: 12px; color: var(--text-dim); margin-top: 6px; }
.quota-hint a { color: var(--accent); }
.notice-banner button { background: none; border: none; color: var(--accent); cursor: pointer; }

.current-level { color: var(--text-dim); margin-bottom: 14px; }
.plan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.plan-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px; position: relative;
}
.plan-card.current { border-color: var(--gold); }
.plan-card h3 { font-size: 17px; }
.plan-card .price { color: var(--accent); font-size: 22px; font-weight: 700; margin: 8px 0; }
.plan-card ul { list-style: none; margin: 10px 0 16px; }
.plan-card li { font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }
.plan-card .btn + .btn { margin-left: 8px; }
.pay-order-no { font-size: 12px; color: var(--text-dim); margin-top: 8px; word-break: break-all; }

.rules-page { max-width: 620px; color: var(--text-dim); }
.rules-page ul { margin: 14px 0 0 20px; display: flex; flex-direction: column; gap: 10px; }

.admin-header .nav-link { color: var(--text-dim); }
.logo { font-weight: 700; font-size: 18px; color: var(--accent); }
.main-nav { display: flex; gap: 18px; }
.nav-link { color: var(--text-dim); }
.nav-link.active { color: var(--text); }
.admin-table { width: 100%; border-collapse: collapse; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.admin-table th, .admin-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); font-size: 13px; }
.admin-table th { color: var(--text-dim); font-weight: 500; }
.inline-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.reason-input, .plan-select { background: var(--bg); border: 1px solid var(--border); border-radius: 5px; padding: 4px 6px; color: var(--text); font-size: 12px; }

.city-name { color: var(--text); font-weight: 600; margin: 0 4px; }

/* ---------- 编辑资料页（条目式布局） ---------- */
.mp-cover, .mp-avatar { cursor: pointer; }
.ep-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ep-avatar-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ep-avatar { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--bg-elevated); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; }
.ep-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ep-progress-box { flex: 1; min-width: 0; }
.ep-progress { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.ep-progress i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.ep-tip { font-size: 12px; color: var(--text-dim); margin-top: 6px; }
.ep-form { display: flex; flex-direction: column; }
.ep-row { display: flex; align-items: center; gap: 10px; padding: 13px 2px; border-bottom: 1px solid var(--border); }
.ep-label { flex: 0 0 100px; font-size: 14px; color: var(--text-dim); }
.ep-value { flex: 1; font-size: 14px; }
.ep-arrow { color: #c0c0c6; font-size: 16px; line-height: 1; }
.ep-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ep-chip { position: relative; display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 14px; background: var(--bg-elevated); color: var(--text-dim); font-size: 13px; cursor: pointer; border: 1px solid transparent; }
.ep-chip input { position: absolute; opacity: 0; pointer-events: none; }
.ep-chip.on { background: #fbe9f0; color: var(--accent); border-color: var(--accent); }
.ep-bday { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* ---------- 编辑资料：逐项点击编辑 ---------- */
.ep-click { cursor: pointer; }
.ep-click:active { background: var(--bg-elevated); }
.ep-val { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ep-val.dim { color: var(--text-dim); }
#em-body { margin: 10px 0 4px; }
#em-body input[type=text], #em-body textarea { width: 100%; box-sizing: border-box; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px; color: var(--text); font-size: 14px; outline: none; }
#em-body textarea { resize: vertical; }
#em-body select { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 6px; padding: 8px; color: var(--text); font-size: 13px; }
#em-body .ep-chips { margin: 4px 0; }

/* ---------- 发布页：三步流程 ---------- */
.pub-page { max-width: 560px; margin: 0 auto; }
.pub-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pub-close { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: none; background: var(--bg-elevated); color: var(--text); cursor: pointer; }
.pub-heading { font-size: 16px; font-weight: 600; }
.pub-top-space { flex: 1; }
.pub-step { margin-top: 6px; }
#pub-shell { display: flex; flex-direction: column; min-height: calc(100vh - 230px); }
.pub-hint { font-size: 13px; color: var(--text-dim); text-align: center; padding: 24px 12px 30px; }
.pub-bar { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: auto; padding: 14px 6px 22px; border-top: 1px solid var(--border); }
.pub-tabs { display: flex; gap: 6px; justify-content: center; }
.pub-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: 100%; }
.pub-tabs button { border: none; background: transparent; color: var(--text-dim); font-size: 14px; padding: 8px 10px; cursor: pointer; border-radius: 8px; }
.pub-tabs button.on { color: var(--accent); font-weight: 600; background: #fbe9f0; }
.pub-shutter { width: 64px; height: 64px; border-radius: 50%; border: 4px solid var(--accent); background: #fff; cursor: pointer; flex: none; }
.pub-shutter:active { transform: scale(.94); }
.pub-album { border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text); font-size: 13px; padding: 8px 14px; border-radius: 16px; cursor: pointer; flex: none; }
.pe-stage { display: flex; align-items: center; justify-content: center; height: 320px; background: #111; border-radius: 12px; overflow: hidden; }
.pe-stage img { max-width: 100%; max-height: 100%; object-fit: contain; transition: filter .2s, transform .2s; }
.pe-tools { margin-top: 14px; display: flex; flex-direction: column; gap: 14px; }
.pe-actions { display: flex; justify-content: flex-end; gap: 10px; }
.pf-preview { display: flex; justify-content: center; margin-bottom: 12px; }
.pf-preview img, .pf-preview video { max-width: 100%; max-height: 220px; border-radius: 10px; object-fit: contain; background: #111; }
.pf-text-badge { padding: 18px 40px; border-radius: 12px; background: linear-gradient(135deg, #35264a, #b8436b); color: #fff; font-size: 14px; }
.pf-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }

/* ---------- 详情页：文字作品/话题/描述 ---------- */
.work-text-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 20px; border-radius: 12px; background: linear-gradient(135deg, #35264a, #b8436b); color: #fff; box-sizing: border-box; max-height: 420px; overflow: hidden; }
.work-text-title { font-size: 18px; font-weight: 600; }
.work-text-desc { font-size: 13px; opacity: .85; line-height: 1.6; }
.work-topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.work-topic { font-size: 13px; color: var(--accent); background: #fbe9f0; border-radius: 12px; padding: 3px 10px; }
.wt-title { font-size: 15px; font-weight: 600; }
.wt-desc { display: block; margin-top: 6px; font-size: 12px; font-weight: 400; opacity: .8; }

/* ---------- 移动端适配 ---------- */@media (max-width: 560px) {
  .plan-grid { grid-template-columns: 1fr; }
  .pe-stage { height: 240px; }
  .pub-tabs button { padding: 8px 6px; font-size: 13px; }
  .pub-shutter { width: 56px; height: 56px; }
  .user-grid { grid-template-columns: repeat(2, 1fr); }
  .conversation-page { height: calc(100vh - 170px); }
  .site-main { padding: 10px 10px 16px; }
}

/* 后台页面不需要前台底部导航 */

/* ---------- 我的页面新版布局 ---------- */
.mp-cover { position: relative; height: 200px; margin: -12px -12px 0; background: linear-gradient(135deg, #35264a 0%, #b8436b 100%); background-size: cover; background-position: center; }
.mp-visits-btn { position: absolute; right: 12px; top: 12px; background: rgba(0,0,0,.38); color: #fff; border: none; border-radius: 14px; padding: 6px 12px; font-size: 12px; cursor: pointer; }
.mp-visits-btn b { margin-left: 2px; }
.mp-avatar { position: absolute; left: 16px; bottom: -34px; width: 72px; height: 72px; border-radius: 50%; border: 3px solid #fff; background: var(--bg-elevated); overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.mp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mp-avatar-ph { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-size: 26px; color: var(--text-dim); }
.mp-stats { display: flex; margin-top: 48px; padding: 8px 0 12px; }
.mp-stat { flex: 1; text-align: center; }
.mp-stat b { display: block; font-size: 17px; }
.mp-stat span { font-size: 12px; color: var(--text-dim); }
.mp-info { padding: 2px 4px 6px; }
.mp-name { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.mp-uid { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.mp-bio { font-size: 13px; line-height: 1.6; margin-top: 8px; }
.mp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.mp-tag { background: var(--bg-elevated); border-radius: 12px; padding: 4px 10px; font-size: 12px; color: var(--text-dim); }
.mp-entries { display: flex; gap: 8px; margin: 16px 0 4px; overflow-x: auto; scrollbar-width: none; }
.mp-entries::-webkit-scrollbar { display: none; }
.mp-entry { flex: 1 0 auto; min-width: 64px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; font-size: 12px; color: var(--text); text-decoration: none; cursor: pointer; }
.mp-actions { display: flex; gap: 12px; margin: 14px 0 4px; }
.mp-btn { flex: 1; text-align: center; }
.mp-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--border); margin-top: 12px; }
.mp-tabs button { background: none; border: none; padding: 10px 2px; font-size: 14px; color: var(--text-dim); cursor: pointer; border-bottom: 2px solid transparent; }
.mp-tabs button.on { color: var(--text); font-weight: 700; border-bottom-color: var(--accent); }
.mp-tabs i { font-style: normal; font-size: 12px; color: var(--text-dim); }
.mp-feed { margin-top: 12px; }
.mp-modal-scroll { max-height: 320px; overflow-y: auto; }
.mp-modal-tip { color: var(--text-dim); }
@media (max-width: 560px) {
  .mp-cover { margin: -10px -10px 0; height: 180px; }
}
.admin-body .bottom-nav { display: none; }

/* ---------- 消息中心：私信/互动消息分类 ---------- */
.msg-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.msg-tabs button { border: none; background: none; color: var(--text-dim); font-size: 15px; padding: 10px 2px; cursor: pointer; border-bottom: 2px solid transparent; display: flex; align-items: center; gap: 6px; }
.msg-tabs button.on { color: var(--text); font-weight: 600; border-bottom-color: var(--accent); }
.msg-badge { background: var(--accent); color: #fff; font-size: 11px; font-style: normal; border-radius: 9px; padding: 1px 6px; }
.notif-list { display: flex; flex-direction: column; }
.notif-item { display: flex; align-items: center; gap: 10px; padding: 12px 4px; border-bottom: 1px solid var(--border); color: var(--text); }
.notif-item.unread { background: #fdf3f7; }
.notif-icon { flex: none; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; }
.notif-like { background: #e8506b; }
.notif-follow { background: #4f7ddb; }
.notif-comment { background: #d8863b; }
.notif-avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; display: flex; }
.notif-avatar img { width: 100%; height: 100%; object-fit: cover; }
.notif-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.notif-top { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-sub { font-size: 12px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-time { flex: none; font-size: 11px; color: var(--text-dim); align-self: flex-start; margin-top: 2px; }

/* ---------- 详情页：评论区 + 本人管理 ---------- */
.work-manage { display: flex; gap: 10px; margin: 4px 0 12px; }
.work-comments { margin-top: 18px; }
.work-comments .section-title i { font-style: normal; color: var(--text-dim); font-size: 13px; }
.cmt-item { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.cmt-avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; align-self: flex-start; }
.cmt-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cmt-avatar .work-avatar { width: 34px; height: 34px; }
.cmt-main { flex: 1; min-width: 0; text-align: left; }
.cmt-line { font-size: 13px; color: var(--text-dim); line-height: 1.5; }
.cmt-name { font-size: 13px; color: var(--text-dim); }
.cmt-name-at { color: var(--accent); }
.cmt-text { font-size: 14px; margin: 3px 0; word-break: break-word; color: var(--text); }
.cmt-time { font-size: 11px; color: var(--text-dim); }
.cmt-empty { color: var(--text-dim); font-size: 13px; padding: 10px 0; }

/* ---------- 底部导航自动隐藏 + 返回箭头 + 布局重适配 ---------- */
.page-work .bottom-nav, .page-chat .bottom-nav, .page-conversation .bottom-nav, .page-publish .bottom-nav { display: none; }
.page-work .footer-note, .page-chat .footer-note, .page-conversation .footer-note, .page-publish .footer-note { margin-bottom: 10px; }
.pub-album { grid-column: 3; justify-self: start; margin-left: 24px; }
.msg-head { display: flex; align-items: center; gap: 8px; }
.msg-back { display: flex; align-items: center; color: var(--text); padding: 4px; }
.conv-peer { flex: 1; min-width: 0; }

/* ---------- 发布页摄像头实时预览 ---------- */
.pub-cam { width: 100%; max-height: calc(100vh - 340px); min-height: 200px; object-fit: cover; border-radius: 12px; background: #111; display: block; }
.pub-shutter.recording { border-color: #e8506b; background: #e8506b; }

/* ---------- 十次更新：顶部导航隐藏 + 全局自适应 ---------- */
.page-chat .site-header, .page-member .site-header { display: none; }
.page-chat .site-main, .page-member .site-main { padding-top: 8px; }
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
img, video { max-width: 100%; }

/* ---------- 十一次更新：二级页统一返回条 + 自动账号注册 ---------- */
.sub-header { max-width: 1000px; margin: 0 auto; padding: 10px 14px 0; }
.sub-back { display: inline-flex; align-items: center; color: var(--text); padding: 4px; }

/* ---------- 十二次更新：返回箭头统一 / 封面选择 / 配图 / 上传进度 ---------- */
.conv-back, .pub-close { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 0; background: none; border: none; color: var(--text); padding: 0; margin: 0; cursor: pointer; }
.pub-close { flex: none; }
.conv-back { flex: none; margin-right: 8px; }
.work-ph-blank { display: block; width: 100%; height: 100%; }
.pub-cover { grid-column: 1; justify-self: end; margin-right: 24px; color: var(--text-dim); font-size: 14px; background: none; border: 1px solid var(--border); border-radius: 16px; padding: 5px 14px; cursor: pointer; }
.pub-cover[disabled] { opacity: .5; }
.pf-cover-tip { font-size: 12px; color: var(--text-dim); margin: 6px 0 2px; cursor: pointer; }
.pf-images { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.pf-img-cell { position: relative; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; }
.pf-img-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-img-cell i { position: absolute; top: 0; right: 0; width: 20px; height: 20px; line-height: 18px; text-align: center; background: rgba(0,0,0,.55); color: #fff; font-style: normal; font-size: 14px; border-bottom-left-radius: 8px; cursor: pointer; }
.pf-progress { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; margin: 10px 0 4px; }
.pf-progress-bar { height: 100%; width: 0; background: var(--accent); border-radius: 4px; transition: width .2s; }
.pf-progress-text { font-size: 12px; color: var(--text-dim); min-height: 16px; margin: 0 0 6px; }
.work-album { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 0 2px; }
.work-album-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
@media (max-width: 480px) { .work-album { gap: 4px; } }
#pf-title.pf-title-big { font-size: 19px; font-weight: 600; padding: 12px; line-height: 1.5; height: auto; }
@media (max-width: 480px) { #pf-title.pf-title-big { font-size: 17px; } }

/* ---------- 2026-10-18 十三次更新：消息角标 ---------- */
.nav-item { position: relative; }
.nav-badge { position: absolute; top: 6px; left: 50%; margin-left: 6px; min-width: 16px; height: 16px; line-height: 16px; padding: 0 4px; box-sizing: border-box; border-radius: 8px; background: #e8506b; color: #fff; font-size: 10px; font-style: normal; text-align: center; }

/* ---------- 设置入口 + 简介可点击 + 完成度 ---------- */
.mp-settings { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.38); color: #fff; display: flex; align-items: center; justify-content: center; }
.page-member .mp-visits-btn { top: 54px; }
.mp-bio-click { cursor: pointer; }
.mp-progress-line { font-size: 12px; color: var(--text-dim); margin-top: 6px; }
.mp-progress-line b { color: var(--accent); }

/* ---------- 简介编辑弹窗 ---------- */
.bio-modal { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 20px; }
.bio-modal-box { width: 100%; max-width: 420px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.bio-modal-head { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.bio-modal-box textarea { width: 100%; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 10px; color: var(--text); padding: 10px 12px; font-size: 14px; font-family: inherit; resize: vertical; }
.bio-count-tip { text-align: right; font-size: 12px; color: var(--text-dim); margin: 6px 0 10px; }

/* ---------- 系统设置页 ---------- */
.set-page { max-width: 620px; margin: 0 auto; }
.set-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; }
.set-card-title { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.set-card input[type="password"] { display: block; width: 100%; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 10px; color: var(--text); padding: 10px 12px; font-size: 14px; margin-bottom: 10px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.set-row:last-child { border-bottom: none; }
.set-switch { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; flex: none; }
.set-ver { font-weight: 400; color: var(--text-dim); font-size: 13px; }
.set-kefu { color: var(--text-dim); font-size: 13px; text-align: right; }
.set-warn { color: var(--danger); font-size: 13px; margin-bottom: 10px; }
.set-danger .set-card-title { color: var(--danger); }
.dim { color: var(--text-dim); font-style: normal; }

/* ---------- 作品详情全屏铺满（无左右黑边） ---------- */
.page-work .site-main { padding-left: 0; padding-right: 0; }
.page-work .work-page { padding: 0 14px; }
.page-work .work-player, .page-work .work-text-ph { margin-left: -14px; margin-right: -14px; border-radius: 0; }
.page-work .work-player { background: #000; max-height: none; }
.page-work .work-text-ph { aspect-ratio: auto !important; max-height: none; padding: 28px 20px; }
@media (max-width: 480px) { .page-work .work-page { padding: 0 10px; } .page-work .work-player, .page-work .work-text-ph { margin-left: -10px; margin-right: -10px; } }

/* ---------- 十四次更新：全局审查修复（底部留白 / 空状态） ---------- */
.page-work .footer-note, .page-chat .footer-note, .page-conversation .footer-note, .page-publish .footer-note { padding-bottom: 20px; }

/* ---------- 2026-10-18 十六次更新：作品详情页紧凑 + 居中 ---------- */
.page-work .site-main { padding-top: 0; padding-bottom: 8px; }
.page-work .sub-header { padding-top: 6px; }
.page-work .work-page { text-align: center; padding-bottom: 0; }
.page-work .work-title { margin: 10px 0 4px; }
.page-work .work-topics { justify-content: center; margin: 6px 0 2px; }
.page-work .work-meta { margin: 6px 0 8px; }
.page-work .work-manage { justify-content: center; }
.page-work .work-album { max-width: 480px; margin-left: auto; margin-right: auto; }
.page-work .work-comments { margin-top: 12px; }
.page-work .work-comments .section-title { text-align: center; margin-top: 0; }
.page-work #cmt-list { max-width: 480px; margin: 0 auto; }
.page-work .footer-note { padding: 8px 0 14px; }

/* ---------- 2026-10-18 十八次更新：视频cover铺满 + 圆形播放按钮 ---------- */
.page-work .work-player { position: relative; overflow: hidden; }
.page-work .work-player video, .page-work .work-player img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vp-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  z-index: 5;
  padding: 0;
}
.vp-play svg { margin-left: 3px; }

/* ---------- 2026-10-18 十九次更新：商城前台 ---------- */
.shop-bar { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 10px; }
.shop-bar::-webkit-scrollbar { display: none; }
.shop-tab { flex: none; padding: 6px 14px; border-radius: 999px; background: var(--bg-elevated); color: var(--text-dim); font-size: 14px; white-space: nowrap; }
.shop-tab.active { background: var(--accent); color: #fff; }
.shop-sort { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-dim); padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.sort-link { color: var(--text-dim); }
.sort-link.active { color: var(--text); font-weight: 700; }
.shop-search-tip { font-size: 13px; color: var(--text-dim); margin-bottom: 8px; }
.goods-feed { align-items: flex-start; }
.goods-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.goods-link { display: block; }
.goods-media { position: relative; width: 100%; background: var(--bg-elevated); overflow: hidden; }
.goods-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.goods-media-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--text-dim); font-size: 13px; background: var(--bg-elevated); }
.goods-tag { position: absolute; top: 8px; left: 8px; padding: 2px 7px; border-radius: 4px; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 11px; }
.goods-sold-out { position: absolute; top: 8px; right: 8px; padding: 2px 7px; border-radius: 4px; background: var(--danger); color: #fff; font-size: 11px; }
.goods-body { padding: 8px 10px 4px; }
.goods-name { font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.goods-row { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; margin-top: 6px; }
.goods-price { color: var(--accent); font-size: 16px; font-weight: 700; }
.goods-sales { color: var(--text-dim); font-size: 12px; }
.goods-foot { padding: 0 10px 10px; }
.goods-foot .btn { width: 100%; }

/* 商品详情 */
.goods-detail { max-width: 640px; margin: 0 auto; }
.gd-media { position: relative; width: 100%; max-height: 78vh; background: #000; border-radius: 10px; overflow: hidden; }
.gd-media video, .gd-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.gd-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.gd-thumbs::-webkit-scrollbar { display: none; }
.gd-thumb { width: 56px; height: 56px; flex: none; object-fit: cover; border-radius: 6px; border: 2px solid transparent; cursor: pointer; }
.gd-thumb.active { border-color: var(--accent); }
.gd-title { font-size: 17px; margin: 14px 0 6px; }
.gd-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.gd-price { color: var(--accent); font-size: 22px; font-weight: 700; }
.gd-sales { color: var(--text-dim); font-size: 13px; }
.gd-stock { font-size: 13px; color: var(--text-dim); margin-top: 4px; }
.gd-stock.is-low { color: var(--gold); }
.gd-stock.is-empty { color: var(--danger); }
.gd-spec { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 4px 12px; margin: 12px 0; }
.gd-spec-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-dim); }
.gd-spec-row:last-child { border-bottom: none; }
.gd-spec-row b { color: var(--text); font-weight: 500; }
.gd-qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); font-size: 14px; }
.qty-box { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.qty-btn { width: 32px; height: 32px; background: var(--bg-elevated); border: none; color: var(--text); font-size: 16px; cursor: pointer; }
.qty-box input { width: 48px; height: 32px; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); text-align: center; background: var(--bg-card); color: var(--text); font-size: 14px; -moz-appearance: textfield; appearance: textfield; }
.qty-box input::-webkit-outer-spin-button, .qty-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.gd-desc { font-size: 14px; line-height: 1.7; color: var(--text); margin: 10px 0 14px; }
.gd-actions { display: flex; gap: 8px; align-items: center; }
.gd-actions .btn { flex: 1; text-align: center; }
.gd-actions .gd-fav { flex: none; padding: 8px 12px; }
.gd-back-line { margin-top: 12px; font-size: 13px; color: var(--text-dim); }
.gd-back-line a { color: var(--text-dim); text-decoration: underline; }

/* 购物车 */
.cart-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.cart-thumb { width: 60px; height: 60px; flex: none; border-radius: 8px; overflow: hidden; background: var(--bg-elevated); display: flex; align-items: center; justify-content: center; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { flex: 1; min-width: 0; }
.cart-name { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-price { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.cart-line { font-size: 14px; font-weight: 700; color: var(--accent); min-width: 66px; text-align: right; }
.cart-del { flex: none; width: 26px; height: 26px; border: none; border-radius: 50%; background: var(--bg-elevated); color: var(--text-dim); cursor: pointer; }
.cart-bar { position: sticky; bottom: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 12px 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; }
.cart-sum { font-size: 13px; color: var(--text-dim); }
.cart-sum b { color: var(--accent); font-size: 18px; }
.cart-fee { display: block; font-size: 12px; margin-top: 2px; }

/* 结算 / 地址 / 订单：通用卡片 */
.ck-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.ck-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.ck-add-link { font-size: 13px; font-weight: 400; color: var(--accent); }
.ck-none { font-size: 13px; color: var(--text-dim); }
.ck-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.ck-item img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex: none; }
.ck-info { flex: 1; min-width: 0; }
.ck-name { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ck-meta { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.ck-line { font-size: 14px; font-weight: 600; }
.ck-sum-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--text-dim); padding-top: 8px; }
.ck-sum-row b { color: var(--text); font-weight: 500; }
.ck-sum-row.ck-total { font-size: 14px; color: var(--text); border-top: 1px solid var(--border); margin-top: 6px; }
.ck-sum-row.ck-total b { color: var(--accent); font-size: 18px; font-weight: 700; }
.ck-bar { position: sticky; bottom: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; }
.ck-bar b { color: var(--accent); font-size: 18px; }
#ck-remark, .addr-form textarea { width: 100%; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 8px; color: var(--text); padding: 9px 10px; font-size: 14px; font-family: inherit; }
.addr-pick { display: flex; flex-direction: column; gap: 8px; }
.addr-option { display: flex; align-items: flex-start; gap: 8px; padding: 10px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
.addr-option.active { border-color: var(--accent); background: rgba(184, 67, 107, 0.05); }
.addr-option input { margin-top: 3px; accent-color: var(--accent); }
.addr-main { flex: 1; min-width: 0; font-size: 13px; color: var(--text-dim); }
.addr-main b { color: var(--text); font-size: 14px; }
.addr-detail { display: block; margin-top: 4px; line-height: 1.5; }
.addr-tag { font-style: normal; font-size: 11px; color: var(--accent); border: 1px solid var(--accent); border-radius: 4px; padding: 0 4px; }
.addr-form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.addr-form input[type="text"] { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 8px; color: var(--text); padding: 9px 10px; font-size: 14px; width: 100%; }
.af-row { display: flex; gap: 8px; }
.af-row input { flex: 1; }
.af-default { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-dim); }
.af-default input { accent-color: var(--accent); }
.addr-count { font-size: 13px; color: var(--text-dim); margin-bottom: 10px; }
.addr-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.addr-ops { display: flex; gap: 6px; flex: none; }
.fav-tip { font-size: 12px; color: var(--text-dim); margin-top: 10px; }
.order-links { font-size: 13px; color: var(--text-dim); margin: 14px 0 4px; }
.order-links a { color: var(--accent); }

/* 订单列表 / 详情 */
.order-tabs { padding-bottom: 12px; }
.order-item { display: block; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.order-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--text-dim); }
.order-status { font-size: 13px; font-weight: 600; color: var(--accent); }
.order-status.st-unpaid { color: var(--danger); }
.order-status.st-shipped { color: var(--gold); }
.order-status.st-completed { color: var(--success); }
.order-status.st-cancelled, .order-status.st-refunded { color: var(--text-dim); }
.order-status.st-refunding { color: var(--danger); }
.order-goods { display: flex; align-items: center; gap: 8px; margin: 10px 0 8px; }
.og-thumb { position: relative; flex: none; width: 44px; height: 44px; border-radius: 6px; overflow: hidden; background: var(--bg-elevated); display: flex; align-items: center; justify-content: center; }
.og-thumb img { width: 100%; height: 100%; object-fit: cover; }
.og-thumb i { font-style: normal; color: var(--text-dim); font-size: 12px; }
.og-thumb em { position: absolute; right: 2px; bottom: 0; font-style: normal; font-size: 11px; color: #fff; text-shadow: 0 0 3px rgba(0, 0, 0, 0.6); }
.og-title { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--text-dim); }
.order-amount b { color: var(--accent); font-size: 15px; }
.od-status-bar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; font-size: 16px; font-weight: 700; }
.od-tip { font-size: 12px; font-weight: 400; color: var(--text-dim); }
.od-addr { font-size: 13px; color: var(--text-dim); }
.od-addr b { color: var(--text); font-size: 14px; }
.od-remark { font-size: 13px; color: var(--text-dim); margin-top: 8px; }
.od-track { list-style: none; border-left: 2px solid var(--border); margin-left: 6px; padding-left: 14px; }
.od-track li { position: relative; font-size: 13px; color: var(--text-dim); padding: 5px 0; }
.od-track li::before { content: ""; position: absolute; left: -20px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.od-track li.done { color: var(--text); }
.od-track li.done::before { background: var(--accent); }
.od-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.od-actions .btn { min-width: 96px; text-align: center; }
.pay-qr { width: 220px; height: 220px; margin: 8px auto; border-radius: 8px; }

/* 后台：商品与订单 */
.field-row { display: flex; flex-wrap: wrap; gap: 12px; }
.field-row .field { flex: 1; min-width: 140px; }
.admin-goods-cell { display: flex; align-items: center; gap: 8px; }
.admin-goods-cell img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; flex: none; }
.admin-media-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.admin-media-item { font-size: 12px; color: var(--text-dim); text-align: center; }
.admin-media-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; margin-bottom: 4px; }
.admin-media-cur { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.admin-media-cur img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.keep-check { font-size: 12px; color: var(--text-dim); }
.goods-form { max-width: 720px; }
.goods-form .field { margin-bottom: 4px; }
.filter-form, .stock-form { margin-bottom: 14px; }
.shop-order-tabs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.order-goods-line { font-size: 13px; }
.admin-table td form + form { margin-top: 6px; }

/* 商城移动端适配 */
@media (max-width: 560px) {
  .shop-sort { flex-wrap: wrap; gap: 10px; }
  .gd-actions { flex-wrap: wrap; }
  .gd-actions .btn { flex: 1 1 40%; }
  .ck-bar, .cart-bar { bottom: 52px; padding: 10px 12px; }
  .od-actions .btn { flex: 1 1 40%; min-width: 0; }
  .cart-item { gap: 8px; }
  .cart-line { min-width: 56px; font-size: 13px; }
  .qty-box input { width: 42px; }
  .addr-row { flex-direction: column; align-items: flex-start; }
  .field-row .field { min-width: 100%; }
}

/* ---------- 2026-10-19 二十二次更新：作品详情页信息栏 + 标题浮层 + 素材等比铺满 ---------- */
.work-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  max-width: 1000px; margin: 0 auto; padding: 6px 12px 10px; text-align: left;
}
.wt-left { display: flex; align-items: center; gap: 8px; flex: 1 1 0; min-width: 0; }
.wt-back { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-left: -6px; border-radius: 50%; color: var(--text); -webkit-tap-highlight-color: transparent; }
.wt-back svg { width: 26px; height: 26px; }
.wt-user { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--text); }
.wt-avatar { flex: none; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.wt-avatar-ph { display: flex; align-items: center; justify-content: center; background: var(--bg-elevated); color: var(--text-dim); font-size: 13px; }
.wt-name { min-width: 0; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wt-right { flex: none; display: flex; align-items: center; gap: 10px; }
.wt-follow { flex: none; white-space: nowrap; }
.wt-search { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; color: var(--text); -webkit-tap-highlight-color: transparent; }
.work-title-ov { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; padding: 0 12px 12px; text-align: left; pointer-events: none; }
.work-title-ov.is-video { padding-bottom: 58px; }
.work-title-ov .work-title {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  max-width: 86%; margin: 0; padding: 5px 10px; border-radius: 8px;
  background: rgba(0, 0, 0, 0.42); color: #fff; font-size: 16px; font-weight: 600; line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); word-break: break-word;
}
.work-ov-desc {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
  max-width: 86%; margin: 6px 0 0; padding: 4px 10px; border-radius: 8px;
  background: rgba(0, 0, 0, 0.34); color: #fff; font-size: 13px; font-weight: 400; line-height: 1.5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); word-break: break-word;
}
@media (max-width: 480px) {
  .work-topbar { padding: 4px 8px 8px; }
  .wt-name { font-size: 14px; }
  .wt-avatar { width: 28px; height: 28px; }
  .work-title-ov { padding-left: 10px; padding-right: 10px; }
  .work-title-ov .work-title { font-size: 15px; max-width: 90%; }
  .work-ov-desc { font-size: 12px; max-width: 90%; }
}

/* ---------- 2026-10-20 二十三次更新：个人主页统计入口化 + 消息页发起聊天入口 ---------- */
.mp-stat { background: none; border: 0; padding: 8px 0; color: inherit; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mp-stat:active b { color: var(--accent); }
.modal-box h3 i { font-style: normal; font-weight: 400; font-size: 13px; color: var(--text-dim); }
.msg-new { margin-left: auto; align-self: center; font-size: 13px; color: var(--accent); white-space: nowrap; }

/* ---------- 2026-10-20 二十四次更新：作品详情媒体容器占满可用宽度（消除右侧白边） ---------- */
/* work.php 会给 <html> 加 p-work：纵向滚动条不再预留 15px，媒体容器才真正等于视口宽度 */
html.p-work { scrollbar-width: none; -ms-overflow-style: none; }
html.p-work::-webkit-scrollbar { width: 0; height: 0; display: none; }
/* width:100% 会让左右负 margin 只做平移而不扩宽，改回 auto 后容器才吃满 site-main 全宽 */
.page-work .work-player, .page-work .work-text-ph { width: auto; margin-left: -14px; margin-right: -14px; padding: 0; }
@media (max-width: 480px) { .page-work .work-player, .page-work .work-text-ph { margin-left: -10px; margin-right: -10px; } }
/* 横屏/宽屏：媒体高度按屏幕反推，素材等比完整显示，容器仍整行铺满（无左右白边） */
@media (orientation: landscape) { .page-work .work-page { max-width: none; } }
@media (orientation: landscape), (min-width: 700px) {
  /* 这里必须给确定宽度：aspect-ratio 的高度被 max-height 夹住时，auto 宽度会被反向缩小，右侧又露出白边 */
  .page-work .work-player { width: calc(100% + 28px); max-height: calc(100vh - 60px); }
  .page-work .work-player video, .page-work .work-player img { object-fit: contain; }
}
@media (max-width: 480px) and (orientation: landscape) { .page-work .work-player { width: calc(100% + 20px); } }

/* ---------- 2026-10-20 二十五次更新：多图作品以相册为主媒体 ---------- */
.work-album-main .wa-track {
  position: absolute; inset: 0; z-index: 1;
  display: flex; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; -ms-overflow-style: none;
}
.work-album-main .wa-track::-webkit-scrollbar { display: none; }
/* .page-work 里所有 work-player img 都是绝对定位，相册图必须回到文档流才能横向排开 */
.page-work .work-album-main .wa-slide, .work-album-main .wa-slide {
  position: static;
  display: block;
  flex: 0 0 100%; width: 100%; height: 100%;
  object-fit: cover; scroll-snap-align: center; scroll-snap-stop: always;
}
.wa-count {
  position: absolute; right: 10px; top: 10px; z-index: 6;
  padding: 3px 9px; border-radius: 12px;
  background: rgba(0, 0, 0, 0.42); color: #fff;
  font-size: 12px; line-height: 1.5; pointer-events: none;
}

/* ---------- 2026-10-20 二十六次更新：评论区重构（回复折叠 + 底部固定输入栏 + 长按菜单） ---------- */
.cmt-foot { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.cmt-act { border: none; background: none; padding: 0; font-size: 11px; color: var(--text-dim); cursor: pointer; }
.cmt-item { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.cmt-replies { margin-top: 6px; }
.cmt-replies.collapsed .cmt-reply-list { display: none; }
.cmt-expand { display: block; border: none; background: none; padding: 4px 0; font-size: 12px; color: var(--accent); cursor: pointer; }
.cmt-reply-list { border-left: 2px solid var(--border); padding-left: 8px; }
.cmt-item.cmt-sub { padding: 8px 0; border-bottom: none; gap: 8px; }
.cmt-sub .cmt-avatar, .cmt-sub .cmt-avatar .work-avatar { width: 26px; height: 26px; }
.cmt-sub .cmt-text { font-size: 13px; margin: 2px 0; }
.cmt-media { margin: 6px 0 2px; }
.cmt-img { width: 92px; height: 92px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); cursor: pointer; }

/* 底部固定评论栏：详情页本就隐藏主导航（.page-work .bottom-nav），故贴视口底并预留安全区 */
.cmt-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 130;
  width: 100%; max-width: 620px;
  background: rgba(255, 255, 255, 0.98); border-top: 1px solid var(--border);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
  text-align: left;
}
.cb-hint { font-size: 13px; color: var(--text-dim); text-align: center; padding: 3px 0; }
.cb-row { display: flex; align-items: flex-end; gap: 8px; }
.cb-btn { flex: none; width: 34px; height: 34px; border: none; border-radius: 50%; background: none; color: var(--text-dim); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cb-input { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--border); border-radius: 18px; padding: 7px 12px; font-size: 14px; color: var(--text); line-height: 1.4; outline: none; resize: none; max-height: 88px; overflow-y: auto; }
.cb-send { flex: none; height: 34px; }
.cb-reply { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--text-dim); background: var(--bg-elevated); border-radius: 8px; padding: 5px 8px; margin-bottom: 6px; }
.cb-pending { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 12px; color: var(--text-dim); }
.cb-pending img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }
.cb-x { flex: none; border: none; background: none; font-size: 17px; line-height: 1; color: var(--text-dim); cursor: pointer; padding: 0 2px; }
.cb-emojis { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 8px; max-height: 132px; overflow-y: auto; }
.cb-emoji { border: none; background: none; font-size: 21px; line-height: 1; padding: 6px; cursor: pointer; }
.cb-file { display: none; }
/* 固定评论栏会盖住页面结尾，留出等量底部空间 */
.page-work .work-page { padding-bottom: 12px; }
.page-work .footer-note { padding-bottom: 88px; }

.cmt-sheet { position: fixed; inset: 0; z-index: 200; }
.cs-mask { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.42); }
.cs-panel { position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 620px; background: var(--bg-card); border-radius: 14px 14px 0 0; padding: 6px 10px calc(10px + env(safe-area-inset-bottom)); }
.cs-item { display: block; width: 100%; border: none; background: none; text-align: center; padding: 13px 0; font-size: 15px; color: var(--text); border-bottom: 1px solid var(--border); cursor: pointer; }
.cs-danger { color: var(--danger); }
.cs-cancel { border-bottom: none; margin-top: 4px; color: var(--text-dim); }

.cmt-lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0, 0, 0, 0.9); align-items: center; justify-content: center; }
.cmt-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }

@media (max-width: 480px) {
  .cmt-img { width: 84px; height: 84px; }
  .cb-emoji { font-size: 20px; padding: 5px; }
}

.page-work .work-comments .section-title { text-align: left; }

/* ---------- 2026-10-20 二十七次更新：PWA 安装悬浮按钮 + iOS 添加主屏幕引导 ---------- */
.pwa-fab {
  position: fixed; right: 14px; z-index: 135;
  bottom: calc(58px + env(safe-area-inset-bottom));
  display: none; align-items: center; gap: 5px;
  height: 42px; padding: 0 14px; border: none; border-radius: 21px;
  background: var(--accent); color: #fff; font-size: 13px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22); cursor: pointer;
}
/* 隐藏主导航的页面下沉贴底；详情页底部还有固定评论栏，再抬高一段 */
.page-work .pwa-fab, .page-chat .pwa-fab, .page-conversation .pwa-fab, .page-publish .pwa-fab { bottom: calc(12px + env(safe-area-inset-bottom)); }
.page-work .pwa-fab { bottom: calc(64px + env(safe-area-inset-bottom)); }

.pwa-guide { position: fixed; inset: 0; z-index: 200; }
.pg-mask { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.42); }
.pg-panel {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 100%; max-width: 620px; background: var(--bg-card);
  border-radius: 14px 14px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
}
.pg-title { font-size: 16px; margin-bottom: 10px; color: var(--text); }
.pg-steps { padding-left: 20px; font-size: 14px; line-height: 1.9; color: var(--text); }
.pg-ok { display: block; width: 100%; margin-top: 16px; }

/* PC 端不显示安装入口 */
@media (min-width: 760px) { .pwa-fab, .pwa-guide { display: none !important; } }

/* ---------- 2026-10-20 二十八次更新：后台商品管理列表（列宽配比 / 居中对齐 / 移动端卡片化） ---------- */
.admin-filter { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-filter .af-control { height: 34px; box-sizing: border-box; font-size: 13px; }
.admin-filter select.af-control { background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; color: var(--text); padding: 0 10px; min-width: 116px; }
.admin-filter select.af-status { min-width: 100px; }
.admin-filter .btn.af-control { display: inline-flex; align-items: center; justify-content: center; min-width: 78px; padding: 0 14px; }

.goods-table { table-layout: fixed; }
.goods-table .cw-goods { width: 36%; }
.goods-table .cw-cat { width: 9%; }
.goods-table .cw-price { width: 10%; }
.goods-table .cw-stock { width: 8%; }
.goods-table .cw-sales { width: 8%; }
.goods-table .cw-status { width: 9%; }
.goods-table .cw-actions { width: 20%; }
.goods-table th, .goods-table td { vertical-align: middle; }
.goods-table th { white-space: nowrap; }
.goods-table .gt-name { text-align: left; }
.goods-table .gt-cat, .goods-table .gt-num, .goods-table .gt-status, .goods-table .gt-act { text-align: center; }
.goods-table .gt-num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.goods-table .admin-goods-cell { gap: 10px; min-width: 0; }
.goods-table .gc-text { display: block; flex: 1 1 auto; min-width: 0; line-height: 1.4; }
.goods-table .gc-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.goods-table .gc-meta { display: block; margin-top: 2px; font-size: 11px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.goods-actions { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.goods-actions form { display: inline-flex; }
.goods-actions .btn { display: inline-flex; align-items: center; justify-content: center; height: 30px; min-width: 62px; padding: 0 12px; }
.goods-table .gt-empty { text-align: center; color: var(--text-dim); padding: 24px 12px; }

@media (max-width: 760px) {
  .admin-filter { gap: 8px; }
  .admin-filter select.af-control, .admin-filter .btn.af-control { flex: 1 1 44%; min-width: 0; }
  /* 窄屏改为一张商品一卡片，字段左右两列（标签/值）纵向排布，表格不再横向挤压 */
  .goods-table { display: block; width: 100%; border: none; background: none; border-radius: 0; overflow: visible; }
  .goods-table colgroup, .goods-table thead { display: none; }
  .goods-table tbody, .goods-table tr { display: block; }
  .goods-table tr { border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); padding: 2px 12px; margin-bottom: 10px; }
  .goods-table td { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: right; padding: 9px 0; border-bottom: 1px dashed var(--border); }
  .goods-table tr > td:last-child { border-bottom: none; }
  .goods-table td::before { content: attr(data-label); flex: none; text-align: left; color: var(--text-dim); font-size: 12px; }
  .goods-table .gt-name { display: block; text-align: left; padding: 10px 0; }
  .goods-table .gt-name::before, .goods-table .gt-empty::before { content: none; }
  .goods-table .gt-act { justify-content: flex-end; }
  .goods-table .goods-actions { justify-content: flex-end; }
  .goods-table .gt-empty { display: block; text-align: center; }
}

/* ---------- 2026-10-20 二十九次更新：个人主页封面顶到页面最顶端 ---------- */
/* 返回条脱离文档流叠在封面左上角，顶部不再出现空白条 */
.page-member .site-main { padding-top: 0; }
.page-member .sub-header { position: relative; height: 0; padding: 0; z-index: 120; }
.page-member .sub-back {
  position: absolute; left: 12px; top: 12px;
  width: 34px; height: 34px; border-radius: 50%; padding: 0;
  align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .38); color: #fff;
}
.page-member .mp-cover { margin-top: 0; height: 200px; }

/* 刘海屏 / 挖孔屏：封面继续向上铺满安全区，封面内控件按安全边距下移 */
@supports (padding-top: env(safe-area-inset-top)) {
  .site-header { padding-top: env(safe-area-inset-top); }
  .sub-header { padding-top: calc(10px + env(safe-area-inset-top)); }
  .page-member .sub-header { padding: 0; }
  .page-member .mp-cover { margin-top: calc(-1 * env(safe-area-inset-top)); height: calc(200px + env(safe-area-inset-top)); }
  .page-member .sub-back { left: calc(12px + env(safe-area-inset-left)); top: calc(12px + env(safe-area-inset-top)); }
  .mp-settings { right: calc(12px + env(safe-area-inset-right)); top: calc(12px + env(safe-area-inset-top)); }
  .page-member .mp-visits-btn { right: calc(12px + env(safe-area-inset-right)); top: calc(54px + env(safe-area-inset-top)); }
  @media (max-width: 560px) {
    .page-member .mp-cover { height: calc(180px + env(safe-area-inset-top)); }
  }
}

/* ---------- 2026-10-20 三十次更新：顶部导航最左端圆形 logo ---------- */
/* logo 与标签组同处一个 flex 容器，12px 间距不受 header-inner 自身 gap 影响 */
.brand-tabs { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 12px; }
.brand-logo { flex: none; width: 28px; height: 28px; display: block; }
.brand-logo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }

/* ---------- 2026-10-21 三十一次更新：PWA 独立模式（主屏幕图标 / 打包APP版）作品详情页适配 ----------
   全部规则挂在 html.standalone 下：该 class 仅在独立应用模式由 JS 添加，
   普通浏览器网页版不会命中任何一条，原有样式完全不变 */

/* 顶部信息栏：返回按钮 / 作者信息 / 搜索图标避开状态栏与左右刘海，不紧贴屏幕顶端 */
html.standalone .page-work .work-topbar {
  padding-top: calc(6px + env(safe-area-inset-top));
  padding-left: calc(12px + env(safe-area-inset-left));
  padding-right: calc(12px + env(safe-area-inset-right));
}
@media (max-width: 480px) {
  html.standalone .page-work .work-topbar {
    padding-top: calc(4px + env(safe-area-inset-top));
    padding-left: calc(8px + env(safe-area-inset-left));
    padding-right: calc(8px + env(safe-area-inset-right));
  }
}

/* 作品大图：等比完整展示，不裁切、不拉伸（展示区高度仍由 JS 按素材真实宽高比自适应，无黑边） */
html.standalone .page-work .work-player img,
html.standalone .page-work .work-album-main .wa-slide { object-fit: contain; }

/* 标题栏 / 设为私密 / 红色删除：同一中轴排版，两按钮等宽对齐 */
html.standalone .page-work .work-manage { justify-content: center; gap: 12px; margin-top: 10px; }
html.standalone .page-work .work-manage .btn { min-width: 100px; }

/* 评论标题与空评论提示居中 */
html.standalone .page-work .work-comments .section-title { text-align: center; }
html.standalone .page-work .cmt-empty { text-align: center; }

/* 底部评论输入区：表情 / 输入框(140字) / 图片 / 紫红发送按钮布局稳定，整体上移避开底部手势指示条 */
html.standalone .cmt-bar {
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
  padding-left: calc(12px + env(safe-area-inset-left));
  padding-right: calc(12px + env(safe-area-inset-right));
}
html.standalone .cb-row { flex-wrap: nowrap; }
html.standalone .cb-btn, html.standalone .cb-send { flex: none; }
html.standalone .cs-panel { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }

/* 页脚版权文字：固定预留评论栏高度 + 底部安全区，不被输入栏或手势条遮挡 */
html.standalone .page-work .footer-note { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }

/* ---------- 2026-10-21 三十二次更新：群友汇 / 寸止挑战 付费模块 ---------- */
/* 顶部导航横向滑动：按钮按内容排布，超出可左右滑动 */
.top-tabs .tab-link { flex: 0 0 auto; min-width: 0; padding: 4px 10px; }

/* 群友汇列表 */
.qun-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
.qun-card { display: block; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 14px; color: var(--text); }
.qun-card:active { opacity: .75; }
.qc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.qc-name { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qc-intro { font-size: 12px; color: var(--text-dim); margin: 8px 0 0; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qc-foot { display: flex; align-items: baseline; justify-content: space-between; margin-top: 10px; }
.qc-price { color: var(--accent); font-weight: 700; font-size: 15px; }
.qc-days { font-size: 11px; color: var(--text-dim); }

/* 群友汇详情 */
.qun-detail, .ch-detail { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-top: 12px; }
.qd-name { font-size: 18px; margin: 0 0 8px; }
.qd-intro { font-size: 13px; color: var(--text-dim); line-height: 1.6; margin: 0 0 12px; white-space: normal; }
.qd-meta { display: flex; gap: 14px; font-size: 13px; color: var(--text-dim); margin-bottom: 14px; }
.qd-price { color: var(--accent); font-weight: 700; }
.qd-buy { display: flex; gap: 10px; flex-wrap: wrap; }
.qd-buy .btn { flex: 1 1 0; min-width: 120px; }
.qd-unlocked { text-align: center; }
.qd-unlock-tip { font-size: 12px; color: var(--text-dim); margin-bottom: 12px; }
.qd-qr-box { display: flex; flex-direction: column; align-items: center; }
.qd-qr-box img { width: 240px; height: 240px; max-width: 80%; object-fit: contain; background: #fff; border-radius: 10px; padding: 8px; }
.qd-qr-tip { font-size: 12px; color: var(--text-dim); margin-top: 10px; }

/* 支付二维码盒子（群友汇 / 寸止挑战下单后） */
#pay-box { display: flex; flex-direction: column; align-items: center; margin-top: 16px; }
#pay-box h3 { margin: 0 0 10px; font-size: 15px; }
#pay-box img { width: 220px; height: 220px; }
#pay-box #pay-status { margin-top: 10px; font-size: 13px; color: var(--text-dim); }

/* 寸止挑战列表 */
.ch-grid { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.ch-card { display: flex; gap: 12px; align-items: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 12px; color: var(--text); }
.ch-card:active { opacity: .75; }
.ch-avatar-wrap { flex: none; }
.ch-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; display: block; }
.ch-avatar-ph { display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; font-size: 20px; font-weight: 700; }
.ch-info { flex: 1 1 0; min-width: 0; }
.ch-name { font-size: 15px; font-weight: 600; }
.ch-play { font-size: 12px; color: var(--text-dim); margin: 6px 0 0; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ch-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.ch-price { color: var(--accent); font-weight: 700; font-size: 14px; }

/* 寸止挑战详情 */
.chd-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.chd-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; display: block; }
.chd-name { font-size: 17px; margin: 0; }
.chd-age { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.chd-play { font-size: 13px; line-height: 1.7; color: var(--text); background: rgba(255, 255, 255, .04); border-radius: 10px; padding: 12px; margin-bottom: 12px; word-break: break-word; }
.chd-meta { font-size: 13px; color: var(--text-dim); margin-bottom: 14px; }
.chd-contact { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 6px; }
.chd-contact-label { font-size: 13px; color: var(--text-dim); }
.chd-contact-no { font-size: 17px; font-weight: 700; letter-spacing: .5px; user-select: all; -webkit-user-select: all; word-break: break-all; }

/* PWA 独立版：新模块页面安全区适配（顶部导航与底部内容避开刘海/手势条） */
html.standalone .page-qun .site-header,
html.standalone .page-challenge .site-header { padding-top: env(safe-area-inset-top); }
html.standalone .page-qun .site-main,
html.standalone .page-challenge .site-main,
html.standalone .page-qun_group .site-main,
html.standalone .page-challenge_card .site-main { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

/* ---------- 2026-10-21 三十三次更新：群友汇卡片宣传图 ---------- */
.qun-card { padding: 0; overflow: hidden; }
.qc-body { padding: 0 14px 14px; }
.qc-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--bg-elevated); }
.qc-top { margin-top: 14px; }

/* ---------- 2026-10-21 三十四次更新：群友汇详情页（大图+右下悬浮进群按钮） ---------- */
.qd-page { padding-bottom: 90px; }
.qd-cover { width: 100%; border-radius: 12px; display: block; margin: 14px 0 0; }
.qd-meta-below { margin: 14px 0 0; }

/* 右下角固定悬浮主按钮：主色胶囊 + 阴影，位于底部导航之上 */
.qd-fab-wrap { position: fixed; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 130; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.qd-fab { background: var(--accent); color: #fff; border: none; border-radius: 24px; padding: 12px 20px; font-size: 15px; font-weight: 600; box-shadow: 0 6px 16px rgba(184, 67, 107, .35); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.qd-fab:active { opacity: .85; }
/* 支付未配置：悬浮按钮上方浅红提示条 */
.qd-fab-alert { max-width: 240px; background: rgba(192, 57, 43, .08); color: var(--danger); border: 1px solid rgba(192, 57, 43, .18); border-radius: 10px; padding: 8px 12px; font-size: 12px; line-height: 1.5; }

/* 支付弹层：底部抽屉，风格与全站卡片圆角/主色一致 */
.qd-pay-sheet { position: fixed; inset: 0; z-index: 200; }
.qd-pay-sheet .qs-mask { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.qd-pay-sheet .qs-panel { position: absolute; left: 0; right: 0; bottom: 0; background: var(--bg-card); border-radius: 16px 16px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); max-width: 520px; margin: 0 auto; }
.qs-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.qs-title { font-size: 15px; font-weight: 600; }
.qs-x { border: none; background: none; font-size: 24px; line-height: 1; color: var(--text-dim); cursor: pointer; padding: 0 4px; }
.qs-gws { display: flex; flex-direction: column; gap: 10px; }
.qs-gw { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 12px; padding: 13px; font-size: 15px; cursor: pointer; color: var(--text); -webkit-tap-highlight-color: transparent; }
.qs-gw:active { opacity: .8; }
.qs-gw[disabled] { opacity: .5; }
.qd-pay-sheet #pay-box { padding-bottom: 8px; }

/* PWA 独立版：悬浮按钮避开底部手势条 */
html.standalone .qd-fab-wrap { bottom: calc(76px + env(safe-area-inset-bottom) + 8px); }

/* ---------- 2026-10-21 三十五次更新：寸止挑战详情页（高清大图+右下悬浮解锁按钮） ---------- */
.chd-page { padding-bottom: 90px; }
.chd-photo { width: 100%; border-radius: 12px; display: block; margin: 0 0 14px; object-fit: cover; }
.chd-page .chd-name { font-size: 18px; margin: 0 0 12px; }
.chd-page .chd-name .chd-age { font-size: 13px; font-weight: 400; color: var(--text-dim); margin-left: 6px; }
/* 列表卡片圆角与全站统一 */
.ch-card { border-radius: 12px; }

/* ---------- 2026-10-21 三十六次更新：两详情页隐藏底部导航 + 三区块留白分区 ---------- */
.page-qun_group .bottom-nav, .page-challenge_card .bottom-nav { display: none; }
.page-qun_group .footer-note, .page-challenge_card .footer-note { margin-bottom: 10px; }
/* 去掉卡片容器边框底色，三区块仅靠留白区分，弱化边界感 */
.page-qun_group .qun-detail, .page-challenge_card .ch-detail { background: transparent; border: none; padding: 0; margin-top: 4px; }

/* 群友汇：群名称 / 群介绍 / 群图片 三个独立区域 */
.qd-page .qd-name { font-size: 20px; font-weight: 700; margin: 4px 0 0; }
.qd-page .qd-intro { font-size: 14px; line-height: 1.7; color: var(--text); margin: 16px 0 0; }
.qd-page .qd-cover { margin: 20px 0 0; }
.qd-page .qd-meta-below { margin: 16px 0 0; }

/* 寸止挑战：姓名年龄 / 玩法介绍 / 照片 三个独立区域 */
.chd-page .chd-name { margin: 4px 0 0; }
.chd-page .chd-play { background: transparent; padding: 0; margin: 16px 0 0; font-size: 14px; line-height: 1.8; color: var(--text); }
.chd-page .chd-photo { margin: 20px 0 0; }
.chd-page .chd-meta { margin: 16px 0 0; }
.chd-page .qd-unlocked { margin-top: 20px; }
.qd-page .qd-unlocked { margin-top: 20px; }

/* 底部导航已隐藏，悬浮按钮下沉到常规位置 */
.page-qun_group .qd-fab-wrap, .page-challenge_card .qd-fab-wrap { bottom: calc(24px + env(safe-area-inset-bottom)); }
html.standalone .page-qun_group .qd-fab-wrap, html.standalone .page-challenge_card .qd-fab-wrap { bottom: calc(28px + env(safe-area-inset-bottom)); }

/* ---------- 2026-10-22 三十七次更新：寸止列表卡片资料行（性别/身高/体重/罩杯/爱好） ---------- */
.ch-attr { font-size: 12px; color: var(--accent); margin-top: 5px; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-card .ch-play { margin-top: 5px; }

/* ---------- 2026-10-22 三十八次更新：寸止挑战后台表单分区排版 ---------- */
.chd-admin-form { gap: 22px; max-width: 640px; }
.chd-admin-form .caf-sec { display: flex; flex-direction: column; gap: 12px; }
.chd-admin-form .caf-sec-title { font-size: 14px; font-weight: 600; color: var(--text); margin: 0; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.chd-admin-form .caf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 14px; }
.chd-admin-form .caf-grid .field, .chd-admin-form .caf-full { margin: 0; min-width: 0; }
.chd-admin-form .field label { display: block; font-size: 12px; color: var(--text-dim); margin-bottom: 6px; line-height: 1.4; }
.chd-admin-form .caf-contact-no { grid-column: span 2; }
.chd-admin-form input, .chd-admin-form select, .chd-admin-form textarea { width: 100%; display: block; }
.chd-admin-form textarea { resize: vertical; }

/* 上传预览：图片、文件名、保留复选框同列对齐，文件选择框独立一行，互不重叠 */
.chd-admin-form .caf-media-field { display: flex; flex-direction: column; gap: 8px; }
.chd-admin-form .caf-media-field > label { font-size: 12px; color: var(--text-dim); }
.chd-admin-form .caf-media { display: flex; align-items: center; gap: 12px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; }
.chd-admin-form .caf-media img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; }
.chd-admin-form .caf-media-meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.chd-admin-form .caf-media-meta code { font-size: 11px; color: var(--text-dim); word-break: break-all; }
.chd-admin-form .keep-check { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-dim); cursor: pointer; }
.chd-admin-form .keep-check input { width: auto; margin: 0; }
.chd-admin-form .caf-file { font-size: 12px; color: var(--text); background: var(--bg-card); border: 1px dashed var(--border); border-radius: 10px; padding: 8px 10px; }

/* 保存 / 前台预览：表单右下 */
.chd-admin-form .caf-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* 删除危险操作：独立隔离盒 */
.caf-danger { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; max-width: 640px; margin-top: 26px; border: 1px solid rgba(192, 57, 43, .4); border-radius: 12px; padding: 14px 16px; }
.caf-danger-title { font-size: 13px; color: var(--danger); }

/* ---------- 2026-10-22 三十九次更新：寸止列表卡片资料完整展示（取消单行截断） ---------- */
.ch-attr { white-space: normal; overflow: visible; text-overflow: clip; word-break: break-word; line-height: 1.6; }

/* ---------- 2026-10-22 四十次更新：寸止详情页多图轮播 + 后台多图网格 + 支付按钮与安装APP错开 ---------- */
.chd-photos { margin: 20px 0 0; }
.chd-photo-main-wrap { position: relative; }
.chd-page .chd-photo-main { margin: 0; max-height: 520px; cursor: zoom-in; }
.chd-photo-count { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.55); color:#fff; font-size:12px; line-height:1; padding:5px 9px; border-radius:12px; }
.chd-photo-thumbs { display:flex; gap:8px; margin-top:10px; overflow-x:auto; padding-bottom:2px; -webkit-overflow-scrolling:touch; }
.chd-thumb { width:56px; height:56px; object-fit:cover; border-radius:8px; flex:0 0 auto; opacity:.55; cursor:pointer; border:2px solid transparent; }
.chd-thumb.active { opacity:1; border-color: var(--accent); }
.chd-lightbox { position:fixed; inset:0; z-index:300; background:rgba(0,0,0,.9); display:flex; align-items:center; justify-content:center; padding:16px; }
.chd-lightbox img { max-width:100%; max-height:100%; object-fit:contain; border-radius:8px; }

.chd-admin-form .caf-photos-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(96px, 1fr)); gap:10px; }
.chd-admin-form .caf-photo-item { display:flex; flex-direction:column; gap:5px; background:var(--bg-elevated); border:1px solid var(--border); border-radius:10px; padding:7px; }
.chd-admin-form .caf-photo-item img { width:100%; aspect-ratio:1/1; object-fit:cover; border-radius:7px; }
.chd-admin-form .caf-photo-item code { font-size:10px; color:var(--text-dim); word-break:break-all; }
.chd-admin-form .caf-photo-item .keep-check { font-size:12px; color:var(--text); }

/* 安装APP悬浮按钮在群/寸止详情页改挂左侧，避开右下角支付按钮 */
.page-qun_group .pwa-fab, .page-challenge_card .pwa-fab { left:14px; right:auto; bottom:calc(24px + env(safe-area-inset-bottom)); }
.page-qun_group .qd-fab-wrap, .page-challenge_card .qd-fab-wrap { z-index:136; }

/* ---------- 2026-10-22 四十一次更新：寸止详情页完整资料行 + 手机端后台表单排版优化 ---------- */
.chd-attr { font-size: 13px; color: var(--accent); line-height: 1.7; margin: -4px 0 4px; word-break: break-word; }

@media (max-width: 620px) {
  .chd-admin-form { gap: 18px; max-width: 100%; }
  .chd-admin-form .caf-grid { grid-template-columns: 1fr; gap: 14px; }
  .chd-admin-form .caf-contact-no { grid-column: auto; }
  .chd-admin-form .field { min-width: 0; }
  .chd-admin-form .field label { font-size: 13px; }
  .chd-admin-form input, .chd-admin-form select, .chd-admin-form textarea { min-height: 44px; font-size: 16px; }
  .chd-admin-form .caf-media { flex-wrap: wrap; }
  .chd-admin-form .caf-photos-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
  .chd-admin-form .caf-photo-item .keep-check { padding: 4px 0; min-height: 24px; }
  .chd-admin-form .caf-file { min-height: 44px; }
  .chd-admin-form .caf-actions { flex-direction: column-reverse; align-items: stretch; gap: 10px; }
  .chd-admin-form .caf-actions .btn { width: 100%; min-height: 46px; }
  .caf-danger { flex-direction: column; align-items: stretch; text-align: center; gap: 12px; }
  .caf-danger .btn { width: 100%; min-height: 46px; }
}

/* ---------- 2026-10-22 四十三次更新（重做）：后台顶部单行横向滑动导航，与前台 top-tabs 视觉统一 ---------- */
/* 单行不换行 + overflow-x 横滑；justify-content:flex-start 保证最左项可达；padding-bottom/margin-bottom 抵消选中下划线溢出，与前台完全同款 */
.admin-header .header-inner { height: auto; min-height: 48px; align-items: center; flex-wrap: nowrap; gap: 12px; padding: 0 16px; }
.admin-header .logo { flex: 0 0 auto; }
.admin-header .main-nav { flex: 1 1 0; min-width: 0; display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-start; gap: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; padding-bottom: 7px; margin-bottom: -7px; }
.admin-header .main-nav::-webkit-scrollbar { display: none; }
.admin-header .nav-link { flex: 0 0 auto; white-space: nowrap; font-size: 15px; line-height: 1; color: var(--text-dim); padding: 4px 10px; position: relative; }
.admin-header .nav-link.active { color: var(--text); font-weight: 700; }
.admin-header .nav-link.active::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: -4px; width: 18px; height: 3px; border-radius: 2px; background: var(--accent); }
@media (max-width: 480px) {
  .admin-header .header-inner { padding: 0 12px; gap: 8px; }
  .admin-header .logo { font-size: 16px; }
  .admin-header .nav-link { font-size: 14px; padding: 4px 8px; }
}

/* ---------- 2026-10-22 四十四次更新：违禁词管理页 + PWA 独立模式全站安全区适配 ---------- */
.banned-intro { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font-size: 13px; line-height: 1.8; color: var(--text-dim); margin-bottom: 16px; }
.banned-add-form { max-width: 640px; }
.banned-table .badge { font-size: 11px; }
.banned-tools { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

/* PWA 独立版：顶部避开状态栏/刘海、底部避开手势条，网页原版不受影响（原 @supports 规则保持不变） */
html.standalone .site-header { padding-top: env(safe-area-inset-top); }
html.standalone .sub-header { padding-top: calc(10px + env(safe-area-inset-top)); }
/* 通用底部留白，模块详情页有更高优先级规则覆盖 */
html.standalone .site-main { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
html.standalone .footer-note { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
html.standalone .bottom-nav { padding-bottom: env(safe-area-inset-bottom); }

/* ---------- 2026-10-22 四十五次更新：全站渲染统一（圆角 / 行高 / 选中高亮 / 表单控件 / 表格 / 卡片） ---------- */
/* 统一表单控件圆角与聚焦高亮，前台后台同款：聚焦描边一律用主色 --accent */
.edit-form input, .edit-form select, .edit-form textarea,
.chd-admin-form input, .chd-admin-form select, .chd-admin-form textarea,
.admin-filter .af-control, .af-control,
.bio-modal-box input, .bio-modal-box textarea,
.set-card input, .set-card textarea {
  border-radius: var(--radius-sm);
  line-height: var(--line-height);
}
.edit-form input:focus, .edit-form select:focus, .edit-form textarea:focus,
.chd-admin-form input:focus, .chd-admin-form select:focus, .chd-admin-form textarea:focus,
.admin-filter .af-control:focus, .af-control:focus,
.bio-modal-box textarea:focus, .set-card input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 67, 107, .15);
}
/* 统一卡片 / 表格圆角为 --radius，与前台卡片一致 */
.admin-table, .stat-card, .set-card, .chat-item, .banned-intro { border-radius: var(--radius); }
/* 统一弹窗面板圆角为 --radius-lg（前台支付面板 / 引导面板 / 简介弹窗 / 表情面板） */
.qs-panel, .pg-panel, .bio-modal-box, .cs-panel { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.bio-modal-box { border-radius: var(--radius-lg); }
/* 标题与正文行高统一 */
.page-title, .section-title { line-height: 1.35; }

/* ---------- 2026-10-22 四十六次更新：违禁词页修复 + 商品管理卡片化 + 寸止列表浅色卡片 ---------- */
/* 违禁词表内徽标回到静态定位，避免角标错位 */
.banned-table .badge { position: static; display: inline-block; vertical-align: middle; }

/* 商品管理筛选区：下拉一行均分 / 按钮一行均分 / 分类管理通栏 */
.admin-filter.filter-form { display: block; flex-wrap: nowrap; margin-bottom: 16px; }
.admin-filter .af-row { display: flex; gap: 10px; }
.admin-filter .af-selects { margin-bottom: 10px; }
.admin-filter .af-btns { margin-bottom: 16px; }
.admin-filter .af-selects .af-control { flex: 1 1 0; min-width: 0; width: auto; }
.admin-filter .af-btns .btn { flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; height: 36px; }
.admin-filter .af-cats.btn-block { display: block; width: 100%; text-align: center; height: 40px; line-height: 40px; padding: 0; }

/* 商品卡片列表 */
.goods-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 6px; }
.goods-card { display: flex; flex-direction: column; gap: 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.goods-card .gc-head { display: flex; gap: 12px; align-items: center; }
.goods-card .gc-thumb { flex: none; width: 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-elevated); display: flex; align-items: center; justify-content: center; }
.goods-card .gc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.goods-card .gc-headtext { flex: 1 1 0; min-width: 0; }
.goods-card .gc-title { font-size: 15px; font-weight: 600; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.goods-card .gc-meta { margin-top: 4px; font-size: 12px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.goods-card .gc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.goods-card .gc-cell { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; min-width: 0; }
.goods-card .gc-label { flex: none; color: var(--text-dim); }
.goods-card .gc-val { text-align: right; min-width: 0; overflow: hidden; }
.goods-card .gc-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: auto; }
.goods-card .gc-actions form { display: inline-flex; }
.goods-card .gc-actions .btn { display: inline-flex; align-items: center; justify-content: center; height: 32px; min-width: 64px; padding: 0 14px; }

/* 状态圆角标签：上架/在售绿色，下架/离线灰色（商品卡片 + 后台寸止列表通用） */
.gtag { display: inline-block; font-size: 12px; font-weight: 600; line-height: 1.6; padding: 2px 10px; border-radius: 999px; vertical-align: middle; }
.gtag-on { background: rgba(46, 164, 79, .15); color: #2ea44f; }
.gtag-off { background: var(--border); color: var(--text-dim); }

/* 空列表提示卡片 */
.empty-card { background: var(--bg-card); border: 1px dashed var(--border); border-radius: var(--radius); padding: 48px 16px; text-align: center; color: var(--text-dim); font-size: 14px; margin-top: 6px; }

/* 寸止挑战列表卡片：浅白圆角卡 + 柔和阴影，信息区在上、细线分隔、自我介绍+价格在下 */
.ch-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 12px; }
.ch-card { display: block; background: #ffffff; border: none; border-radius: 16px; box-shadow: 0 6px 18px rgba(0, 0, 0, .10); overflow: hidden; color: #1c1c22; }
.ch-card-main { display: block; padding: 14px; color: #1c1c22; text-decoration: none; }
.ch-card .ch-head { position: relative; display: flex; gap: 12px; align-items: flex-start; }
.ch-card .ch-photo { flex: none; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; background: #f1f1f4; }
.ch-card .ch-photo .ch-avatar { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; display: block; }
.ch-card .ch-photo .ch-avatar-ph { display: inline-flex; align-items: center; justify-content: center; width: 76px; height: 76px; border-radius: 12px; background: var(--accent); color: #fff; font-size: 26px; font-weight: 700; }
.ch-card .ch-fields { flex: 1 1 0; min-width: 0; padding-right: 54px; }
.ch-card .ch-name { font-size: 16px; font-weight: 700; line-height: 1.3; color: #1c1c22; }
.ch-card .ch-rows { margin-top: 6px; display: flex; flex-direction: column; gap: 2px; }
.ch-card .ch-row { font-size: 13px; line-height: 1.5; color: #55565f; }
.ch-card .ch-status { position: absolute; top: 0; right: 0; font-size: 12px; font-weight: 600; line-height: 1.5; padding: 2px 10px; border-radius: 999px; }
.ch-card .ch-status-on { background: rgba(46, 164, 79, .14); color: #22a04d; }
.ch-card .ch-status-off { background: #eceef1; color: #8a8b93; }
.ch-card .ch-divider { height: 1px; background: #ededf0; margin: 12px 0; }
.ch-card .ch-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ch-card .ch-play { flex: 1 1 0; min-width: 0; margin: 0; font-size: 13px; line-height: 1.6; color: #55565f; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.ch-card .ch-price { flex: none; font-size: 15px; font-weight: 700; color: var(--accent); }
.ch-card .ch-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 0 14px 14px; }
.ch-card .ch-foot .badge-free { position: static; margin-right: auto; }
.ch-card .ch-order { border-radius: 999px; padding: 8px 22px; height: auto; }
@media (min-width: 720px) { .ch-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- 2026-10-22 四十七次更新：后台群友会「新增进群项目」三白卡表单（浅白圆角+柔和阴影+绿色开关/按钮） ---------- */
.qun-form { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.qform-card { background: #fff; border-radius: 16px; padding: 18px 18px 20px; box-shadow: 0 6px 18px rgba(0, 0, 0, .10); color: #1c1c22; }
.qform-card-title { font-size: 15px; font-weight: 700; color: #1c1c22; margin-bottom: 14px; }
.qun-form .qfield { margin-bottom: 14px; }
.qun-form .qfield:last-child { margin-bottom: 0; }
.qun-form .qfield label { display: block; font-size: 13px; color: #55565f; margin-bottom: 6px; font-weight: 600; }
.qun-form .qinput { width: 100%; box-sizing: border-box; background: #f6f6f8; border: 1px solid #e3e3e8; border-radius: 10px; padding: 10px 12px; font-size: 14px; line-height: 1.5; color: #1c1c22; }
.qun-form .qinput:focus { outline: none; border-color: #2ea44f; box-shadow: 0 0 0 3px rgba(46, 164, 79, .15); background: #fff; }
.qun-form textarea.qinput { resize: vertical; }
.qfield-pair { display: flex; gap: 14px; }
.qfield-pair .qfield { flex: 1 1 0; min-width: 0; }
.qaffix { position: relative; }
.qaffix .qinput { padding-right: 34px; }
.qaffix-suffix { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; color: #8a8b93; pointer-events: none; }
#qun-valid-field.is-dim { opacity: .5; }
#qun-valid-field.is-dim .qinput { background: #eceef1; }
.qswitch-row { display: flex; gap: 28px; margin-top: 4px; }
.qswitch-item { display: flex; align-items: center; gap: 10px; }
.qswitch-label { font-size: 14px; color: #1c1c22; font-weight: 600; }
.qswitch { position: relative; width: 46px; height: 26px; flex: none; border: none; border-radius: 999px; background: #d5d7dd; cursor: pointer; padding: 0; transition: background .2s; }
.qswitch .qswitch-dot { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: left .2s; }
.qswitch.on { background: #2ea44f; }
.qswitch.on .qswitch-dot { left: 23px; }
.qupload { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: #fafafb; border: 1.5px dashed #cfd0d6; border-radius: 12px; cursor: pointer; overflow: hidden; color: #8a8b93; transition: border-color .2s; }
.qupload:hover { border-color: #2ea44f; }
.qupload-cover { width: 100%; aspect-ratio: 16 / 9; margin-bottom: 8px; }
.qupload-cover .qupload-preview { width: 100%; height: 100%; object-fit: cover; }
.qupload-codes { margin-top: 14px; }
.qupload-pair { display: flex; gap: 14px; }
.qupload-sq { flex: 1 1 0; aspect-ratio: 1 / 1; }
.qupload-sq .qupload-preview { width: 100%; height: 100%; object-fit: cover; }
.qupload-plus { font-size: 26px; line-height: 1; }
.qupload-hint { font-size: 12px; }
.qcode-existing { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; margin-bottom: 12px; }
.qcode-item { border: 1px solid #e3e3e8; border-radius: 10px; overflow: hidden; }
.qcode-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.qcode-item .keep-check { display: block; font-size: 11px; color: #55565f; padding: 4px 6px; text-align: center; }
.qun-form .keep-check { display: inline-block; font-size: 12px; color: #55565f; margin: 4px 0 10px; }
.qtip { margin-top: 12px; font-size: 12px; color: #9a9ba3; text-align: center; }
.qsubmit { width: 100%; border: none; border-radius: 14px; background: #2ea44f; color: #fff; font-size: 16px; font-weight: 700; padding: 14px 0; cursor: pointer; }
.qsubmit:hover { background: #279645; }
.qun-preview { align-self: center; }

/* ---------- 2026-10-22 四十八次更新：后台寸止「新增挑战卡片」表单（复用群友汇白卡风格 + 深酒红提交按钮，9:16 竖版堆叠） ---------- */
.chd-form { max-width: 480px; margin-left: auto; margin-right: auto; }
.qsubmit-ch { background: #6d1430; }
.qsubmit-ch:hover { background: #5a1027; }
.chd-avatar-row { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.qupload-avatar { width: 120px; height: 120px; aspect-ratio: 1 / 1; }
.qupload-avatar .qupload-preview { width: 100%; height: 100%; object-fit: cover; }
.qupload-photo { width: 100%; aspect-ratio: 16 / 9; margin-top: 2px; }
.qupload-photo .qupload-preview { width: 100%; height: 100%; object-fit: cover; }
.chd-form select.qinput { appearance: none; -webkit-appearance: none; padding-right: 34px; background-repeat: no-repeat; background-position: right 12px center; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%2355565f' stroke-width='2' d='M1 1l5 5 5-5'/></svg>"); }

/* ---------- 2026-10-22 四十九次更新：商品管理 卡片式内联编辑（浅白圆角卡+柔和阴影+深酒红保存，可展开编辑） ---------- */
.goods-cards { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.gcard { background: #fff; border: none; border-radius: 16px; box-shadow: 0 6px 18px rgba(0, 0, 0, .10); overflow: hidden; }
.gcard-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; }
.gcard-head::-webkit-details-marker { display: none; }
.gcard-head::after { content: '▾'; flex: none; margin-left: 6px; color: #b6b7bf; font-size: 13px; transition: transform .2s; }
.gcard[open] .gcard-head::after { transform: rotate(180deg); }
.gcard-thumb { flex: none; width: 48px; height: 48px; border-radius: 10px; overflow: hidden; background: #f1f1f4; display: flex; align-items: center; justify-content: center; }
.gcard-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gcard-title { flex: 1 1 0; min-width: 0; font-size: 15px; font-weight: 600; color: #1c1c22; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gcard-body { padding: 6px 14px 16px; border-top: 1px solid #eeeef1; }
.gcard-body .gfield { margin-bottom: 12px; }
.gcard-body .gfield label { display: block; font-size: 13px; color: #55565f; margin-bottom: 6px; font-weight: 600; }
.gcard-body .ginput { width: 100%; box-sizing: border-box; background: #f6f6f8; border: 1px solid #e3e3e8; border-radius: 10px; padding: 10px 12px; font-size: 14px; line-height: 1.5; color: #1c1c22; }
.gcard-body .ginput:focus { outline: none; border-color: #6d1430; box-shadow: 0 0 0 3px rgba(109, 20, 48, .12); background: #fff; }
.gcard-body select.ginput { appearance: none; -webkit-appearance: none; padding-right: 34px; background-repeat: no-repeat; background-position: right 12px center; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%2355565f' stroke-width='2' d='M1 1l5 5 5-5'/></svg>"); }
.gcard-body .gfield-pair { display: flex; gap: 12px; }
.gcard-body .gfield-pair .gfield { flex: 1 1 0; min-width: 0; }
.gcard-body .gaffix { position: relative; }
.gcard-body .gaffix .ginput { padding-right: 32px; }
.gcard-body .gaffix-suffix { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; color: #8a8b93; pointer-events: none; }
.gcard-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.gcard-more { font-size: 13px; color: #8a8b93; text-decoration: none; }
.gcard-more:hover { color: #6d1430; }
.gcard-btns { display: flex; gap: 10px; }
.gbtn-save { border: none; border-radius: 10px; background: #6d1430; color: #fff; font-size: 14px; font-weight: 700; padding: 9px 22px; cursor: pointer; }
.gbtn-save:hover { background: #5a1027; }
.gbtn-cancel { border: 1px solid #e3e3e8; border-radius: 10px; background: #fff; color: #55565f; font-size: 14px; font-weight: 600; padding: 9px 18px; cursor: pointer; }
.gbtn-cancel:hover { background: #f6f6f8; }
.gadd-wrap { margin: 16px 0 4px; }
.gbtn-add { display: block; width: 100%; text-align: center; box-sizing: border-box; border: 1.5px dashed #6d1430; color: #6d1430; background: #fff; border-radius: 14px; padding: 12px 0; font-size: 15px; font-weight: 700; text-decoration: none; }
.gbtn-add:hover { background: #faf0f3; }
.empty-card { background: #fff; color: #8a8b93; border: 1px dashed #cfd0d6; }

/* ---------- 2026-10-23 五十次更新：后台仪表盘 移动端卡片统计 + 近7天趋势柱状图 ---------- */
.dash-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
.dash-card { display: flex; align-items: center; gap: 10px; min-width: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 12px; box-shadow: var(--shadow-sm); text-decoration: none; }
.dash-card:hover { box-shadow: var(--shadow); }
.dash-ico { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(184, 67, 107, .10); color: var(--accent); }
.dash-ico svg { width: 19px; height: 19px; display: block; }
.dash-ico-gold { background: rgba(212, 175, 55, .16); color: #b58a1b; }
.dash-meta { display: flex; flex-direction: column; min-width: 0; }
.dash-num { font-size: 22px; line-height: 1.2; font-weight: 800; color: var(--text); }
.dash-label { margin-top: 3px; font-size: 12px; color: var(--text-dim); white-space: nowrap; }
.dash-money { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
.dash-money-num { font-size: 18px; line-height: 1.25; font-weight: 800; color: #b58a1b; white-space: nowrap; }
.dash-chart-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 14px 12px 16px; margin-bottom: 14px; }
.dash-chart-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.dash-chart-title { font-size: 15px; font-weight: 700; color: var(--text); }
.dash-toggle { display: flex; gap: 4px; padding: 3px; border-radius: 999px; background: var(--bg-elevated); }
.dash-tg { border: none; background: transparent; color: var(--text-dim); font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.dash-tg.is-on { background: var(--accent); color: #fff; }
.dash-bars { display: flex; align-items: flex-end; gap: 8px; }
.dcol { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dval { display: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; color: var(--text-dim); }
.dash-chart[data-mode="amount"] .dval-amount, .dash-chart[data-mode="count"] .dval-count { display: block; }
.dbar { position: relative; width: 100%; max-width: 34px; height: 112px; display: flex; align-items: flex-end; border-radius: 6px; background: var(--bg-elevated); overflow: hidden; }
.dbar > i { display: block; width: 100%; height: calc(var(--ha, 0) * 1%); border-radius: 6px; background: linear-gradient(180deg, var(--accent-hover), var(--accent)); transition: height .25s ease; }
.dash-chart[data-mode="count"] .dbar > i { height: calc(var(--hc, 0) * 1%); background: linear-gradient(180deg, #6aa9e0, #3d7fc1); }
.dday { font-size: 11px; color: var(--text-dim); white-space: nowrap; }
@media (min-width: 720px) {
  .dash-stats { grid-template-columns: repeat(4, 1fr); }
  .dash-money { max-width: 480px; }
  .dash-chart-card { max-width: 760px; }
}
@media (max-width: 360px) {
  .dash-bars { gap: 5px; }
  .dval { font-size: 9px; }
  .dday { font-size: 10px; }
  .dash-ico { width: 30px; height: 30px; }
  .dash-num { font-size: 20px; }
}

/* ---------- 2026-10-24 五十一次更新：商城专属底部导航（首页/购物车/我的）+ 商城「我的」页 ---------- */
/* 商城底部导航：与社区导航同高同底色，仅栏目换成三项，选中用主色 */
.shop-nav .nav-item { padding: 13px 0; font-size: 13px; }
.shop-nav .nav-item.active { color: var(--accent); font-weight: 700; }
.shop-nav .nav-badge { top: 7px; margin-left: 8px; }

/* 用户卡 */
.mn-card { display: flex; align-items: center; gap: 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 14px; margin-bottom: 12px; }
.mn-avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: var(--bg-elevated); display: flex; align-items: center; justify-content: center; }
.mn-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mn-avatar span { font-size: 20px; font-weight: 700; color: var(--text-dim); }
.mn-who { flex: 1 1 0; min-width: 0; }
.mn-name { font-size: 16px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mn-uid { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.mn-shop { flex: none; border-radius: 999px; background: var(--accent); color: #fff; font-size: 13px; padding: 9px 16px; text-decoration: none; }
.mn-shop:active { opacity: .85; }

/* 订单五宫格：数字占位常驻，为 0 时只隐藏不塌陷，保证五格等高 */
.mn-orders { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 12px; }
.mn-od { display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 13px 4px 11px; text-decoration: none; color: var(--text); }
.mn-od:active { opacity: .8; }
.mn-od-num { font-size: 18px; font-weight: 800; line-height: 1; min-height: 18px; color: var(--accent); }
.mn-od-num.is-zero { visibility: hidden; }
.mn-od-num.st-unpaid { color: var(--danger); }
.mn-od-num.st-shipped { color: var(--gold); }
.mn-od-num.st-completed { color: var(--success); }
.mn-od-num.st-refunding { color: var(--danger); }
.mn-od-label { font-size: 12px; color: var(--text-dim); white-space: nowrap; }

/* 服务列表 */
.mn-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 16px; }
.mn-row { display: flex; align-items: center; gap: 10px; padding: 13px 14px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); }
.mn-row:last-child { border-bottom: none; }
.mn-row svg { flex: none; color: var(--accent); }
.mn-row-name { flex: 1 1 0; min-width: 0; font-size: 14px; }
.mn-row-num { flex: none; min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-style: normal; text-align: center; }
.mn-arrow { flex: none; width: 7px; height: 7px; border-top: 1.5px solid var(--text-dim); border-right: 1.5px solid var(--text-dim); transform: rotate(45deg); }

/* 物流动态：轮询刷新，状态已流转的卡片压暗等待整页重载 */
.mn-live-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 2px 8px; font-size: 15px; font-weight: 700; color: var(--text); }
.mn-live-head em { font-size: 11px; font-weight: 400; font-style: normal; color: var(--text-dim); }
.mn-live { display: flex; flex-direction: column; gap: 10px; }
.mn-lg-item { display: block; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 12px 14px; color: var(--text); text-decoration: none; transition: opacity .3s; }
.mn-lg-item.is-over { opacity: .5; }
.mn-lg-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mn-lg-status { font-size: 14px; }
.mn-lg-no { flex: none; font-size: 11px; color: var(--text-dim); }
.mn-lg-goods { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.mn-lg-goods img, .mn-lg-goods i { flex: none; width: 44px; height: 44px; border-radius: 8px; background: var(--bg-elevated); object-fit: cover; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; color: var(--text-dim); }
.mn-lg-title { flex: 1 1 0; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mn-lg-amount { flex: none; font-size: 14px; font-weight: 700; color: var(--accent); }
.mn-lg-ship { margin-top: 8px; font-size: 12px; color: var(--text-dim); word-break: break-all; }
.mn-lg-track { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); font-size: 12px; color: var(--text-dim); word-break: break-all; }

@media (min-width: 720px) {
  .mn-card, .mn-orders, .mn-panel, .mn-live { max-width: 640px; }
}
@media (max-width: 360px) {
  .mn-od { padding: 12px 2px 10px; }
  .mn-od-label { font-size: 11px; }
  .mn-avatar { width: 46px; height: 46px; }
  .shop-nav .nav-item { font-size: 12px; }
}

/* ---------- 2026-10-26 五十二次更新：群友汇详情页按截图重构（滚动支付横幅 / 主宣传图 / 九宫格 / 彩色标题 / 群成员 / 介绍 / 海报 / 视频 / 阅读量 / 分享收藏点赞转发 / 精选评论 / 底部橙色支付条）+ 后台素材表单 ---------- */

/* 1 顶部黄色滚动条（红底横幅与实时支付胶囊见五十四次更新，已移除） */
.qb-marquee { background: #f7f34a; color: #c0392b; font-size: 14px; font-weight: 700; letter-spacing: 1px; padding: 7px 0; white-space: nowrap; overflow: hidden; }
.qb-marquee-in { display: inline-block; padding-left: 100%; animation: qbSlide 18s linear infinite; }
@keyframes qbSlide { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* 2 主宣传图 */
.qd-hero { display: block; width: 100%; height: auto; }

/* 3 九宫格预览图 + 标题 */
.qd-gallery { margin-top: 20px; text-align: center; }
.qd-gal-grid { display: inline-grid; grid-template-columns: repeat(3, minmax(0, 88px)); gap: 4px; padding: 8px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.qd-gal { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; border-radius: 6px; background: var(--bg-elevated); }
.qd-gal-title { margin-top: 12px; font-size: 16px; letter-spacing: 3px; color: var(--text-dim); }

/* 4 项目标题 + 彩色副标题 */
.qd-heads { margin-top: 22px; text-align: center; }
.qd-title { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.45; color: #e8413c; }
.qd-subtitle { margin-top: 10px; font-size: 17px; font-weight: 700; letter-spacing: 1px; color: #8b3fd8; }
.qd-page .qd-meta-below { justify-content: center; margin-top: 12px; }

/* 5-8 通用区块 */
.qd-block { margin-top: 26px; }
.qd-sec-title { font-size: 16px; font-weight: 700; color: var(--text); }
.qd-mem-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px 8px; margin-top: 14px; }
.qd-mem { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.qd-mem img, .qd-mem-ph { width: 100%; max-width: 62px; aspect-ratio: 1 / 1; border-radius: 8px; object-fit: cover; display: block; }
.qd-mem-ph { display: flex; align-items: center; justify-content: center; background: var(--bg-elevated); color: var(--text-dim); font-size: 20px; font-weight: 700; }
.qd-mem-name { font-size: 12px; color: var(--text-dim); max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.qd-block .qd-intro { margin: 10px 0 0; font-size: 15px; line-height: 1.85; color: #44454c; }
.qd-poster { display: block; width: 100%; margin-top: 18px; border-radius: var(--radius); }
.qd-video { display: block; width: 100%; margin-top: 14px; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); }
.qd-video-gap { margin-top: 12px; }

/* 9-10 阅读量 + 分享 / 收藏 / 点赞 / 转发 */
.qd-stat-block { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--border); }
.qd-views { font-size: 17px; font-weight: 700; color: var(--text-dim); }
.qd-acts { display: flex; align-items: flex-start; gap: 24px; margin-top: 14px; }
.qd-act { flex: none; display: flex; flex-direction: column; align-items: center; gap: 5px; border: none; background: none; padding: 0; font-size: 12px; line-height: 1.2; color: #4a4f6b; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.qd-act svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.qd-act-push { margin-left: auto; }
.qd-act-n { font-size: 14px; font-weight: 700; }
.qd-act[disabled] { opacity: .55; }
.qd-act.is-on { color: var(--accent); }

/* 11 精选评论区 */
.qd-cmts { margin: 26px -12px 0; padding: 16px 12px 20px; background: #f6f6f8; }
.qd-cmt-head em { font-style: normal; font-size: 14px; font-weight: 400; color: var(--text-dim); }
.qd-cmt { padding-top: 16px; }
.qd-cmt-top { display: flex; align-items: center; gap: 8px; }
.qd-cmt-name { font-size: 14px; font-weight: 700; color: #5a5f7a; }
.qd-cmt-place { font-size: 12px; color: #9a9ba3; }
.qd-cmt-like { margin-left: auto; display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: #4a4f6b; }
.qd-cmt-like svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.qd-cmt-like i { font-style: normal; font-weight: 400; }
.qd-cmt-text { margin-top: 6px; font-size: 16px; line-height: 1.6; color: var(--text); }

/* 12 橙色支付按钮（正文流内，位置见五十三次更新） */
.qd-buybar { display: block; width: 100%; border: none; border-radius: 999px; padding: 15px 0; font-size: 17px; font-weight: 800; letter-spacing: 1px; color: #fff; background: linear-gradient(90deg, #ff9a3c, #f5402c); box-shadow: 0 6px 16px rgba(245, 64, 44, .28); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.qd-buybar:active { opacity: .9; }
.qd-buybar[disabled] { opacity: .6; }

/* 后台：详情页素材表单 */
.qun-form .qmedia-label { font-size: 13px; font-weight: 700; color: #1c1c22; margin-bottom: 8px; }
.qupload-wide { width: 100%; padding: 18px 0; }
.qaffix-wide .qinput { padding-right: 72px; }
.qaffix-wide .qaffix-suffix { right: 10px; }
.qcode-item video { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #000; }

@media (min-width: 720px) {
  .qd-page { max-width: 560px; margin-left: auto; margin-right: auto; }
  .qd-mem-grid { grid-template-columns: repeat(5, minmax(0, 72px)); justify-content: start; }
}
@media (max-width: 360px) {
  .qd-title { font-size: 18px; }
  .qd-subtitle { font-size: 15px; }
  .qd-gal-grid { grid-template-columns: repeat(3, minmax(0, 76px)); }
  .qd-acts { gap: 18px; }
}

/* ---------- 2026-10-27 五十三次更新：首页公告横向跑马灯 / H5 媒体铺满不变形 / 支付按钮进正文流 / 会员解锁遮罩与弹窗 / 评论轮换 / 寸止图片左右滑动 / 后台成员头像与分站账单 ---------- */

/* 1 首页公告：横向循环滚动 */
.notice-marquee { padding: 10px 0; white-space: nowrap; overflow: hidden; }
.notice-marquee-in { display: inline-block; padding-left: 100%; animation: noticeSlide 22s linear infinite; will-change: transform; }
.notice-marquee:hover .notice-marquee-in { animation-play-state: paused; }
@keyframes noticeSlide { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* 2 支付 / 会员解锁按钮：正文流内水平居中，位于互动分割线之上 */
.qd-buybar-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 22px; text-align: center; }
.qd-buybar-wrap .qd-fab-alert { max-width: none; text-align: center; }
.qd-buybar-wrap .qd-buybar { max-width: 420px; }
a.qd-buybar { text-align: center; }
.qd-page { padding-bottom: 24px; }

/* 3 会员解锁：浅红提示 + 遮罩区块 + 开通引导弹窗 */
.qd-vip-note { max-width: 420px; background: rgba(192, 57, 43, .08); color: var(--danger); border: 1px solid rgba(192, 57, 43, .18); border-radius: 10px; padding: 8px 12px; font-size: 13px; line-height: 1.5; }
.qd-vip-lock { border-top: 1px solid var(--border); padding-top: 16px; text-align: center; }
.qd-vip-lock-tip { margin: 10px 0 14px; font-size: 13px; line-height: 1.7; color: var(--text-dim); }
.qd-vip-modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.qvm-mask { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0, 0, 0, .55); }
.qvm-box { position: relative; width: 100%; max-width: 320px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 22px 18px 18px; text-align: center; box-shadow: 0 12px 30px rgba(0, 0, 0, .28); }
.qvm-title { font-size: 17px; font-weight: 800; color: var(--text); }
.qvm-text { margin: 10px 0 18px; font-size: 13px; line-height: 1.7; color: var(--text-dim); }
.qvm-acts { display: flex; gap: 10px; }
.qvm-acts .btn { flex: 1 1 0; }

/* 4 精选评论轮换：每批 3 条，换批时淡入 */
.qd-cmt.is-off { display: none; }
.qd-cmts.is-rot { animation: qdCmtIn .45s ease; }
@keyframes qdCmtIn { from { opacity: .25; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 5 寸止详情页图片：左右滑动切换，禁止原生拖拽干扰 */
.chd-photo-main { touch-action: pan-y; -webkit-user-drag: none; user-select: none; }
.chd-play-dim { color: var(--text-dim); }

/* 6 后台：群成员单张头像 */
.qmem-existing { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; margin-bottom: 12px; }
.qmem-item { border: 1px solid #e3e3e8; border-radius: 10px; overflow: hidden; background: #fff; }
.qmem-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.qmem-name { display: block; width: 100%; box-sizing: border-box; border: none; border-top: 1px solid #eeeef2; padding: 5px 6px; font-size: 12px; line-height: 1.4; text-align: center; color: #1c1c22; background: none; }
.qmem-add { display: flex; align-items: flex-start; gap: 10px; }
.qmem-add .qupload-sq { flex: 0 0 90px; max-width: 90px; }
.qmem-new-name { flex: 1 1 auto; }
.qfield-pair .qfield-btn { flex: 0 0 auto; display: flex; flex-direction: column; justify-content: flex-end; }
.qun-gen { height: 38px; white-space: nowrap; }

/* 7 后台：分站面板 / 结算账单 */
.ag-kv { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed #e6e6ea; font-size: 13px; color: #55565f; }
.ag-kv b { color: #1c1c22; font-weight: 700; text-align: right; word-break: break-all; }
.ag-inline-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.qtip-inline { font-size: 12px; line-height: 1.6; color: #9a9ba3; }
.admin-table .gt-empty { text-align: center; color: var(--text-dim); padding: 24px 12px; }

/* 8 H5 自适应：图片视频铺满屏幕宽度且按比例不变形，文字区自动留出左右边距 */
@media (max-width: 719px) {
  .qb-marquee,
  .qd-cmts { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
  .qd-hero, .qd-poster, .qd-video, .chd-photo-main {
    width: 100vw;
    max-width: 100vw;
    height: auto;
    max-height: none;
    margin-left: calc(50% - 50vw);
    border-radius: 0;
  }
  .qd-video { aspect-ratio: 16 / 9; }
  .qd-block, .qd-heads, .qd-gallery, .qd-buybar-wrap { padding-left: 8px; padding-right: 8px; }
  .qd-block.qd-cmts { padding-left: 12px; padding-right: 12px; }
  .qd-intro, .qd-cmt-text, .chd-play { overflow-wrap: anywhere; }
}
@media (max-width: 360px) {
  .qd-buybar-wrap .qd-buybar { font-size: 16px; letter-spacing: 0; }
  .qvm-box { padding: 20px 14px 16px; }
}

/* ---------- 2026-10-27 五十四次更新：群详情页移除红底横幅（保留黄色滚动条）/ 商城首页三个入口收纳进「我的」/ 我的页订单入口补线性图标 / 群成员改微信群成员墙 ---------- */

/* 1 我的页订单入口图标：图标在上、数字其次、文字在下，颜色沿用页面主题色 */
.mn-od-icon { color: var(--accent); }

/* 2 群成员：头像按列铺满、圆角收紧、昵称压在头像正下方，与微信群成员墙一致 */
.qd-mem { gap: 4px; }
.qd-mem-grid { grid-template-columns: repeat(5, 1fr); gap: 12px 8px; margin-top: 12px; }
.qd-mem img, .qd-mem-ph { width: 100%; max-width: none; border-radius: 6px; }
.qd-mem-name { font-size: 11px; line-height: 1.35; text-align: center; }
@media (min-width: 720px) {
  .qd-mem-grid { grid-template-columns: repeat(5, 1fr); justify-content: stretch; }
}





