:root { --bg:#f7f8fa; --card:#fff; --text:#2b2f36; --muted:#8a919c; --accent:#3b82f6; --radius:16px; --shadow:0 1px 3px rgba(0,0,0,.06),0 4px 16px rgba(0,0,0,.05); }
* { box-sizing:border-box; margin:0; padding:0; }
body { background:var(--bg); color:var(--text); font-family:-apple-system,"PingFang SC","Helvetica Neue",sans-serif; -webkit-font-smoothing:antialiased; }
.site-header { text-align:center; padding:40px 16px 8px; }
.site-header h1 { font-size:28px; font-weight:700; letter-spacing:.5px; }
.subtitle { color:var(--muted); margin-top:6px; font-size:14px; }
.back { color:var(--accent); text-decoration:none; font-size:14px; display:inline-block; margin-bottom:8px; }
.gallery-list { max-width:720px; margin:24px auto 40px; padding:0 16px; display:grid; grid-template-columns:1fr; gap:16px; }
.gallery-card { background:var(--card); border-radius:var(--radius); box-shadow:var(--shadow); padding:20px; text-decoration:none; color:var(--text); transition:transform .15s ease; }
.gallery-card:hover { transform:translateY(-2px); }
.gallery-card h2 { font-size:18px; }
.gallery-card .meta { color:var(--muted); font-size:13px; margin-top:6px; }
.image-list { max-width:720px; margin:16px auto 40px; padding:0 16px; display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.image-card { background:var(--card); border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden; }
.image-card img { width:100%; display:block; cursor:zoom-in; }
.image-card .caption { padding:12px 16px; font-size:14px; color:var(--text); }
.image-card .caption .muted { color:var(--muted); font-size:12px; margin-top:2px; }
.lightbox { position:fixed; inset:0; background:rgba(0,0,0,.92); display:flex; align-items:center; justify-content:center; z-index:10; touch-action:manipulation; }
.lightbox img { max-width:96vw; max-height:92vh; border-radius:8px; }
.hidden { display:none; }
.site-footer { text-align:center; color:var(--muted); font-size:12px; padding:24px 0 40px; }
@media (min-width:640px){ .gallery-list{ grid-template-columns:1fr 1fr; } .image-list{ grid-template-columns:repeat(3,1fr); } }

/* 图片查看器：左右切换按钮 + 计数器 */
.lightbox { cursor:zoom-out; }
.lb-stage { display:flex; align-items:center; justify-content:center; max-width:96vw; max-height:92vh; }
.lb-stage img { max-width:96vw; max-height:92vh; border-radius:8px; cursor:zoom-out; user-select:none; -webkit-user-drag:none; -webkit-touch-callout:none; touch-action:manipulation; }
.lb-btn { position:fixed; top:50%; transform:translateY(-50%); z-index:20; width:52px; height:52px; border-radius:50%; border:none; background:rgba(255,255,255,.18); color:#fff; font-size:28px; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center; -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
.lb-btn:hover { background:rgba(255,255,255,.28); }
.lb-prev { left:12px; }
.lb-next { right:12px; }
.lb-count { position:fixed; bottom:16px; left:50%; transform:translateX(-50%); z-index:11; color:#fff; font-size:13px; background:rgba(0,0,0,.35); padding:4px 12px; border-radius:14px; }
@media (min-width:640px){ .lb-btn { width:60px; height:60px; font-size:32px; } .lb-prev{ left:24px; } .lb-next{ right:24px; } }

/* 首页图集卡片：缩略图预览 */
.gallery-card { cursor:pointer; }
.gallery-thumbs { display:grid; grid-template-columns:1fr 1fr 1fr; gap:6px; margin-bottom:12px; position:relative; }
.gallery-thumbs img { width:100%; aspect-ratio:3/4; object-fit:cover; border-radius:8px; cursor:zoom-in; }
.gallery-thumbs .thumb-more { position:absolute; right:6px; bottom:6px; background:rgba(0,0,0,.55); color:#fff; font-size:12px; padding:3px 8px; border-radius:10px; }

/* 首页图片墙：按图集分组，图片直接展示 */
.gallery-group { margin-bottom: 8px; }
.group-title { font-size: 16px; font-weight: 600; margin: 18px 0 10px; color: var(--text); }
.group-images { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
@media (min-width:640px){ .group-images { grid-template-columns: repeat(4, 1fr); gap: 10px; } }
.group-images .image-card { border-radius: 10px; box-shadow: none; }
.group-images .image-card img { aspect-ratio: 3/4; object-fit: cover; }

@media (max-width:639px){ .image-card .caption { padding:8px 10px; font-size:13px; } .image-card .caption .muted { font-size:11px; } }

/* 首页纯图片墙：直接平铺所有成交图 */
.image-wall { max-width:720px; margin:16px auto 40px; padding:0 10px; display:grid; grid-template-columns:repeat(3,1fr); gap:6px; }
.image-wall .wall-item { margin:0; }
.image-wall .wall-item img { width:100%; aspect-ratio:3/4; object-fit:cover; border-radius:8px; display:block; cursor:zoom-in; }
@media (min-width:640px){ .image-wall { grid-template-columns:repeat(4,1fr); gap:10px; padding:0 16px; } }

.lb-close { position:fixed; top:14px; left:14px; z-index:20; width:40px; height:40px; border-radius:50%; border:none; background:rgba(255,255,255,.18); color:#fff; font-size:26px; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center; -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
.lb-close:hover { background:rgba(255,255,255,.32); }

/* 图片墙日期角标 */
.wall-item { position:relative; margin:0; }
.wall-item .wall-date { position:absolute; left:0; right:0; bottom:0; padding:10px 8px 6px; font-size:12px; color:#fff; text-align:center; background:linear-gradient(transparent, rgba(0,0,0,.62)); border-radius:0 0 8px 8px; pointer-events:none; }
