: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;
}

* { 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: 6px;
  padding: 9px 16px;
  font-size: 14px;
  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: 8px; margin-bottom: 12px; font-size: 14px; }
.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-links { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.shop-links a { position: relative; color: var(--text-dim); }
.shop-links a:hover { color: var(--accent); }
.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; }
  .shop-links { margin-left: 0; width: 100%; justify-content: space-between; }
  .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; }
