
:root {
  --bg: #0a0a0c; --bg2: #121214; --card: #18181c; --card-hover: #1f1f24;
  --border: #26262e; --text: #e8e8ec; --muted: #6a6a74; --muted2: #8a8a94;
  --accent: #ff4477; --accent2: #ff6699; --accent-soft: rgba(255,68,119,.08);
  --gold: #d4a851;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6;
}
::selection { background: var(--accent); color: #fff; }

/* 顶栏 */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(10,10,12,.92); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1400px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-logo { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-logo .icon { font-size: 22px; }
.nav-cities { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav-cities::-webkit-scrollbar { display: none; }
.nav-sub { font-size: 12px; color: var(--muted); flex-shrink: 0; }
.nav-toggle { padding: 4px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--muted2); font-size: 13px; cursor: pointer; transition: .2s; flex-shrink: 0; }
.nav-toggle:hover { border-color: var(--accent); color: var(--accent); }
.nav-city-chip { padding: 4px 12px; border-radius: 16px; border: 1px solid var(--border); background: var(--card); color: var(--muted2); font-size: 13px; cursor: pointer; transition: .2s; white-space: nowrap; flex-shrink: 0; }
.nav-city-chip:hover { border-color: var(--accent); color: var(--text); }
.nav-city-chip.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }

/* 折叠面板 */
.collapse-panel { max-height: 0; overflow: hidden; transition: max-height .3s; max-width: 700px; margin: 0 auto; padding: 0 24px; }
.collapse-panel.open { max-height: 600px; }

/* 图片网格 */
.grid { max-width: 1400px; margin: 0 auto; padding: 16px 16px 80px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.photo-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: .3s; cursor: pointer; position: relative; }
.photo-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.photo-img { width: 100%; aspect-ratio: 3/4; object-fit: cover; background: var(--bg2); display: block; transition: .3s; }
.photo-card:hover .photo-img { transform: scale(1.03); }
.photo-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.8) 0%, transparent 50%); display: flex; align-items: flex-end; padding: 16px; opacity: 0; transition: .3s; }
.photo-card:hover .photo-overlay { opacity: 1; }
.photo-info { color: #fff; }
.photo-info-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.photo-info-meta { font-size: 12px; color: rgba(255,255,255,.7); }
.photo-badge { position: absolute; top: 12px; left: 12px; font-size: 11px; padding: 3px 10px; border-radius: 12px; background: rgba(0,0,0,.6); backdrop-filter: blur(8px); color: #fff; font-weight: 600; }

/* 加载更多 */
.load-more { text-align: center; padding: 40px; }
.load-more button { padding: 12px 32px; background: var(--accent); color: #fff; border: 0; border-radius: 50px; font-size: 15px; font-weight: 600; cursor: pointer; transition: .2s; }
.load-more button:hover { background: var(--accent2); transform: scale(1.05); }

/* 空状态 */
.empty { text-align: center; padding: 60px; color: var(--muted); }

/* Footer */
.footer { text-align: center; padding: 40px 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.footer a { color: var(--accent); text-decoration: none; }

/* 搜索 */
.search-row { max-width: 500px; margin: 0 auto 32px; position: relative; padding: 0 24px; }
.search-row input { width: 100%; padding: 12px 16px 12px 42px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; color: var(--text); font-size: 14px; outline: none; transition: .2s; }
.search-row input:focus { border-color: var(--accent); }
.search-row svg { position: absolute; left: 38px; top: 50%; transform: translateY(-50%); color: var(--muted); }

/* 灯箱 */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 500; display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.show { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 12px; object-fit: contain; }
.lightbox-close { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--card); color: #fff; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.lightbox-close:hover { color: var(--accent); }
.lightbox-info { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.8); font-size: 14px; text-align: center; }

@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 12px 60px; }
  .photo-img { aspect-ratio: 3/4; }
  .cities { gap: 6px; }
  .city-chip { padding: 6px 14px; font-size: 13px; }
}

/* 频道模式 */
.masonry-item { break-inside: avoid; margin-bottom: 10px; border-radius: 10px; overflow: hidden; cursor: pointer; position: relative; background: var(--card); border: 1px solid var(--border); transition: .3s; }
.masonry-item:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.masonry-item img { width: 100%; display: block; background: var(--bg2); }
.loading-state { text-align: center; padding: 100px 20px; color: var(--muted); }
.spinner { display: inline-block; width: 32px; height: 32px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; margin-bottom: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--card); border: 1px solid var(--accent); color: var(--accent); padding: 10px 24px; border-radius: 20px; font-size: 14px; opacity: 0; transition: .3s; z-index: 600; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
