/* ===== 潜图网全局样式 ===== */
:root {
  --primary: #1a6feb;
  --primary-dark: #0f4cb3;
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --danger: #dc2626;
  --ok: #059669;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100dvh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; margin-top: 24px; }
.muted { color: var(--muted); font-size: 14px; }

/* 顶栏（v1.6.27：height→min-height，大 logo 图片可自动撑高） */
.topbar { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; padding: 0 20px; max-width: 1320px; margin: 0 auto; }
.logo { font-size: 28px; font-weight: 800; color: var(--primary); letter-spacing: 1.5px; }
.topbar nav { display: flex; gap: 6px; }
.topbar nav a { padding: 8px 14px; border-radius: 8px; font-size: 15px; color: var(--text); }
.topbar nav a:hover { background: var(--bg); color: var(--primary); }

/* 首屏 */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--hero-from, #0b1f3a) 0%, var(--hero-to, #1a6feb) 100%);
  color: #fff; padding: 72px 0 64px; text-align: center;
  /* v1.6.22：hero 最低高度兜底——has-carousel 下 padding 改 0、绝对定位子元素不撑父级，必须显式声明 */
  min-height: 440px;
}
.hero h1 { font-size: clamp(26px, 5vw, 42px); margin-bottom: 12px; letter-spacing: 2px; }
.hero p { opacity: .85; margin-bottom: 28px; }

/* ---- 首页轮播图模式（管理员在「网站设置」配置了轮播图时启用） ---- */
.hero.has-carousel { padding: 0; background: #0b1f3a; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity .8s ease; z-index: 1;
}
.hero-slide.active { opacity: 1; z-index: 2; }
/* v1.6.14：轮播改用 <img> 渲染（避免 background-image onerror 不可靠） */
.hero-slide > img.hero-slide-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  z-index: 0;
  background: linear-gradient(135deg, #0b1f3a 0%, #1a6feb 100%);
}
.hero-mask {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 12, 26, .58) 0%, rgba(5, 12, 26, .32) 55%, rgba(5, 12, 26, .55) 100%);
}
.hero-slide-content {
  position: relative; z-index: 3;
  min-height: 440px; padding: 72px 0 64px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}
.hero-slide-content h1 { font-size: clamp(26px, 5vw, 44px); margin-bottom: 12px; letter-spacing: 2px; }
.hero-slide-content p { opacity: .92; margin-bottom: 28px; font-size: 16px; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 42px; height: 42px; border: none; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .16); color: #fff; font-size: 26px; line-height: 1;
  transition: background .15s; backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: rgba(255, 255, 255, .32); }
.hero-arrow.prev { left: 16px; }
.hero-arrow.next { right: 16px; }
.hero-dots {
  position: absolute; left: 0; right: 0; bottom: 16px; z-index: 5;
  display: flex; gap: 8px; justify-content: center;
}
.hero-dot {
  width: 10px; height: 10px; padding: 0; border: none; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .45); transition: background .2s, transform .2s;
}
.hero-dot:hover { transform: scale(1.25); }
.hero-dot.on { background: #fff; transform: scale(1.25); }

/* 按钮 */
.btn {
  display: inline-block; background: var(--primary); color: #fff; border: none; cursor: pointer;
  padding: 10px 22px; border-radius: 10px; font-size: 15px; font-weight: 600;
  transition: background .15s, transform .1s;
}
.btn:hover { background: var(--primary-dark); }
.btn:active { transform: scale(.98); }
.btn-lg { padding: 13px 34px; font-size: 16px; }
.btn-ghost { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-ghost:hover { background: rgba(26, 111, 235, .06); }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: 5px 12px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* 卡片网格 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; display: block; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(16, 24, 40, .12); }
.card-img { aspect-ratio: 3 / 2; overflow: hidden; background: #e8edf3; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 12px 14px; }
.card-title { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-size: 13px; color: var(--muted); }

/* v1.6.11：作品状态角标（pending/rejected/hidden 显示在缩略图右上角） */
.card-badge { position: absolute; top: 8px; right: 8px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 18px; box-shadow: 0 1px 4px rgba(0,0,0,.18); pointer-events: none; z-index: 3; }
.card-badge-pending { background: #f59e0b; color: #fff; }
.card-badge-rejected { background: #dc2626; color: #fff; }
.card-badge-hidden { background: #6b7280; color: #fff; }
.price { color: #d97706; font-weight: 700; font-size: 15px; }

/* 摄影师卡片 */
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.ph-card { display: flex; gap: 14px; align-items: center; background: var(--card); padding: 18px; border-radius: var(--radius); box-shadow: var(--shadow); border-left: 4px solid var(--pc, var(--primary)); transition: transform .15s; }
.ph-card:hover { transform: translateY(-2px); }
.ph-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--pc, var(--primary)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; flex: none; overflow: hidden; }
.ph-avatar img.ph-avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; flex: none; }
.ph-name { font-weight: 700; }
.ph-desc { font-size: 13px; color: var(--muted); margin: 2px 0; }
.ph-count { font-size: 12px; color: var(--pc, var(--primary)); font-weight: 600; }

.section-title { font-size: 20px; margin: 40px 0 18px; display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ""; width: 4px; height: 20px; background: var(--primary); border-radius: 2px; }

/* 筛选栏 */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 20px 0; }
.filter-bar input[type="text"], .filter-bar select {
  padding: 9px 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; background: #fff; color: var(--text);
}
.filter-bar input[type="text"] { min-width: 220px; }

/* 详情页 */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; margin: 24px 0 48px; }
@media (max-width: 900px) { .detail-layout { grid-template-columns: 1fr; } }
/* ⚠️ align-self:start 不能删：.detail-layout 是 grid，子项默认 stretch。
 * 右侧 .side-panel 内容高（标题/价格/按钮/规格表/描述）常比图片高，grid 行高取两者最大 →
 * .preview-wrap 被拉到和信息栏一样高，而图只有 width:100% 高度自适应，
 * 于是图片下方露出一大块深色底（v1.6.28 老豆截图报「这张图下面有空白」的真根因）。
 * 与之对称的 .side-panel 早就写了 align-self:start，这里之前漏了。 */
.preview-wrap { position: relative; align-self: start; background: #0b1220; border-radius: var(--radius); overflow: hidden; user-select: none; }
.preview-wrap img { width: 100%; }
.side-panel { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); align-self: start; position: sticky; top: 80px; }
.side-panel h1 { font-size: 20px; margin-bottom: 8px; }
.side-panel .price { font-size: 26px; }
.spec-list { list-style: none; margin: 16px 0; border-top: 1px solid var(--border); }
.spec-list li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.spec-list li span:first-child { color: var(--muted); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.tag { background: var(--bg); color: var(--muted); font-size: 12px; padding: 3px 10px; border-radius: 99px; }

/* 防截屏动效水印层 */
.float-wm {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 5;
  background: repeating-linear-gradient(-30deg, transparent 0 110px, rgba(255, 255, 255, .05) 110px 170px);
}
.float-wm i {
  position: absolute; color: rgba(255, 255, 255, .30); transform: rotate(-18deg);
  font-style: normal; font-size: 13px; white-space: nowrap; text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
  animation: wm-drift 14s linear infinite;
}
@keyframes wm-drift { from { transform: rotate(-18deg) translateX(-30px); } to { transform: rotate(-18deg) translateX(30px); } }
body.shield-on .preview-wrap img { filter: blur(24px); }
.shield-tip { position: fixed; inset: 0; z-index: 999; background: rgba(6, 12, 24, .96); color: #fff; display: none; align-items: center; justify-content: center; flex-direction: column; gap: 10px; font-size: 18px; text-align: center; padding: 20px; }
body.shield-on .shield-tip { display: flex; }

/* 弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(10, 15, 26, .5); z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-mask.show { display: flex; }
.modal { background: #fff; border-radius: 14px; padding: 26px; width: 100%; max-width: 420px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.modal h3 { margin-bottom: 14px; }
.modal input, .modal select, .form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; margin-top: 4px; background: #fff; color: var(--text);
}
.modal label, .form-row label { font-size: 13px; color: var(--muted); display: block; margin-top: 12px; }
.modal .btn { width: 100%; margin-top: 18px; }

/* 表格 */
.table-wrap { overflow-x: auto; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { background: #fafbfc; color: var(--muted); font-weight: 600; font-size: 13px; }
tr:last-child td { border-bottom: none; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.badge.ok { background: #ecfdf5; color: var(--ok); }
.badge.warn { background: #fffbeb; color: #b45309; }
.badge.gray { background: #f3f4f6; color: var(--muted); }
.badge.danger { background: #fef2f2; color: var(--danger); }

/* 顶栏通知铃铛角标 */
.bell-count {
  position: absolute; top: 0; right: 4px; min-width: 17px; height: 17px;
  background: var(--danger); color: #fff; border-radius: 99px;
  font-size: 11px; font-weight: 700; line-height: 17px; text-align: center;
  padding: 0 4px; font-style: normal;
}

/* 后台 */
.admin-layout { display: grid; grid-template-columns: 200px 1fr; gap: 22px; margin: 22px 0 48px; }
@media (max-width: 800px) { .admin-layout { grid-template-columns: 1fr; } }
.admin-nav { background: var(--card); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); height: fit-content; position: sticky; top: 80px; }
.admin-nav a { display: block; padding: 10px 14px; border-radius: 8px; font-size: 14px; color: var(--text); margin-bottom: 2px; }
.admin-nav a.active, .admin-nav a:hover { background: rgba(26, 111, 235, .08); color: var(--primary); font-weight: 600; }
.panel { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.panel h3 { margin-bottom: 16px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.stat { background: linear-gradient(135deg, #f0f6ff, #fafbfe); border-radius: 10px; padding: 16px; }
.stat .num { font-size: 24px; font-weight: 800; color: var(--primary); }
.stat .lbl { font-size: 13px; color: var(--muted); margin-top: 2px; }
.form-row { margin-bottom: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }

/* v1.6.23 类目管理（后台）：三态子 tab + 类目行卡片 + 作品绑定 chips */
.cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.cat-row { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cat-row:last-child { border-bottom: 0; }
.cat-row > input[type=checkbox] { margin-top: 4px; width: 18px; height: 18px; flex: 0 0 auto; }
.cat-row-main { flex: 1 1 240px; min-width: 0; }
.cat-row-title { font-weight: 600; font-size: 15px; word-break: break-word; }
.cat-row-ops { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-reject { margin-top: 6px; font-size: 13px; color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; padding: 6px 10px; word-break: break-word; }
.cat-pick-box { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

/* v1.6.23 类目详情页头部（public/category.html，路由 /c/:slugOrId） */
.cat-hero { padding: 34px 0 26px; background: linear-gradient(120deg, var(--hero-from, #0b1f3a), var(--hero-to, #123c6b)); color: #fff; }
.cat-hero-crumb { font-size: 13px; opacity: .78; margin-bottom: 10px; }
.cat-hero-crumb a { color: #fff; opacity: .85; }
.cat-hero h1 { font-size: clamp(24px, 4.5vw, 38px); font-weight: 800; letter-spacing: 1px; margin: 0; word-break: break-word; }
.cat-hero-sub { opacity: .88; font-size: 15px; margin: 10px 0 0; }
.cat-hero-meta { opacity: .8; font-size: 13px; margin: 10px 0 0; }

/* v1.6.23 Hero / 轮播图前端防保存（配合后端水印重构：展示无水印，下载才带水印）
 * ⚠️ 这只是「提高小白白嫖成本」的前端 deterrent，不是绝对防护：
 * 禁用右键菜单、拖拽、iOS 长按保存菜单后，用户仍可用开发者工具 / 截屏 /
 * 直接请求图片 URL 拿到文件。真正的版权保护依赖服务端水印 + 授权下载链路。
 * 只作用于加了 .no-save 的元素（首页 Hero），画廊卡片的 lightbox 看大图不受影响。 */
.no-save, .no-save img {
  -webkit-touch-callout: none;   /* iOS Safari：长按不弹「存储到照片」菜单 */
  -webkit-user-select: none;
  user-select: none;             /* 禁文本选中，顺带挡掉桌面端长按拖拽 */
  -webkit-user-drag: none;       /* Safari / Chrome：禁止拖拽图片到桌面或新标签 */
}

/* ===== v1.6.25 可见版权条 .cr-bar：图本身无水印，靠 DOM 层保底，截屏即带版权 =====
 * 展示图已去水印（1200px 无水印 preview/thumb），所以版权保底移到页面上：
 * 任何截图 / 录屏都会连这条一起带走 —— 摄影师署名 + 站点网址，传播即带版权信息。
 * 关键约束：
 *  1) 默认常显（opacity:1），绝不做 hover 才显示 —— hover 态的版权条截屏截不到；
 *  2) pointer-events:none —— 不挡点击，点图看大图 / 点卡进详情页照旧；
 *  3) 半透明深色渐变 + 白色小字，暗底亮底都能读。 */
.cr-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6;
  padding: 20px 12px 7px;
  font-size: 12px; line-height: 1.4; color: #fff;
  letter-spacing: .02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .62) 100%);
  pointer-events: none;
  -webkit-user-select: none; user-select: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 版权条要贴着图片底边：给图片容器补定位上下文 */
.gallery-card .gc-img, .card-img { position: relative; }
/* hover 时标题/作者遮罩上移，避免和常显版权条叠在一起（遮罩 z-index:1 < 版权条 6） */
.gallery-card .gc-mask { padding-bottom: 30px; }

/* lightbox 大图：完整版权条（更完整文案，允许换行，窄屏两行也完整可读） */
.lightbox-figure { position: relative; display: inline-flex; max-width: 100%; }
.lb-cr {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6;
  padding: 30px 16px 10px;
  font-size: 13px; line-height: 1.5; color: #fff;
  letter-spacing: .02em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .7);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .7) 100%);
  pointer-events: none;
  border-radius: 0 0 10px 10px;
  -webkit-user-select: none; user-select: none;
}
/* 后端 preview 已降到 1200px：别把 1200 的图硬拉到 stage 的 1280 上，否则显糊 */
.lightbox-img { max-width: min(100%, 1200px); }

/* 摄影师独立站 */
.site-banner { color: #fff; padding: 56px 0 44px; background: linear-gradient(120deg, var(--s-banner, #082f49), var(--s-primary, #0e7490)); position: relative; }
/* 摄影师自设背景图：伪元素半透明暗化层保证文字可读（渐变底色仍兜底） */
.site-banner.has-cover { background-size: cover; background-position: center; }
.site-banner.has-cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(8, 47, 73, .62), rgba(14, 116, 144, .48)); }
.site-banner.has-cover .container { position: relative; z-index: 1; }
.site-banner .s-avatar { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; border: 3px solid rgba(255, 255, 255, .8); box-shadow: 0 4px 14px rgba(0, 0, 0, .3); margin-bottom: 14px; background: rgba(255, 255, 255, .18); }
.site-banner .s-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.site-banner .s-name { font-size: clamp(24px, 4vw, 36px); font-weight: 800; letter-spacing: 2px; }
.site-banner .s-style { display: inline-block; margin: 8px 0; background: rgba(255, 255, 255, .16); padding: 3px 14px; border-radius: 99px; font-size: 13px; }
.site-banner .s-bio { max-width: 640px; opacity: .88; margin-top: 8px; font-size: 14px; }
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.site-header .inner { display: flex; align-items: center; justify-content: space-between; min-height: 62px; padding: 0 18px; max-width: 1320px; margin: 0 auto; }
.site-header .s-logo { font-weight: 800; font-size: 22px; color: var(--s-primary, #0e7490); }
.site-header nav a { padding: 6px 10px; font-size: 14px; color: var(--muted); }

/* 登录/支付/订单页 */
.narrow { max-width: 460px; margin: 60px auto; }
.pay-qr { background: #fff; padding: 18px; border-radius: 14px; display: inline-block; box-shadow: var(--shadow); }
.pay-qr img { width: 240px; height: 240px; }
.status-icon { font-size: 52px; }
.success-box { text-align: center; padding: 30px 0; }

/* ========== 传输中心 v1.6.7：72px 大 FAB + 振铃 + 显眼位置 ========== */
.tf-fab {
  position: fixed; right: 28px; bottom: 28px; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  width: 72px; height: 72px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff; border: none; cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .35), 0 0 0 0 rgba(26, 111, 235, .5);
  transition: transform .15s, box-shadow .15s;
}
.tf-fab:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 16px 40px rgba(15, 23, 42, .45); }
.tf-fab-ico { display: flex; align-items: center; justify-content: center; }
.tf-fab-ico .ico { width: 30px; height: 30px; stroke-width: 1.4; }
.tf-fab.has-running {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  animation: tfPulse 1.6s ease-in-out infinite;
}
@keyframes tfPulse {
  0%, 100% { box-shadow: 0 12px 30px rgba(15, 23, 42, .35), 0 0 0 0 rgba(26, 111, 235, .5); }
  50% { box-shadow: 0 12px 30px rgba(26, 111, 235, .6), 0 0 0 16px rgba(26, 111, 235, 0); }
}
/* 振铃动画（每收到新任务，FAB 短暂振动一下） */
.tf-fab.shake { animation: tfShake .5s ease-in-out; }
@keyframes tfShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px) rotate(-5deg); }
  40% { transform: translateX(6px) rotate(5deg); }
  60% { transform: translateX(-4px) rotate(-3deg); }
  80% { transform: translateX(4px) rotate(3deg); }
}
.tf-fab-badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 22px; height: 22px; background: #ef4444; color: #fff;
  border-radius: 99px; font-size: 12px; font-weight: 700; line-height: 22px; text-align: center; padding: 0 7px;
  border: 2px solid #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2);
}
.tf-fab-badge:empty, .tf-fab-badge[hidden] { display: none; }

.tf-drawer-mask {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .45);
  z-index: 99; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.tf-drawer-mask.open { opacity: 1; pointer-events: auto; }

.tf-drawer {
  position: fixed; right: 0; top: 0; bottom: 0; z-index: 100;
  width: 440px; max-width: 100vw;
  background: #fff;
  box-shadow: -8px 0 30px rgba(15, 23, 42, .18);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .25s cubic-bezier(.4, 0, .2, 1);
}
.tf-drawer.open { transform: translateX(0); }
.tf-drawer-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fafbfc, #fff);
}
.tf-drawer-title { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.tf-drawer-ico { font-size: 20px; }
.tf-drawer-title b { font-size: 16px; font-weight: 700; }
.tf-drawer-stat { font-size: 12px; color: var(--muted); }
.tf-drawer-actions { display: flex; gap: 4px; }
.tf-icon-btn {
  width: 32px; height: 32px; padding: 0;
  border: 1px solid var(--border); background: #fff;
  border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.tf-icon-btn:hover { color: var(--text); background: #f3f4f6; border-color: #d1d5db; }

.tf-tabs { display: flex; gap: 4px; padding: 8px 12px; border-bottom: 1px solid var(--border); background: #fafbfc; }
.tf-tab {
  flex: 1; padding: 7px 10px;
  background: transparent; border: none; border-radius: 6px;
  font-size: 13px; color: var(--muted); cursor: pointer;
  transition: all .15s;
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.tf-tab:hover { background: #f3f4f6; color: var(--text); }
.tf-tab.active { background: var(--primary); color: #fff; font-weight: 600; }
.tf-tab-count {
  display: inline-flex; min-width: 18px; height: 18px; padding: 0 5px;
  background: rgba(0,0,0,.08); border-radius: 99px; font-size: 11px; font-weight: 600;
  align-items: center; justify-content: center;
}
.tf-tab.active .tf-tab-count { background: rgba(255,255,255,.3); }

.tf-drawer-body { flex: 1; overflow-y: auto; padding: 8px 12px; }
.tf-empty { text-align: center; padding: 40px 0; color: var(--muted); font-size: 13px; }
.tf-drawer-foot { padding: 10px 18px; border-top: 1px solid var(--border); font-size: 11px; text-align: center; background: #fafbfc; }

.tf-item {
  display: flex; gap: 10px; padding: 10px 8px;
  border-radius: 8px; margin-bottom: 6px;
  transition: background .15s;
  border: 1px solid transparent;
}
.tf-item:hover { background: #f9fafb; border-color: var(--border); }
.tf-thumb {
  width: 44px; height: 44px; flex: none;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
  background: rgba(26, 111, 235, .12); color: var(--primary);
}
.tf-item.done .tf-thumb { background: rgba(5, 150, 105, .12); color: var(--ok); }
.tf-item.error .tf-thumb { background: rgba(220, 38, 38, .12); color: var(--danger); }
.tf-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.tf-body { flex: 1; min-width: 0; }
.tf-name {
  font-size: 13px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  margin-bottom: 4px;
}
.tf-meta { font-size: 11px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.tf-pct { font-weight: 600; color: var(--primary); }
.tf-item.done .tf-pct { color: var(--ok); }
.tf-item.error .tf-pct { color: var(--danger); }
.tf-bar { height: 4px; background: var(--bg); border-radius: 99px; margin-top: 5px; overflow: hidden; }
.tf-bar i { display: block; height: 100%; background: var(--primary); border-radius: 99px; transition: width .25s ease; position: relative; }
.tf-item.done .tf-bar i { background: var(--ok); }
.tf-item.error .tf-bar i { background: var(--danger); }
.tf-bar i::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
  animation: tfShine 1.2s linear infinite;
}
@keyframes tfShine { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.tf-item.done .tf-bar i::after, .tf-item.error .tf-bar i::after { display: none; }

.tf-op { display: flex; flex-direction: column; gap: 4px; flex: none; }
.tf-op button {
  width: 24px; height: 24px; padding: 0;
  border: none; background: transparent; cursor: pointer;
  border-radius: 6px; font-size: 13px; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.tf-op button:hover { background: #f3f4f6; color: var(--text); }
.tf-op button.tf-op-cancel:hover { color: var(--danger); background: rgba(220, 38, 38, .1); }

@media (max-width: 640px) {
  .tf-fab { right: 14px; bottom: 14px; width: 48px; height: 48px; }
  .tf-fab-ico { font-size: 19px; }
  .tf-drawer { width: 100vw; }
}

footer.footer { border-top: 1px solid var(--border); background: #fff; padding: 26px 0; margin-top: 60px; color: var(--muted); font-size: 13px; text-align: center; }

/* ========== 缩略图占位符与破损图样式（v1.6.7 → v1.6.16 兜底） ========== */
.thumb-placeholder {
  width: 64px; height: 44px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  display: flex; align-items: center; justify-content: center;
  text-align: center; line-height: 1.2;
  color: var(--muted); cursor: pointer;
  border: 1px dashed var(--border);
  transition: all .15s;
}
.thumb-placeholder:hover { background: linear-gradient(135deg, #e5e7eb, #d1d5db); border-color: var(--primary); }
.thumb-broken {
  width: 64px; height: 44px;
  border-radius: 6px;
  background: rgba(220, 38, 38, .05) !important;
  border: 1px dashed var(--danger);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--danger); font-size: 11px;
}

/* v1.6.16：卡片图加载失败时的兜底（全宽填充卡片，不再出现「黑底+白色散落小方块」的诡异显示）
 * 之前 common.js 用 replaceWith(createElement('div')) 但 style.css 没定义 .card-img-fallback，
 * 导致浏览器用默认 display:inline 样式渲染出莫名其妙的小方块图样
 */
.card-img-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  color: #94a3b8;
  font-size: 13px;
  text-align: center;
  padding: 14px;
  cursor: pointer;
  transition: background .15s;
}
.card-img-fallback:hover { background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%); }
.card-img-fallback .cf-inner { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.card-img-fallback .cf-icon { font-size: 24px; color: #ef4444; }
.card-img-fallback .cf-text { font-size: 14px; color: #475569; font-weight: 600; }
.card-img-fallback .cf-sub { font-size: 11px; color: #94a3b8; }

/* v1.6.16：点击缩略图弹大图 lightbox 样式（1500px 大图 + ESC/方向键/遮罩点击 关闭） */
.lightbox-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8, 12, 22, .92);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
  backdrop-filter: blur(6px);
}
.lightbox-mask.show { display: flex; animation: lbIn .2s ease-out; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-stage {
  position: relative; width: 100%; max-width: 1280px;
  display: flex; flex-direction: column; align-items: center;
  gap: 14px;
  max-height: calc(100vh - 48px);
}
.lightbox-img {
  max-width: 100%; max-height: calc(100vh - 200px);
  object-fit: contain;
  border-radius: 10px;
  background: #0b1f3a;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .55);
}
.lightbox-loading {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #cbd5e1; font-size: 14px;
  background: rgba(8, 12, 22, .55);
  pointer-events: none;
  border-radius: 10px;
}
.lightbox-info {
  background: rgba(15, 23, 42, .75);
  color: #fff; padding: 14px 22px; border-radius: 12px;
  display: flex; align-items: center; gap: 18px;
  max-width: 100%; flex-wrap: wrap; justify-content: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}
.lightbox-info .lb-title { font-size: 16px; font-weight: 700; max-width: 480px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lightbox-info .lb-meta { display: flex; gap: 14px; color: #cbd5e1; font-size: 13px; align-items: center; }
.lightbox-info .lb-price { color: #fbbf24; font-weight: 700; font-size: 16px; }
.lightbox-info .lb-actions .btn { padding: 7px 18px; font-size: 14px; }
.lightbox-close {
  position: absolute; top: -42px; right: 0;
  background: rgba(15, 23, 42, .55); color: #fff;
  border: none; font-size: 28px; line-height: 1; cursor: pointer;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.lightbox-close:hover { background: rgba(15, 23, 42, .85); }
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(15, 23, 42, .55); color: #fff;
  border: none; font-size: 36px; line-height: 1; cursor: pointer;
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, transform .15s;
}
.lightbox-prev { left: -64px; }
.lightbox-next { right: -64px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(15, 23, 42, .85); transform: translateY(-50%) scale(1.08); }
@media (max-width: 900px) {
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 8px; right: 8px; }
}

/* ========== siteSettings 轮播图入口醒目卡片（v1.6.7） ========== */
.ss-carousel-card {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #f59e0b;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 18px;
  cursor: pointer;
  display: flex; align-items: center; gap: 14px;
  transition: all .2s;
}
.ss-carousel-card:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(245, 158, 11, .25); }
.ss-carousel-card .ss-icon { font-size: 28px; flex: none; }
.ss-carousel-card .ss-text { flex: 1; }
.ss-carousel-card b { display: block; font-size: 15px; margin-bottom: 4px; }
.ss-carousel-card .muted { font-size: 12px; color: #92400e; }
.ss-carousel-card .ss-arrow { font-size: 22px; color: #92400e; }

/* ========== 摄影师「我的主页」头部大头像卡片（v1.6.7） ========== */
.pf-header {
  display: flex; gap: 18px; align-items: center;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 1px solid #bae6fd;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 18px;
}
.pf-header-avatar {
  width: 88px; height: 88px; border-radius: 50%; flex: none;
  background: #f1f5f9; box-shadow: 0 4px 12px rgba(15, 23, 42, .1);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: #94a3b8;
  overflow: hidden; border: 4px solid #fff;
}
.pf-header-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pf-header-info { flex: 1; min-width: 0; }
.pf-header-info h3 { margin: 0 0 6px; font-size: 18px; }
.pf-header-info .muted { color: #475569; font-size: 13px; line-height: 1.6; }
.pf-card {
  border: 1px solid var(--border); border-radius: 12px;
  padding: 16px; margin-bottom: 14px; background: #fff;
  display: flex; gap: 16px; align-items: center;
}
.pf-card-pic {
  width: 96px; height: 64px; border-radius: 8px; flex: none;
  background: #f1f5f9; display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #cbd5e1;
  overflow: hidden;
  border: 1px solid var(--border);
}
.pf-card-pic img { width: 100%; height: 100%; object-fit: cover; }
.pf-card-body { flex: 1; min-width: 0; }
.pf-card-body h4 { margin: 0 0 4px; font-size: 14px; }
.pf-card-body .muted { color: var(--muted); font-size: 12px; margin-bottom: 8px; display: block; }
.pf-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .topbar-inner { padding: 0 14px; min-height: 60px; }
  .logo.logo-text { font-size: 22px; }
  .logo.logo-text::before { width: 14px; height: 14px; }
  /* v1.6.27：移动端大 logo 图片限高 44px（压过内联 style，避免撑爆小屏顶栏） */
  .logo .logo-img { height: 44px !important; }
  .topbar nav a { padding: 8px 8px; font-size: 14px; }
  .hero { padding: 48px 0 40px; }
  .hero.has-carousel { padding: 0; }
  .hero-slide-content { min-height: 340px; padding: 56px 0 48px; }
  .hero-arrow { width: 34px; height: 34px; font-size: 20px; }
  .hero-arrow.prev { left: 8px; }
  .hero-arrow.next { right: 8px; }
  .icon-search-top { width: 36px; height: 36px; }
}

/* v1.6.17：锚点目标避开 sticky header 遮挡（配合 site.html 平滑滚动） */
#works, #about { scroll-margin-top: 72px; }

/* v1.6.18 会员等级卡：hover 上浮 + 阴影 + 彩色渐变描边 */
.tier-card { position: relative; cursor: pointer; border: 2px solid transparent; transition: transform .25s ease, box-shadow .25s ease; }
.tier-card::before { content: ''; position: absolute; inset: -2px; border-radius: inherit; background: linear-gradient(135deg, var(--tier-color, #94a3b8), transparent 60%, var(--tier-color, #94a3b8)); z-index: -1; opacity: 0; transition: opacity .25s ease; }
.tier-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.tier-card:hover::before { opacity: 1; }
.tier-card .tier-edit { font-size: 12px; margin-top: 6px; opacity: 0; transition: opacity .25s ease; }
.tier-card:hover .tier-edit { opacity: .85; }

/* ===== v1.6.22 盗图版权提示 ===== */
.anti-piracy-toast {
  position: fixed; right: 24px; bottom: 24px; z-index: 1200;
  background: rgba(17, 24, 39, .94); color: #fff;
  padding: 12px 18px; border-radius: 10px; font-size: 14px;
  border-left: 3px solid #ef4444; box-shadow: 0 8px 24px rgba(0,0,0,.35);
  opacity: 0; transform: translateX(16px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.anti-piracy-toast.show { opacity: 1; transform: translateX(0); }
.lb-copyright { font-size: 12px; color: var(--muted, #94a3b8); margin-top: 2px; }

/* ==================================================================
   v1.6.22 大改版 · 模式 B+A 杂交设计令牌与新组件（纯增量，不改上方任何规则）
   参考 DOCS-v1.6.22-research.md：衬线点缀 / 大留白 / 慢动效 / 浅底列表
   ================================================================== */

/* ===== 设计令牌 ===== */
:root {
  --font-serif: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'STSong', 'SimSun', serif; /* CDN 失败自动回退系统衬线 */
  --font-sans: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);   /* 慢动效曲线 */
  --dur: .35s;                              /* 统一 0.35s 慢动效 */
  --logo-color: #1f2329;
  --dark-bg: #111111;
  --dark-fg: #e8e8e8;
}

/* 大标题用衬线，正文保留 sans */
h1, h2, h3 { font-family: var(--font-serif); }
.section-title { font-family: var(--font-serif); font-size: 26px; letter-spacing: .02em; margin: 96px 0 32px; } /* 板块间距 96px */
main.container > .section-title:first-child { margin-top: 56px; }
/* v1.6.28：类目导航插到搜索栏与「精选作品」之间后，首个 section-title 前多了这一块，
   原来的 :first-child 不再命中，这里补一条相邻选择器把间距收回来（96 → 76） */
main.container > .cats-nav + .section-title { margin-top: 76px; }

/* ===== 首页类目导航（v1.6.28）=====
   位置：搜索栏与「精选作品」之间；形态：封面圆图 + 类目名 + 作品数的卡片行。
   设计取向与首页一致：衬线小标题、大留白、慢动效，hover 轻微上浮 + 低调投影（不抢精选作品的戏）。 */
/* 不出文字标题（老豆：类目栏不需要「类目」二字），直接铺一行卡片 */
.cats-nav { margin-top: 72px; }
.cats-nav[hidden] { display: none; } /* 无类目时整块隐藏（防 CSS 覆盖 UA 的 [hidden]） */

.cats-row { display: flex; flex-wrap: wrap; gap: 14px; }
.cat-card {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px 10px 10px; border-radius: 99px;
  background: #fff; border: 1px solid rgba(0, 0, 0, .09);
  color: var(--text); text-decoration: none;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.cat-card:hover { transform: translateY(-2px); border-color: rgba(0, 0, 0, .22); box-shadow: 0 8px 22px rgba(0, 0, 0, .07); }
/* 封面圆图占位底色取画廊卡同款浅灰（style.css 无 --surface-2 变量，别引用不存在的令牌） */
.cat-card .cc-cover { width: 42px; height: 42px; flex: none; border-radius: 50%; overflow: hidden; background: #eceae6; }
.cat-card .cc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-card .cc-dot {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 18px; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}
.cat-card .cc-meta { display: flex; flex-direction: column; line-height: 1.25; }
.cat-card .cc-name { font-size: 15px; letter-spacing: .02em; }
.cat-card .cc-count { font-size: 12px; color: var(--muted); }

@media (max-width: 640px) {
  .cats-nav { margin-top: 48px; }
  /* 移动端改横向滑动，避免类目多时把页面撑得很长 */
  .cats-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .cats-row::-webkit-scrollbar { display: none; }
  .cat-card { flex: none; }
}

/* ===== 顶栏：浅色毛玻璃（v1.6.22） ===== */
.topbar {
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

/* ===== logo 容器（v1.6.22：文字模式 = 细线圆点图形 + 衬线文字；图片模式 = 等比图片）
   v1.6.27 升级：放大字号 + 放大圆点图形（取景器感：双圆环 + 中心点） */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo.logo-text {
  font-family: var(--font-serif); font-weight: 700; font-size: 28px;
  color: var(--logo-color); letter-spacing: .12em;
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.logo.logo-text:hover { transform: translateY(-1px); }
/* 升级版图形：双层圆环（镜头取景器概念）+ 中心圆点，纯 CSS 绘制 */
.logo.logo-text::before {
  content: ''; width: 18px; height: 18px; flex: none;
  border: 2px solid currentColor; border-radius: 50%;
  display: inline-block; position: relative;
  box-shadow: inset 0 0 0 3px var(--bg, #fff);
  background: currentColor;
  background: radial-gradient(circle at center, currentColor 0 2px, transparent 2.5px 100%);
  margin-right: 2px;
}
.logo .logo-img { height: 48px; width: auto; display: block; border-radius: 6px; }
/* 位置变体：默认永远顶部左；center/right 仅为后台自定义保留 */
.topbar-inner.logo--center, .topbar-inner:has(.logo--center) { justify-content: center; }
.topbar-inner:has(.logo--right) { justify-content: flex-end; }

/* ===== v1.6.27 顶栏搜索按钮（替换原 emoji 🔍）
   设计：圆形按钮 40×40，hover 蓝色高亮 + 轻动效，蓝色描边放大镜 SVG 沿用 --primary */
.icon-search-top {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: var(--text);
  text-decoration: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.icon-search-top:hover {
  background: rgba(26, 111, 235, .08);
  color: var(--primary);
  transform: scale(1.05);
}
.icon-search-top:active { transform: scale(.95); }
.icon-search-top svg { display: block; }
/* 搜索框内按钮（保留原 emoji 兼容，新代码也可换 SVG） */
.search-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff;
  border: none; border-radius: 0 10px 10px 0;
  padding: 0 22px; cursor: pointer; font-size: 16px;
  transition: background var(--dur) var(--ease);
}
.search-btn:hover { background: var(--primary-2, #155bb5); }

/* ===== Hero v2（v1.6.22：单幅精选大图 65vh，无自动轮播/无 CTA） ===== */
.hero-v2 {
  min-height: 65vh; padding: 0;
  display: flex; align-items: flex-end;
  background: linear-gradient(135deg, var(--hero-from, #0b1f3a) 0%, var(--hero-to, #1a6feb) 100%);
}
.hero-v2 .hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  animation: heroIn 1s ease-out; z-index: 0;
}
@keyframes heroIn { from { opacity: 0; } to { opacity: 1; } }
/* 暗色 overlay：保证左下衬线标题可读 */
.hero-v2 .hero-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.45) 100%);
}
.hero-v2 .hero-caption { position: relative; z-index: 2; padding-bottom: 52px; color: #fff; }
.hero-v2 .hero-caption h1 {
  font-size: clamp(28px, 4vw, 44px); letter-spacing: .06em; margin: 0 0 10px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}
.hero-v2 .hero-caption .hero-sub { opacity: .85; font-size: 15px; letter-spacing: .04em; }
/* v1.6.25：Hero 右下角版权条（截图必带署名 + 站点网址）；credit 上移一行避免重叠 */
.hero-v2 .hero-credit {
  position: absolute; right: 24px; bottom: 52px; z-index: 3;
  color: rgba(255, 255, 255, .78); font-size: 13px; letter-spacing: .05em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}
.hero-cr {
  left: auto; right: 24px; bottom: 18px;
  max-width: calc(100% - 48px);
  padding: 7px 14px; border-radius: 8px;
  background: rgba(0, 0, 0, .42);
  font-size: 13px;
}

/* ===== 居中搜索区块（模式 A 移植） ===== */
.search-section { padding: 88px 0 8px; text-align: center; }
.search-section.narrow { padding: 40px 0 8px; } /* 搜索结果页用（顶部已有搜索条） */
.search-box {
  position: relative; display: flex; align-items: stretch;
  width: 68%; max-width: 860px; height: 52px; margin: 0 auto;
  background: #fff; border: 1px solid rgba(0, 0, 0, .12); border-radius: 8px;
  overflow: visible;
  transition: box-shadow var(--dur) var(--ease);
}
.search-box:focus-within { box-shadow: 0 8px 30px rgba(0, 0, 0, .10); }
.search-type {
  border: none; border-right: 1px solid rgba(0, 0, 0, .08); background: none;
  padding: 0 12px; font-size: 14px; color: #666; cursor: pointer; outline: none;
}
.search-input { flex: 1; border: none; outline: none; padding: 0 16px; font-size: 16px; background: none; min-width: 0; }
.search-btn {
  border: none; background: var(--primary); color: #fff;
  padding: 0 24px; cursor: pointer; font-size: 16px;
  transition: background var(--dur) var(--ease);
}
.search-btn:hover { background: var(--primary-dark); }

/* 搜索建议下拉 */
.suggest-panel {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
  background: #fff; border: 1px solid rgba(0, 0, 0, .08); border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .12); overflow: hidden; text-align: left;
}
.suggest-item {
  display: block; width: 100%; padding: 10px 16px; border: none; background: none;
  text-align: left; font-size: 14px; color: var(--text); cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.suggest-item.on, .suggest-item:hover { background: #f5f5f4; }

/* 热门 chips + 统计行 */
.hot-tags { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.stat-line { margin-top: 26px; color: #999; font-size: 14px; letter-spacing: .04em; }
.stat-line b { color: #333; font-family: var(--font-serif); font-weight: 600; }

/* chips（热门词 / 排序 / 类目导航共用） */
.chip {
  display: inline-block; padding: 6px 14px; border-radius: 99px; font-size: 13px;
  border: 1px solid rgba(0, 0, 0, .10); background: none; color: #555; cursor: pointer;
  text-decoration: none;
  transition: all var(--dur) var(--ease);
}
.chip:hover { border-color: #222; color: #222; }
.chip.on { background: #222; color: #fff; border-color: #222; }

/* 搜索结果页：排序 chips + 结果数 */
.result-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 28px 0 8px; }
.result-count { font-size: 14px; color: var(--muted); }
.result-count b { color: var(--text); font-family: var(--font-serif); }

/* ===== 模式 1 画廊卡（CSS 真瀑布流，hover 浮出底部渐变遮罩） ===== */
.gallery-flow { column-count: 3; column-gap: 24px; }
.gallery-card {
  display: block; position: relative; break-inside: avoid;
  margin-bottom: 24px; border-radius: 6px; overflow: hidden;
  background: none; border: none;
}
.gallery-card .gc-img { overflow: hidden; border-radius: 6px; background: #eceae6; }
.gallery-card .gc-img img {
  width: 100%; display: block;
  transition: transform var(--dur) var(--ease);
}
.gallery-card:hover .gc-img img { transform: scale(1.03); }
.gallery-card .gc-mask {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 30px 14px 12px; color: #fff;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .58) 100%);
  opacity: 0; transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.gallery-card:hover .gc-mask { opacity: 1; transform: translateY(0); }
.gallery-card .gc-title {
  font-family: var(--font-serif); font-size: 14px;
  max-width: 65%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gallery-card .gc-author { font-size: 12px; color: rgba(255, 255, 255, .82); flex: none; }

/* ===== 模式 3 角标卡（最新上架 · 可购网格，3:4 裁切，角标仅两个） ===== */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card {
  position: relative; display: block; border-radius: 6px; overflow: hidden;
  background: #f0efed;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.product-card .pc-img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block;
  transition: transform var(--dur) var(--ease);
}
.product-card:hover .pc-img { transform: scale(1.03); }
.badge-price {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  background: rgba(17, 17, 17, .82); color: #fff;
  font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 4px;
}
.badge-licensed {
  position: absolute; right: 10px; top: 10px; z-index: 2;
  border: 1px solid rgba(255, 255, 255, .55); color: #fff;
  font-size: 11px; padding: 2px 6px; border-radius: 4px;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}

/* 搜索结果页摄影师命中行 */
.ph-hit-row { display: flex; gap: 16px; flex-wrap: wrap; margin: 18px 0 8px; }
.ph-hit {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 16px;
  transition: all var(--dur) var(--ease);
}
.ph-hit:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.ph-hit .ph-avatar { width: 38px; height: 38px; font-size: 16px; }
.ph-hit .ph-count { font-size: 12px; }

/* 加载更多按钮区 */
.load-more-wrap { text-align: center; margin: 40px 0 16px; }

/* 摄影师主页（site.html）对齐：banner 大标题衬线 + s-logo 衬线 */
.site-banner .s-name { font-family: var(--font-serif); letter-spacing: .12em; }
.site-header .s-logo { font-family: var(--font-serif); letter-spacing: .06em; }
/* s-logo 复用 logo-text 的双层圆环图形（v1.6.27 升级放大），它不带 .logo 类，单独补一份 */
.site-header .s-logo.logo-text::before {
  content: ''; width: 15px; height: 15px; flex: none;
  border: 2px solid currentColor; border-radius: 50%;
  display: inline-block; position: relative;
  background: radial-gradient(circle at center, currentColor 0 1.5px, transparent 2px 100%);
  margin-right: 8px;
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .gallery-flow { column-count: 2; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .search-box { width: 92%; }
  .section-title { margin: 64px 0 24px; }
}
@media (max-width: 560px) {
  .gallery-flow { column-count: 1; }
  .search-box { width: 100%; height: 48px; }
  .hero-v2 { min-height: 56vh; }
}

/* ===== v1.6.23 移动端响应式 + Logo 增量 ===== */

/* v1.6.23（任务 C）：暗底容器内的文字 logo 防御——photo.html 预览区 / lightbox 遮罩等暗底上
   限制亮度为浅色并加投影；!important 用于压过 applyLogoTo 写入的内联 color（深色配置值） */
.preview-wrap .logo-text,
.lightbox-mask .logo-text,
.on-dark .logo-text {
  color: var(--dark-fg, #e8e8e8) !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}

/* ===== v1.6.23 移动端响应式 ===== */

/* 汉堡按钮（默认隐藏；common.js initMobileNav 注入，≤640px 显示） */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 12px 11px;
  margin-left: auto;
  background: none; border: none; border-radius: 8px; cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.nav-toggle:hover { background: var(--bg); }
.nav-toggle-bar {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background: var(--text, #333);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
header.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
header.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
header.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* lightbox 手势：横向交给 JS 切换，竖向保留浏览器滚动 */
.lightbox-mask { touch-action: pan-y; }

/* 1024 档：平板/小型笔记本，温和放大可点区域（不影响 >1024 桌面布局） */
@media (max-width: 1024px) {
  .topbar nav a { padding: 10px 14px; }
  .site-header nav a { padding: 10px 14px; }
  .chip { padding: 9px 16px; }
}

/* 640 主档：顶栏汉堡折叠 + 触屏目标 ≥44px + iOS 输入框防缩放 + 后台防破版 */
@media (max-width: 640px) {
  /* 顶栏：logo 靠左，汉堡按钮靠右，nav 折叠为下拉面板 */
  .nav-toggle { display: flex; }
  .topbar-inner { justify-content: flex-start; gap: 10px; }
  .site-header .inner { justify-content: flex-start; gap: 10px; }
  .topbar nav, .site-header nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .14);
    display: none; padding: 6px 0; z-index: 60;
  }
  .topbar.nav-open nav, .site-header.nav-open nav { display: flex; }
  .topbar nav a, .site-header nav a {
    min-height: 44px; display: flex; align-items: center;
    padding: 10px 20px; font-size: 15px;
  }

  /* 触屏目标命中区 ≥44×44px */
  .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .btn-sm { min-height: 40px; }
  .chip { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 16px; }
  .search-btn { min-height: 44px; }
  .suggest-item { min-height: 44px; display: flex; align-items: center; }
  .hero-arrow { min-width: 44px; min-height: 44px; }
  .tag { min-height: 34px; display: inline-flex; align-items: center; }

  /* v1.6.23 类目 UI：操作按钮与勾选框同样按 ≥44px 触屏目标放大 */
  .cat-row-ops .btn, .cat-tabs .btn { min-height: 44px; }
  .cat-row > input[type=checkbox] { width: 24px; height: 24px; }
  .cat-pick-box .chip { min-height: 44px; }
  .cat-hero { padding: 24px 0 20px; }

  /* iOS 输入框/下拉防自动缩放（聚焦时 font-size ≥16px） */
  input, textarea, select { font-size: 16px !important; }

  /* 后台表格防破版：裸表格兜底横向滚动（.table-wrap 已有 overflow-x:auto） */
  .table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* 弹窗移动端全屏化（P1 后台防破版，沿用 ADR-2 裁定） */
  .modal-mask { padding: 0; align-items: stretch; justify-content: flex-start; }
  .modal {
    width: 100vw; max-width: 100vw; min-height: 100dvh;
    border-radius: 0; overflow-y: auto;
  }

  /* v1.6.25 版权条：移动端放大到 13px 保证 375px 窄屏可读
     （.cr-bar 单行省略号，.lb-cr 允许换行，完整文案不会被截断） */
  .cr-bar { font-size: 13px; padding: 22px 12px 8px; }
  .lb-cr { font-size: 13px; padding: 34px 14px 10px; }
  .hero-cr { right: 12px; bottom: 12px; max-width: calc(100% - 24px); }
}

/* ================= v1.6.33：后台「🤖 AI 打标」与「📍 地点管理」新增样式 =================
 * 只做「现有组件不够用」的那几处：小标签、进度条、日志框、缩略图勾选格、候选行。
 * 卡片/按钮/表格/徽章一律沿用原有 .panel / .btn / table / .badge，不重复造。
 * ⚠️ 本段是纯追加，不改上面任何已有规则。 */

/* 段落说明文字（AI 页与地点页共用）：比 .muted 稍大行高、留出与下一个控件的间距 */
.ai-note { font-size: 13px; line-height: 1.75; margin: 0 0 14px; }

/* 小标签：AI 关键词 / 搜索词 / 别名 / 邻居地点 —— 与 .badge 的区别是允许换行、可点击 */
.ai-chip {
  display: inline-block;
  padding: 2px 8px;
  margin: 0 4px 4px 0;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.7;
  background: #eef2ff;
  color: #3730a3;
  border: 1px solid #e0e7ff;
  white-space: nowrap;
}
/* AI 的「可搜索词」是另一套语义（只服务搜索），用绿系与展示关键词区分开 */
.ai-chip-search { background: #ecfdf5; color: #047857; border-color: #d1fae5; }
/* 可点击删除的别名标签（地点表单里 × 掉一个别名） */
.ai-chip-del { cursor: pointer; background: #f3f4f6; color: #374151; border-color: #e5e7eb; }
.ai-chip-del:hover { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }

/* 「AI 编的词被词表拦掉了」——浅色小字，不抢眼但要让站长看得见 */
.ai-dropped { font-size: 11px; color: #9ca3af; margin-top: 4px; line-height: 1.6; }
/* 单条失败原因：红色小字 */
.ai-err { font-size: 11px; color: #dc2626; margin-top: 3px; line-height: 1.6; }

/* 并发数滑块的当前值 */
.ai-conc-num { font-size: 16px; color: var(--primary); min-width: 24px; text-align: center; }

/* 长任务进度条（AI 打标 / 坐标扫描共用） */
.task-bar { height: 10px; background: #e5e7eb; border-radius: 99px; overflow: hidden; }
.task-bar-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark, #1a6feb));
  border-radius: 99px;
  transition: width .3s ease;
}
/* 进度面板里的小标题 */
.task-h { font-size: 13px; font-weight: 600; margin: 16px 0 6px; color: #374151; }
/* 运行日志：等宽字体 + 固定高度 + 内部滚动（最新的在底部，脚本会自动跟到底） */
.task-log {
  margin: 0;
  max-height: 190px;
  overflow: auto;
  padding: 10px 12px;
  background: #0f172a;
  color: #cbd5e1;
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-all;
}
/* 整批被中止时的红色提示（欠费 / 额度用尽这类致命错误） */
.task-err {
  padding: 8px 12px;
  border-radius: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 13px;
  line-height: 1.7;
}

/* 「批量给图片指定地点」的缩略图勾选网格 */
.place-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
  max-height: 460px;
  overflow: auto;
  padding: 4px;
}
.place-cell {
  display: block;
  position: relative;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.place-cell:hover { border-color: var(--primary); box-shadow: 0 2px 10px rgba(26, 111, 235, .12); }
.place-cell input[type="checkbox"] { position: absolute; top: 10px; left: 10px; z-index: 2; }
.place-cell-thumb { position: relative; display: block; }
.place-cell-thumb img {
  width: 100%; height: 92px; object-fit: cover;
  border-radius: 7px; display: block; background: #f3f4f6;
}
/* 有真实拍摄坐标的角标（提示站长「这张不标也行」） */
.place-cell-gps {
  position: absolute; right: 4px; bottom: 4px;
  background: rgba(4, 120, 87, .9);
  color: #fff;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 5px;
}
.place-cell-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.place-cell-sub { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; line-height: 1.5; }

/* 批量指定工具条（选地点 + 替换/追加 + 提交） */
.place-batch-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--surface-2, #f8fafc);
  border-radius: 10px;
}

/* 地点表单里的别名编辑区（已有别名 + 输入框） */
.place-alias-edit { display: block; margin: 4px 0 6px; }

/* 「🔄 检查附近关系」的折叠结果面板 */
.place-nearby {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2, #f8fafc);
}

/* AI 地点候选的每一行 */
.psug-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.psug-ops { display: flex; flex-direction: column; gap: 6px; }

/* 置信度进度条（AI 有多少把握） */
.conf-wrap {
  height: 6px;
  background: #e5e7eb;
  border-radius: 99px;
  margin: 6px 0 3px;
  overflow: hidden;
  max-width: 240px;
}
.conf-bar { height: 100%; background: #f59e0b; border-radius: 99px; }

/* 地点 chips 选中态用绿系，和后台上位蓝色的类目 chips 区分开（同一表单里两者会同时出现） */
.chip.place-pick.on { background: #047857; border-color: #047857; color: #fff; }

/* 窄屏下批量指定工具条改竖排，别把按钮挤出屏幕 */
@media (max-width: 640px) {
  .place-batch-bar { flex-direction: column; align-items: stretch; gap: 10px; }
  .place-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .psug-ops { flex-direction: row; flex-wrap: wrap; }
}

/* ================= v1.6.33：搜索结果页「地点命中」展示（纯追加，不改上面任何已有规则） =================
 * 三处：① 结果区顶部的地点命中说明行 ② 缩略图左上角的命中角标 ③ 建议下拉里的地点项
 * 约束：零外部依赖（图标一律 emoji）；角标小而不抢眼、窄屏不许盖住图片主体或撑破卡片。
 * 与已有元素的位置关系：右下角是常显版权条 .cr-bar（z-index 6），右上角是审核态 .card-badge，
 * 所以命中角标固定放左上角；.gc-mask 只在底部，互不遮挡。 */

/* ① 地点命中说明行：低调小字，不抢主标题 */
.sr-place-line { margin: 2px 0 4px; font-size: 13px; line-height: 1.9; color: var(--muted); }
.sr-place-line b { color: var(--text); font-family: var(--font-serif); }
/* 多地点时可点小标签：点了以该地点名重新搜索（沿用 .chip 的浅蓝系，但更小更轻） */
.sr-place-tag {
  display: inline-block; margin-right: 6px; padding: 1px 9px; border-radius: 99px;
  font-size: 12px; line-height: 1.8;
  background: #eef2ff; color: #3730a3; border: 1px solid #e0e7ff; text-decoration: none;
  transition: background var(--dur) var(--ease);
}
.sr-place-tag:hover { background: #e0e7ff; }

/* ② 卡片命中角标：半透明深色胶囊 + 白字小字；放左上角（右下版权条 / 右上审核角标已占用） */
.sr-badge {
  position: absolute; left: 8px; top: 8px; z-index: 4;
  max-width: calc(100% - 16px);
  padding: 2px 8px; border-radius: 99px;
  font-size: 11px; line-height: 17px; font-weight: 500; letter-spacing: .01em;
  color: #fff; background: rgba(17, 17, 17, .62);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  -webkit-user-select: none; user-select: none;
}
/* 照片自带 GPS 实测命中：比人工标注更可信，用青绿系区分开 */
.sr-badge-gps { background: rgba(4, 120, 87, .78); }
/* 「附近」是弱命中（图其实挂在邻居地点上）：用蓝灰系，视觉上比精确命中轻一档 */
.sr-badge-nearby { background: rgba(30, 58, 138, .62); }

/* ③ 建议下拉：地点项（type==='place'）染成地点绿，与关键词建议区分（图标 📍 由 common.js 给） */
.suggest-item.suggest-place { color: #047857; }

/* 窄屏：角标缩一档并贴边，最多一行省略号，不撑破卡片；地点行允许换行 */
@media (max-width: 640px) {
  .sr-badge { left: 6px; top: 6px; padding: 2px 7px; font-size: 10px; line-height: 16px; max-width: calc(100% - 12px); }
  .sr-place-line { font-size: 12px; }
}

/* ================= v1.6.34：地点管理 ================= */
/* ---------- 词典表格防挤压 ----------
 * 全局 th,td 是 white-space:nowrap（见本文件上方），别名的 chips 是无空格拼接的
 * inline-block → 永远不换行；td 上再写 max-width 只会把单元格卡窄、不裁剪内容，
 * chips 就画到隔壁坐标列上面了。给它们一个 flex 容器（flex-wrap 不受 white-space 影响）。 */
.pl-aliases { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.pl-aliases .ai-chip { margin: 0; }
.pl-more { font-size: 12px; cursor: help; }
.pl-coord { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; white-space: nowrap; }
.pl-ops { display: flex; gap: 6px; }
.pl-ops .btn { padding: 3px 8px; line-height: 1.4; }

/* ========== 行内 SVG 图标（v1.6.35 引入 → v1.6.36 全站统一） ==========
 * 背景见 common.js 顶部 ICO 那段注释：emoji 在不同系统上是**不同的设计**，
 * 压在实心按钮上还会被渲染成白色单色小字形（糊成一团），且各字形宽度不等导致按钮对不齐。
 * 全站 300 多处改走行内 SVG 后，这里统一规定它们长什么样：
 *   · 尺寸 15px、线宽 1.5、圆头圆角 —— 每一处图标粗细一致
 *   · 颜色 currentColor —— 图标自动跟随所在文字的颜色（蓝按钮里是白的、绿字里就是绿的）
 *   · 对齐用 em 不用 px —— 字号变大变小都还能跟文字基线对齐（-.18em 约等于视觉居中）
 */
.ico {
  width: 15px; height: 15px;
  display: inline-block; vertical-align: -.18em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
/* 尺寸变体：大图标把线宽调细，才与 15px 图标保持相同的视觉重量 */
.ico.icon-18 { width: 18px; height: 18px; }
.ico.icon-40 { width: 40px; height: 40px; stroke-width: 1.2; }
.ico.icon-52 { width: 52px; height: 52px; stroke-width: 1.1; }
/* 纯图标按钮：等宽等高、内容居中 */
.btn.ico-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 31px; height: 27px; padding: 0;
}
/* 操作列是表格里的紧凑行，再小一档 */
.pl-ops .btn.ico-btn { width: 30px; height: 26px; }
/* 图标 + 文字按钮（flex 版：强制居中对齐，比 inline 基线更稳） */
.btn.btn-ico { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn.btn-ico .ico { width: 14px; height: 14px; }

/* 后台左侧导航：图标固定在左、文字在右，整列纵向对齐；未选中时图标降为次要色，避免抢文字 */
.admin-nav a { display: flex; align-items: center; gap: 9px; }
.admin-nav a .ico { color: var(--muted); }
.admin-nav a:hover .ico, .admin-nav a.active .ico { color: var(--primary); }

/* 顶栏通知铃铛（图标换成 SVG 后不再需要 font-size；position:relative 是数字角标的定位上下文） */
.topbar-bell { position: relative; display: inline-flex; align-items: center; }
.topbar-bell .ico { width: 18px; height: 18px; }

/* 传输中心抽屉标题图标 */
.tf-drawer-ico { display: inline-flex; align-items: center; }
.tf-drawer-ico .ico { width: 20px; height: 20px; }

/* 提示条：带图标时改 flex，让图标与多行文案垂直居中而不是挤在首行 */
#__toast.toast-ico { display: flex; align-items: center; gap: 9px; }
#__toast.toast-ico .ico { width: 16px; height: 16px; }
.anti-piracy-toast { display: flex; align-items: center; gap: 9px; }
.anti-piracy-toast .ico { width: 16px; height: 16px; color: #f87171; }

/* 缩略图加载失败兜底 / 支付成功页大图标 / 详情页截屏提示 */
.card-img-fallback .cf-icon .ico { width: 26px; height: 26px; }
.status-icon { line-height: 1; }
.status-icon .ico { width: 56px; height: 56px; stroke-width: 1.1; color: var(--ok); }
.shield-ico { display: flex; justify-content: center; }
.shield-ico .ico { width: 44px; height: 44px; stroke-width: 1.2; color: #fbbf24; }

/* 搜索建议下拉：地点 / 关键词图标与文案左对齐 */
.suggest-item { display: flex; align-items: center; gap: 7px; }

/* ---------- 地图选点 ---------- */
.place-map-block { margin: 4px 0 14px; }
.place-map-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.place-map-bar input { flex: 1; min-width: 150px; max-width: 260px; }
.place-map-bar select { flex: 0 0 auto; max-width: 100%; }
.place-map-hits { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.place-map-hits:empty { display: none; }
.place-map-hits .btn { text-align: left; }
.place-map-tip { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 8px 0 0; }
.place-map-foot { margin-top: 8px; font-size: 12.5px; }
/* 地图容器必须建自己的层叠上下文：Leaflet 内部 pane 的 z-index 高达 800，
 * 不关起来会盖住站点顶栏和弹窗 */
#pf-map-el { height: 340px; border-radius: 10px; border: 1px solid var(--border);
  background: #eef1f4; position: relative; z-index: 0; }
.leaflet-container { font: inherit; background: #eef1f4; }
@media (max-width: 720px) {
  #pf-map-el { height: 260px; }
  .place-map-bar input { max-width: none; }
}

