/* 社区 / 账号 / 后台 相关组件（沿用主站暖纸色调） */

.app-page { padding-top: 130px; padding-bottom: 90px; }
.app-title { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 6px; }
.app-sub { color: var(--ink-soft); margin-bottom: 32px; }

/* 卡片 */
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}
.panel + .panel { margin-top: 22px; }
.panel h3 { font-family: var(--serif); font-size: 1.25rem; margin-bottom: 16px; }

/* 表单 */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 8px; }
.input, .textarea, .select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 4px rgba(140, 164, 126, .14);
}
.textarea { min-height: 420px; line-height: 1.8; resize: vertical; font-size: 15px; }
.hint { font-size: 0.82rem; color: var(--ink-faint); margin-top: 6px; }

.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > * { flex: 1 1 200px; }

/* 提示条 */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--paper);
  padding: 12px 22px; border-radius: 999px; font-size: 0.9rem;
  opacity: 0; pointer-events: none; transition: all .3s var(--ease); z-index: 1000;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: #a3483a; }

/* 标签页 */
.tabs { display: flex; gap: 8px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.tab {
  padding: 10px 18px; border-radius: 12px 12px 0 0; color: var(--ink-soft);
  font-size: 0.95rem; border-bottom: 2px solid transparent;
}
.tab.on { color: var(--ink); border-bottom-color: var(--terra); background: var(--card); }

/* 等级徽章 */
.badge-level {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(217, 164, 65, .16); color: #8a6413;
  border-radius: 999px; padding: 2px 10px; font-size: 0.78rem;
}
.bar { height: 8px; background: var(--paper-2); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.bar > i { display: block; height: 100%; background: var(--mustard); border-radius: 999px; transition: width .6s var(--ease); }

/* 头像 */
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--paper-2); }
.avatar.sm { width: 32px; height: 32px; }
.avatar-lg { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; background: var(--paper-2); }

/* 评论 */
.cmt { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cmt:last-child { border-bottom: none; }
.cmt-main { flex: 1; min-width: 0; }
.cmt-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.cmt-name { font-weight: 500; }
.cmt-time { font-size: 0.8rem; color: var(--ink-faint); }
.cmt-body { white-space: pre-wrap; word-break: break-word; }
.cmt-stickers { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.cmt-stickers img { width: 72px; height: 72px; object-fit: contain; }
.cmt-actions { display: flex; gap: 16px; margin-top: 8px; font-size: 0.85rem; color: var(--ink-faint); }
.cmt-actions button { color: var(--ink-faint); }
.cmt-actions button:hover { color: var(--terra); }
.cmt-actions button.on { color: var(--terra); }
.cmt-reply { margin-left: 46px; border-left: 2px dashed var(--line); padding-left: 18px; }
.cmt-pending { font-size: 0.75rem; color: var(--mustard); border: 1px dashed var(--mustard); border-radius: 999px; padding: 0 8px; }

/* 表情选择面板 */
.sticker-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sticker-bar button.emo { font-size: 1.25rem; width: 38px; height: 38px; border-radius: 12px; background: var(--paper-2); }
.sticker-bar button.emo:hover { background: var(--line); }
.sticker-bar img.pick { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; background: var(--paper-2); cursor: pointer; border: 2px solid transparent; }
.sticker-bar img.pick.on { border-color: var(--terra); }

/* 列表 / 表格 */
.list-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.list-item:last-child { border-bottom: none; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .grow a { font-weight: 500; }
.list-item .grow a:hover { color: var(--terra); }
.mini { font-size: 0.82rem; color: var(--ink-faint); }
.tag { font-size: 0.72rem; border-radius: 999px; padding: 1px 9px; background: var(--paper-2); color: var(--ink-soft); }
.tag.on { background: rgba(140, 164, 126, .2); color: var(--sage-deep); }
.tag.wait { background: rgba(217, 164, 65, .2); color: #8a6413; }
.tag.off { background: rgba(169, 72, 58, .12); color: #a3483a; }

table.tbl { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.tbl th, table.tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.tbl th { color: var(--ink-faint); font-weight: 400; font-size: 0.82rem; }

/* 统计卡 */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; }
.stat { background: var(--paper-2); border-radius: 16px; padding: 16px 18px; }
.stat b { display: block; font-family: var(--serif); font-size: 1.7rem; line-height: 1.2; }
.stat span { font-size: 0.8rem; color: var(--ink-soft); }

.empty { color: var(--ink-faint); padding: 26px 0; text-align: center; }

/* 图片上传区 */
.drop {
  border: 2px dashed var(--line); border-radius: 18px; padding: 26px;
  text-align: center; color: var(--ink-soft); cursor: pointer; background: #fffdf7;
}
.drop:hover, .drop.over { border-color: var(--sage); color: var(--ink); }
.thumb-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.thumb-row img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; }

@media (max-width: 640px) {
  .app-page { padding-top: 110px; }
  .panel { padding: 20px; }
  .cmt-reply { margin-left: 20px; padding-left: 12px; }
}

/* ============ 商城 ============ */
.shop-bar { display: flex; gap: 14px; margin-bottom: 28px; align-items: center; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 26px; }
.shop-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  border: 1.5px solid rgba(58, 53, 45, .10); box-shadow: var(--shadow-soft);
  text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.shop-card:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: var(--shadow-lift); }
.shop-cover { aspect-ratio: 1/1; background: var(--paper-2); overflow: hidden; }
.shop-cover img { width: 100%; height: 100%; object-fit: cover; }
.shop-body { padding: 16px 18px 20px; }
.shop-body h3 { font-family: var(--serif); font-size: 1.08rem; }
.shop-body p { color: var(--ink-soft); font-size: .9rem; margin-top: 6px; }
.shop-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.price { font-family: var(--serif); font-size: 1.15rem; color: var(--terra); }

/* 商品详情 */
.pv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.pv-main { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius); border: 1.5px solid var(--line); }
.pv-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pv-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; border: 2px solid transparent; cursor: pointer; background: var(--paper-2); }
.pv-thumbs img.on { border-color: var(--terra); }
.pv-price { font-family: var(--serif); font-size: 1.8rem; color: var(--terra); margin: 8px 0; }
.pv-stock { margin-bottom: 18px; }
.pv-buy { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pv-desc { margin-top: 26px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 34px; height: 34px; font-size: 1.1rem; color: var(--ink-soft); }
.qty input { width: 42px; text-align: center; border: none; background: transparent; font: inherit; }

/* 购物车 / 结算 */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.cart-row { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-row:last-child { border-bottom: none; }
.cart-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; background: var(--paper-2); }
.cart-name { font-weight: 500; }
.addr-opt { display: block; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; cursor: pointer; background: #fffefa; }
.addr-opt:has(input:checked) { border-color: var(--sage); background: rgba(140, 164, 126, .10); }
.addr-opt input { margin-right: 8px; vertical-align: middle; }
.cart-summary .row2 { display: flex; justify-content: space-between; padding: 6px 0; }
.cart-summary b { font-family: var(--serif); }
.loading { color: var(--ink-faint); padding: 20px 0; }

@media (max-width: 900px) {
  .pv-grid, .cart-layout { grid-template-columns: 1fr; gap: 28px; }
}

/* ============ 社区社交（排序 / 点赞 / 收藏 / 关注 / 通知）============ */
.sort-bar { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.chip {
  padding: 7px 16px; border-radius: 999px; font-size: .88rem;
  color: var(--ink-soft); border: 1px solid var(--line); background: var(--card);
  transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--sage); color: var(--ink); }
.chip.on { background: var(--sage); color: #fff; border-color: var(--sage); }

.like-btn {
  flex: 0 0 auto; font-size: .9rem; color: var(--ink-faint);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px;
  background: var(--card); transition: all .2s var(--ease);
}
.like-btn:hover { color: var(--terra); border-color: var(--terra); }
.like-btn.on { color: #fff; background: var(--terra); border-color: var(--terra); }

.post-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.post-actions .act {
  display: inline-flex; align-items: center; gap: 6px; font-size: .9rem;
  padding: 7px 16px; border-radius: 999px; color: var(--ink-soft);
  border: 1px solid var(--line); background: var(--card); cursor: pointer;
  text-decoration: none; transition: all .2s var(--ease);
}
.post-actions .act:hover { color: var(--terra); border-color: var(--terra); }
.post-actions .act.on { color: #fff; background: var(--terra); border-color: var(--terra); }

.list-item .notif.unread { background: rgba(140, 164, 126, .08); }
.notif.unread .grow b { color: var(--sage-deep); }

.dot {
  display: inline-block; min-width: 16px; height: 16px; line-height: 16px;
  padding: 0 4px; border-radius: 999px; background: #a3483a; color: #fff;
  font-size: .68rem; text-align: center; vertical-align: middle; margin-left: 4px;
}
.nav-bell { position: relative; text-decoration: none; }
.nav-bell .dot { position: absolute; top: -6px; left: 12px; margin: 0; }

/* =========================================================
   第五阶段：多媒体（视频 / 图集）与全站内容管理
   风格延续：暖纸色、圆润、手绘感的轻描边
   ========================================================= */

/* ---------- 类型角标 ---------- */
.m-tag { font-size: 0.7rem; padding: 1px 8px; border-radius: 999px; vertical-align: middle; }
.m-tag.video { background: rgba(201, 123, 90, .16); color: #a1543a; }
.m-tag.image { background: rgba(179, 166, 201, .22); color: #6b5b8a; }

/* ---------- 列表缩略图 ---------- */
.m-thumb {
  position: relative; flex: 0 0 auto; display: block;
  width: 88px; height: 62px; border-radius: 12px; overflow: hidden;
  background: var(--paper-2); border: 1px solid var(--line);
}
.m-thumb img { width: 100%; height: 100%; object-fit: cover; }
.m-thumb .m-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.95rem; background: rgba(58, 53, 45, .34);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .4);
}
.li-title { font-weight: 500; }
.li-sum {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin: 2px 0 4px;
}

/* ---------- 视频播放器 ---------- */
.m-player {
  position: relative; width: 100%; margin: 0 0 20px;
  border-radius: 18px; overflow: hidden; background: #26221c;
  border: 1px solid var(--line); box-shadow: var(--shadow-soft);
}
.m-player video { width: 100%; display: block; max-height: 76vh; background: #26221c; }
.m-player.m-embed { position: relative; padding-top: 56.25%; height: 0; }
.m-player.m-embed iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block;
}
.m-srcnote { margin: -14px 0 22px; }
.m-srcnote a { color: var(--terra); }

/* 不支持内嵌的平台：诚实降级成外链卡片 */
.m-linkcard {
  display: block; margin: 0 0 20px; border-radius: 18px; overflow: hidden;
  border: 1px dashed var(--line); background: var(--card); text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.m-linkcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.m-linkcard img { width: 100%; max-height: 320px; object-fit: cover; }
.m-linktext {
  display: block; padding: 18px 20px; text-align: center;
  font-size: 0.9rem; color: var(--ink-soft); line-height: 1.7;
}
.m-linkcard:hover .m-linktext { color: var(--terra); }

/* ---------- 图集 ---------- */
.m-gallery {
  display: grid; gap: 12px; margin: 0 0 22px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.m-gallery[data-count="1"] { grid-template-columns: 1fr; }
.m-fig {
  margin: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in;
  background: var(--paper-2); border: 1px solid var(--line);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.m-fig:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.m-fig img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; display: block; }
.m-gallery[data-count="1"] .m-fig img { max-height: 70vh; object-fit: contain; background: var(--paper-2); }
.m-fig figcaption { font-size: 0.8rem; color: var(--ink-soft); padding: 8px 12px; }

/* ---------- 灯箱 ---------- */
.m-lightbox {
  position: fixed; inset: 0; z-index: 1200; display: none;
  align-items: center; justify-content: center;
  background: rgba(42, 38, 32, .9); backdrop-filter: blur(4px);
}
.m-lightbox.on { display: flex; }
.m-lightbox img {
  max-width: 88vw; max-height: 82vh; border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.m-lb-close, .m-lb-prev, .m-lb-next {
  position: absolute; color: #f6efe0; font-size: 2rem; line-height: 1;
  width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .1);
}
.m-lb-close { top: 22px; right: 22px; font-size: 1.7rem; }
.m-lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.m-lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.m-lb-close:hover, .m-lb-prev:hover, .m-lb-next:hover { background: rgba(255, 255, 255, .22); }
.m-lb-cap {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: #f6efe0; font-size: 0.85rem; opacity: .85; text-align: center; max-width: 80vw;
}

/* ---------- 写内容页：类型切换 ---------- */
.type-tabs { border-bottom: none; margin-bottom: 10px; }
.type-bar { margin-top: -6px; }
.type-only[hidden] { display: none; }

/* ---------- 图集编辑区 ---------- */
.gal-edit { display: grid; gap: 12px; margin-top: 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.gal-item {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 8px;
}
.gal-item img { width: 100%; height: 110px; object-fit: cover; border-radius: 10px; }
.gal-item .gal-cap { font-size: 0.8rem; padding: 6px 10px; }
.gal-ops { display: flex; gap: 6px; }
.gal-ops .btn { padding: 4px 10px; font-size: 0.78rem; flex: 1; }
.gal-ops .btn:disabled { opacity: .38; cursor: not-allowed; }
.btn-ghost.danger { color: #a3483a; border-color: rgba(169, 72, 58, .3); }

/* ---------- 上传进度 ---------- */
.vg-progress { margin-top: 12px; }
.vg-bar { height: 8px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.vg-bar > i { display: block; height: 100%; width: 0; background: var(--mustard); transition: width .25s linear; }
.vg-progress .mini { display: block; margin-top: 6px; }

/* ---------- 即时校验提示 ---------- */
.ok-tip { color: var(--sage-deep); }
.warn-tip { color: #8a6413; }
.err-tip { color: #a3483a; }

/* ---------- 详情页封面 ---------- */
.a-cover-img { width: 100%; border-radius: 18px; margin-bottom: 24px; }

/* ---------- 后台：内容编辑器 ---------- */
.cms-page-group { margin-bottom: 26px; }
.cms-page-group > h4 {
  font-family: var(--serif); font-size: 1.05rem; margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.cms-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.cms-row:last-child { border-bottom: none; }
.cms-row .cms-key {
  flex: 0 0 34%; min-width: 0; font-size: 0.74rem; color: var(--ink-faint);
  word-break: break-all; line-height: 1.5;
}
.cms-row .cms-key b { display: block; color: var(--ink-soft); font-size: 0.8rem; font-weight: 500; }
.cms-row .cms-field { flex: 1; min-width: 0; }
.cms-row textarea.input { min-height: 44px; font-size: 0.88rem; padding: 8px 12px; resize: vertical; }
.cms-row.changed textarea.input { border-color: var(--mustard); background: #fffaf0; }
.cms-row.auto .cms-key b::after {
  content: "自动"; margin-left: 6px; font-size: 0.66rem;
  background: var(--paper-2); color: var(--ink-faint);
  padding: 0 6px; border-radius: 999px;
}
.cms-thumb {
  width: 108px; height: 72px; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--line); background: var(--paper-2);
}
.cms-toolbar {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  position: sticky; top: 74px; z-index: 20;
  background: rgba(251, 246, 235, .94); backdrop-filter: blur(6px);
  padding: 12px 0; margin-bottom: 16px; border-bottom: 1px solid var(--line);
}
.cms-toolbar .input { flex: 1 1 200px; }
.imp-log {
  max-height: 240px; overflow: auto; background: var(--paper-2);
  border-radius: 12px; padding: 12px 14px; font-size: 0.8rem;
  line-height: 1.7; white-space: pre-wrap; word-break: break-all;
}

/* ================================================================
   第六阶段：首页头条 / 留言墙 / 分页 / 骨架屏 / 回到顶部
   ================================================================ */

/* ---------------- 站点数据条（首页 hero 下方） ---------------- */
.stat-strip {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px;
}
.stat-chip {
  display: inline-flex; align-items: baseline; gap: 4px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 15px;
  font-size: 0.82rem; color: var(--ink-soft);
  box-shadow: var(--shadow-soft);
}
.stat-chip b {
  font-family: var(--serif); font-size: 1.05rem; color: var(--terra);
  font-weight: 600; margin-right: 1px;
}

/* ---------------- 回到顶部 ---------------- */
.back-top {
  position: fixed; right: 22px; bottom: 26px; z-index: 60;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-soft);
  font-size: 1.1rem; line-height: 1; cursor: pointer;
  box-shadow: var(--shadow-soft);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
}
.back-top.on { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { color: var(--terra); border-color: var(--terra); }

/* ---------------- 骨架屏 ---------------- */
.sk-line, .sk-block {
  background: linear-gradient(90deg, var(--paper-2) 25%, #efe7d6 37%, var(--paper-2) 63%);
  background-size: 400% 100%;
  animation: sk-shine 1.4s ease-in-out infinite;
  border-radius: 12px;
}
.sk-line { height: 14px; margin-bottom: 10px; }
.sk-line.lg { height: 44px; width: 62%; border-radius: 14px; }
.sk-line.md { height: 18px; width: 38%; margin-bottom: 22px; }
.sk-boards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.sk-block { height: 260px; border-radius: var(--radius); }
@keyframes sk-shine {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* ---------------- 新闻头条 ---------------- */
.hl-lead-card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 32px 26px;
  box-shadow: var(--shadow-soft); overflow: hidden;
}
.hl-lead-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: linear-gradient(180deg, var(--terra), var(--mustard));
}
.hl-lead-tag {
  display: inline-block; font-size: 0.72rem; letter-spacing: .06em;
  padding: 3px 10px; border-radius: 999px; margin-bottom: 12px;
  background: var(--paper-2); color: var(--ink-soft);
}
.hl-lead-tag.cn { background: rgba(201,123,90,.14); color: var(--terra); }
.hl-lead-tag.gl { background: rgba(140,164,126,.18); color: var(--sage-deep); }
.hl-lead-title {
  display: block; font-family: var(--serif);
  font-size: clamp(1.25rem, 2.6vw, 1.85rem); line-height: 1.45;
  color: var(--ink); text-decoration: none;
  transition: opacity .18s var(--ease), color .2s var(--ease);
  min-height: 2.9em;
}
.hl-lead-title:hover { color: var(--terra); }
.hl-lead-meta {
  margin-top: 14px; font-size: 0.82rem; color: var(--ink-faint);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.hl-lead-go { color: var(--terra); margin-left: auto; }
.hl-dots { display: flex; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.hl-dot {
  width: 7px; height: 7px; padding: 0; border: none; border-radius: 50%;
  background: var(--line); cursor: pointer; transition: all .2s var(--ease);
}
.hl-dot.on { background: var(--terra); width: 20px; border-radius: 999px; }

.hl-boards {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px; margin-top: 22px;
}
.hl-board {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px;
  box-shadow: var(--shadow-soft);
}
.hl-board h3 {
  font-family: var(--serif); font-size: 1.12rem; margin-bottom: 14px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
}
.hl-list { list-style: none; margin: 0; padding: 0; }
.hl-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 0; border-bottom: 1px dashed var(--line);
}
.hl-item:last-child { border-bottom: none; }
.hl-rank {
  flex: 0 0 22px; text-align: center; font-family: var(--serif);
  font-size: 0.92rem; color: var(--ink-faint);
}
.hl-item.top1 .hl-rank, .hl-item.top2 .hl-rank, .hl-item.top3 .hl-rank {
  color: #fff; background: var(--terra); border-radius: 6px;
  line-height: 20px; height: 20px; font-size: 0.78rem;
}
.hl-item.top2 .hl-rank { background: var(--mustard); }
.hl-item.top3 .hl-rank { background: var(--sage); }
.hl-item a {
  flex: 1 1 auto; min-width: 0; color: var(--ink); text-decoration: none;
  font-size: 0.92rem; line-height: 1.5;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hl-item a:hover { color: var(--terra); }
.hl-src { flex: 0 0 auto; font-size: 0.72rem; color: var(--ink-faint); }

/* ---------------- 留言墙 ---------------- */
.gb-form {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px;
  box-shadow: var(--shadow-soft); margin-bottom: 26px;
}
.gb-row { display: flex; gap: 12px; align-items: center; }
.gb-row + .gb-row { margin-top: 12px; }
.gb-input { flex: 1 1 auto; font-size: 1rem; }
.gb-nick { flex: 1 1 auto; max-width: 260px; }
.gb-counter {
  flex: 0 0 auto; font-size: 0.8rem; color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.gb-counter.over { color: var(--terra); font-weight: 600; }
.hint.warn { color: var(--terra); }

.gb-wall {
  columns: 4 200px; column-gap: 16px;
}
.gb-note {
  break-inside: avoid; margin: 0 0 16px; padding: 16px 16px 12px;
  border-radius: 14px; border: 1px solid var(--line);
  background: var(--paper-2);
  box-shadow: 0 4px 14px rgba(90,76,55,.07);
  transition: transform .24s var(--ease), box-shadow .24s var(--ease);
}
.gb-note:hover { transform: translateY(-3px) rotate(0deg) !important; box-shadow: var(--shadow-lift); }
.gb-text {
  font-size: 0.98rem; line-height: 1.6; color: var(--ink);
  margin: 0 0 10px; word-break: break-word;
}
.gb-who { font-size: 0.78rem; color: var(--ink-soft); }
.gb-time { font-size: 0.72rem; color: var(--ink-faint); float: right; }
/* 便签配色（暖纸系，6 档） */
.gb-c0 { background: #fdf4e4; }
.gb-c1 { background: #f8f0e2; }
.gb-c2 { background: #eff3e7; }
.gb-c3 { background: #f9ece8; }
.gb-c4 { background: #f3eef5; }
.gb-c5 { background: #fdf3da; }
/* 轻微歪一点，像真的贴上去的 */
.gb-note:nth-child(6n+1) { transform: rotate(-1.1deg); }
.gb-note:nth-child(6n+2) { transform: rotate(0.8deg); }
.gb-note:nth-child(6n+3) { transform: rotate(-0.5deg); }
.gb-note:nth-child(6n+4) { transform: rotate(1.2deg); }
.gb-note:nth-child(6n+5) { transform: rotate(-0.8deg); }
.gb-note:nth-child(6n+6) { transform: rotate(0.4deg); }
.gb-note.gb-new { animation: gb-pop .8s var(--ease); }
@keyframes gb-pop {
  0% { transform: scale(.86) rotate(-4deg); opacity: 0; }
  60% { transform: scale(1.04) rotate(1deg); opacity: 1; }
  100% { transform: none; opacity: 1; }
}

/* ---------------- 分页器（社区 / 商城） ---------------- */
.pager {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; flex-wrap: wrap; margin-top: 24px;
}
.pg {
  min-width: 38px; height: 38px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; color: var(--ink-soft);
  font: inherit; font-size: 0.9rem; cursor: pointer;
  transition: all .2s var(--ease);
}
.pg:hover:not(:disabled) { border-color: var(--sage); color: var(--sage-deep); }
.pg.on { background: var(--sage); border-color: var(--sage); color: #fff; }
.pg:disabled { opacity: .4; cursor: default; }
.pg-info { font-size: 0.82rem; color: var(--ink-faint); margin: 0 8px; }
.pg-gap { color: var(--ink-faint); padding: 0 2px; }

/* ---------------- 文章操作辅助（分享） ---------------- */
.share-btn.done { color: var(--sage-deep) !important; }

/* ---------------- 窄屏 ---------------- */
@media (max-width: 780px) {
  .hl-boards, .sk-boards { grid-template-columns: 1fr; }
  .gb-wall { columns: 2 150px; }
  .gb-nick { max-width: none; }
  .hl-lead-card { padding: 22px 20px 20px; }
}

/* 商城：热销角标 + 骨架卡片 */
.shop-cover { position: relative; }
.shop-hot {
  position: absolute; top: 10px; left: 10px;
  background: var(--terra); color: #fff; font-size: 0.68rem;
  padding: 2px 9px; border-radius: 999px; letter-spacing: .04em;
  box-shadow: 0 2px 8px rgba(201,123,90,.35);
}
.sk-card { pointer-events: none; }
.sk-card .sk-line { margin-bottom: 8px; }
