/* ==========================================================================
   PixShare — 主样式表
   设计规范：主色 #FA4B6E（粉红）/ 暗色 #333 / 背景 #f5f5f7
   ========================================================================== */

/* ─── Reset & Base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:      #FA4B6E;
  --primary-dark: #e72c52;
  --primary-light:#fff0f3;
  --text:         #333;
  --text-muted:   #888;
  --border:       #e0e0e0;
  --bg:           #f5f5f7;
  --bg-light:     #fafafa;
  --bg-card:      #fff;
  --radius:       6px;
  --shadow:       0 2px 12px rgba(0,0,0,.08);
  --shadow-hover: 0 6px 20px rgba(0,0,0,.14);
  --nav-h:        56px;
  --container:    1200px;
  --font:         'PingFang SC','Microsoft YaHei','Helvetica Neue',sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: 14px; color: var(--text); background: var(--bg); line-height: 1.6; }
a { color: var(--text); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary); }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; background: transparent; }
input, textarea, select { font-family: inherit; font-size: 14px; }

/* ─── Layout ─────────────────────────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.row { display: flex; flex-wrap: wrap; gap: 20px; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.text-center { text-align: center; }

/* ─── Header / Navigation ────────────────────────────────────────────────── */
.site-header {
  width: 100%;
  height: var(--nav-h);
  background: linear-gradient(135deg, #2c2c2e 0%, #1a1a1c 100%);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 24px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-logo span { color: var(--primary); }

/* 右侧操作区：搜索 + 通知 + 用户 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

/* 搜索图标按钮 */
.header-search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: rgba(255,255,255,.75);
  font-size: 16px;
  transition: background .2s, color .2s;
  flex-shrink: 0;
}
.header-search-icon:hover {
  background: rgba(255,255,255,.12);
  color: var(--primary);
}

/* 通知铃铛 */
.header-notify-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: rgba(255,255,255,.75);
  font-size: 16px;
  transition: color .2s, background .2s;
  flex-shrink: 0;
}
.header-notify-icon:hover {
  background: rgba(255,255,255,.12);
  color: var(--primary);
}
.notify-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  padding: 0 5px;
  box-sizing: border-box;
}
.notify-dropdown-badge {
  display: inline-block;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
  border-radius: 9px;
  padding: 0 5px;
  margin-left: auto;
  box-sizing: border-box;
}

/* 搜索弹窗遮罩 */
.search-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s, visibility .22s;
}
.search-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}
/* 弹窗内容框 */
.search-modal-box {
  width: 90%;
  max-width: 640px;
  transform: translateY(-16px);
  transition: transform .22s;
}
.search-modal-overlay.show .search-modal-box {
  transform: translateY(0);
}
.search-modal-hint {
  text-align: center;
  color: rgba(255,255,255,.55);
  font-size: 13px;
  margin-bottom: 14px;
}
/* 弹窗内搜索框复用 .search-bar-large 样式，追加细节 */
.search-modal-box .search-bar-large {
  max-width: 100%;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  border-radius: var(--radius);
  overflow: hidden;
}
.search-modal-box .search-bar-large input {
  font-size: 16px;
  height: 54px;
  padding: 0 24px;
}
.search-modal-box .search-bar-large button {
  width: 64px;
  height: 54px;
  font-size: 22px;
}
/* body 打开搜索时禁止滚动 */
body.search-open { overflow: hidden; }

/* 主导航 */
.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.main-nav a {
  color: #ccc;
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 13px;
  white-space: nowrap;
  transition: all .2s;
}
.main-nav a:hover, .main-nav a.active {
  color: #fff;
  background: rgba(255,255,255,.1);
}
.main-nav a.active { color: var(--primary); }

/* 导航下拉菜单 */
.nav-dropdown { position: relative; }
.nav-dropdown > a { cursor: pointer; }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 0; z-index: 1000;
  min-width: 140px; background: #fff; border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 6px 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .2s;
}
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu a {
  display: block; padding: 8px 16px; color: #555; font-size: 13px;
  white-space: nowrap; border-radius: 0;
}
.nav-dropdown-menu a:hover { background: #fff0f3; color: var(--primary); }

/* 右侧用户区 */
.header-user {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.btn-login, .btn-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 16px;
  border-radius: 16px;
  font-size: 13px;
  white-space: nowrap;
  transition: all .2s;
}
.btn-login { color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn-login:hover { border-color: var(--primary); color: var(--primary); }
.btn-register { background: var(--primary); color: #fff; }
.btn-register:hover { background: var(--primary-dark); }

.user-avatar-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #ccc;
  font-size: 13px;
}
.user-avatar-wrap img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.2);
}
.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  min-width: 160px;
  overflow: hidden;
  z-index: 999;
  visibility: hidden;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s, visibility 0.15s, transform 0.15s;
  transition-delay: 0.1s;
  pointer-events: none;
}
.user-avatar-wrap::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}
.user-avatar-wrap:hover .user-dropdown,
.user-dropdown:hover {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
  pointer-events: auto;
}
.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: var(--text);
  font-size: 13px;
  transition: background .15s;
}
.user-dropdown a:hover { background: var(--bg); color: var(--primary); }
.user-dropdown hr { border: none; border-top: 1px solid var(--border); margin: 4px 0; }
/* VIP 头像徽章 */
.user-avatar-wrap.vip-user img {
  border-color: #ffd700;
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.4);
}
.user-avatar-wrap.vip-user::before {
  content: 'VIP';
  position: absolute;
  top: auto;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ffd700, #ffa500);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 6px;
  z-index: 2;
  line-height: 1.4;
}

/* ─── Banner Hero（全宽轮播 + 作品信息 + 缩略图叠层） ────────────────────── */
.banner-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 2/1;
  overflow: hidden;
  border-radius: var(--radius);
  margin-top: 20px;
  background: #1a1a2e;
}
.banner-hero .bh-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}
.banner-hero .bh-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.banner-hero .bh-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-hero .bh-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.45) 35%, rgba(0,0,0,.15) 60%, transparent 100%);
  pointer-events: none;
}

/* 左侧信息区 */
.banner-hero .bh-info {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 46%;
  max-width: 560px;
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 5;
}
.banner-hero .bh-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.banner-hero .bh-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}
.banner-hero .bh-tag i { font-size: 11px; }
.banner-hero .bh-tag-hot    { background: rgba(250,75,110,.9); color: #fff; }
.banner-hero .bh-tag-free   { background: rgba(34,197,94,.9); color: #fff; }
.banner-hero .bh-tag-credit { background: rgba(99,102,241,.9); color: #fff; }
.banner-hero .bh-tag-pay    { background: rgba(239,68,68,.9); color: #fff; }
.banner-hero .bh-tag-vip    { background: linear-gradient(135deg, rgba(255,215,0,.95), rgba(255,165,0,.95)); color: #7a4a00; }
.banner-hero .bh-tag-type   { background: rgba(255,255,255,.2); color: #fff; border: 1px solid rgba(255,255,255,.3); }

.banner-hero .bh-title {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
  margin: 0 0 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.banner-hero .bh-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,.85);
  margin-bottom: 20px;
}
.banner-hero .bh-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.banner-hero .bh-meta i { font-size: 12px; opacity: .7; }

.banner-hero .bh-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  border-radius: 8px;
  text-decoration: none;
  width: fit-content;
  transition: all .25s;
  box-shadow: 0 4px 14px rgba(250,75,110,.4);
}
.banner-hero .bh-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(250,75,110,.5);
}
.banner-hero .bh-btn i { transition: transform .25s; }
.banner-hero .bh-btn:hover i { transform: translateX(4px); }

/* 左下角切换指示器 */
.banner-hero .bh-dots {
  position: absolute;
  bottom: 24px;
  left: 44px;
  display: flex;
  gap: 8px;
  z-index: 15;
}
.banner-hero .bh-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: all .25s;
  border: none;
}
.banner-hero .bh-dot.active {
  background: var(--primary);
  width: 32px;
  border-radius: 5px;
}
.banner-hero .bh-dot:hover { background: rgba(255,255,255,.7); }

/* 右下角缩略图叠层 */
.banner-hero .bh-stack {
  position: absolute;
  right: 44px;
  bottom: 24px;
  width: 160px;
  height: 240px;
  z-index: 12;
}
.banner-hero .bh-stack-item {
  --offset: 0;
  position: absolute;
  right: 0;
  bottom: 0;
  width: 160px;
  height: 240px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transform: translate(calc(var(--offset) * 18px), calc(var(--offset) * -14px)) scale(calc(1 - var(--offset) * 0.1));
  opacity: calc(1 - var(--offset) * 0.35);
  z-index: calc(20 - var(--offset));
  transition: transform .5s cubic-bezier(.4,0,.2,1), opacity .5s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  border: 2px solid rgba(255,255,255,.15);
}
.banner-hero .bh-stack-item.active {
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(250,75,110,.35), 0 4px 12px rgba(0,0,0,.3);
}
.banner-hero .bh-stack-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.banner-hero .bh-stack-item.active:hover img { transform: scale(1.06); }
.banner-hero .bh-stack-item:hover {
  border-color: rgba(255,255,255,.4);
}

/* ─── Section Title ──────────────────────────────────────────────────────── */
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 16px;
}
.section-title h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title h2::before {
  content: '';
  display: block;
  width: 4px;
  height: 18px;
  background: var(--primary);
  border-radius: 2px;
}
.section-title a { font-size: 13px; color: var(--text-muted); }
.section-title a:hover { color: var(--primary); }

/* ─── Resource Card Grid ─────────────────────────────────────────────────── */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.resource-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }

.resource-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
  position: relative;
}
.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.resource-card .thumb {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 2/3;
  background: #eee;
}
.resource-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s, opacity .3s;
}
.resource-card:hover .thumb img { transform: scale(1.06); }

/* ─── 懒加载占位 shimmer 骨架屏 ─────────────────────────────── */
img[data-src] {
  background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
  background-size: 200% 100%;
  animation: img-shimmer 1.5s ease-in-out infinite;
  /* 防止占位 SVG 拉伸变形 */
  object-fit: cover !important;
}
@keyframes img-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 悬浮遮罩 */
.resource-card .thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.55) 100%);
  opacity: 0;
  transition: opacity .25s;
  display: flex;
  align-items: flex-end;
  padding: 12px;
}
.resource-card:hover .thumb-overlay { opacity: 1; }
.resource-card .thumb-overlay .view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border-radius: 20px;
  padding: 6px 20px;
  font-size: 13px;
  font-weight: 600;
  width: 100%;
}
.resource-card .thumb-overlay .view-btn:hover { background: var(--primary-dark); }

/* 标签 */
.card-badge {
  position: absolute;
  top: 8px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  color: #fff;
  line-height: 1;
  z-index: 2;
}
.card-badge-left  { left: 8px; }

.badge-free { background: #34c759; }
.badge-vip  { background: linear-gradient(135deg, #ffd700, #ffa500); color: #7a4a00; }
.badge-hot  { background: var(--primary); border-radius: 3px; margin-top: 20px; }

/* 左上角徽标容器：期数 + HOT */
.card-top-left {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

/* 期数 ribbon 角标 */
.card-issue {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  white-space: nowrap;
  padding: 5px 18px 5px 10px;
  background: linear-gradient(135deg, #FA4B6E 0%, #ff5a7d 50%, #ff7a9a 100%);
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
  filter: drop-shadow(0 2px 4px rgba(250,75,110,.35));
  text-shadow: 0 1px 2px rgba(0,0,0,.1);
}

/* 模特徽标 */
.card-badge-model {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 2;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 7px 3px 3px;
  border-radius: 12px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  color: #fff;
  line-height: 1.35;  /* 给 g/j/p/q/y 留出下行空间 */
  cursor: pointer;
  transition: background .2s;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.card-badge-model:hover {
  background: var(--primary);
  color: #fff;
}
.model-badge-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.model-avatar-mini {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.5);
  flex-shrink: 0;
}

/* ── 模特详情页 ─────────────────────────────── */
.model-profile-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  border: 1px solid #eee;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.model-avatar-wrap {
  flex-shrink: 0;
  text-align: center;
}
.model-avatar-wrap img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #f5f5f5;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.model-avatar-wrap .model-avatar-fallback {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #ff8a9e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 40px;
  border: 3px solid #f5f5f5;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.model-meta-wrap {
  flex: 1;
  min-width: 0;
}
.model-title-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.model-name {
  font-size: 28px;
  font-weight: 700;
  color: #222;
  line-height: 1.2;
  margin: 0;
}
.model-res-count {
  font-size: 13px;
  color: #999;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.model-res-count .fa-images { color: var(--primary); }
.model-follower-count {
  font-size: 13px;
  color: #999;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.model-follower-count .fa-user { color: var(--primary); }
.model-like-count {
  font-size: 13px;
  color: #999;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.model-like-count .fa-heart { color: var(--primary); }
.model-info-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.model-info-cell {
  background: #f8f9fb;
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
  border: 1px solid #f0f0f0;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.model-info-cell:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  border-color: var(--primary-light);
}
.model-info-label {
  font-size: 11px;
  color: #aaa;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.model-info-value {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

/* 关注按钮 — 模特详情页 */
.btn-follow-model {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  background: var(--primary);
  color: #fff;
  border: 1.5px solid var(--primary);
  flex-shrink: 0;
  margin-left: auto;
}
.btn-follow-model:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}
.btn-follow-model.following {
  background: #fff;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-follow-model.following:hover {
  background: var(--primary-light);
}

/* 关注按钮 — 模特列表卡片 */
.btn-follow-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 30px;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  transition: all .2s;
  background: rgba(250,75,110,.1);
  color: var(--primary);
  border: none;
  flex-shrink: 0;
}
.btn-follow-card:hover {
  background: var(--primary);
  color: #fff;
}
.btn-follow-card.following {
  background: var(--primary);
  color: #fff;
}

/* ─── 通知中心 ─── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}
.page-header h1 {
  font-size: 20px;
  font-weight: 700;
}
.notify-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.notify-filter-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 16px;
  font-size: 13px;
  background: #f0f0f0;
  color: #666;
  text-decoration: none;
  transition: all .2s;
}
.notify-filter-tag:hover,
.notify-filter-tag.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}
.notify-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.notify-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s;
  position: relative;
}
.notify-item:hover { background: #fafafa; }
.notify-item.unread { background: #fff8f9; }
.notify-item.unread::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: var(--primary);
  border-radius: 0 3px 3px 0;
}
.notify-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  background: #f5f5f7;
  color: #888;
}
.notify-item.unread .notify-icon {
  background: var(--primary-light);
  color: var(--primary);
}
.notify-body {
  flex: 1;
  min-width: 0;
}
.notify-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}
.notify-time {
  font-size: 12px;
  color: #bbb;
  font-weight: 400;
  margin-left: auto;
  flex-shrink: 0;
}
.notify-content {
  font-size: 13px;
  color: #777;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notify-link {
  color: #ccc;
  font-size: 14px;
  flex-shrink: 0;
  transition: color .2s;
}
.notify-link:hover { color: var(--primary); }

/* ─── 关注列表 ─── */
.follows-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.follows-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border-radius: 10px;
  transition: all .2s;
  text-decoration: none;
  color: inherit;
}
.follows-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transform: translateY(-1px);
}
.follows-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid #f0f0f0;
}
.follows-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.follows-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), #ff8a9e);
  color: #fff;
  font-size: 20px;
}
.follows-info {
  flex: 1;
  min-width: 0;
}
.follows-name {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}
.follows-count {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}
.follows-unfollow {
  flex-shrink: 0;
}
.follows-unfollow:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ─── 空状态 ─── */
.empty-state {
  text-align: center;
  padding: 60px 0;
  color: #aaa;
}
.empty-state i { font-size: 48px; margin-bottom: 12px; display: block; }
.empty-state p { font-size: 14px; }

/* 卡片底部作品类型标识 */
.card-type-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  z-index: 3;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.card-type-image {
  background: rgba(59, 130, 246, .85);
  color: #fff;
}
.card-type-video {
  background: rgba(139, 92, 246, .85);
  color: #fff;
}

/* 卡片底部下载方式标识 */
.card-dl-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  z-index: 3;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.card-dl-free    { background: rgba(34, 197, 94, .85); color: #fff; }
.card-dl-credits { background: rgba(245, 158, 11, .85); color: #fff; }
.card-dl-pay     { background: rgba(250, 75, 110, .85); color: #fff; }
.card-dl-vip     { background: linear-gradient(135deg, rgba(255, 215, 0, .9), rgba(255, 165, 0, .9)); color: #7a4a00; }

/* 卡片hover：隐藏类型和下载标识，显示查看详情 */
.resource-card:hover .card-type-badge,
.resource-card:hover .card-dl-badge { display: none; }

/* ─── Index Main (最新推荐 + 分类) ──────────────────────────────────── */
.index-main {
  margin-top: 20px;
}

/* ─── Detail Page ──────────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 14px 0;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: #bbb; }

.detail-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

.detail-gallery {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery-main {
  position: relative;
  background: #111;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }

.gallery-prev, .gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,.5);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: background .2s;
  z-index: 5;
}
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
.gallery-prev:hover, .gallery-next:hover { background: var(--primary); }

.gallery-counter {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,.5);
  color: #fff;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 10px;
}

/* 画廊付费锁遮罩 */
.gallery-lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.gallery-lock-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.gallery-lock-inner {
  text-align: center;
  color: #fff;
  padding: 30px;
}
.gallery-lock-inner .lock-icon {
  font-size: 42px;
  color: var(--primary);
  margin-bottom: 12px;
}
.gallery-lock-inner h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #fff;
}
.gallery-lock-inner p {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 20px;
}

/* 锁定缩略图 */
.thumb-item.thumb-locked {
  position: relative;
}
.thumb-item.thumb-locked img {
  filter: brightness(.4) blur(2px);
}
.thumb-lock-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--primary);
  background: rgba(0,0,0,.3);
  pointer-events: none;
}

.gallery-thumbs {
  display: flex;
  gap: 6px;
  padding: 10px;
  overflow-x: auto;
  background: #1a1a1a;
  scrollbar-width: thin;
  scrollbar-color: #444 transparent;
}
.gallery-thumbs::-webkit-scrollbar { height: 4px; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: #444; border-radius: 2px; }
.thumb-item {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .15s;
  position: relative;
}
.thumb-item.active { border-color: var(--primary); }
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }
.thumb-item img[data-src] {
  /* 缩略图小，用更快的动画节奏 */
  animation-duration: 1s;
}

/* ─── Video Player ─────────────────────────────────────────────────────── */
.video-player-wrap { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; }
.video-player-wrap video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 0;
}
.video-iframe-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  background: #000;
}
.video-iframe-wrap iframe { border-radius: var(--radius); }

/* 外链付费视频封面预览 */
.video-cover-preview {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}
.video-cover-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.4) blur(6px);
}

/* 视频试看锁定遮罩 */
.video-preview-lock {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: var(--radius);
}
.video-preview-lock.show { display: flex; }
.video-preview-lock-inner {
  text-align: center;
  color: #fff;
  max-width: 320px;
}
.video-preview-lock-inner .lock-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: .8;
}
.video-preview-lock-inner h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.video-preview-lock-inner p {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  margin-bottom: 20px;
  line-height: 1.6;
}
.video-preview-lock-inner .btn {
  min-width: 160px;
}
/* 试看倒计时条 */
.video-preview-bar {
  position: absolute;
  bottom: 8px;
  left: 12px;
  right: 12px;
  height: 4px;
  background: rgba(255,255,255,.15);
  border-radius: 2px;
  z-index: 5;
  overflow: hidden;
}
.video-preview-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #ff8a65);
  border-radius: 2px;
  transition: width .3s;
}
.video-preview-label {
  position: absolute;
  top: 10px;
  left: 14px;
  font-size: 11px;
  color: rgba(255,255,255,.85);
  background: rgba(0,0,0,.5);
  padding: 3px 10px;
  border-radius: 12px;
  z-index: 5;
  pointer-events: none;
}

/* ─── Lightbox ─────────────────────────────────────────────────────── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.92);
  display: none;
  align-items: center;
  justify-content: center;
  animation: lbFadeIn .2s ease;
}
.lightbox-overlay.show { display: flex; }
@keyframes lbFadeIn { from { opacity: 0; } to { opacity: 1; } }

.lightbox-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 90vh;
}
.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 40px rgba(0,0,0,.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  z-index: 10001;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background .15s;
  backdrop-filter: blur(4px);
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,.25); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev  { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 20px; top: 50%; transform: translateY(-50%); }

.lightbox-counter {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.7);
  font-size: 13px;
  z-index: 10001;
  background: rgba(0,0,0,.5);
  padding: 4px 14px;
  border-radius: 12px;
}


/* 作品信息侧栏 */
.detail-sidebar > * + * { margin-top: 16px; }
.res-info-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.res-info-card h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 12px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.res-meta-row {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.res-meta-row span { display: flex; align-items: center; gap: 4px; }

/* 详情页模特信息卡片 */
.detail-model-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; background: #f8f9fb;
  border-radius: 12px; margin-bottom: 16px;
  border: 1px solid #eee;
  transition: border-color .2s, box-shadow .2s;
}
.detail-model-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 12px rgba(250,75,110,.08);
}
.detail-model-card .model-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.detail-model-card .model-avatar-fallback {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #ff8a9e);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px;
  border: 2px solid #fff; flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.detail-model-card .model-info { flex: 1; min-width: 0; }
.detail-model-card .model-info .model-label {
  font-size: 11px; color: #aaa;
  margin-bottom: 4px;
  letter-spacing: .5px;
}
.detail-model-card .model-info a.model-name {
  font-size: 15px; font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: color .2s;
}
.detail-model-card .model-info a.model-name:hover { color: var(--primary); }
.detail-model-card .btn-view {
  display: inline-flex; align-items: center;
  padding: 7px 14px; border-radius: 16px;
  font-size: 12px; font-weight: 500;
  color: var(--primary); background: rgba(250,75,110,.08);
  border: 1px solid rgba(250,75,110,.2);
  text-decoration: none; white-space: nowrap;
  transition: all .2s;
}
.detail-model-card .btn-view:hover {
  background: var(--primary); color: #fff;
  border-color: var(--primary);
}
.detail-model-card .btn-view i {
  font-size: 10px; margin-left: 4px;
  transition: transform .2s;
}
.detail-model-card .btn-view:hover i { transform: translateX(2px); }

.price-area {
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.price-tag {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.price-tag.free-tag { color: #34c759; font-size: 20px; }
.price-tag small { font-size: 14px; font-weight: 400; }
.price-vip-tip {
  font-size: 12px;
  color: #ffa500;
  margin-top: 4px;
}

/* 按钮组 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: var(--radius); font-size: 14px; font-weight: 600; padding: 0 20px; height: 42px; transition: all .2s; cursor: pointer; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { border: 1px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary-light); }
.btn-gray { background: #f0f0f0; color: #555; }
.btn-gray:hover { background: #e5e5e5; }
.btn-block { width: 100%; }
.btn-lg { height: 50px; font-size: 16px; }
.btn-sm { height: 32px; font-size: 12px; padding: 0 12px; }

.action-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.action-btns .btn { flex: 1; white-space: nowrap; }
.btn-favorite { transition: all .2s; }
.btn-favorite.active { background: #fff0f3; color: var(--primary); border: 1px solid var(--primary); }

/* ─── Tags ────────────────────────────────────────────────────────────────── */
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag {
  display: inline-block;
  background: var(--bg);
  color: #666;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all .15s;
}
.tag:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* ─── Pagination ──────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 32px 0;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 14px;
  color: #555;
  background: #fff;
  transition: all .15s;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 700; }
.pagination .disabled { opacity: .4; pointer-events: none; }

/* ─── Forms ───────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 500; color: #555; margin-bottom: 6px; }
.form-label .required { color: var(--primary); margin-left: 2px; }
.form-control {
  display: block;
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  line-height: 42px;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(250,75,110,.12);
}
textarea.form-control { height: auto; padding: 10px 14px; line-height: 1.6; resize: vertical; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 7L11 1' stroke='%23888' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 5px; }
.form-error { font-size: 12px; color: var(--primary); margin-top: 5px; }
.input-addon { display: flex; gap: 0; }
.input-addon .form-control { border-radius: var(--radius) 0 0 var(--radius); }
.input-addon .btn { border-radius: 0 var(--radius) var(--radius) 0; white-space: nowrap; }

/* ─── Alert ───────────────────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.alert-error   { background: #fff5f5; border: 1px solid #fecaca; color: #991b1b; }
.alert-info    { background: #f0f9ff; border: 1px solid #bae6fd; color: #0c4a6e; }
.alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }

/* ─── Auth Pages ──────────────────────────────────────────────────────────── */
body.auth-page { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); }
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.auth-card .logo {
  text-align: center;
  margin-bottom: 28px;
}
.auth-card .logo a {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
}
.auth-card .logo a span { color: var(--primary); }
.auth-card h2 {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
}
.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
}
.auth-footer a { color: var(--primary); font-weight: 500; }

/* ─── User Center ─────────────────────────────────────────────────────────── */
.user-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 24px 0 40px;
}
.user-sidebar {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px 0;
  box-shadow: var(--shadow);
  height: fit-content;
  position: sticky;
  top: 70px;
}
.user-info-compact {
  text-align: center;
  padding: 0 16px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.user-info-compact img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 8px;
  border: 3px solid var(--primary-light);
}
.user-info-compact .username { font-weight: 600; font-size: 15px; }
.user-info-compact .user-level { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.user-credits-mini { font-size: 12px; color: var(--primary); margin-top: 4px; }

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: #555;
  font-size: 14px;
  transition: all .15s;
}
.sidebar-menu a:hover, .sidebar-menu a.active {
  background: var(--primary-light);
  color: var(--primary);
}
.sidebar-menu a .icon { width: 18px; text-align: center; }

.user-content { min-width: 0; }

/* 个人中心面板 */
.dashboard-panel { display: none; }
.dashboard-panel.active { display: block; }

/* 个人中心信息横幅 */
.user-banner {
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 20px;
  text-align: center;
}
.user-banner i { margin-right: 6px; }
.user-banner strong { font-size: 20px; margin: 0 4px; }

.user-vip-banner {
  background: linear-gradient(135deg, #ffd700, #ffa500);
  color: #333;
}
.user-vip-banner.non-vip {
  background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
  color: #888;
}

.user-credits-banner {
  background: linear-gradient(135deg, var(--primary), #e03055);
  color: #fff;
}

.content-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.content-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.content-card-header h3 { font-size: 16px; font-weight: 600; }
.content-card-body { padding: 20px; }

/* ─── Dashboard Stats ─────────────────────────────────────────────────────── */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  text-align: center;
}
.stat-card .num { font-size: 28px; font-weight: 800; color: var(--primary); }
.stat-card .label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ─── VIP Page ────────────────────────────────────────────────────────────── */
.vip-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  padding: 32px 0;
}
.vip-plan-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
  text-align: center;
  border: 2px solid transparent;
  transition: all .25s;
  position: relative;
  cursor: pointer;
}
.vip-plan-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.vip-plan-card.selected { border-color: var(--primary); }
.vip-plan-card.recommended {
  border-color: #ffa500;
  background: linear-gradient(180deg, #fff8ed 0%, #fff 100%);
}
.recommended-tag {
  position: absolute;
  top: -1px;
  right: -1px;
  background: #ffa500;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 0 12px 0 8px;
}
.plan-name { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.plan-price {
  font-size: 38px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.plan-price small { font-size: 16px; font-weight: 400; }
.plan-original {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin: 4px 0 16px;
}
.plan-desc { font-size: 13px; color: #777; margin-bottom: 20px; }

/* ─── Payment Modal ───────────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal-box {
  background: #fff;
  border-radius: 12px;
  width: 360px;
  max-width: 95vw;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  animation: modalIn .25s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h4 { font-size: 16px; font-weight: 600; }
.modal-close { color: var(--text-muted); font-size: 20px; cursor: pointer; }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 24px; }

/* ─── Report Modal ───────────────────────────────────────────────────────── */
.report-reason-list { display: flex; flex-direction: column; gap: 8px; }
.report-reason-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border: 2px solid #e5e7eb; border-radius: 10px;
  cursor: pointer; transition: all .15s;
}
.report-reason-item:hover { border-color: #fca5a5; background: #fff5f5; }
.report-reason-item.selected { border-color: var(--primary); background: #fff0f3; }
.report-reason-item i { font-size: 18px; color: #999; flex-shrink: 0; width: 24px; text-align: center; }
.report-reason-item.selected i { color: var(--primary); }
.report-reason-item span { font-size: 14px; font-weight: 600; color: #333; flex-shrink: 0; }
.report-reason-item small { font-size: 12px; color: #999; margin-left: auto; }
.report-reason-item.selected small { color: #db2777; }

.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.pay-methods { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.pay-methods.card-style {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.pay-method-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all .15s;
}
.pay-methods.card-style .pay-method-item {
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 16px 10px;
}
.pay-method-item:hover { border-color: var(--primary); }
.pay-method-item.selected { border-color: var(--primary); background: var(--primary-light); }
.pay-method-item .method-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.pay-methods.card-style .pay-method-item .method-icon { width: 48px; height: 48px; border-radius: 12px; font-size: 28px; }
.pay-icon-wechat  { background: #07c160; color: #fff; }
.pay-icon-alipay  { background: #1677ff; color: #fff; }
.pay-method-item .method-name { font-size: 14px; font-weight: 500; }
.pay-methods.card-style .pay-method-item .method-name { font-size: 15px; font-weight: 600; }
.pay-method-item .method-desc { font-size: 12px; color: var(--text-muted); }
.pay-methods.card-style .pay-method-item .method-desc { font-size: 12px; }
.pay-methods-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 28px 16px;
  font-size: 14px;
  line-height: 1.7;
  background: var(--bg-light);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.pay-amount-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); margin-top: 12px; }
.pay-total { font-size: 20px; font-weight: 800; color: var(--primary); }

/* QR 码支付弹窗 */
.qr-pay-wrap { text-align: center; }
.qr-code-box {
  width: 200px;
  height: 200px;
  margin: 0 auto 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-pay-tip { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.qr-pay-amount { font-size: 22px; font-weight: 800; color: var(--primary); }

/* ─── Admin ───────────────────────────────────────────────────────────────── */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: #f0f2f5;
}
.admin-sidebar {
  width: 220px;
  background: #001529;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.admin-logo {
  padding: 20px 20px 16px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.admin-logo span { color: var(--primary); }
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  color: rgba(255,255,255,.65);
  font-size: 14px;
  transition: all .15s;
}
.admin-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-nav a.active { background: var(--primary); color: #fff; }
.admin-nav .nav-group-title {
  padding: 16px 20px 6px;
  font-size: 11px;
  color: rgba(255,255,255,.3);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.admin-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.admin-topbar {
  height: 56px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.admin-page-title { font-size: 16px; font-weight: 600; }
.admin-body { padding: 24px; flex: 1; }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.admin-stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.stat-icon.pink   { background: #fff0f3; color: var(--primary); }
.stat-icon.blue   { background: #eff6ff; color: #3b82f6; }
.stat-icon.green  { background: #f0fdf4; color: #22c55e; }
.stat-icon.orange { background: #fff7ed; color: #f97316; }
.stat-num { font-size: 24px; font-weight: 800; }
.stat-lbl { font-size: 13px; color: var(--text-muted); }

/* Table */
.admin-table-wrap { background: #fff; border-radius: var(--radius); box-shadow: 0 1px 6px rgba(0,0,0,.06); overflow: hidden; }
.admin-table-toolbar {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  flex-wrap: wrap;
}
table.data-table { width: 100%; border-collapse: collapse; }
table.data-table th {
  background: #f8f9fa;
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.data-table td {
  padding: 12px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
table.data-table tr:last-child td { border-bottom: none; }
table.data-table tr:hover td { background: #fafafa; }
.table-actions { display: flex; gap: 6px; }
.table-thumb { width: 48px; height: 48px; border-radius: 4px; object-fit: cover; }

/* Status badges */
.status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 10px;
}
.status-success { background: #dcfce7; color: #166534; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-danger  { background: #fee2e2; color: #991b1b; }
.status-default { background: #f3f4f6; color: #6b7280; }

/* ─── Search Page ─────────────────────────────────────────────────────────── */
.search-header {
  background: linear-gradient(135deg, #2c2c2e 0%, #1a1a1c 100%);
  padding: 32px 0;
  text-align: center;
}
.search-header h1 { font-size: 24px; color: #fff; margin-bottom: 16px; }
.search-bar-large {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
}
.search-bar-large input {
  flex: 1;
  height: 48px;
  padding: 0 20px;
  border: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 15px;
  outline: none;
}
.search-bar-large button {
  width: 60px;
  background: var(--primary);
  color: #fff;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 20px;
}

.search-filters {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  flex-wrap: wrap;
  font-size: 13px;
}
.filter-label { color: var(--text-muted); }
.filter-item {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  color: #555;
  cursor: pointer;
  transition: all .15s;
  font-size: 13px;
  line-height: 1.5;
}
.filter-item:hover, .filter-item.active { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: #1a1a1c;
  color: rgba(255,255,255,.5);
  padding: 40px 0 20px;
  margin-top: 60px;
  font-size: 13px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  margin-bottom: 28px;
}
.footer-brand .brand-name {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.footer-brand .brand-name span { color: var(--primary); }
.footer-brand p { font-size: 13px; max-width: 280px; line-height: 1.7; }
.footer-links { display: flex; gap: 40px; margin: auto; }
.footer-links .col a {
  display: block;
  color: rgba(255,255,255,.45);
  font-size: 13px;
  transition: color .15s;
}
.footer-links .col a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
}

/* ─── Go Top ──────────────────────────────────────────────────────────────── */
#go-top {
  display: none;
  position: fixed;
  bottom: 40px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(250,75,110,.4);
  z-index: 100;
  transition: all .2s;
}
#go-top.show { display: flex; }
#go-top:hover { transform: translateY(-3px); }

/* ─── Loading Skeleton ────────────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
  border-radius: 4px;
}
@keyframes skeleton-loading {
  0%   { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ─── Toast ───────────────────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.toast {
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  animation: toastIn .3s ease;
  max-width: 380px;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toast i { font-size: 16px; flex-shrink: 0; }
.toast-success { background: #22c55e; }
.toast-error   { background: #ef4444; }
.toast-info    { background: #3b82f6; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

/* ─── Image Loader Placeholder ─────────────────────────────────────────────── */
.img-loader-svg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: opacity .3s ease;
}
.img-loader-svg svg {
  width: 48px;
  height: 36px;
}
.img-loader-svg .loader-back {
  fill: none;
  stroke: rgba(250, 75, 110, .18);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.img-loader-svg .loader-front {
  fill: none;
  stroke: var(--primary);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48, 144;
  stroke-dashoffset: 192;
  animation: loader-dash 1.4s linear infinite;
}
@keyframes loader-dash {
  72.5% { opacity: 0; }
  to { stroke-dashoffset: 0; }
}

/* ─── 模特列表页（人物信息卡片）────────────────────────────────────────────── */
.model-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* 卡片容器 */
.model-list-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  transition: box-shadow .25s, transform .25s;
  display: flex;
  flex-direction: column;
  /* 覆盖详情页 .model-profile-card 的样式（padding/gap/align-items 是横版布局用的） */
  padding: 0;
  gap: 0;
  align-items: stretch;
  border: none;
  margin-bottom: 0;
}
.model-list-card:hover {
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
  transform: translateY(-4px);
}

/* 全卡片可点击链接（覆盖底层，z-index 须 > cover intro 和 body 的 z-index） */
.model-profile-link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

/* 顶部封面区域 */
.model-profile-cover {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #5a6b80 0%, #3d4a5c 100%);
  z-index: 4; /* 高于 link(z-index:3)，确保关注按钮可点击 */
  pointer-events: none; /* 让空白区域点击穿透到 model-profile-link，按钮单独恢复 */
}
.model-profile-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px) brightness(.85);
  transform: scale(1.1);
  transition: transform .4s;
}
.model-list-card:hover .model-profile-bg {
  transform: scale(1.16);
}
.model-profile-bg-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7a8ba3, #56657a);
  filter: none;
  transform: none;
  font-size: 48px;
  color: rgba(255,255,255,.5);
}
.model-profile-bg-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,.7));
}

/* 顶部居中人物信息（不设 z-index，避免创建独立 stacking context 导致按钮无法覆盖 link） */
.model-profile-intro {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: #fff;
  text-align: center;
  pointer-events: none; /* 让点击穿透到 model-profile-link，按钮单独恢复 */
}
.model-profile-avatar-wrap {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  padding: 3px;
  background: rgba(255,255,255,.55);
  margin-bottom: 10px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.model-profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  background: #fff;
}
.model-profile-avatar-default {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), #ff8a9e);
  color: #fff;
  font-size: 28px;
}
.model-profile-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.6), 0 2px 8px rgba(0,0,0,.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* 关注按钮（位于封面区，透明底+白边框） */
.btn-follow-card {
  position: relative;
  z-index: 10;
  font-size: 13px;
  font-weight: 600;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.95);
  background: rgba(255,255,255,.25);
  color: #fff;
  padding: 5px 18px;
  cursor: pointer;
  transition: all .2s;
  backdrop-filter: blur(4px);
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
  pointer-events: auto; /* 恢复点击（父级 intro 设置了 pointer-events: none） */
  width: auto;       /* 覆盖通用样式的 width:50px */
  height: auto;      /* 覆盖通用样式的 height:30px */
  min-width: fit-content;
}
.btn-follow-card:hover {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.btn-follow-card.following {
  background: rgba(255,255,255,.9);
  border-color: #fff;
  color: #888;
}
.btn-follow-card.following:hover {
  background: #fff;
  color: var(--primary);
  border-color: var(--primary);
}

/* 下方白色信息区 */
.model-profile-body {
  position: relative;
  z-index: 4;
  padding: 18px 16px 16px;
  background: #fff;
  border-radius: 16px 16px 0 0;
  margin-top: -16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  pointer-events: none; /* 让点击穿透到卡片的 model-profile-link */
}

/* 三项统计 */
.model-profile-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 4px;
}
.model-profile-stat {
  text-align: center;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
}
.model-profile-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  line-height: 1.2;
}
.model-profile-stat-label {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}

/* 分隔线 */
.model-profile-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #eee, transparent);
  margin-bottom: 12px;
}

/* 最新作品标题 */
.model-profile-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

/* 最新作品行 */
.model-profile-latest {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: #f8f8f8;
  text-decoration: none;
  color: inherit;
  transition: background .2s;
  pointer-events: auto; /* 恢复点击（父级 body 设置了 pointer-events: none） */
}
.model-profile-latest:hover {
  background: #f0f0f0;
}
.model-profile-latest-thumb {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
}
.model-profile-latest-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 18px;
}
.model-profile-latest-info {
  flex: 1;
  min-width: 0;
}
.model-profile-latest-label {
  font-size: 12px;
  color: #888;
  margin-bottom: 2px;
}
.model-profile-latest-title {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.model-profile-latest-arrow {
  color: #ccc;
  font-size: 12px;
  flex-shrink: 0;
}
.model-profile-latest-empty .model-profile-latest-title {
  color: #aaa;
}

/* ─── VIP Modal ────────────────────────────────────────────────────────── */
.vip-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s ease;
}
.vip-modal {
  background: var(--bg-card); border-radius: 16px;
  padding: 40px 36px 32px; max-width: 420px; width: 90%;
  text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.2);
  transform: translateY(10px);
  animation: vipModalIn .35s ease forwards;
}
@keyframes vipModalIn { to { transform: translateY(0); } }
.vip-modal-icon {
  width: 72px; height: 72px; margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700, #ffa500);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: #fff;
  box-shadow: 0 8px 24px rgba(255,165,0,.35);
}
.vip-modal h3 { font-size: 20px; margin-bottom: 8px; color: var(--text); }
.vip-modal p { font-size: 14px; color: #888; margin-bottom: 24px; line-height: 1.6; }
.vip-modal-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.vip-modal-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 24px; border-radius: 8px; font-size: 14px; font-weight: 600;
  cursor: pointer; border: none; text-decoration: none;
  transition: all .2s;
}
.vip-modal-btn-primary {
  background: linear-gradient(135deg, #ffd700, #ffa500);
  color: #5a3800; box-shadow: 0 4px 12px rgba(255,165,0,.3);
}
.vip-modal-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(255,165,0,.4); }
.vip-modal-btn-cancel {
  background: #f0f0f0; color: #666;
}
.vip-modal-btn-cancel:hover { background: #e0e0e0; }

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .resource-grid.cols-5 { grid-template-columns: repeat(3, 1fr); }
  .model-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-wrap { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  /* 模特页 */
  .model-profile-card { padding: 24px; gap: 20px; }
  .model-list-card { padding: 0; gap: 0; align-items: stretch; border: none; margin-bottom: 0; }
  .model-avatar-wrap img, .model-avatar-wrap .model-avatar-fallback { width: 120px; height: 120px; }
  .model-name { font-size: 24px; }
}
@media (max-width: 768px) {
  .container { padding: 0 12px; }
  .resource-grid.cols-4,
  .resource-grid.cols-5,
  .resource-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .model-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .user-layout { grid-template-columns: 1fr; }
  .user-sidebar { position: static; }
  .footer-links { flex-wrap: wrap; gap: 24px; }
  .stat-cards { grid-template-columns: 1fr; }

  /* 移动端导航：横向滚动 */
  .site-header { height: auto; }
  .header-inner { flex-wrap: wrap; gap: 0; padding-top: 8px; padding-bottom: 0; }
  .site-logo { height: 40px; margin-right: auto; }  /* Logo 后面整体右推 */
  .header-actions { gap: 4px; }                     /* 移动端间距再紧一点 */
  .header-search-icon { margin-right: 0; }           /* 由 .header-actions 的 gap 管理间距 */
  .header-notify-icon { width: 34px; height: 34px; font-size: 15px; }
  .main-nav {
    display: flex; flex: 1 1 100%; order: 10;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding: 8px 0 10px; gap: 2px;
    scrollbar-width: none;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { font-size: 13px; padding: 6px 14px; border-radius: 16px; flex-shrink: 0; }
  .nav-dropdown-menu { display: none; } /* 移动端暂不展示下拉 */

  /* Banner 响应式 */
  .banner-hero { aspect-ratio: 16/8; }
  .banner-hero .bh-info { width: 60%; padding: 24px 20px; }
  .banner-hero .bh-title { font-size: 20px; }
  .banner-hero .bh-meta { gap: 10px; font-size: 12px; }
  .banner-hero .bh-stack { width: 110px; height: 165px; right: 20px; bottom: 16px; }
  .banner-hero .bh-stack-item { width: 110px; height: 165px; }
  .banner-hero .bh-dots { left: 20px; bottom: 16px; }
  /* 详情页 */
  .breadcrumb { font-size: 13px; padding: 10px 0; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .detail-wrap { gap: 16px; }
  .gallery-main { aspect-ratio: 3/2; border-radius: var(--radius); }
  .gallery-prev, .gallery-next { width: 34px; height: 34px; font-size: 14px; }
  .gallery-prev { left: 6px; } .gallery-next { right: 6px; }
  .gallery-counter { font-size: 12px; padding: 3px 8px; top: 8px; right: 8px; }
  .res-info-card { padding: 18px; border-radius: var(--radius); }
  .res-info-card h1 { font-size: 20px; margin-bottom: 10px; }
  .res-meta-row { font-size: 13px; gap: 12px; }
  .price-tag { font-size: 18px; }
  .price-tag small { font-size: 12px; }
  .section-title h2 { font-size: 18px; }
  .action-btns .btn { font-size: 14px; }
  /* 模特页 */
  .model-profile-card { flex-direction: column; align-items: center; text-align: center; padding: 20px; }
  .model-list-card { flex-direction: column; align-items: stretch; padding: 0; gap: 0; border: none; margin-bottom: 0; }
  .btn-follow-card { padding: 4px 16px; }
  .model-title-row { justify-content: center; }
}
@media (max-width: 480px) {
  .container { padding: 0 8px; }
  .resource-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .model-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .model-list-card { border-radius: 12px; }
  .model-profile-cover { height: 160px; }
  .model-profile-avatar-wrap { width: 70px; height: 70px; padding: 2px; }
  .model-profile-avatar { width: 66px; height: 66px; border-width: 2px; }
  .model-profile-avatar-default { font-size: 22px; }
  .model-profile-name { font-size: 15px; margin-bottom: 6px; }
  .btn-follow-card { font-size: 12px; padding: 3px 14px; border-radius: 14px; }
  .model-profile-body { padding: 14px 12px 12px; margin-top: -12px; border-radius: 12px 12px 0 0; }
  .model-profile-stats { margin-bottom: 10px; }
  .model-profile-stat-value { font-size: 15px; }
  .model-profile-stat-label { font-size: 11px; }
  .model-profile-section-title { font-size: 12px; margin-bottom: 8px; }
  .model-profile-latest { padding: 8px; gap: 8px; }
  .model-profile-latest-thumb { width: 40px; height: 40px; min-width: 40px; }
  .model-profile-latest-title { font-size: 12px; }
  .auth-card { padding: 28px 20px; }

  /* 移动端导航进一步缩小 */
  .site-logo { font-size: 17px; gap: 6px; }
  .site-logo img { height: 28px; }
  .site-logo i { font-size: 18px; }
  .main-nav { padding: 6px 0 8px; }
  .main-nav a { font-size: 12px; padding: 5px 12px; border-radius: 14px; }
  .header-search-icon { width: 32px; height: 32px; font-size: 14px; }
  .header-notify-icon { width: 32px; height: 32px; font-size: 14px; }
  .btn-login, .btn-register { height: 30px; padding: 0 12px; font-size: 12px; }

  .banner-hero { aspect-ratio: 16/9; }
  .banner-hero .bh-info { width: 100%; max-width: 100%; padding: 20px 16px; }
  .banner-hero .bh-title { font-size: 18px; -webkit-line-clamp: 2; }
  .banner-hero .bh-meta { display: none; }
  .banner-hero .bh-stack { width: 80px; height: 120px; right: 12px; bottom: 12px; }
  .banner-hero .bh-stack-item { width: 80px; height: 120px; }
  .banner-hero .bh-dots { left: 16px; bottom: 12px; }
  .banner-hero .bh-dot { width: 8px; height: 8px; }
  .banner-hero .bh-dot.active { width: 24px; }
  /* 详情页 */
  .breadcrumb { font-size: 12px; }
  .detail-wrap { gap: 10px; }
  .gallery-main { aspect-ratio: 3/2; }
  .gallery-prev, .gallery-next { width: 30px; height: 30px; font-size: 13px; }
  .gallery-thumbs { padding: 6px; gap: 4px; }
  .thumb-item { width: 48px; height: 48px; }
  .res-info-card { padding: 14px; border-radius: 10px; }
  .res-info-card h1 { font-size: 17px; margin-bottom: 8px; line-height: 1.4; white-space: normal; }
  /* 元信息网格 */
  .res-meta-row {
    display: grid; grid-template-columns: 1fr 1fr;
    font-size: 12px; gap: 6px 12px;
    background: #f8f9fb; padding: 10px 12px; border-radius: 8px;
    margin-bottom: 14px;
  }
  .res-meta-row span { justify-content: center; }
  /* 作品信息表格优化 */
  .detail-sidebar .res-info-card + .res-info-card [style*="display:flex"] {
    font-size: 13px;
  }
  .price-tag { font-size: 17px; }
  .price-tag small { font-size: 12px; }
  .tag-list .tag { font-size: 12px; padding: 5px 10px; }
  .action-btns { gap: 8px; }
  .action-btns .btn { font-size: 14px; padding: 0 12px; height: 42px; }
  .btn-lg { height: 44px; font-size: 15px; }
  .detail-model-card {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
  }
  .detail-model-card .model-avatar,
  .detail-model-card .model-avatar-fallback {
    width: 44px; height: 44px;
    border-width: 1px; box-shadow: none;
  }
  .detail-model-card .model-avatar-fallback { font-size: 18px; }
  .detail-model-card .model-info .model-label { margin-bottom: 2px; }
  .detail-model-card .btn-view { padding: 5px 10px; font-size: 11px; }
  .modal-box { width: 94vw; margin: 0 3vw; }
  #downloadInfoModal .modal-box { width: 94vw; max-width: 94vw; }
  /* 模特页 */
  .model-profile-card { padding: 16px; gap: 14px; }
  .model-list-card { padding: 0; gap: 0; align-items: stretch; border: none; margin-bottom: 0; }
  .model-avatar-wrap img, .model-avatar-wrap .model-avatar-fallback { width: 90px; height: 90px; font-size: 30px; }
  .model-name { font-size: 22px; }
  .model-res-count { font-size: 12px; }
  .model-title-row { margin-bottom: 14px; }
  .model-info-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .model-info-cell { padding: 10px 6px; }
  .model-info-label { font-size: 10px; }
  .model-info-value { font-size: 13px; }
}

/* ===== 文件上传按钮样式（后台通用） ===== */
.img-upload-wrap {
  display: flex; align-items: center; gap: 12px; margin-top: 6px;
}
.img-upload-wrap img {
  max-height: 36px; max-width: 120px; border-radius: 4px;
  border: 1px solid var(--border); object-fit: contain;
}
.file-btn {
  cursor: pointer; font-size: 13px; padding: 6px 14px;
  border: 1px dashed #ccc; border-radius: 6px;
  background: #fafafa; color: #666; transition: .15s;
  display: inline-flex; align-items: center; gap: 6px;
  user-select: none;
}
.file-btn:hover { border-color: var(--primary); color: var(--primary); background: #fff0f3; }
.file-btn input[type=file] { display: none; }

/* ===== 弹窗公告 ===== */
.announcement-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.55); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
}
.announcement-overlay.announcement-show { opacity: 1; }
.announcement-overlay.announcement-hiding { opacity: 0; pointer-events: none; }
.announcement-modal {
  background: #fff; border-radius: 16px; max-width: 520px; width: 90%;
  padding: 36px 32px 28px; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  transform: translateY(20px); transition: transform .3s;
}
.announcement-show .announcement-modal { transform: translateY(0); }
.announcement-close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none; font-size: 28px; color: #999;
  cursor: pointer; line-height: 1; padding: 0 4px;
}
.announcement-close:hover { color: #333; }
.announcement-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #ff8a9e);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; color: #fff; font-size: 24px;
}
.announcement-title {
  text-align: center; font-size: 20px; font-weight: 700;
  margin: 0 0 12px; color: #222;
}
.announcement-body {
  font-size: 15px; color: #555; line-height: 1.8;
  margin-bottom: 24px; text-align: center;
}
.announcement-btn {
  display: block; margin: 0 auto; min-width: 140px;
}
