/* 49图库 前台样式（2026-10-30） */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: #f2f0ee;
  color: #222;
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  padding-bottom: env(safe-area-inset-bottom);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* 顶部 */
.hd {
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(160deg, #a5140f 0%, #d1261c 55%, #e2451f 100%);
  box-shadow: 0 2px 10px rgba(120, 10, 0, .25);
  padding-top: env(safe-area-inset-top);
}
.hd-in {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px 8px;
}
.logo {
  font-size: 22px; font-weight: 800; color: #fff; letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25); flex: none;
}
.logo b { color: #ffd76a; font-size: 26px; margin-right: 1px; }
.hd-sub { color: #ffd9c9; font-size: 12px; line-height: 1.3; }
.hd-min .hd-in { padding: 10px 14px; }
.back { color: #ffe3d6; font-size: 15px; flex: none; padding-right: 4px; }

/* 分类 tab */
.tabs {
  max-width: 1080px; margin: 0 auto;
  display: flex; gap: 8px; overflow-x: auto;
  padding: 0 14px 10px; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; padding: 6px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); color: #ffe8df;
  font-size: 14px; white-space: nowrap;
}
.tab.on { background: #ffd76a; color: #8a1000; font-weight: 700; }

/* 公告 */
.notice {
  max-width: 1080px; margin: 10px auto 0; padding: 10px 14px;
  background: #fff8e6; color: #8a5b00; font-size: 13px;
  border: 1px solid #ffe1a3; border-radius: 10px; line-height: 1.5;
  margin-left: 12px; margin-right: 12px;
}
.notice-ic { margin-right: 6px; }

/* 列表 */
.wrap { max-width: 1080px; margin: 0 auto; padding: 8px 12px 20px; }
.grp { margin-top: 14px; background: #fff; border-radius: 14px; box-shadow: 0 1px 6px rgba(0, 0, 0, .06); overflow: hidden; }
.grp-hd {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; border-bottom: 1px solid #f0ecea;
  background: linear-gradient(90deg, #fff 0%, #fff8f5 100%);
}
.grp-hd::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: #d1261c; flex: none; }
.grp-t { font-weight: 700; font-size: 15px; color: #8a1000; }
.grp-d { color: #999; font-size: 12px; }
.grp-n { margin-left: auto; color: #b9906f; font-size: 12px; background: #fff3ea; padding: 1px 8px; border-radius: 999px; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 12px; }
.card { position: relative; display: block; border-radius: 10px; overflow: hidden; background: #f7f5f3; border: 1px solid #f0ebe7; }
.thumb { aspect-ratio: 3 / 4; background: #efeae6; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.card:active .thumb img { transform: scale(1.03); }
.cap {
  padding: 6px 8px 8px; font-size: 13px; color: #444;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tag {
  position: absolute; top: 6px; left: 6px;
  background: rgba(20, 12, 10, .62); color: #fff;
  font-size: 11px; padding: 1px 7px; border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

/* 更多 */
.more { text-align: center; padding: 16px 0 8px; }
.more button {
  border: 0; background: #fff; color: #c0281c;
  padding: 10px 30px; border-radius: 999px; font-size: 14px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .1);
}
.more button:disabled { color: #aaa; }
.empty { text-align: center; color: #999; padding: 60px 20px; font-size: 14px; }

/* 底部 */
.ft { text-align: center; color: #a08f88; font-size: 12px; padding: 10px 16px 28px; line-height: 1.8; }
.ft-tip { color: #b7a9a2; }

/* 单图页 */
.view { max-width: 760px; margin: 0 auto; padding: 12px 12px 30px; }
.view-hd { padding: 4px 4px 10px; }
.view-t { display: block; font-size: 16px; font-weight: 700; color: #333; }
.view-d { color: #999; font-size: 12px; }
.view-img { background: #fff; border-radius: 12px; padding: 8px; box-shadow: 0 1px 8px rgba(0, 0, 0, .08); }
.view-img img { width: 100%; height: auto; border-radius: 8px; }
.view-nav { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.vbtn {
  flex: 1; text-align: center; padding: 10px 0; border-radius: 999px;
  background: #fff; color: #c0281c; font-size: 14px; box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
}
.vbtn.dis { color: #bbb; }
.vnum { color: #999; font-size: 12px; flex: none; padding: 0 6px; }
.view-tip { text-align: center; color: #b7a9a2; font-size: 12px; margin-top: 14px; }

@media (min-width: 600px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .notice { margin-left: auto; margin-right: auto; }
}
@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1200px) {
  .grid { grid-template-columns: repeat(5, 1fr); }
}
