/* ═══════════════════════════════════════════════════════════════════════
   社区功能样式 — 移动端 App 风格 + PC 端网站布局
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Toast 通知 ──────────────────────────────────────────────────────── */
.bead-toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  max-width: 300px;
  padding: 11px 20px;
  border-radius: 24px;
  background: rgba(47, 41, 39, .92);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  white-space: pre-wrap;
  backdrop-filter: blur(12px);
  z-index: 9999;
  opacity: 0;
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.bead-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.bead-toast[data-type="success"] { background: rgba(34, 139, 80, .92); }
.bead-toast[data-type="error"]   { background: rgba(200, 50, 60, .92); }
.bead-toast[data-type="warning"] { background: rgba(200, 130, 30, .92); }

/* ── 积分徽章 ─────────────────────────────────────────────────────────── */
.point-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff0c0, #ffe580);
  color: #7a5500;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.point-badge.free {
  background: linear-gradient(135deg, #d0f5e0, #a8edcc);
  color: #1a6640;
}
.point-badge.large {
  padding: 6px 16px;
  font-size: 15px;
}

/* ── 难度标签 ─────────────────────────────────────────────────────────── */
.difficulty-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}
.difficulty-badge[data-level="easy"]   { background: #d0f5e0; color: #1a6640; }
.difficulty-badge[data-level="normal"] { background: #fff0c0; color: #7a5500; }
.difficulty-badge[data-level="hard"]   { background: #ffdac0; color: #7a2a00; }
.difficulty-badge[data-level="expert"] { background: #f5d0e0; color: #7a1040; }

/* ── 图纸卡片网格 ────────────────────────────────────────────────────── */
.pattern-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 2px;
}

.pattern-card {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(235, 92, 130, .1);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(216, 72, 112, .07);
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.pattern-card:active { transform: scale(.97); }

.pattern-card-thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: linear-gradient(135deg, #ffe0eb, #e0f0ff);
  display: block;
}
.pattern-card-thumb-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #ffe0eb, #e0f0ff);
  display: grid;
  place-items: center;
  color: #c98fa8;
  font-size: 28px;
}

.pattern-card-body {
  padding: 9px 10px 10px;
}
.pattern-card-title {
  font-size: 13px;
  font-weight: 800;
  color: #2f2927;
  margin: 0 0 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pattern-card-author {
  font-size: 11px;
  color: #9a8179;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.pattern-card-author img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
}
.pattern-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}
.pattern-card-stat {
  font-size: 11px;
  color: #9a8179;
}
.pattern-card-stat + .pattern-card-stat::before {
  content: '·';
  margin-right: 5px;
}

/* ── 分类标签栏 ──────────────────────────────────────────────────────── */
.category-tabs {
  display: flex;
  gap: 8px;
  padding: 2px 0 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.category-tabs::-webkit-scrollbar { display: none; }

.cat-tab {
  flex-shrink: 0;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 10px;
  border: 1px solid rgba(231, 85, 130, .14);
  background: rgba(255,255,255,.78);
  color: #7a5f58;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: background .12s;
}
.cat-tab.active {
  background: linear-gradient(135deg, #ff5f93, #ffA3bd);
  color: #fff;
  border-color: transparent;
}

/* ── 搜索栏 ──────────────────────────────────────────────────────────── */
.search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.search-input {
  flex: 1;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(129, 94, 86, .16);
  border-radius: 12px;
  background: rgba(255,255,255,.86);
  font: inherit;
  font-size: 14px;
  color: #2f2927;
  outline: none;
}
.search-input:focus { border-color: rgba(231, 85, 130, .4); }
.search-btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff4f88, #ff8eb0);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}

/* ── 排序工具栏 ──────────────────────────────────────────────────────── */
.sort-bar {
  display: flex;
  gap: 6px;
  padding: 4px 0 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.sort-bar::-webkit-scrollbar { display: none; }

.sort-btn {
  flex-shrink: 0;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 8px;
  border: 1px solid rgba(231, 85, 130, .12);
  background: transparent;
  color: #7a5f58;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.sort-btn.active {
  background: rgba(255, 95, 147, .1);
  border-color: rgba(231, 85, 130, .3);
  color: #e73675;
}

/* ── 图纸详情页 ──────────────────────────────────────────────────────── */
.detail-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: #f0e8ef;
  overflow: hidden;
}
.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.detail-body { padding: 16px; }
.detail-title {
  font-size: 22px;
  font-weight: 900;
  margin: 0 0 6px;
  line-height: 1.2;
}
.detail-desc {
  font-size: 14px;
  color: #7a6660;
  margin: 0 0 12px;
}
.detail-author-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.detail-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, #ffd0e8, #b0e0ff);
  display: grid;
  place-items: center;
  font-size: 16px;
  color: #c98fa8;
  flex-shrink: 0;
}
.detail-author-name { font-weight: 800; font-size: 14px; color: #2f2927; }
.detail-author-sub  { font-size: 12px; color: #9a8179; }

.detail-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 12px 0;
}
.detail-stat {
  display: grid;
  gap: 2px;
  place-items: center;
  padding: 10px 6px;
  border-radius: 12px;
  background: rgba(255, 245, 248, .78);
  text-align: center;
}
.detail-stat b   { font-size: 17px; color: #2f2927; }
.detail-stat span{ font-size: 11px; color: #9a8179; }

.detail-actions {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 8px;
  margin: 14px 0;
}
.action-btn {
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid rgba(231, 85, 130, .16);
  background: rgba(255,255,255,.86);
  color: #7a5f58;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.action-btn.active { color: #e73675; background: #fff0f5; border-color: rgba(231,85,130,.3); }
.action-btn.danger { color: #b55; }

.detail-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}
.detail-info-item {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 245, 248, .6);
}
.detail-info-item .label { font-size: 11px; color: #9a8179; margin-bottom: 2px; }
.detail-info-item .value { font-size: 14px; font-weight: 800; color: #2f2927; }

/* ── 色号表预览 ──────────────────────────────────────────────────────── */
.color-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
}
.color-chip-preview {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(60,45,40,.14);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
}
.color-chip-preview::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(47,41,39,.88);
  color: #fff;
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
}
.color-chip-preview:hover::after { opacity: 1; }

/* ── 发布图纸页 ──────────────────────────────────────────────────────── */
.publish-form { padding: 0; }
.form-section { margin-bottom: 14px; }
.form-section h3 { font-size: 15px; margin: 0 0 10px; color: #5a4742; font-weight: 900; }

.form-field {
  margin-bottom: 12px;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #6f5a54;
  margin-bottom: 6px;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(129, 94, 86, .16);
  border-radius: 12px;
  background: rgba(255,255,255,.86);
  font: inherit;
  font-size: 14px;
  color: #2f2927;
  outline: none;
  transition: border-color .15s;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus { border-color: rgba(231, 85, 130, .4); }
.form-textarea { min-height: 80px; resize: vertical; }

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(129, 94, 86, .08);
}
.toggle-row:last-child { border-bottom: none; }
.toggle-info .label   { font-size: 14px; font-weight: 800; color: #2f2927; }
.toggle-info .sub     { font-size: 12px; color: #9a8179; margin-top: 1px; }

.toggle-switch {
  position: relative;
  width: 44px;
  height: 26px;
  flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d4c8c4;
  cursor: pointer;
  transition: background .2s;
}
.toggle-track::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
  transition: transform .2s;
}
.toggle-switch input:checked + .toggle-track { background: #ff5f93; }
.toggle-switch input:checked + .toggle-track::after { transform: translateX(18px); }

.preview-thumb {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(231, 85, 130, .14);
}

/* ── 积分页 ──────────────────────────────────────────────────────────── */
.points-hero {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 28px 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ff6fa0, #ff9dbf);
  color: #fff;
  margin-bottom: 16px;
  text-align: center;
}
.points-hero .balance { font-size: 52px; font-weight: 900; line-height: 1; }
.points-hero .sub     { font-size: 14px; opacity: .88; }
.points-hero .stats   { display: flex; gap: 24px; margin-top: 8px; }
.points-hero .stat-item { text-align: center; }
.points-hero .stat-item b  { display: block; font-size: 20px; }
.points-hero .stat-item span { font-size: 12px; opacity: .82; }

.tx-list { display: grid; gap: 2px; }
.tx-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(129, 94, 86, .08);
  gap: 12px;
}
.tx-item:last-child { border-bottom: none; }
.tx-desc  { font-size: 14px; font-weight: 700; color: #2f2927; }
.tx-time  { font-size: 12px; color: #9a8179; margin-top: 2px; }
.tx-amount { font-size: 16px; font-weight: 900; }
.tx-amount.plus  { color: #22a855; }
.tx-amount.minus { color: #e73675; }

/* ── 排行榜 ──────────────────────────────────────────────────────────── */
.leaderboard-header {
  padding: 20px 0 10px;
}
.leaderboard-header h1 { font-size: 26px; margin: 0 0 4px; }

.period-tabs {
  display: flex;
  gap: 6px;
  margin: 10px 0;
}
.period-tab {
  flex: 1;
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(231, 85, 130, .16);
  background: rgba(255,255,255,.8);
  color: #7a5f58;
  font-size: 13px;
  font-weight: 800;
}
.period-tab.active {
  background: linear-gradient(135deg, #ff5f93, #ffA3bd);
  color: #fff;
  border-color: transparent;
}

.rank-list { display: grid; gap: 10px; }

.rank-card {
  display: grid;
  grid-template-columns: 36px 44px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(235, 92, 130, .1);
  border-radius: 16px;
  box-shadow: 0 3px 10px rgba(216, 72, 112, .06);
}
.rank-no {
  font-size: 20px;
  font-weight: 900;
  text-align: center;
  color: #c0a8a0;
}
.rank-no.top1 { color: #FFB800; font-size: 24px; }
.rank-no.top2 { color: #A0A8B8; font-size: 22px; }
.rank-no.top3 { color: #C87840; font-size: 22px; }

.rank-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  background: linear-gradient(135deg, #ffd0e8, #b0e0ff);
  display: grid;
  place-items: center;
  font-size: 20px;
  color: #c98fa8;
}

.rank-info .name   { font-size: 14px; font-weight: 800; color: #2f2927; }
.rank-info .sub    { font-size: 12px; color: #9a8179; margin-top: 2px; }
.rank-info .tag    {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 7px;
  border-radius: 5px;
  background: #fff0f5;
  color: #e73675;
  font-size: 10px;
  font-weight: 800;
}

.rank-score { text-align: right; }
.rank-score .score { font-size: 18px; font-weight: 900; color: #2f2927; }
.rank-score .label { font-size: 11px; color: #9a8179; }

/* ── 商城页 ──────────────────────────────────────────────────────────── */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.shop-card {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(235, 92, 130, .1);
  border-radius: 16px;
  padding: 14px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(216, 72, 112, .07);
  cursor: pointer;
  transition: transform .12s;
}
.shop-card:active { transform: scale(.97); }
.shop-card-icon { font-size: 32px; margin-bottom: 8px; }
.shop-card-title { font-size: 14px; font-weight: 900; color: #2f2927; margin: 0 0 4px; }
.shop-card-desc  { font-size: 12px; color: #9a8179; margin-bottom: 10px; line-height: 1.4; }
.shop-card-price {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff0c0, #ffe580);
  color: #7a5500;
  font-size: 13px;
  font-weight: 900;
}

/* ── 管理员后台 ──────────────────────────────────────────────────────── */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.admin-stat-card {
  padding: 12px 8px;
  border-radius: 14px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(235, 92, 130, .1);
  text-align: center;
}
.admin-stat-card b    { display: block; font-size: 22px; color: #e73675; }
.admin-stat-card span { font-size: 11px; color: #9a8179; }

.admin-tab-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.admin-tab-bar::-webkit-scrollbar { display: none; }
.admin-tab {
  flex-shrink: 0;
  min-height: 34px;
  padding: 5px 14px;
  border-radius: 10px;
  border: 1px solid rgba(231, 85, 130, .14);
  background: rgba(255,255,255,.78);
  color: #7a5f58;
  font-size: 13px;
  font-weight: 800;
}
.admin-tab.active {
  background: linear-gradient(135deg, #ff5f93, #ffA3bd);
  color: #fff;
  border-color: transparent;
}

.admin-row {
  display: grid;
  align-items: center;
  padding: 12px 14px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(235,92,130,.08);
  border-radius: 14px;
  gap: 10px;
  margin-bottom: 8px;
}
.admin-row.pattern-row { grid-template-columns: 52px 1fr auto; }
.admin-row.user-row    { grid-template-columns: 1fr auto; }
.admin-row img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.admin-row .info .title  { font-size: 13px; font-weight: 800; color: #2f2927; }
.admin-row .info .meta   { font-size: 11px; color: #9a8179; margin-top: 2px; }
.admin-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-btn {
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid;
}
.admin-btn.approve { border-color: #22a855; color: #22a855; background: #e8faf0; }
.admin-btn.reject  { border-color: #c84040; color: #c84040; background: #faeaea; }
.admin-btn.remove  { border-color: #c87840; color: #c87840; background: #faf0e0; }
.admin-btn.adjust  { border-color: #4078c8; color: #4078c8; background: #e8f0fa; }
.admin-btn.ban     { border-color: #c84040; color: #c84040; background: #faeaea; }

/* ── 登录页 ───────────────────────────────────────────────────────────── */
.login-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  padding: 40px 24px;
  max-width: 430px;
  margin: 0 auto;
}
.login-logo {
  text-align: center;
  margin-bottom: 36px;
}
.login-logo .brand-big {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 28px;
  font-weight: 900;
  color: #e73675;
}
.login-logo p { margin-top: 6px; color: #9a8179; font-size: 14px; }
.login-tab-row {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(231, 85, 130, .18);
}
.login-tab {
  flex: 1;
  min-height: 40px;
  font-size: 14px;
  font-weight: 800;
  color: #9a8179;
  background: rgba(255,255,255,.8);
}
.login-tab.active { background: linear-gradient(135deg, #ff5f93, #ffA3bd); color: #fff; }

/* ── 我的作品页 ──────────────────────────────────────────────────────── */
.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}
.status-badge.PUBLISHED     { background: #d0f5e0; color: #1a6640; }
.status-badge.PENDING_REVIEW{ background: #fff0c0; color: #7a5500; }
.status-badge.DRAFT         { background: #e8e8e8; color: #5a5a5a; }
.status-badge.REJECTED      { background: #faeaea; color: #c84040; }
.status-badge.REMOVED       { background: #f5e0e0; color: #8b2020; }

.my-work-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(235,92,130,.1);
  border-radius: 16px;
  margin-bottom: 10px;
}
.my-work-card img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; }
.my-work-info .title  { font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.my-work-info .meta   { font-size: 12px; color: #9a8179; }
.my-work-info .stats  { display: flex; gap: 10px; margin-top: 6px; font-size: 12px; color: #7a6660; }
.my-work-reject { font-size: 12px; color: #c84040; margin-top: 4px; }

/* ── 相关推荐图纸 ─────────────────────────────────────────────────────── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.related-card {
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}
.related-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #ffe0eb, #e0f0ff);
}
.related-card .related-title {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 4px 2px;
  color: #2f2927;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── 空状态 ──────────────────────────────────────────────────────────── */
.empty-state {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 48px 20px;
  text-align: center;
}
.empty-state .icon { font-size: 48px; opacity: .4; }
.empty-state .msg  { color: #9a8179; font-size: 15px; }

/* ── 加载状态 ─────────────────────────────────────────────────────────── */
.loading-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 24px;
}
.loading-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ffA3bd;
  animation: dotBounce 1.2s infinite;
}
.loading-dots span:nth-child(2) { animation-delay: .2s; }
.loading-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(.6); opacity: .5; }
  40% { transform: scale(1); opacity: 1; }
}

/* ══════════════════════════════════════════════════════════════════════
   PC 端布局：≥ 900px 启用侧边栏网站模式
   ══════════════════════════════════════════════════════════════════════ */
@media (min-width: 900px) {

  /* 主布局容器 */
  #app {
    display: grid;
    grid-template-columns: 220px minmax(0, 860px);
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    gap: 0;
  }

  /* 侧边导航栏 */
  .pc-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 28px 16px;
    border-right: 1px solid rgba(231, 85, 130, .1);
    background: rgba(255, 250, 251, .96);
    backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .pc-sidebar .sidebar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 900;
    color: #e73675;
    padding: 8px 12px 20px;
  }
  .pc-sidebar .nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 12px;
    color: #7a5f58;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    border: none;
    background: transparent;
    text-align: left;
    width: 100%;
    transition: background .1s;
  }
  .pc-sidebar .nav-item:hover { background: rgba(255, 95, 147, .07); }
  .pc-sidebar .nav-item.active { background: #fff0f5; color: #e73675; }
  .pc-sidebar .nav-item .nav-icon { font-size: 18px; width: 22px; text-align: center; }

  .pc-sidebar .sidebar-user {
    margin-top: auto;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 245, 248, .78);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
  }
  .sidebar-user img,
  .sidebar-user .avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, #ffd0e8, #b0e0ff);
    display: grid;
    place-items: center;
    font-size: 16px;
    flex-shrink: 0;
  }
  .sidebar-user .user-name   { font-size: 13px; font-weight: 800; color: #2f2927; }
  .sidebar-user .user-points { font-size: 12px; color: #e73675; }

  /* PC 端隐藏底部 tabbar */
  .tabbar { display: none !important; }

  /* 页面不再限制 430px，改用全宽 */
  .app-page {
    width: 100%;
    max-width: 100%;
    padding: 24px 32px 40px;
    min-height: 100vh;
  }
  .has-bottom-action { padding-bottom: 100px; }
  .bottom-action {
    position: static;
    margin-top: 16px;
    padding: 0;
    background: none;
    border: none;
    backdrop-filter: none;
  }

  /* 图纸广场网格 PC 端变 3 列 */
  .pattern-grid { grid-template-columns: repeat(3, 1fr); }

  /* 商城 PC 端变 3 列 */
  .shop-grid { grid-template-columns: repeat(3, 1fr); }

  /* 管理员统计 PC 端变 6 列 */
  .admin-stats-grid { grid-template-columns: repeat(6, 1fr); }

  /* topbar 在 PC 上改为常规块级，不 sticky */
  .topbar {
    position: static;
    margin: 0 0 16px;
    padding: 0;
    background: none;
    backdrop-filter: none;
    border: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   「我的」聚合页
   ═══════════════════════════════════════════════════════════════════════ */

/* 个人信息卡片 */
.mine-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 16px 16px;
  margin: 0 0 12px;
  background: linear-gradient(135deg, #fff0f5, #fff7fb);
  border-radius: 20px;
  border: 1px solid rgba(231,54,117,.1);
}
.mine-avatar { flex-shrink: 0; }
.mine-avatar img,
.mine-avatar-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, #ffd0e8, #b0e0ff);
  display: grid;
  place-items: center;
  font-size: 26px;
  border: 2px solid rgba(231,54,117,.15);
}
.mine-info { flex: 1; min-width: 0; }
.mine-nickname {
  font-size: 17px;
  font-weight: 800;
  color: #2f2927;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mine-balance {
  font-size: 13px;
  color: #e73675;
  font-weight: 700;
  margin-top: 3px;
}
.mine-edit-btn {
  flex-shrink: 0;
  font-size: 12px;
  color: #e73675;
  background: rgba(231,54,117,.08);
  border-radius: 20px;
  padding: 6px 12px;
  font-weight: 700;
  white-space: nowrap;
}

/* 未登录状态 */
.mine-guest {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 16px 24px;
}
.mine-avatar-placeholder.big {
  width: 72px;
  height: 72px;
  font-size: 32px;
}
.mine-guest-tip {
  margin: 0;
  font-size: 14px;
  color: #8b746e;
}

/* 菜单网格 */
.mine-menu-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(255,255,255,.9);
  border-radius: 20px;
  border: 1px solid rgba(231,54,117,.08);
  overflow: hidden;
  margin-bottom: 12px;
}
.mine-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: transparent;
  text-align: left;
  border-radius: 0;
  border-bottom: 1px solid rgba(231,54,117,.06);
  transition: background .15s;
}
.mine-menu-item:last-child { border-bottom: none; }
.mine-menu-item:active { background: rgba(231,54,117,.06); }
.mine-menu-icon {
  font-size: 22px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: rgba(231,54,117,.07);
  border-radius: 10px;
  flex-shrink: 0;
}
.mine-menu-label {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  color: #2f2927;
}
.mine-menu-sub {
  font-size: 12px;
  color: #b09090;
  white-space: nowrap;
}
.mine-menu-arrow {
  font-size: 18px;
  color: #ccc;
  margin-left: 4px;
}

/* 退出按钮 */
.mine-logout-btn {
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 700;
  color: #c0392b;
  background: rgba(192,57,43,.07);
  border: 1px solid rgba(192,57,43,.12);
}
.mine-logout-btn:active { background: rgba(192,57,43,.14); }
