/* ===== 潜图网全局样式 ===== */
: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; }

/* 顶栏 */
.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; height: 60px; }
.logo { font-size: 22px; font-weight: 800; color: var(--primary); letter-spacing: 1px; }
.topbar nav { display: flex; gap: 4px; }
.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; } }
.preview-wrap { position: relative; 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; }

/* 摄影师独立站 */
.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; height: 56px; }
.site-header .s-logo { font-weight: 800; font-size: 18px; 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 { font-size: 30px; line-height: 1; font-weight: 700; }
.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; }
  .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; }
}

/* 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.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：文字模式 = 细线圆点图形 + 衬线文字；图片模式 = 等比图片） ===== */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo.logo-text {
  font-family: var(--font-serif); font-weight: 600; font-size: 22px;
  color: var(--logo-color); letter-spacing: .08em;
  transition: color var(--dur) var(--ease);
}
/* 细线方框 + 内部圆点（光圈/取景概念，纯 CSS 图形） */
.logo.logo-text::before {
  content: ''; width: 11px; height: 11px; flex: none;
  border: 1.5px solid currentColor; border-radius: 50%;
  display: inline-block; margin-right: 1px;
}
.logo .logo-img { height: 32px; width: auto; display: block; }
/* 位置变体：默认永远顶部左；center/right 仅为后台自定义保留 */
.topbar-inner.logo--center, .topbar-inner:has(.logo--center) { justify-content: center; }
.topbar-inner:has(.logo--right) { justify-content: flex-end; }

/* ===== 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; }
.hero-v2 .hero-credit {
  position: absolute; right: 24px; bottom: 20px; z-index: 2;
  color: rgba(255, 255, 255, .78); font-size: 13px; letter-spacing: .05em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}

/* ===== 居中搜索区块（模式 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 的细线圆点图形（它不带 .logo 类，单独补一份） */
.site-header .s-logo.logo-text::before {
  content: ''; width: 11px; height: 11px; flex: none;
  border: 1.5px solid currentColor; border-radius: 50%;
  display: inline-block; 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; }
}
