/* =========================================================
   蓝易社区 纯 HTML5 + PHP 版 —— 全站样式（零 JS）
   设计：紫色渐变 #667eea→#764ba2；暗色主题 #1e1e3a
   ========================================================= */

:root {
  --brand-1: #667eea;
  --brand-2: #764ba2;
  --primary: #667eea;
  --active:  #e4393c;
  --bg: #f5f5f7;
  --card: #ffffff;
  --text: #1a1a2e;
  --text-2: #666;
  --text-3: #999;
  --line: #eee;
  --shadow: 0 2px 10px rgba(30, 20, 60, .08);
  --radius: 12px;
  --nav-h: 54px;
}

body.dark-mode {
  --bg: #12122a;
  --card: #1e1e3a;
  --text: #e0e0e0;
  --text-2: #adadb8;
  --text-3: #7a7a8c;
  --line: #2a2a4a;
  --shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  padding-bottom: 140px;
  transition: background .2s, color .2s;
}

a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }

.pc-wrapper {
  max-width: 720px;
  margin: 0 auto;
  min-height: 100vh;
}
.pc-inner { position: relative; }

/* ================= 顶部导航 ================= */
.top-nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 100%);
  color: #fff;
}
.logo {
  color: #fff; font-size: 18px; font-weight: 700; white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .15);
  display: flex; align-items: center; gap: 6px;
}
.top-nav-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.top-nav-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.search-form {
  display: flex; align-items: center; flex: 1; min-width: 0;
  background: rgba(255, 255, 255, .92);
  border-radius: 20px; overflow: hidden;
}
.search-input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  padding: 8px 12px; font-size: 14px; color: #333;
}
.search-btn {
  border: 0; background: transparent; color: var(--brand-1);
  width: 40px; font-size: 15px; cursor: pointer; padding: 8px 0;
}
.top-nav-btn {
  border: 0; background: rgba(255, 255, 255, .18); color: #fff;
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 14px;
}
.nav-item-inline {
  color: #fff; font-size: 14px; padding: 4px 6px;
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
}
.nav-item-reg {
  background: rgba(255, 255, 255, .2);
  border-radius: 16px; padding: 4px 12px;
}

/* ================= 分类 Tab ================= */
.category-tabs-scroll { background: var(--card); border-bottom: 1px solid var(--line); }
.category-tabs {
  display: flex; overflow-x: auto; white-space: nowrap;
  scrollbar-width: none; padding: 0 6px;
}
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 11px 14px; font-size: 14px; color: var(--text-2);
  border-bottom: 2px solid transparent; flex-shrink: 0;
}
.category-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.cat-count { font-size: 11px; color: var(--text-3); background: var(--bg); border-radius: 8px; padding: 1px 6px; }

/* ================= 主区域 ================= */
.main-area { padding: 12px; }

/* 页内 Tab（最新/热门/精华） */
.feed-tabs {
  display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto;
}
.feed-tab {
  padding: 7px 16px; border-radius: 18px; font-size: 14px;
  background: var(--card); color: var(--text-2); border: 1px solid var(--line);
  white-space: nowrap;
}
.feed-tab.active {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #fff; border-color: transparent; font-weight: 600;
}

/* ================= 帖子卡片网格 ================= */
.post-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
@media (max-width: 420px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

.post-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .12s;
  border: 1px solid var(--line);
}
.post-card:active { transform: scale(.98); }
.post-card-link { display: block; color: inherit; }
.post-cover { position: relative; aspect-ratio: 16 / 10; background: #eee; }
body.dark-mode .post-cover { background: #2a2a4a; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-cover-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: #bbb; font-size: 28px;
}
body.dark-mode .post-cover-placeholder { color: #55556e; }
.post-price-tag {
  position: absolute; top: 6px; right: 6px;
  background: var(--active); color: #fff; font-size: 12px; font-weight: 600;
  border-radius: 6px; padding: 2px 8px;
}
.post-card-body { padding: 8px 10px 10px; }
.post-title {
  font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.4;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  min-height: 38px;
}
.post-meta {
  display: flex; align-items: center; gap: 8px; margin-top: 6px;
  font-size: 11.5px; color: var(--text-3); flex-wrap: wrap;
}
.post-cat {
  background: rgba(102, 126, 234, .1); color: var(--brand-1);
  border-radius: 4px; padding: 0 6px; font-size: 11px;
}
body.dark-mode .post-cat { background: rgba(102, 126, 234, .25); }

/* ================= 分页 ================= */
.pagination {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 20px 0; flex-wrap: wrap;
}
.page-info { font-size: 12px; color: var(--text-3); margin-right: 8px; }
.page-btn {
  display: inline-block; min-width: 34px; padding: 6px 10px;
  border: 1px solid var(--line); border-radius: 8px; font-size: 13px;
  background: var(--card); color: var(--text-2); text-align: center;
}
.page-btn.current {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #fff; border-color: transparent; font-weight: 600;
}
.page-ellipsis { color: var(--text-3); }

/* ================= 按钮 ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 10px; padding: 10px 22px; font-size: 15px;
  cursor: pointer; text-align: center; transition: filter .15s;
  font-weight: 600; font-family: inherit;
}
.btn:active { filter: brightness(.92); }
.btn-primary { background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); color: #fff; }
.btn-download { background: #4caf50; color: #fff; }
.btn-warn { background: #ff9800; color: #fff; }
.btn-ghost { background: transparent; color: var(--text-2); border: 1px solid var(--line); }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }

/* ================= 表单 ================= */
.card-form {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; border: 1px solid var(--line);
}
.auth-form { max-width: 420px; margin: 20px auto; }
.form-title { font-size: 22px; margin: 0 0 4px; color: var(--text); }
.form-sub { font-size: 13px; color: var(--text-3); margin-bottom: 20px; }
.form-field { display: block; margin-bottom: 16px; }
.form-label {
  display: block; font-size: 14px; font-weight: 600; color: var(--text-2);
  margin-bottom: 6px;
}
.form-label em.req { color: var(--active); font-style: normal; }
.form-label-sub { font-weight: 400; font-size: 12px; color: var(--text-3); }
.form-input {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 14px; font-size: 15px; background: var(--bg); color: var(--text);
  outline: none; font-family: inherit;
}
.form-input:focus { border-color: var(--brand-1); background: var(--card); }
.form-input-sm { max-width: 200px; }
.form-textarea { resize: vertical; min-height: 100px; line-height: 1.6; }
.form-foot { margin-top: 16px; text-align: center; font-size: 14px; color: var(--text-3); }
.form-hint { margin-top: 12px; font-size: 12px; color: var(--text-3); text-align: center; }

.flash {
  padding: 12px 14px; border-radius: 10px; margin-bottom: 12px; font-size: 14px;
}
.flash-error { background: #fdecea; color: #c62828; border: 1px solid #f5c6cb; }
.flash-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
body.dark-mode .flash-error { background: #3a2022; color: #ffb4a8; }
body.dark-mode .flash-success { background: #1e3a24; color: #a5d6a7; }

/* ================= 帖子详情 ================= */
.post-detail {
  background: var(--card); border-radius: var(--radius); padding: 18px 16px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.post-detail-title { font-size: 22px; line-height: 1.4; margin-bottom: 10px; color: var(--text); }
.post-detail-meta {
  display: flex; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: var(--text-3);
  padding-bottom: 14px; border-bottom: 1px dashed var(--line); margin-bottom: 14px;
}
.meta-item { display: inline-flex; align-items: center; gap: 4px; }
.meta-item i { color: var(--brand-1); }
.meta-paid { color: var(--active); }
.meta-paid i { color: var(--active); }
.post-detail-cover { border-radius: 10px; overflow: hidden; margin-bottom: 14px; }
.post-detail-cover img { width: 100%; border-radius: 10px; }
.post-content {
  font-size: 15px; line-height: 1.85; color: var(--text);
  word-break: break-word; white-space: pre-wrap;
}

/* 付费解锁框 */
.purchase-box {
  margin: 18px 0; padding: 20px 16px; text-align: center;
  background: linear-gradient(135deg, rgba(102,126,234,.09), rgba(118,75,162,.09));
  border: 1px dashed var(--brand-1); border-radius: var(--radius);
}
.purchase-box-icon { font-size: 30px; color: var(--brand-1); margin-bottom: 8px; }
.purchase-box-title { font-size: 17px; font-weight: 700; }
.purchase-box-desc { font-size: 13px; color: var(--text-2); margin: 6px 0 14px; }
.purchase-price { font-size: 26px; font-weight: 800; color: var(--active); margin-bottom: 10px; }
.purchase-price-unit { font-size: 13px; font-weight: 400; color: var(--text-3); margin-left: 4px; }
.purchase-box-action .btn { min-width: 180px; }

/* 已解锁 */
.unlocked-box {
  margin: 18px 0; padding: 16px;
  background: #e8f5e9; border: 1px solid #c8e6c9; border-radius: var(--radius);
}
body.dark-mode .unlocked-box { background: #1e3a24; border-color: #2e7d32; }
.unlocked-head {
  display: flex; align-items: center; gap: 8px; font-weight: 700; color: #2e7d32;
  margin-bottom: 12px;
}
body.dark-mode .unlocked-head { color: #a5d6a7; }
.unlocked-content { font-size: 15px; line-height: 1.8; white-space: pre-wrap; word-break: break-word; }
.download-box {
  margin-top: 14px; padding: 14px; background: var(--card);
  border-radius: 10px; border: 1px solid var(--line);
}
.download-box-label { font-size: 14px; font-weight: 600; color: var(--text-2); margin-bottom: 10px; }
.download-box-label i { color: #4caf50; }

/* 操作条 */
.post-actions {
  display: flex; gap: 10px; margin: 18px 0;
  padding-top: 14px; border-top: 1px dashed var(--line);
}
.action-form { display: inline-flex; }
.action-btn {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--line); background: var(--card); color: var(--text-2);
  border-radius: 18px; padding: 7px 16px; font-size: 13.5px; cursor: pointer;
  font-family: inherit;
}
.action-btn.active { color: var(--active); border-color: var(--active); }
.action-btn.active i { color: var(--active); }

/* ================= 评论 ================= */
.section-title {
  font-size: 17px; margin: 20px 0 12px; color: var(--text);
}
.section-title-count { color: var(--text-3); font-size: 14px; }
.comment-form { margin-bottom: 14px; }
.comment-input {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-size: 14px; background: var(--bg); color: var(--text);
  resize: vertical; font-family: inherit; outline: none;
}
.comment-input:focus { border-color: var(--brand-1); }
.comment-form-foot {
  display: flex; align-items: center; justify-content: space-between; margin-top: 8px;
}
.comment-hint { font-size: 12px; color: var(--text-3); }
.comment-login-tip { padding: 14px; text-align: center; color: var(--text-3); font-size: 14px; border: 1px dashed var(--line); border-radius: 10px; margin-bottom: 14px; }
.comment-empty { text-align: center; color: var(--text-3); font-size: 13px; padding: 20px 0; }
.comment-list { list-style: none; }
.comment-item {
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.comment-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.comment-author { font-size: 13px; font-weight: 600; color: var(--brand-1); }
.comment-author i { margin-right: 2px; }
.comment-time { font-size: 12px; color: var(--text-3); }
.comment-body { font-size: 14px; line-height: 1.7; word-break: break-word; }
.reply-list {
  list-style: none; margin-top: 8px; padding: 8px 10px;
  background: var(--bg); border-radius: 8px;
}
.reply-item { font-size: 13px; line-height: 1.7; padding: 2px 0; }
.reply-author { color: var(--brand-1); font-weight: 600; }
.reply-text { color: var(--text-2); }

/* ================= 底部导航 ================= */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  display: flex; background: var(--card); border-top: 1px solid var(--line);
  padding: 6px 0; max-width: 720px; margin: 0 auto;
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--text-3); font-size: 11px;
}
.nav-item i { font-size: 19px; }
.nav-item.active { color: var(--active); }
.nav-item.active i { color: var(--active); }
.nav-center { position: relative; top: -14px; }
.nav-center-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 22px; box-shadow: 0 4px 14px rgba(102, 126, 234, .45);
}

.site-footer {
  padding: 14px 12px 26px; text-align: center; font-size: 11px; color: var(--text-3);
}
.site-footer a { color: var(--text-3); }
.footer-dot { margin: 0 6px; }

/* ================= 帖子底部操作条（对齐原站 post-bottom-bar） ================= */
.post-bottom-bar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 720px; box-sizing: border-box;
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 14px; padding-bottom: calc(9px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line); z-index: 210;
}
.post-bottom-left { display: flex; align-items: center; gap: 4px; }
.post-bottom-action {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 11px; color: var(--text-3); cursor: pointer;
  border: none; background: none; padding: 2px 10px; font-family: inherit; min-width: 44px;
}
.post-bottom-action i { font-size: 19px; margin-bottom: 2px; color: var(--text-2); }
.post-bottom-action.active { color: var(--active); }
.post-bottom-action.active i { color: var(--active); }
.pb-form { display: inline-flex; }
.post-bottom-right { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.post-bottom-btn {
  display: inline-flex; align-items: center; gap: 5px;
  color: #fff; border: none; padding: 8px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; text-decoration: none;
  white-space: nowrap;
}
.btn-card { background: #2196f3; }
.btn-consult { background: #9c27b0; }
.btn-download { background: #4caf50; }
.btn-unlock { background: #ff4d4f; }
body.post-page .main-area { padding-bottom: 76px; }
body.dark-mode .post-bottom-bar { background: rgba(30, 30, 30, .95); }
body.dark-mode .post-bottom-action { color: #aaa; }
body.dark-mode .post-bottom-action i { color: #ccc; }

/* ================= 相关推荐（对齐原站 relatedPosts） ================= */
.related-section { margin-top: 20px; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.related-card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden; text-decoration: none;
}
.related-card img { width: 100%; height: 84px; object-fit: cover; display: block; background: var(--bg); }
.related-cover-ph {
  width: 100%; height: 84px; display: flex; align-items: center; justify-content: center;
  background: var(--bg); color: var(--text-3); font-size: 22px;
}
.related-title {
  font-size: 13px; color: var(--text); padding: 8px 10px 2px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.related-sub { font-size: 11px; color: var(--text-3); padding: 0 10px 10px; }

/* ================= 购买页 / 查询页 / 举报页 ================= */
.buy-block, .pq-block {
  margin: 14px 0; padding: 14px; background: var(--card);
  border: 1px solid var(--line); border-radius: 10px;
}
.buy-block-head, .pq-head {
  font-size: 15px; font-weight: 600; color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 10px;
}
.buy-block-head i, .pq-head i { color: var(--brand-1); }
.buy-block-desc { font-size: 13.5px; color: var(--text-2); margin-bottom: 12px; line-height: 1.7; }
.buy-price { color: #f44336; font-weight: 700; font-size: 15px; }
.pq-tag {
  font-size: 12px; color: #fff; background: #4caf50; padding: 2px 10px; border-radius: 12px;
  white-space: nowrap;
}
.pq-label { font-size: 13px; font-weight: 600; color: var(--text-2); margin: 10px 0 6px; }
.pq-content { font-size: 14px; color: var(--text); line-height: 1.7; white-space: pre-wrap; }
.card-key-time { margin-left: 8px; font-size: 11px; color: var(--text-3); }

/* ================= 分享页（对齐原站 shareModal） ================= */
.share-box { margin: 14px 0; }
.share-label { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.share-url-input { font-size: 13px; color: var(--text); }
.share-channels { margin: 6px 0 16px; }
.share-channel {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); margin-bottom: 10px;
}
.share-channel-icon {
  width: 40px; height: 40px; border-radius: 50%; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0;
}
.share-channel-icon.wechat { background: #07c160; }
.share-channel-icon.moment { background: #1677ff; }
.share-channel-name { font-size: 14px; font-weight: 600; color: var(--text); }
.share-channel-tip { font-size: 12px; color: var(--text-3); }

/* ================= Toast ================= */
.toast-area {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%);
  z-index: 300; display: flex; flex-direction: column; gap: 8px;
  width: min(92vw, 460px); pointer-events: none;
}
.toast {
  padding: 11px 16px; border-radius: 10px; font-size: 14px; text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
}
.toast-success { background: #2e7d32; color: #fff; }
.toast-error { background: #c62828; color: #fff; }
.toast-info { background: #1976d2; color: #fff; }

/* ================= 排行 ================= */
.rank-list { list-style: none; counter-reset: rank; }
.rank-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; margin-bottom: 8px;
}
.rank-no {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; color: var(--text-3); background: var(--bg);
}
.rank-no-1 { background: linear-gradient(135deg, #f9d423, #ff4e50); color: #fff; }
.rank-no-2 { background: linear-gradient(135deg, #a8b8c8, #7a8b9e); color: #fff; }
.rank-no-3 { background: linear-gradient(135deg, #e8a87c, #c9714a); color: #fff; }
.rank-thumb {
  width: 64px; height: 44px; border-radius: 8px; overflow: hidden;
  background: var(--bg); flex-shrink: 0;
}
.rank-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rank-thumb-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #bbb; }
.rank-info { min-width: 0; flex: 1; }
.rank-name {
  font-size: 14px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block;
}
.rank-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.rank-avatar { font-size: 34px; color: var(--text-3); flex-shrink: 0; }

/* ================= 发现 ================= */
.page-head { margin-bottom: 8px; }
.page-title { font-size: 21px; color: var(--text); }
.discover-cats {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px; margin-bottom: 8px;
}
.discover-cat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 12px; text-align: center; color: var(--text);
  transition: transform .12s;
}
.discover-cat:active { transform: scale(.97); }
.discover-cat-icon {
  width: 48px; height: 48px; margin: 0 auto 8px; border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.discover-cat-name { font-size: 15px; font-weight: 600; display: block; }
.discover-cat-count { font-size: 12px; color: var(--text-3); }
.friend-links { display: flex; flex-wrap: wrap; gap: 10px; }
.friend-link {
  padding: 8px 16px; background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; font-size: 13px; color: var(--text-2);
}

/* ================= 个人中心 ================= */
.profile-card {
  display: flex; align-items: center; gap: 14px; margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(102,126,234,.12), rgba(118,75,162,.12));
  border: 1px solid rgba(102,126,234,.3);
}
.profile-avatar { font-size: 64px; color: var(--brand-1); flex-shrink: 0; }
.profile-name { font-size: 18px; font-weight: 700; }
.profile-tag {
  font-size: 11px; color: var(--primary); background: rgba(102,126,234,.12);
  border-radius: 8px; padding: 1px 8px; margin-left: 8px; vertical-align: 2px;
}
.profile-sign { font-size: 13px; color: var(--text-2); margin: 2px 0 8px; }
.profile-stats { display: flex; gap: 16px; }
.stat-item { font-size: 12px; color: var(--text-3); }
.stat-item b { display: block; font-size: 16px; color: var(--text); }
.stat-balance b { color: var(--active); }

.profile-menu {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px;
}
.profile-menu-item {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 8px; text-align: center; color: var(--text-2); font-size: 13px;
}
.profile-menu-item i { display: block; font-size: 22px; margin-bottom: 6px; color: var(--brand-1); }

.profile-tabs { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; }
.profile-tab {
  padding: 7px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line);
  font-size: 13px; color: var(--text-2); white-space: nowrap;
}
.profile-tab.active {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #fff; border-color: transparent; font-weight: 600;
}

/* 订单 */
.order-list { list-style: none; }
.order-item {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; margin-bottom: 8px;
}
.order-title { font-size: 14px; font-weight: 600; }
.order-title a { color: var(--text); }
.order-sub { font-size: 12px; color: var(--text-3); margin: 4px 0; }
.order-price { font-size: 15px; font-weight: 700; color: var(--active); }
.order-status { font-size: 12px; font-weight: 400; color: #ff9800; margin-left: 6px; }
.order-status.ok { color: #4caf50; }

/* 钱包 */
.wallet-card { margin-bottom: 14px; }
.wallet-balance { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.wallet-label { font-size: 14px; color: var(--text-3); }
.wallet-amount { font-size: 30px; font-weight: 800; color: var(--active); }
.wallet-frozen { font-size: 13px; color: #ff9800; margin-bottom: 12px; }

.tx-list { list-style: none; }
.tx-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; margin-bottom: 6px;
}
.tx-remark { flex: 1; font-size: 13.5px; color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-meta { font-size: 11px; color: var(--text-3); flex-shrink: 0; }
.tx-amount { font-weight: 700; font-size: 14px; flex-shrink: 0; }
.tx-amount.in { color: #2e7d32; }
.tx-amount.out { color: #c62828; }
body.dark-mode .tx-amount.in { color: #a5d6a7; }
body.dark-mode .tx-amount.out { color: #ff8a80; }

/* 退出登录 */
.logout-form { position: fixed; top: 60px; right: 12px; z-index: 90; }

/* 充值 */
.recharge-balance {
  display: flex; align-items: center; gap: 16px; margin-bottom: 14px;
}
.recharge-label { font-size: 14px; color: var(--text-3); }
.recharge-amount { font-size: 28px; font-weight: 800; color: var(--active); flex: 1; }

/* 发布 */
.publish-form { max-width: 560px; margin: 0 auto; }
.switch-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; background: var(--bg); border-radius: 10px; margin: 6px 0 14px;
  font-size: 14px; color: var(--text-2);
}
.switch-row input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--brand-1); }
.paid-config {
  border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 16px;
}
.paid-config legend { padding: 0 8px; }
.paid-file-row { display: grid; gap: 10px; }

/* ================= 空状态 ================= */
.empty-state {
  text-align: center; color: var(--text-3); padding: 60px 20px;
}
.empty-state i { font-size: 48px; color: var(--line); margin-bottom: 12px; display: block; }
body.dark-mode .empty-state i { color: #2a2a4a; }
.empty-state p { font-size: 14px; margin-bottom: 14px; }
.result-count { font-size: 13px; color: var(--text-3); margin-bottom: 10px; }

/* ================= 桌面适配 ================= */
@media (min-width: 721px) {
  .pc-wrapper { box-shadow: 0 0 30px rgba(0, 0, 0, .06); }
  body.dark-mode .pc-wrapper { box-shadow: 0 0 30px rgba(0, 0, 0, .4); }
  .main-area { padding: 16px 18px; }
  .post-grid { grid-template-columns: repeat(3, 1fr); }
}
/* ================= 新增模块样式（v2） ================= */

/* 应用商城 */
.apps-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.apps-tabs { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
@media (max-width: 420px) { .app-grid { grid-template-columns: 1fr; } }
.app-card {
  display: flex; gap: 12px; align-items: center; padding: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text);
}
.app-icon {
  width: 52px; height: 52px; border-radius: 12px; overflow: hidden; flex-shrink: 0;
  background: var(--bg); display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--brand-1);
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-info { min-width: 0; flex: 1; }
.app-title { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-official { font-size: 10px; color: #fff; background: var(--active); border-radius: 3px; padding: 0 4px; margin-left: 4px; vertical-align: 1px; }
.app-meta { font-size: 12px; color: var(--text-3); }
.app-sub { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--text-3); margin-top: 4px; }
.app-rating { color: #f9a825; }
.app-paid { color: var(--active); font-weight: 700; }
.app-free { color: #4caf50; }

/* 应用详情 */
.app-detail-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.app-detail-icon { width: 76px; height: 76px; border-radius: 18px; overflow: hidden; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 30px; color: var(--brand-1); flex-shrink: 0; }
.app-detail-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-detail-title { font-size: 20px; }
.app-detail-meta { font-size: 13px; color: var(--text-3); margin: 4px 0; }
.app-detail-stats { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--text-2); }
.app-detail-stats i { color: var(--brand-1); margin-right: 2px; }
.app-description { margin-top: 14px; }
.app-actions { display: flex; gap: 10px; margin: 16px 0; }
.review-stars { color: #f9a825; font-size: 13px; }
.seller-reply { margin-top: 8px; }
.reply-form { margin-top: 8px; }
.reply-form-row { display: flex; gap: 8px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .two-col { grid-template-columns: 1fr; } }

/* 会话列表 */
.conv-list { list-style: none; }
.conv-item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.conv-link { display: flex; align-items: center; gap: 12px; padding: 12px; color: var(--text); }
.conv-avatar { font-size: 38px; color: var(--text-3); flex-shrink: 0; }
.conv-info { flex: 1; min-width: 0; }
.conv-name { font-size: 15px; font-weight: 600; }
.conv-unread { font-size: 11px; background: var(--active); color: #fff; border-radius: 8px; padding: 1px 7px; margin-left: 6px; }
.conv-preview { font-size: 13px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-time { font-size: 11.5px; color: var(--text-3); flex-shrink: 0; }

/* 聊天页 */
.chat-page { display: flex; flex-direction: column; }
.chat-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.chat-peer { font-size: 16px; font-weight: 700; }
.chat-box {
  flex: 1; min-height: 300px; max-height: 55vh; overflow-y: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px;
}
.chat-msg { display: flex; flex-direction: column; }
.chat-msg.mine { align-items: flex-end; }
.chat-msg.theirs { align-items: flex-start; }
.chat-sender { font-size: 11px; color: var(--text-3); margin-bottom: 2px; }
.chat-bubble {
  max-width: 78%; padding: 9px 13px; border-radius: 14px; font-size: 14px; line-height: 1.6; word-break: break-word;
}
.chat-msg.mine .chat-bubble { background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.theirs .chat-bubble { background: var(--bg); color: var(--text); border-bottom-left-radius: 4px; }
.chat-time { font-size: 10.5px; color: var(--text-3); margin-top: 2px; }
.chat-empty { text-align: center; color: var(--text-3); padding: 30px 0; }
.chat-input-row { display: flex; gap: 8px; }
.chat-input-row .form-input { flex: 1; }
.chat-hint { font-size: 11.5px; color: var(--text-3); text-align: center; margin-top: 8px; }

/* 通知 */
.notify-list { list-style: none; }
.notify-item { display: flex; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 8px; }
.notify-item.unread { border-left: 3px solid var(--active); }
.notify-icon { font-size: 22px; color: var(--brand-1); flex-shrink: 0; }
.notify-body { min-width: 0; }
.notify-title { font-size: 14.5px; font-weight: 600; }
.notify-content { font-size: 13px; color: var(--text-2); margin: 2px 0; }
.notify-time { font-size: 11.5px; color: var(--text-3); }

/* 好友/用户列表 */
.friend-list { list-style: none; }
.friend-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.friend-link-inline { display: flex; align-items: center; gap: 10px; color: var(--text); min-width: 0; }
.friend-name { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.friend-sub { display: block; font-size: 11.5px; color: var(--text-3); font-weight: 400; }
.friend-ops { display: flex; gap: 6px; flex-shrink: 0; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; }

/* 签到/任务 */
.signin-card { text-align: center; margin-bottom: 14px; }
.signin-info { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-bottom: 12px; }
.signin-label { font-size: 13px; color: var(--text-3); }
.signin-days { font-size: 34px; font-weight: 800; color: var(--brand-1); }
.signin-done { color: #4caf50; font-size: 15px; font-weight: 600; }
.task-list { list-style: none; }
.task-item { display: flex; align-items: center; gap: 12px; padding: 14px; margin-bottom: 8px; }
.task-info { flex: 1; min-width: 0; }
.task-name { font-size: 15px; font-weight: 600; }
.task-reward { font-size: 12px; color: var(--active); background: rgba(228, 57, 60, .1); border-radius: 8px; padding: 1px 8px; margin-left: 6px; }
.task-desc { font-size: 12.5px; color: var(--text-3); }
.task-bar { height: 6px; background: var(--bg); border-radius: 4px; margin-top: 8px; overflow: hidden; }
.task-progress { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-1), var(--brand-2)); }
.task-count { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
.task-claimed { color: #4caf50; font-size: 13px; }
.task-locked { color: var(--text-3); font-size: 13px; }
.task-op { flex-shrink: 0; }

/* 邀请 */
.invite-card { text-align: center; margin-bottom: 14px; }
.invite-code-label { font-size: 13px; color: var(--text-3); }
.invite-code { font-size: 30px; font-weight: 800; letter-spacing: 6px; color: var(--brand-1); margin: 6px 0 10px; }
.invite-stats { display: flex; gap: 24px; justify-content: center; }

/* 卖家中心 */
.seller-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; text-align: center; }
.seller-stats .stat-item b { font-size: 18px; display: block; }

/* 订单详情 */
.order-detail { padding: 18px 16px; }
.order-info-list { margin: 12px 0; }
.order-info-list dt { float: left; clear: left; width: 90px; color: var(--text-3); font-size: 13.5px; padding: 4px 0; }
.order-info-list dd { margin-left: 100px; font-size: 14px; padding: 4px 0; word-break: break-word; }
.order-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; padding-top: 12px; border-top: 1px dashed var(--line); }
.card-keys-box { margin-top: 10px; }
.card-key-row { display: flex; justify-content: space-between; background: var(--bg); border-radius: 8px; padding: 8px 12px; margin-bottom: 6px; font-size: 13px; }
.card-key-status { color: #4caf50; }
.refund-box { background: var(--bg); border-radius: 10px; padding: 12px; margin-top: 14px; }
.refund-reason, .refund-reply { font-size: 13.5px; color: var(--text-2); padding: 2px 0; }
.refund-status { font-size: 13px; color: var(--active); margin-top: 4px; }
.review-form { margin-top: 16px; }
.reviewed-box { background: #e8f5e9; color: #2e7d32; border-radius: 10px; padding: 12px; margin-top: 16px; font-size: 14px; }
body.dark-mode .reviewed-box { background: #1e3a24; color: #a5d6a7; }
.cs-status { font-size: 14px; color: #ff9800; }
.refund-handle-form { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cancel-link { font-size: 13px; color: var(--text-3); text-decoration: underline; }

/* 红包 */
.redpacket-page { text-align: center; }
.redpacket-card { padding: 30px 20px; margin-bottom: 14px; }
.redpacket-top { font-size: 46px; color: var(--active); margin-bottom: 10px; }
.redpacket-message { font-size: 18px; font-weight: 700; }
.redpacket-amount { font-size: 40px; font-weight: 800; color: var(--active); margin: 8px 0; }
.redpacket-meta { font-size: 13px; color: var(--text-3); margin-bottom: 14px; }
.redpacket-status { font-size: 15px; color: var(--text-2); padding: 8px; }
.redpacket-status.ok { color: #4caf50; }
.redpacket-records { list-style: none; text-align: left; }
.redpacket-record { display: flex; justify-content: space-between; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 6px; font-size: 14px; }

/* 群组 */
.group-avatar { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.group-desc, .group-notice { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--text-2); margin-bottom: 10px; }
.group-notice i { color: #ff9800; }
.group-count { font-size: 12px; color: var(--text-3); }
.group-extra { margin: 10px 0; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.group-extra-summary { padding: 10px 12px; cursor: pointer; font-size: 14px; color: var(--text-2); }
.group-redpacket-form { padding: 12px; }
.member-list { list-style: none; }
.member-item { display: flex; justify-content: space-between; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; margin-bottom: 6px; font-size: 14px; }
.member-item a { color: var(--text); }
.member-role { font-size: 11px; color: var(--text-3); }

/* 实名认证 */
.verify-ok { color: #2e7d32; font-size: 18px; font-weight: 700; margin: 12px 0 8px; }
.verify-pending { color: #ff9800; font-size: 15px; margin: 12px 0 8px; }
.verify-reject { color: var(--active); font-size: 15px; margin: 12px 0 8px; }
.avatar-preview { text-align: center; font-size: 60px; color: var(--brand-1); margin-bottom: 10px; }
.avatar-preview img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; margin: 0 auto; }

/* 管理后台 */
.admin-stats { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 420px) { .admin-stats { grid-template-columns: repeat(2, 1fr); } }
.admin-tabs { flex-wrap: wrap; }
.tab-num { background: var(--active); color: #fff; border-radius: 8px; padding: 0 5px; font-size: 11px; margin-left: 2px; }
.admin-ops { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.admin-search { display: flex; gap: 8px; margin-bottom: 12px; }
.admin-search .form-input { flex: 1; }
.admin-cat-form { margin-bottom: 12px; }

/* 底部未读角标 */
.nav-badge {
  position: absolute; top: 2px; right: calc(50% - 22px);
  min-width: 16px; height: 16px; background: var(--active); color: #fff;
  font-size: 10px; border-radius: 8px; text-align: center; line-height: 16px; padding: 0 4px;
}
.nav-item { position: relative; }
.text-center { text-align: center; margin: 12px 0; }
.profile-verified { color: #4caf50; font-size: 13px; margin-left: 4px; }
.profile-ops { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }

/* ================= v3：在线支付 / 六种付费类型 ================= */
.amount-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.amount-preset { display: flex; }
.amount-preset input { display: none; }
.amount-preset span {
  flex: 1; text-align: center; padding: 10px 4px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 14px; color: var(--text-2); background: var(--card);
  cursor: pointer;
}
.amount-preset input:checked + span { border-color: var(--brand-1); color: var(--brand-1); background: rgba(102,126,234,.08); font-weight: 700; }
.pay-channels { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 14px 0; }
.pay-channel { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border: 1px solid var(--line); border-radius: 10px; }
.pay-channel input { position: absolute; opacity: 0; }
.pay-channel:has(input:checked) { border-color: var(--brand-1); background: rgba(102,126,234,.08); }
.pay-channel-icon { font-size: 22px; color: var(--brand-1); }
.pay-channel span { font-size: 12px; color: var(--text-2); text-align: center; }

.pay-center { text-align: center; padding: 30px 20px; }
.pay-status-icon { font-size: 52px; color: #ff9800; margin-bottom: 8px; }
.pay-status-icon.ok { color: #4caf50; }
.pay-amount { font-size: 34px; font-weight: 800; color: var(--active); }
.pay-order-no { font-size: 12.5px; color: var(--text-3); margin: 6px 0 14px; }
.pay-pending { color: #ff9800; font-size: 14px; margin-bottom: 16px; }
.pay-done { color: #4caf50; font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.pay-action-area { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }

/* 卡密专区 */
.card-box { margin-top: 14px; }
.card-box-head { display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.card-box-head i { color: #f9a825; }
.card-stock { font-size: 12px; color: var(--text-3); font-weight: 400; }
.card-price-line { font-size: 13.5px; color: var(--text-2); margin-bottom: 10px; }
.card-price-line b { color: var(--active); font-size: 16px; }
.card-buy-form { display: flex; gap: 8px; align-items: center; }
.card-soldout { color: var(--text-3); font-size: 14px; padding: 6px 0; }
.card-keys-title { font-size: 13px; color: var(--text-2); margin: 10px 0 6px; }

/* 付费图片 */
.paid-images { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 12px 0; }
.paid-image-item img { width: 100%; border-radius: 10px; border: 1px solid var(--line); }

/* 付费咨询 */
.consult-dur-list { list-style: none; }
.consult-dur-item { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--bg); border-radius: 10px; margin-bottom: 8px; }
.consult-dur-name { flex: 1; font-size: 14px; color: var(--text); }
.consult-dur-price { font-size: 15px; font-weight: 700; color: var(--active); }
.consult-unlocked { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.consult-contacts { list-style: none; }
.consult-contacts li { font-size: 15px; padding: 4px 0; color: var(--text); }
.consult-contacts i { color: var(--brand-1); width: 22px; }
.paid-consult-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.consult-dur-row { display: flex; gap: 8px; margin-bottom: 6px; }
.consult-dur-row .form-input { flex: 1; }

/* ================= v3.2：管理后台全量 + 公告/举报/友链/活动 ================= */
.site-notice { background: linear-gradient(135deg, #fff7e6, #fffbe6); border-bottom: 1px solid #ffe8a3; color: #ad6800; font-size: 12.5px; padding: 8px 16px; line-height: 1.6; }
.top-nav-right .top-nav-btn { margin-right: 4px; }
.admin-tabs { overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; -webkit-overflow-scrolling: touch; }
.admin-tabs .feed-tab { white-space: nowrap; }
.admin-tabs .tab-num { display: inline-block; min-width: 16px; padding: 0 4px; margin-left: 2px; border-radius: 9px; background: #f44336; color: #fff; font-size: 10px; line-height: 16px; text-align: center; }
.admin-stats-secondary { margin-top: 10px; }
.admin-search { display: flex; gap: 8px; margin-bottom: 14px; }
.admin-search .form-input { flex: 1; }
.admin-ops-wrap { flex-wrap: wrap; gap: 6px; }
.admin-cat-form { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.admin-cat-form .form-input { flex: 1 1 160px; }
.admin-post-content { font-size: 14px; line-height: 1.8; color: var(--text); }
.badge-paid { display: inline-block; padding: 1px 8px; margin-left: 6px; border-radius: 10px; background: rgba(244,67,54,.1); color: #f44336; font-size: 11px; font-weight: 600; vertical-align: middle; }
.badge-off { background: rgba(158,158,158,.12); color: #9e9e9e; }
.verify-imgs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.verify-imgs img { width: 60px; height: 44px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.report-input { max-width: 180px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; background: var(--card); color: var(--text); }
.action-btn-danger { color: #f44336; }
.post-actions { flex-wrap: wrap; gap: 10px; }
.pay-qrcode { text-align: center; margin-bottom: 6px; }
.pay-qrcode img { max-width: 220px; width: 100%; border-radius: 10px; border: 1px solid var(--line); background: #fff; }

/* ================= 差距补齐：编辑/删除 / 订阅 / 扫码登录 / 推荐用户 / 群组 ================= */
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; cursor: pointer; border: 1px solid var(--line); background: var(--card); color: var(--text); text-decoration: none; display: inline-block; }
.btn-sm:hover { border-color: var(--brand-1); color: var(--brand-1); }
.btn-outline { background: transparent; }
.btn-danger { background: #f44336; color: #fff; border-color: #f44336; }
.btn-danger:hover { opacity: .9; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }
.profile-post-ops { display: flex; gap: 8px; padding: 0 2px 10px; }
.auth-card { margin: 16px auto; max-width: 420px; }
.qr-box { display: inline-block; padding: 12px; background: #fff; border-radius: 12px; border: 1px solid var(--line); margin: 10px 0 4px; }
.reco-users { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.reco-user { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.reco-user-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
/* 卖家中心：证据图缩略 / 统计表 / 到手金额 / 状态强调 */
.img-thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.img-thumbs img { width: 56px; height: 44px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.stat-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.stat-table th, .stat-table td { padding: 6px 8px; text-align: left; border-bottom: 1px solid var(--line); }
.stat-table th { color: var(--text-3); font-weight: 500; }
.stat-table .pos { color: #52c41a; }
.stat-table .neg { color: #f5222d; }
.order-earn { font-size: 11px; color: #52c41a; margin-left: 6px; font-weight: 600; }
.warn { color: #fa8c16; }
.notify-item.unread { background: var(--card-tint, #fffbe6); }
.notify-link { color: inherit; text-decoration: none; font-weight: 600; }
.notify-link:hover { color: var(--accent, #667eea); }
.notify-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #f5222d; margin-left: 6px; vertical-align: middle; }
.invite-link-box { margin: 8px 0; padding: 8px 10px; background: var(--bg-soft, #f7f8fa); border-radius: 8px; border: 1px dashed var(--line); }
.invite-link { font-size: 12px; color: var(--accent, #667eea); word-break: break-all; text-decoration: none; }
.claim-all-form { margin-bottom: 10px; }
.privacy-form .form-field { margin-bottom: 4px; }
.rank-avatar img, .conv-avatar img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }


/* ================= 移动端顶部导航优化（零 JS，纯 CSS） ================= */
@media (max-width: 600px) {
  .top-nav {
    padding: 10px 12px;
    gap: 10px;
  }
  /* 单行布局：logo + 搜索框 + 按钮 */
  .top-nav-left {
    flex: 1;
    min-width: 0;
    gap: 8px;
  }
  .logo {
    font-size: 15px;
    flex-shrink: 0;
  }
  /* 搜索框压缩宽度 */
  .search-form {
    flex: 1;
    min-width: 0;
    border-radius: 16px;
  }
  .search-input {
    padding: 7px 10px;
    font-size: 13px;
  }
  .search-btn {
    width: 32px;
    padding: 7px 0;
  }
  /* 按钮区域 */
  .top-nav-right {
    flex-shrink: 0;
    gap: 4px;
  }
  .top-nav-btn {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
  /* 隐藏文字链接 */
  .nav-item-inline {
    display: none;
  }
}
