/* ==========================================================================
   绿猫网 - 影视资讯站 样式系统
   主题色：清新绿 + 暖橙强调，品牌：猫咪
   ========================================================================== */

:root {
  --green-50:  #ecfdf5;
  --green-100: #d1fae5;
  --green-200: #a7f3d0;
  --green-400: #34d399;
  --green-500: #10b981;
  --green-600: #059669;
  --green-700: #047857;
  --green-800: #065f46;
  --green-900: #064e3b;

  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-400: #94a3b8;
  --ink-200: #e2e8f0;
  --ink-100: #f1f5f9;
  --ink-50:  #f8fafc;

  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --rose-500: #f43f5e;

  --bg:        #f6f8f7;
  --card:      #ffffff;
  --border:    #e6ebe9;
  --shadow-sm: 0 1px 2px rgba(16, 185, 129, .06), 0 1px 3px rgba(15, 23, 42, .04);
  --shadow-md: 0 4px 12px rgba(16, 185, 129, .10), 0 2px 6px rgba(15, 23, 42, .06);
  --shadow-lg: 0 12px 32px rgba(16, 185, 129, .14), 0 4px 12px rgba(15, 23, 42, .08);

  --radius:    14px;
  --radius-sm: 8px;
  --radius-lg: 22px;

  --maxw: 1200px;
  --header-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}


body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans CJK SC",
               -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================== 顶部导航栏 ============================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  overflow: hidden;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--green-700);
  letter-spacing: .5px;
  flex-shrink: 0;
}
.brand .cat-logo {
  width: 40px; height: 40px;
  flex: none;
}
.brand .brand-name b { color: var(--green-600); }
.brand .brand-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--amber-500);
  margin-left: 2px;
}
.nav-links {
  display: flex;
  gap: 2px;
  margin-left: 4px;
  flex-shrink: 0;
}
.nav-links a {
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-700);
  transition: all .2s;
  white-space: nowrap;
}
.nav-links a:hover { background: var(--green-50); color: var(--green-700); }
.nav-links a.active { background: var(--green-500); color: #fff; }

.nav-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ink-100);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 5px 7px 5px 14px;
  flex: 0 1 270px;
  min-width: 170px;
  transition: all .2s;
}
.nav-search:focus-within {
  background: #fff;
  border-color: var(--green-400);
  box-shadow: 0 0 0 3px var(--green-100);
}
.nav-search svg { width: 17px; height: 17px; color: var(--ink-400); flex: none; }
.nav-search input {
  border: none; background: none; outline: none;
  font-size: 14px; width: 100%; min-width: 0; color: var(--ink-900);
}
.nav-search-btn {
  width: 30px; height: 30px;
  border: none; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green-600); color: #fff;
  cursor: pointer; flex: none;
  transition: all .18s;
}
.nav-search-btn:hover { background: var(--green-700); transform: translateY(-1px); }
.nav-search-btn svg { width: 16px; height: 16px; }

/* ========== 导航栏用户认证区域 ========== */
.nav-auth {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}
.nav-auth .nav-username {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-800);
  text-decoration: none;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}
.nav-auth .nav-username:hover { color: var(--green-600); }
.nav-auth .nav-points-badge {
  font-size: 11.5px;
  color: var(--ink-500);
  background: var(--green-50);
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 500;
}
.nav-auth .nav-points-badge b { color: var(--green-700); font-weight: 700; }
.nav-auth .nav-sep { color: var(--ink-300); font-size: 12px; }
.nav-auth .nav-manage-link {
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.nav-auth .nav-manage-link:hover { opacity: .8; }
.nav-auth .nav-logout {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-500);
  text-decoration: none;
  cursor: pointer;
}
.nav-auth .nav-logout:hover { color: var(--rose-500); }
.nav-auth .nav-msg-icon {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--ink-500);
  text-decoration: none;
}
.nav-auth .nav-msg-icon svg { width: 18px; height: 18px; }
.nav-auth .nav-msg-icon:hover { color: var(--green-600); }
.nav-auth .nav-msg-badge {
  position: absolute;
  top: -4px; right: -6px;
  min-width: 14px; height: 14px;
  background: var(--rose-500);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* ============================== 英雄区 ============================== */
.hero {
  position: relative;
  margin-bottom: 32px;
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(52, 211, 153, .35), transparent 60%),
    radial-gradient(900px 380px at 10% 110%, rgba(16, 185, 129, .25), transparent 60%),
    linear-gradient(135deg, #064e3b 0%, #047857 55%, #059669 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background-image:
    radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 40px 20px 44px;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 316px;
  gap: 36px;
  align-items: center;
}
.hero h1 {
  font-size: 34px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -.5px;
}
.hero h1 .hl { color: #ffe08a; }
.hero p.lead {
  margin-top: 14px;
  font-size: 16px;
  color: rgba(255,255,255,.85);
  max-width: 540px;
}
.hero-cta { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 14.5px; font-weight: 600;
  transition: all .2s;
}
.btn-primary { background: #fff; color: var(--green-700); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.24); }

.hero-stats {
  display: flex; gap: 28px; margin-top: 28px;
}
.hero-stats .stat b { font-size: 24px; display: block; }
.hero-stats .stat span { font-size: 13px; color: rgba(255,255,255,.75); }

/* 英雄区右侧浮卡 */
.hero-card {
  position: relative;
  width: 316px; margin-left: auto;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-lg);
  padding: 18px;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
}
.hero-card .hc-poster {
  border-radius: 14px;
  aspect-ratio: 2/3;
  background: linear-gradient(160deg, #0f766e, #134e4a);
  display: flex; align-items: flex-end; justify-content: center;
  color: #fff; font-weight: 700; font-size: 15px;
  padding: 16px; text-align: center;
  position: relative; overflow: hidden;
}
.hero-card .hc-poster > img {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 2;
}
.hero-card .hc-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--amber-500); color: #422006;
  font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
}
.hero-card .hc-meta { margin-top: 12px; color: rgba(255,255,255,.9); font-size: 13px; }
.hero-card .hc-meta b { font-size: 16px; display: block; color: #fff; }
.hero-card .hc-score {
  position: absolute; bottom: 14px; right: 14px;
  background: rgba(0,0,0,.45); color: #ffe08a;
  font-weight: 800; font-size: 18px;
  padding: 4px 10px; border-radius: 10px;
}

/* ============================== 区块通用 ============================== */
.section { padding: 44px 0; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
}
.section-head h2 {
  font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 10px;
}
.section-head h2 .bar {
  width: 5px; height: 20px; border-radius: 3px;
  background: linear-gradient(var(--green-400), var(--green-600));
}
.section-head .more { font-size: 13.5px; color: var(--green-600); font-weight: 600; display: none !important; }
.section-head .more:hover { text-decoration: underline; }

/* 分类筛选条 */
.filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 28px;
  position: relative;
}
.chip {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13.5px; font-weight: 500;
  background: #fff; border: 1px solid var(--border);
  color: var(--ink-700);
  transition: all .18s;
}
.chip:hover { border-color: var(--green-400); color: var(--green-700); }
.chip.active {
  background: var(--green-600); border-color: var(--green-600); color: #fff;
}

/* ============================== 影片卡片网格 ============================== */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 14px;
  align-items: start;
  margin-top: 12px;
}
/* 猫单详情页海报网格 - 6列，更大更清晰 */
#detailMovies {
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
#detailMovies .catlist-poster-wrap {
  min-width: 0;
}
.movie-card {
  width: 100%;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform .22s, box-shadow .22s;
  cursor: pointer;
  display: flex; flex-direction: column;
}
.catlist-poster-wrap {
  position: relative;
  width: 100%;
}
.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-200);
}
.mc-poster {
  aspect-ratio: 2/3;
  position: relative;
  overflow: hidden;
  background-color: var(--ink-100);
  width: 100%;
  flex-shrink: 0;
}
.mc-poster > img {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 2;
}
.mc-poster .poster-art {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.92);
  font-weight: 800; font-size: 14px;
  text-align: center; padding: 10px;
  z-index: 1;
}
.mc-poster .mc-score {
  position: absolute; top: 6px; right: 6px;
  background: rgba(15,23,42,.78);
  color: var(--amber-400);
  font-weight: 800; font-size: 12px;
  padding: 2px 7px; border-radius: 6px;
  backdrop-filter: blur(2px);
}
.mc-poster .mc-type {
  position: absolute; bottom: 10px; left: 10px;
  background: var(--green-600); color: #fff;
  font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 6px;
}
.mc-body { padding: 8px 10px 12px; flex: 1 0 auto; display: flex; flex-direction: column; }
.mc-title {
  font-size: 13px; font-weight: 700; color: var(--ink-900);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mc-sub {
  font-size: 12px; color: var(--ink-400); margin-top: 2px; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mc-foot {
  margin-top: 10px; display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--ink-500);
}
.mc-foot .yr { background: var(--green-50); color: var(--green-700); padding: 2px 8px; border-radius: 6px; font-weight: 600; }

/* 海报渐变色板（按 id 取色，纯 CSS 无需外网图） */
.g0 { background: linear-gradient(150deg,#0f766e,#134e4a); }
.g1 { background: linear-gradient(150deg,#7c2d12,#9a3412); }
.g2 { background: linear-gradient(150deg,#1e3a8a,#1e40af); }
.g3 { background: linear-gradient(150deg,#831843,#9d174d); }
.g4 { background: linear-gradient(150deg,#14532d,#166534); }
.g5 { background: linear-gradient(150deg,#581c87,#6b21a8); }
.g6 { background: linear-gradient(150deg,#713f12,#854d0e); }
.g7 { background: linear-gradient(150deg,#155e75,#0e7490); }
.g8 { background: linear-gradient(150deg,#312e81,#3730a3); }
.g9 { background: linear-gradient(150deg,#7f1d1d,#991b1b); }

/* ============================== 详情页 ============================== */
.detail-hero {
  position: relative;
  color: #fff;
  overflow: hidden;
}
.detail-hero .dh-bg {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background-size: cover; background-position: center;
  filter: blur(22px) brightness(.45);
  transform: scale(1.1);
}
.detail-hero .dh-overlay {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(180deg, rgba(6,78,59,.55), rgba(6,78,59,.85));
}
.detail-hero .dh-inner {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto;
  padding: 40px 20px 44px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: start;
}
.dh-poster {
  border-radius: var(--radius);
  aspect-ratio: 2/3;
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.95); font-weight: 800; font-size: 22px;
  text-align: center; padding: 20px;
}
.dh-poster .dh-score-badge {
  position: absolute; bottom: 14px; left: 14px;
  background: rgba(15,23,42,.7); color: var(--amber-400);
  font-size: 20px; font-weight: 800;
  padding: 6px 14px; border-radius: 10px;
  backdrop-filter: blur(3px);
}

.dh-info .dh-titles { margin-bottom: 6px; }
.dh-info h1 {
  font-size: 34px; font-weight: 800; letter-spacing: -.5px;
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
}
.dh-info h1 .en {
  font-size: 18px; font-weight: 600; color: rgba(255,255,255,.7);
}
.dh-info .aka {
  font-size: 14px; color: rgba(255,255,255,.65); margin-top: 4px;
}
.dh-info .aka b { color: rgba(255,255,255,.85); font-weight: 600; }

.dh-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 22px; }
.dh-tags .tag {
  font-size: 12.5px; padding: 5px 12px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
}

.dh-score-row {
  display: flex; align-items: center; gap: 24px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  padding: 14px 20px; margin-bottom: 22px;
  backdrop-filter: blur(4px);
}
.dh-score-row .big {
  font-size: 30px; font-weight: 800; color: var(--amber-400);
}
.dh-score-row .big small { font-size: 14px; color: rgba(255,255,255,.6); font-weight: 500; }
.dh-score-row .stars { color: var(--amber-400); font-size: 15px; letter-spacing: 2px; }
.dh-score-row .stars .empty { color: rgba(255,255,255,.3); }
.dh-score-row .label { font-size: 12.5px; color: rgba(255,255,255,.7); }

/* 字段信息表 */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 32px;
}
.info-grid .row {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: 14px;
}
.info-grid .row .k { color: rgba(255,255,255,.55); font-weight: 500; white-space: nowrap; }
.info-grid .row .v { color: rgba(255,255,255,.92); }
.info-grid .row .v a { color: #7ee9c4; }
.info-grid .row .v a:hover { text-decoration: underline; }
.info-grid .row .v .sep { color: rgba(255,255,255,.3); margin: 0 6px; }

/* ============================== 详情主体 ============================== */
.detail-body { padding: 36px 0 60px; }
.detail-body .layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
  align-items: start;
}

/* 剧照截图 */
.shots-section { margin-bottom: 40px; }
.shots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.shot {
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform .2s;
}
.shot:hover { transform: scale(1.03); }
.shot .shot-art {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  display: flex; align-items: flex-end;
  padding: 8px;
  color: rgba(255,255,255,.85); font-size: 11px; font-weight: 600;
}
.shot .shot-no {
  position: absolute; top: 6px; left: 8px;
  background: rgba(0,0,0,.4); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 5px;
  backdrop-filter: blur(2px);
}

/* 简介 */
.synopsis {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 26px;
  box-shadow: var(--shadow-sm);
}
.synopsis h3 { font-size: 17px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.synopsis h3 .bar { width: 4px; height: 16px; border-radius: 2px; background: var(--green-500); }
.synopsis p { color: var(--ink-700); font-size: 14.5px; line-height: 1.85; }

/* 评论区 */
.comments-section { margin-top: 36px; }
.comment-box {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 26px;
  box-shadow: var(--shadow-sm);
}
.comment-form { margin-bottom: 22px; }
.comment-form .cf-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 15px;
  flex: none;
}
.comment-form textarea {
  width: 100%; min-height: 84px; resize: vertical;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 14px; font-family: inherit;
  outline: none; transition: all .2s; background: var(--ink-50);
}
.comment-form textarea:focus { border-color: var(--green-400); background: #fff; box-shadow: 0 0 0 3px var(--green-100); }
.cf-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.cf-foot .hint { font-size: 12.5px; color: var(--ink-400); }
.btn-green {
  background: var(--green-600); color: #fff; padding: 9px 22px;
  border-radius: 999px; font-weight: 600; font-size: 14px;
  transition: all .2s;
}
.btn-green:hover { background: var(--green-700); transform: translateY(-1px); }
.btn-green:disabled { background: var(--ink-400); cursor: not-allowed; transform: none; }

.comment-list { display: flex; flex-direction: column; gap: 2px; }
.comment-item {
  display: grid; grid-template-columns: 38px 1fr; gap: 12px;
  padding: 16px 0; border-top: 1px solid var(--ink-100);
}
.comment-item .c-body .c-top {
  display: flex; align-items: center; gap: 10px; margin-bottom: 5px;
}
.comment-item .c-body .c-name { font-weight: 700; font-size: 14px; }
.comment-item .c-body .c-time { font-size: 12px; color: var(--ink-400); }
.comment-item .c-body .c-rating { color: var(--amber-500); font-size: 13px; }
.comment-item .c-body .c-text { font-size: 14px; color: var(--ink-700); line-height: 1.7; }
.comment-item .c-actions { display: flex; gap: 16px; margin-top: 8px; }
.comment-item .c-actions button {
  font-size: 12.5px; color: var(--ink-500); display: flex; align-items: center; gap: 4px;
  transition: color .2s;
}
.comment-item .c-actions button:hover { color: var(--green-600); }
.comment-item .c-actions button.liked { color: var(--rose-500); }

.empty-state {
  text-align: center; padding: 40px 20px; color: var(--ink-400);
}
.empty-state svg { width: 48px; height: 48px; margin: 0 auto 10px; opacity: .5; }

/* 评分选择 */
.rate-select { display: flex; gap: 3px; }
.rate-select span { font-size: 20px; color: var(--ink-200); cursor: pointer; transition: all .15s; }
.rate-select span.on { color: var(--amber-500); transform: scale(1.12); }

/* 侧栏 */
.sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 84px; }
.side-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.side-card h3 { font-size: 16px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.side-card h3 .bar { width: 4px; height: 15px; border-radius: 2px; background: var(--green-500); }
.rank-list { display: flex; flex-direction: column; gap: 12px; }
.rank-item { display: flex; align-items: center; gap: 12px; }
.rank-item .rk-no {
  width: 22px; height: 22px; border-radius: 6px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #fff;
  background: var(--ink-400);
}
.rank-item:nth-child(1) .rk-no { background: var(--rose-500); }
.rank-item:nth-child(2) .rk-no { background: var(--amber-500); }
.rank-item:nth-child(3) .rk-no { background: var(--green-500); }
.rank-item .rk-name { flex: 1; font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-item .rk-score { font-size: 13px; font-weight: 700; color: var(--amber-500); }

.side-link-list { display: flex; flex-direction: column; gap: 10px; }
.side-link-list a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--ink-50); font-size: 14px; font-weight: 500;
  transition: all .18s;
}
.side-link-list a:hover { background: var(--green-50); color: var(--green-700); }
.side-link-list a .badge {
  margin-left: auto; font-size: 11px; padding: 2px 7px; border-radius: 5px;
  background: var(--green-100); color: var(--green-700);
}

/* ============================== 页脚 ============================== */
.site-footer {
  background: var(--ink-900); color: var(--ink-400);
  padding: 44px 0 24px; margin-top: 30px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px;
  padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-grid .f-brand img { display: block; flex-shrink: 0; }
.footer-online-item { display: flex; align-items: center; gap: 6px; font-size: 13.5px; cursor: default; }
.footer-online-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; display: inline-block; flex-shrink: 0; animation: footer-pulse 2s ease-in-out infinite; }
.footer-online-count { color: #22c55e; font-weight: 700; font-size: 15px; }
@keyframes footer-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
/* 底部手机端适配 */
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand-col { grid-column: 1 / -1; }
  .footer-grid p { max-width: 100%; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 18px; }
}
.footer-grid .f-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: #fff; font-weight: 800; font-size: 19px; }
.footer-grid p { font-size: 13.5px; line-height: 1.8; max-width: 320px; }
.footer-grid h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer-grid ul li { margin-bottom: 9px; }
.footer-grid ul li a { font-size: 13.5px; transition: color .18s; }
.footer-grid ul li a:hover { color: var(--green-400); }
.footer-bottom { text-align: center; padding-top: 20px; font-size: 12.5px; }

/* ============================== 灯箱 ============================== */
.lightbox {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1000;
  background: rgba(6, 18, 14, .92);
  display: none; align-items: center; justify-content: center;
  padding: 30px;
}
.lightbox.show { display: flex; }
.lightbox .lb-content {
  max-width: 90vw; max-height: 86vh;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox .lb-content .lb-art {
  width: min(900px, 90vw); aspect-ratio: 16/9;
  display: flex; align-items: flex-end; padding: 16px;
  color: #fff; font-weight: 700;
}
.lightbox .lb-close {
  position: absolute; top: 22px; right: 30px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff;
  font-size: 24px; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lightbox .lb-close:hover { background: rgba(255,255,255,.28); }
.lightbox .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff;
  font-size: 22px; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lightbox .lb-nav:hover { background: rgba(255,255,255,.28); }
.lightbox .lb-prev { left: 24px; }
.lightbox .lb-next { right: 24px; }

/* ============================== 返回顶部 ============================== */
.to-top {
  position: fixed; right: 28px; bottom: 28px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--green-600); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none; transition: all .25s;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--green-700); transform: translateY(-3px); }

/* ============================== 响应式 ============================== */
@media (max-width: 1024px) {
  .movie-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { width: 316px; }
  .detail-body .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .side-card { flex: 1 1 280px; }
  .nav { gap: 12px; }
  .nav-auth .nav-username { max-width: 70px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-search { flex: 0 1 200px; min-width: 120px; }
  .movie-grid { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 30px; }
  .dh-inner { grid-template-columns: 1fr; }
  .dh-poster { max-width: 240px; margin: 0 auto; }
  .info-grid { grid-template-columns: 1fr; }
  .shots-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { gap: 8px; }
  .nav-auth { gap: 4px; }
  .nav-auth .nav-username { max-width: 50px; font-size: 12px; }
  .nav-auth .nav-points-badge { font-size: 10.5px; padding: 2px 6px; }
  .nav-auth .nav-manage-link, .nav-auth .nav-logout { font-size: 11.5px; }
}
@media (max-width: 520px) {
  .movie-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .shots-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-search { flex: 0 1 190px; min-width: 130px; }
  .nav-auth .nav-points-badge { display: none; }
  .nav-auth .nav-manage-link { display: none; }
}

.shot-empty { opacity: .4; }


/* ========== 认领者徽章 ========== */
.dh-claimant {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 4px;
  padding: 6px 14px 6px 10px;
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 20px;
  animation: fadeInUp 0.4s ease;
}
.claimant-label {
  font-size: 12px;
  color: var(--green-700);
  font-weight: 600;
  letter-spacing: 0.5px;
}
.claimant-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green-700);
  text-decoration: none;
  transition: color 0.2s;
}
.claimant-link:hover {
  color: var(--green-800);
  text-decoration: underline;
}
.claimant-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

/* ========== 用户主页 ========== */
.profile-page {
  padding: 30px 0 60px;
  min-height: 60vh;
}
.profile-header {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 30px;
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border-radius: 16px;
  margin-bottom: 28px;
  border: 1px solid rgba(16,185,129,0.15);
}
.profile-avatar {
  width: 96px;
  height: 96px;
  min-width: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.profile-info {
  flex: 1;
}
.profile-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 8px;
}
.profile-name-row h1 {
  font-size: 24px;
  margin: 0;
  white-space: nowrap;
  flex-shrink: 0;
}
.profile-name-row .role-badge,
.profile-name-row .gender-badge,
.profile-name-row .champ-badge {
  flex-shrink: 0;
  white-space: nowrap;
}
.role-badge {
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 10px;
  font-weight: 600;
  background: var(--ink-100);
  color: var(--ink-600);
}
.role-badge.admin {
  background: var(--green-100);
  color: var(--green-700);
}
.profile-bio {
  font-size: 14px;
  color: var(--ink-600);
  line-height: 1.7;
  margin: 0 0 10px;
}
.profile-meta {
  display: flex;
  gap: 16px;
  font-size: 12.5px;
  color: var(--ink-400);
  margin-bottom: 16px;
}
.profile-stats {
  display: flex;
  gap: 24px;
}
.stat-item {
  display: flex;
  flex-direction: column;
}
.stat-item b {
  font-size: 22px;
  color: var(--green-700);
}
.stat-item span {
  font-size: 12px;
  color: var(--ink-400);
}

/* ========== 粉丝数醒目展示 ========== */
.profile-followers-highlight {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: #fff;
  padding: 10px 20px;
  border-radius: 12px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 14px rgba(16,185,129,0.3);
}
.profile-followers-highlight:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16,185,129,0.4);
}
.profile-followers-highlight .followers-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  flex-shrink: 0;
}
.profile-followers-highlight .followers-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.profile-followers-highlight .followers-info b {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}
.profile-followers-highlight .followers-info span {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
}
@media (max-width: 640px) {
  .profile-followers-highlight {
    padding: 8px 16px;
    margin-bottom: 12px;
  }
  .profile-followers-highlight .followers-info b {
    font-size: 20px;
  }
}

.profile-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border);
}
.profile-tab {
  padding: 10px 20px;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-400);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.profile-tab.active {
  color: var(--green-700);
  border-bottom-color: var(--green-600);
}
.profile-tab:hover {
  color: var(--green-600);
}
.profile-loading, .profile-error {
  padding: 40px;
  text-align: center;
  color: var(--ink-400);
  font-size: 14px;
}

/* ========== 猫单页面 ========== */
.catlist-page {
  padding: 30px 0 60px;
  min-height: 60vh;
}
.catlist-card {
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.catlist-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(16,185,129,0.12);
}
.cl-icon {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.remove-from-list {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #dc2626;
  color: #fff;
  border: 2px solid #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform 0.15s;
}
.remove-from-list:hover {
  transform: scale(1.15);
}

/* ========== 模态框 ========== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}
.modal-box {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  width: 90%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: fadeInUp 0.3s ease;
}
.modal-box h3 {
  font-size: 18px;
  margin: 0 0 16px;
}
.modal-box .form-group {
  margin-bottom: 16px;
}
.modal-box .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-600);
  margin-bottom: 6px;
}
.modal-box .form-group input,
.modal-box .form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
  font-family: inherit;
  resize: vertical;
}
.modal-box .form-group input:focus,
.modal-box .form-group textarea:focus {
  border-color: var(--green-500);
}
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* ========== 小按钮 ========== */
.btn-sm {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 8px;
}

/* ========== 动画 ========== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
  }
  .profile-name-row {
    justify-content: center;
    flex-wrap: wrap;
  }
  .profile-stats {
    justify-content: center;
  }
  .profile-meta {
    justify-content: center;
  }
  .catlist-page .section-head,
  #listsContainer,
  #catlistCards {
    grid-template-columns: 1fr !important;
  }
}


/* ========== 认领者卡片（醒目版） ========== */
.dh-claimant-card {
  margin: 14px 0 6px;
  animation: fadeInUp 0.4s ease;
}
.claimant-card-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(16, 185, 129, 0.15);
  border: 1.5px solid rgba(16, 185, 129, 0.45);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.15);
}
.claimant-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}
.claimant-big-avatar {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  /* 去掉白色边框，照片铺满整个圆形相框；绿色细环呼应绿猫主题 */
  box-shadow: 0 0 0 2px rgba(46,107,79,.45), 0 2px 8px rgba(0,0,0,0.2);
}
.claimant-info {
  min-width: 0;
  flex: 1;
}
.claimant-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.claimant-tag {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--green-600);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.claimant-username {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}
.claimant-username:hover {
  color: #7ee9c4;
  text-decoration: underline;
}
.claimant-points-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--green-200);
  background: rgba(16, 185, 129, 0.3);
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}
.claimant-bio {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.claimant-actions {
  flex-shrink: 0;
}
.claimant-own-badge {
  font-size: 13px;
  font-weight: 600;
  color: var(--green-200);
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.25);
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.bid-btn {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  border: none;
  padding: 10px 24px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
  white-space: nowrap;
}
.bid-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}
.bid-btn:active {
  transform: translateY(0);
}
.claimant-empty {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  padding: 8px 0;
}

/* 响应式：小屏幕认领者卡片 */
@media (max-width: 640px) {
  .claimant-card-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
  }
  .claimant-actions {
    width: 100%;
  }
  .bid-btn {
    width: 100%;
  }
  .claimant-username {
    font-size: 16px;
  }
}

/* ========== 竞领弹框 ========== */
.bid-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(6, 78, 59, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.bid-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.bid-modal {
  background: #fff;
  border-radius: 18px;
  width: 420px;
  max-width: 92vw;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(16, 185, 129, 0.15);
  overflow: hidden;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}
.bid-modal-overlay.show .bid-modal {
  transform: translateY(0) scale(1);
}

.bid-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--ink-100);
  color: var(--ink-500);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.bid-modal-close:hover {
  background: #fee2e2;
  color: #dc2626;
  transform: rotate(90deg);
}

.bid-modal-header {
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  padding: 24px 28px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.bid-modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.bid-modal-header h3 {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.5px;
}

.bid-modal-body {
  padding: 22px 28px 16px;
}
.bid-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--ink-100);
}
.bid-info-row:last-of-type {
  border-bottom: none;
}
.bid-info-label {
  font-size: 13.5px;
  color: var(--ink-500);
  font-weight: 500;
}
.bid-info-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-700);
}
.bid-info-value.highlight {
  color: var(--green-600);
  font-size: 20px;
}

.bid-input-group {
  margin-top: 16px;
}
.bid-input-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
  margin-bottom: 8px;
}
.bid-input-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--ink-200);
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--green-700);
  outline: none;
  background: var(--green-50);
  transition: all 0.2s;
  text-align: center;
}
.bid-input-group input:focus {
  border-color: var(--green-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}
.bid-input-group input::-webkit-inner-spin-button,
.bid-input-group input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.bid-error {
  margin-top: 10px;
  padding: 10px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  font-size: 13px;
  color: #dc2626;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bid-modal-hint {
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--green-50);
  border-radius: 8px;
  font-size: 12px;
  color: var(--green-700);
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.bid-modal-hint svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--green-500);
}

.bid-modal-footer {
  padding: 16px 28px 24px;
  display: flex;
  gap: 12px;
}
.bid-btn-cancel {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--ink-200);
  background: var(--ink-50);
  color: var(--ink-600);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.bid-btn-cancel:hover {
  background: var(--ink-100);
}
.bid-btn-confirm {
  flex: 2;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}
.bid-btn-confirm:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}
.bid-btn-confirm:active {
  transform: translateY(0);
}
.bid-btn-confirm:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ========== Toast 提示 ========== */
.bid-toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  max-width: 90vw;
  text-align: center;
}
.bid-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.bid-toast.success {
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: #fff;
}
.bid-toast.error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
}
.bid-toast.info {
  background: linear-gradient(135deg, #64748b, #475569);
  color: #fff;
}

/* 弃领按钮（危险操作，红色描边） */
.claim-edit-btn.abandon-btn {
  background: #fff;
  color: #dc2626;
  border: 1.5px solid #fca5a5;
}
.claim-edit-btn.abandon-btn:hover {
  background: #fef2f2;
  border-color: #dc2626;
  box-shadow: 0 4px 12px rgba(220, 38, 38, .18);
}
/* 巴巴代管提示 */
.claimant-baba-tip {
  font-size: 13px;
  color: #64748b;
  align-self: center;
}

/* ========== 认领宣言编辑按钮 ========== */
.claim-edit-btn {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  border: none;
  padding: 10px 22px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.claim-edit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45);
}
.claim-edit-btn:active {
  transform: translateY(0);
}

/* 认领宣言弹框 */
.claim-bio-modal {
  width: 480px;
  max-width: 92vw;
}
.claim-bio-modal .bid-input-group textarea:focus {
  border-color: var(--green-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

/* ========== 加入猫单下拉框 ========== */
.ws-catlist-select {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--ink-200);
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-700);
  background: var(--ink-50);
  outline: none;
  cursor: pointer;
  transition: all 0.2s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2.5'%3e%3cpath d='M6 9l6 6 6-6' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 32px;
}
.ws-catlist-select:focus {
  border-color: var(--green-500);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}
.ws-catlist-add-btn {
  width: 100%;
  margin-top: 8px;
  padding: 9px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.ws-catlist-add-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}
.ws-catlist-add-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--ink-200);
}
.ws-catlist-create-btn {
  width: 100%;
  margin-top: 8px;
  padding: 8px;
  border: 1.5px dashed var(--green-400);
  border-radius: 8px;
  background: var(--green-50);
  color: var(--green-700);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.ws-catlist-create-btn:hover {
  background: var(--green-100);
  border-color: var(--green-600);
}
.catlist-success-msg {
  margin-top: 8px;
  padding: 8px 12px;
  background: var(--green-100);
  color: var(--green-700);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  animation: fadeInUp 0.3s ease;
}

/* ========== 观看途径面板 ========== */
.ws-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--ink-100);
}
.ws-item:last-child {
  border-bottom: none;
}
.ws-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.ws-item-user {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
}
.ws-item-free {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--green-100);
  color: var(--green-700);
  font-weight: 600;
}
.ws-item-locked {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #fef3c7;
  color: #92400e;
  font-weight: 600;
}
.ws-item-unlocked {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--green-100);
  color: var(--green-700);
  font-weight: 600;
}
.ws-item-mine {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #dbeafe;
  color: #1e40af;
  font-weight: 600;
}
.ws-item-claimant {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--green-600);
  color: #fff;
  font-weight: 600;
}
.ws-item-desc {
  font-size: 12px;
  color: var(--ink-500);
  margin-bottom: 4px;
}
.ws-item-link {
  display: inline-block;
  font-size: 13px;
  color: var(--green-600);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.ws-item-link:hover {
  color: var(--green-700);
  text-decoration: underline;
}
.ws-item-del {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: #dc2626;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.ws-item-del:hover {
  text-decoration: underline;
}
.ws-item-unlock-btn {
  margin-top: 4px;
  padding: 6px 14px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--amber-500), #ef4444);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.ws-item-unlock-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(239, 68, 68, 0.3);
}


/* ========== 海报下方卡片列（猫单 + 观看途径） ========== */
.dh-poster-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 深色背景上的卡片 */
.dh-side-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 16px 18px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.dh-side-card h3 {
  font-size: 15px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}
.dh-side-card h3 .bar {
  width: 4px;
  height: 15px;
  border-radius: 2px;
  background: var(--green-400);
}

/* 深色背景上的表单元素 */
.dh-side-card .ws-form-title {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
}
.dh-side-card .ws-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 6px;
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-sizing: border-box;
  transition: all 0.2s;
}
.dh-side-card .ws-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.dh-side-card .ws-input:focus {
  border-color: var(--green-400);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.dh-side-card .ws-points-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.dh-side-card .ws-input-points {
  width: 80px;
  margin-bottom: 0;
}
.dh-side-card .ws-points-hint {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.5);
}

/* 深色背景上的猫单下拉框 */
.dh-side-card .ws-catlist-select {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.dh-side-card .ws-catlist-select:focus {
  background-color: rgba(255, 255, 255, 0.14);
  border-color: var(--green-400);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.dh-side-card .ws-catlist-select option {
  background: #1a2e2a;
  color: #fff;
}
.dh-side-card .ws-catlist-create-btn {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: rgba(255, 255, 255, 0.9);
}
.dh-side-card .ws-catlist-create-btn:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: var(--green-500);
}
.dh-side-card .catlist-success-msg {
  background: rgba(16, 185, 129, 0.2);
  color: rgba(255, 255, 255, 0.95);
}

/* 深色背景上的观看途径列表 */
.dh-side-card .ws-item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.dh-side-card .ws-item:last-child {
  border-bottom: none;
}
.dh-side-card .ws-item-user {
  color: rgba(255, 255, 255, 0.95);
}
.dh-side-card .ws-item-desc {
  color: rgba(255, 255, 255, 0.6);
}
.dh-side-card .ws-item-link {
  color: #7ee9c4;
}
.dh-side-card .ws-item-link:hover {
  color: #a7f3d0;
}
.dh-side-card .ws-item-del {
  color: #fca5a5;
}

/* 响应式：小屏幕海报下方卡片 */
@media (max-width: 768px) {
  .dh-poster-col {
    max-width: 240px;
    margin: 0 auto;
  }
}


/* ========== 观看途径紧凑模式 ========== */
.ws-empty {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  padding: 4px 0;
}
.ws-compact-item {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ws-compact-item:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}
.ws-compact-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}
.ws-compact-user {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ws-compact-del {
  font-size: 16px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.4);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 2px;
  transition: color 0.2s;
}
.ws-compact-del:hover {
  color: #fca5a5;
}
.ws-compact-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 3px;
}
.ws-compact-link {
  display: inline-block;
  font-size: 12px;
  color: #7ee9c4;
  text-decoration: none;
  font-weight: 500;
}
.ws-compact-link:hover {
  color: #a7f3d0;
  text-decoration: underline;
}
.ws-compact-unlock {
  display: block;
  width: 100%;
  margin-top: 2px;
  padding: 5px 10px;
  border: none;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--amber-500), #ef4444);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.ws-compact-unlock:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* 观看途径徽章紧凑版 */
.ws-badge {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
}
.ws-badge-free {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}
.ws-badge-locked {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
}
.ws-badge-unlocked {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}
.ws-badge-mine {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}
.ws-badge-claimant {
  background: rgba(16, 185, 129, 0.5);
  color: #fff;
}

/* 折叠式添加按钮 */
.ws-collapsed-btn {
  width: 100%;
  margin-top: 8px;
  padding: 7px 10px;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.ws-collapsed-btn:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}
.ws-collapsed-icon {
  font-size: 14px;
  font-weight: 700;
}

/* ========== 海报列高度对齐右侧 ========== */
.dh-poster-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}
.dh-side-card:last-child {
  flex: 1;
}

/* ========== 深色背景下拉框 option 样式 ========== */
.dh-side-card .ws-catlist-select option {
  background: #1a2e2a;
  color: #fff;
}
.dh-side-card .ws-catlist-select option:disabled {
  color: rgba(255, 255, 255, 0.35);
}

/* ========== 创建猫单弹框输入框 ========== */
#createCatlistInput {
  transition: all 0.2s;
}
#createCatlistInput:focus {
  border-color: var(--green-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}


/* ========== 猫单详情视图切换 ========== */
.view-toggle {
  display: inline-flex;
  background: var(--ink-100);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.view-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-500);
  border: none;
  background: none;
  cursor: pointer;
  transition: all 0.2s;
}
.view-toggle-btn:hover {
  color: var(--green-700);
}
.view-toggle-btn.active {
  background: var(--green-600);
  color: #fff;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}
.view-toggle-btn svg {
  flex: none;
}

/* ========== 猫单列表视图 ========== */
.cl-list-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  transition: all 0.2s;
  position: relative;
}
.cl-list-row:hover {
  border-color: var(--green-200);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}
.cl-row-index {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink-200);
  width: 32px;
  text-align: center;
  flex: none;
}
.cl-list-row:hover .cl-row-index {
  color: var(--green-400);
}
.cl-row-poster {
  width: 52px;
  height: 74px;
  border-radius: 6px;
  flex: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.9);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}
.cl-row-info {
  flex: 1;
  min-width: 0;
}
.cl-row-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink-900);
  display: block;
  margin-bottom: 3px;
  text-decoration: none;
}
.cl-row-title:hover {
  color: var(--green-600);
}
/* 猫单列表:标题链接热区拉伸到整行,整卡可点击跳转详情页(无中文名影片也可点击) */
.cl-list-row .cl-row-title::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
.cl-row-sub {
  font-size: 12.5px;
  color: var(--ink-400);
  margin-bottom: 5px;
}
.cl-row-meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-500);
}
.cl-row-meta span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}
.cl-row-genre {
  color: var(--green-600) !important;
  font-weight: 500;
}
.cl-row-score {
  flex: none;
  text-align: center;
  padding: 0 12px;
}
.cl-row-score-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--amber-500);
  line-height: 1.1;
}
.cl-row-score-label {
  font-size: 11px;
  color: var(--ink-400);
}

/* 列表视图中的移除按钮 */
.cl-list-row .remove-from-list {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

/* 响应式 */
@media (max-width: 640px) {
  .cl-row-meta {
    display: none;
  }
  .cl-row-poster {
    width: 44px;
    height: 62px;
  }
  .view-toggle-btn {
    padding: 5px 10px;
    font-size: 12px;
  }
}"

""
"

/* ========== 影片网格响应式 ========== */
@media (max-width: 1200px) {
  .movie-grid { grid-template-columns: repeat(6, 1fr); }
  #detailMovies { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 768px) {
  .movie-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  #detailMovies { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .mc-body { padding: 6px 8px 8px; }
  .mc-title { font-size: 12px; }
  .mc-sub { font-size: 11px; }
}
@media (max-width: 480px) {
  .movie-grid { grid-template-columns: repeat(3, 1fr); }
  #detailMovies { grid-template-columns: repeat(3, 1fr); }
}

/* ========== 锚点跳转导航栏偏移（覆盖上一版块边缘） ========== */
section[id] {
  scroll-margin-top: 64px;
}
/* 首页各版块：用伪元素覆盖导航栏下方的上一版块边缘 */
#all::before,
#rank::before,
#mylists::before {
  content: "";
  position: absolute;
  top: -44px;
  left: 0;
  right: 0;
  height: 44px;
  background: var(--bg);
  z-index: 2;
  pointer-events: none;
}
#all, #rank, #mylists {
  position: relative;
  z-index: 1;
}
/* ========== 查看全部链接 ========== */
.view-all-link {
  white-space: nowrap;
  font-size: 13.5px;
  color: var(--green-600);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.view-all-link:hover {
  color: var(--green-700);
  text-decoration: underline;
}

/* ========== 分页 ========== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  padding: 20px 0;
  flex-wrap: wrap;
}
.pagination .page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink-600);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.pagination .page-btn:hover {
  border-color: var(--green-500);
  color: var(--green-600);
  background: var(--green-50);
}
.pagination .page-btn.active {
  background: var(--green-600);
  border-color: var(--green-600);
  color: #fff;
}
.pagination .page-ellipsis {
  color: var(--ink-400);
  font-size: 14px;
  padding: 0 4px;
}
.pagination .page-info {
  margin-left: 12px;
  font-size: 13px;
  color: var(--ink-400);
}
@media (max-width: 768px) {
  .pagination .page-btn {
    min-width: 34px;
    height: 34px;
    font-size: 12.5px;
    padding: 0 8px;
  }
  .pagination .page-info {
    width: 100%;
    text-align: center;
    margin-left: 0;
    margin-top: 8px;
  }
}

/* ========== 私信系统 ========== */
.msg-page { padding: 20px 0 40px; }
.msg-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  height: calc(100vh - var(--header-h) - 60px);
  min-height: 500px;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

/* 左侧会话列表 */
.conv-list {
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background: var(--ink-50);
  min-height: 0;
  overflow: hidden;
}
.conv-list-header {
  padding: 16px 18px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-900);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
}
.conv-list-header button {
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--green-600);
  color: #fff;
  border-radius: 8px;
  transition: background .2s;
}
.conv-list-header button:hover { background: var(--green-700); }
.conv-list-body { flex: 1; overflow-y: auto; }
.conv-item {
  padding: 14px 18px;
  cursor: pointer;
  border-bottom: 1px solid var(--ink-100);
  transition: background .15s;
  display: flex;
  align-items: center;
  gap: 12px;
}
.conv-item:hover { background: var(--green-50); }
.conv-item.active { background: var(--green-100); border-left: 3px solid var(--green-600); padding-left: 15px; }
.conv-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 16px;
  flex-shrink: 0;
}
.conv-info { flex: 1; min-width: 0; }
.conv-name {
  font-size: 14px; font-weight: 600; color: var(--ink-900);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.conv-preview {
  font-size: 12.5px; color: var(--ink-400); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.conv-time { font-size: 11px; color: var(--ink-400); flex-shrink: 0; }
.conv-unread {
  background: var(--rose-500); color: #fff;
  font-size: 11px; font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
  flex-shrink: 0;
}
/* 头像容器：用于定位未读徽章 */
.conv-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
/* 头像右上角未读徽章 */
.conv-avatar-unread {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--rose-500);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  z-index: 1;
}
/* 发送者名字旁的未读徽章 */
.conv-name-unread {
  display: inline-block;
  background: var(--rose-500);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  border-radius: 8px;
  padding: 0 4px;
  text-align: center;
  vertical-align: middle;
  margin-left: 4px;
}
.conv-empty {
  text-align: center; padding: 40px 20px;
  color: var(--ink-400); font-size: 14px;
}

/* 右侧聊天区 */
.chat-area {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
.chat-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 15px; font-weight: 700;
  color: var(--ink-900);
  display: flex; align-items: center; gap: 10px;
  background: var(--card);
  flex-shrink: 0;
}
.chat-header .chat-actions { margin-left: auto; display: flex; gap: 8px; }
.chat-header .chat-action-btn {
  padding: 5px 12px; font-size: 12px; font-weight: 600;
  border-radius: 7px; transition: all .2s;
}
.chat-header .chat-action-btn.transfer { background: var(--amber-500); color: #fff; }
.chat-header .chat-action-btn.transfer:hover { background: #d97706; }
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg);
  min-height: 0;
}
.msg-bubble {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
  position: relative;
}
.msg-bubble.sent {
  align-self: flex-end;
  background: var(--green-600);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg-bubble.received {
  align-self: flex-start;
  background: var(--card);
  color: var(--ink-900);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.msg-bubble.system {
  align-self: center;
  background: var(--amber-400);
  color: #422006;
  font-size: 13px;
  border-radius: 10px;
  max-width: 80%;
}
.msg-time {
  font-size: 11px;
  color: var(--ink-400);
  margin-top: 4px;
}
.msg-bubble.sent .msg-time { color: rgba(255,255,255,.7); }
.chat-input-area {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  background: var(--card);
  flex-shrink: 0;
}
.chat-input-area textarea {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  resize: none;
  outline: none;
  transition: border-color .2s;
  max-height: 120px;
}
.chat-input-area textarea:focus { border-color: var(--green-400); box-shadow: 0 0 0 3px var(--green-100); }
.chat-input-area button {
  padding: 10px 22px;
  background: var(--green-600);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border-radius: 10px;
  transition: background .2s;
  flex-shrink: 0;
}
.chat-input-area button:hover { background: var(--green-700); }
.chat-input-area button:disabled { opacity: .5; cursor: not-allowed; }
.chat-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ink-400);
  gap: 12px;
}
.chat-placeholder svg { width: 56px; height: 56px; }
.chat-placeholder span { font-size: 14px; }

/* 新建私信/转送弹窗 */
.msg-overlay {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}
.msg-overlay.show { display: flex; }
.msg-box {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 460px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.msg-box .close-btn {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ink-100);
  color: var(--ink-500);
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.msg-box .close-btn:hover { background: var(--ink-200); color: var(--ink-700); }
.msg-box h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.search-user-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
  margin-bottom: 12px;
}
.search-user-input:focus { border-color: var(--green-400); box-shadow: 0 0 0 3px var(--green-100); }
.user-search-results {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 12px;
}
.user-search-item {
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background .15s;
}
.user-search-item:hover { background: var(--green-50); }
.user-search-item .usa-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 14px;
  flex-shrink: 0;
}
.user-search-item .usa-name { font-size: 14px; font-weight: 500; color: var(--ink-900); }
.user-search-item.selected { background: var(--green-100); }
.selected-user-box {
  padding: 10px 14px;
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: 10px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.selected-user-box .usa-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 13px;
  flex-shrink: 0;
}
.selected-user-box .clear-sel {
  margin-left: auto;
  color: var(--ink-400);
  cursor: pointer;
  font-size: 18px;
}
.msg-box textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  resize: none;
  outline: none;
  min-height: 80px;
  margin-bottom: 14px;
  transition: border-color .2s;
}
.msg-box textarea:focus { border-color: var(--green-400); box-shadow: 0 0 0 3px var(--green-100); }
.msg-box .transfer-amount-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.msg-box .transfer-amount-row input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
}
.msg-box .transfer-amount-row input:focus { border-color: var(--green-400); box-shadow: 0 0 0 3px var(--green-100); }
.msg-box .transfer-amount-row span { font-size: 13px; color: var(--ink-500); white-space: nowrap; }
.msg-box .modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.msg-box .btn-send {
  padding: 10px 24px;
  background: var(--green-600);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border-radius: 10px;
  transition: background .2s;
}
.msg-box .btn-send:hover { background: var(--green-700); }
.msg-box .btn-send:disabled { opacity: .5; cursor: not-allowed; }
.msg-box .btn-cancel {
  padding: 10px 20px;
  background: var(--ink-100);
  color: var(--ink-500);
  font-weight: 500;
  font-size: 14px;
  border-radius: 10px;
  transition: all .2s;
}
.msg-box .btn-cancel:hover { background: var(--ink-200); color: var(--ink-700); }
.transfer-hint {
  font-size: 12.5px;
  color: var(--ink-400);
  margin-bottom: 12px;
}
.transfer-hint b { color: var(--green-700); }

/* 导航栏私信图标 */
.nav-msg-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background .2s;
  text-decoration: none;
}
.nav-msg-icon:hover { background: var(--green-50); }
.nav-msg-icon svg { width: 20px; height: 20px; color: var(--ink-500); transition: color .2s; }
.nav-msg-icon:hover svg { color: var(--green-600); }
.nav-msg-badge {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--rose-500);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
}

/* 个人主页私信/转送按钮 */
.profile-action-btns {
  display: flex;
  gap: 10px;
  margin-left: auto;
}
.profile-action-btns .btn-msg {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  background: var(--green-50);
  color: var(--green-700);
  border: 1px solid var(--green-200);
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.profile-action-btns .btn-msg:hover { background: var(--green-100); }
.profile-action-btns .btn-transfer {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  background: var(--amber-500);
  color: #fff;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.profile-action-btns .btn-transfer:hover { background: #d97706; }

/* 响应式 */
@media (max-width: 768px) {
  .msg-layout { grid-template-columns: 1fr; height: calc(100vh - var(--header-h) - 40px); position: relative; }
  /* 移动端私信：默认显示会话列表，打开会话后切换到聊天区 */
  .conv-list { display: flex; border-right: none; }
  .chat-area { display: none; }
  .msg-layout.chat-open .conv-list { display: none; }
  .msg-layout.chat-open .chat-area { display: flex; }
  .chat-back-btn { display: inline-flex; }
  .msg-bubble { max-width: 85%; }
}


/* ========== Toast 通知系统 ========== */
.toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(15,23,42,.12), 0 2px 8px rgba(15,23,42,.08);
  min-width: 280px;
  max-width: 400px;
  pointer-events: auto;
  animation: toastSlideIn .35s cubic-bezier(.21,1.02,.73,1) forwards;
  backdrop-filter: blur(8px);
}
.toast.toast-out { animation: toastSlideOut .3s ease-in forwards; }
.toast-success { background: linear-gradient(135deg, #059669, #10b981); color: #fff; }
.toast-error { background: linear-gradient(135deg, #dc2626, #ef4444); color: #fff; }
.toast-info { background: linear-gradient(135deg, #334155, #475569); color: #fff; }
.toast-icon {
  width: 22px; height: 22px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.toast-icon svg { width: 100%; height: 100%; }
.toast-msg { flex: 1; line-height: 1.4; }
.toast-close {
  flex-shrink: 0;
  cursor: pointer;
  opacity: .7;
  transition: opacity .2s;
  font-size: 16px;
  line-height: 1;
}
.toast-close:hover { opacity: 1; }
@keyframes toastSlideIn {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes toastSlideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(120%); opacity: 0; }
}

/* ========== 转送猫粮弹窗（重新设计） ========== */
.msg-box.transfer-box {
  width: 420px;
  padding: 0;
  overflow: hidden;
}
/* 渐变头部 */
.transfer-header {
  background: linear-gradient(135deg, #064e3b 0%, #047857 50%, #059669 100%);
  padding: 24px 28px 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.transfer-header::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}
.transfer-header .th-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}
.transfer-header .th-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.transfer-header .th-icon svg { width: 24px; height: 24px; color: #ffe08a; }
.transfer-header .th-title {
  font-size: 18px; font-weight: 700;
}
.transfer-header .th-sub {
  font-size: 12.5px; color: rgba(255,255,255,.7); margin-top: 2px;
}
.transfer-header .close-btn {
  position: absolute;
  top: 16px; right: 16px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
  z-index: 2;
  border: none;
  cursor: pointer;
}
.transfer-header .close-btn:hover { background: rgba(255,255,255,.3); }

/* 余额卡片 */
.transfer-balance-card {
  margin: 20px 28px 0;
  background: linear-gradient(135deg, var(--green-50), #fff);
  border: 1px solid var(--green-200);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.transfer-balance-card .tbc-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--green-100);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.transfer-balance-card .tbc-icon svg { width: 22px; height: 22px; color: var(--green-700); }
.transfer-balance-card .tbc-label { font-size: 12px; color: var(--ink-500); }
.transfer-balance-card .tbc-value {
  font-size: 24px; font-weight: 800; color: var(--green-700);
  line-height: 1.2;
}
.transfer-balance-card .tbc-value small { font-size: 13px; font-weight: 500; color: var(--ink-400); }

/* 转送表单区 */
.transfer-body { padding: 20px 28px 24px; }
.transfer-body .tb-label {
  font-size: 13px; font-weight: 600; color: var(--ink-700);
  margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}
.transfer-body .tb-label svg { width: 15px; height: 15px; color: var(--green-600); }
.transfer-body .search-user-input {
  margin-bottom: 10px;
}
.transfer-body .transfer-amount-wrap {
  position: relative;
  margin-bottom: 14px;
}
.transfer-body .transfer-amount-wrap input {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 12px 50px 12px 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-900);
  outline: none;
  transition: all .2s;
  text-align: center;
}
.transfer-body .transfer-amount-wrap input:focus {
  border-color: var(--green-400);
  box-shadow: 0 0 0 4px var(--green-100);
}
.transfer-body .transfer-amount-wrap .amount-suffix {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-400);
  pointer-events: none;
}
/* 快捷金额 */
.quick-amounts {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.quick-amounts .qa-btn {
  flex: 1;
  padding: 8px 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
  cursor: pointer;
  transition: all .15s;
}
.quick-amounts .qa-btn:hover {
  border-color: var(--green-400);
  color: var(--green-700);
  background: var(--green-50);
}
.quick-amounts .qa-btn.active {
  background: var(--green-600);
  border-color: var(--green-600);
  color: #fff;
}
.transfer-body textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  resize: none;
  outline: none;
  min-height: 60px;
  margin-bottom: 18px;
  transition: border-color .2s;
}
.transfer-body textarea:focus { border-color: var(--green-400); box-shadow: 0 0 0 3px var(--green-100); }
.transfer-body .modal-actions {
  display: flex;
  gap: 10px;
}
.transfer-body .btn-send {
  flex: 1;
  padding: 12px;
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border-radius: 10px;
  transition: all .2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.transfer-body .btn-send:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16,185,129,.3);
}
.transfer-body .btn-send:disabled {
  opacity: .45; cursor: not-allowed; transform: none; box-shadow: none;
}
.transfer-body .btn-cancel {
  padding: 12px 20px;
  background: var(--ink-100);
  color: var(--ink-500);
  font-weight: 600;
  font-size: 14px;
  border-radius: 10px;
  transition: all .2s;
}
.transfer-body .btn-cancel:hover { background: var(--ink-200); color: var(--ink-700); }

/* 转送成功动画 */
.transfer-success {
  display: none;
  padding: 40px 28px;
  text-align: center;
}
.transfer-success.show { display: block; animation: fadeUp .4s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.success-check-circle {
  width: 72px; height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--green-100);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  animation: popIn .4s cubic-bezier(.21,1.02,.73,1);
}
@keyframes popIn {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.success-check-circle svg {
  width: 36px; height: 36px;
  color: var(--green-600);
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: drawCheck .4s .2s ease forwards;
}
@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}
.transfer-success .ts-title {
  font-size: 18px; font-weight: 700; color: var(--ink-900);
  margin-bottom: 6px;
}
.transfer-success .ts-amount {
  font-size: 32px; font-weight: 800; color: var(--green-600);
  margin: 8px 0;
}
.transfer-success .ts-amount small { font-size: 14px; color: var(--ink-400); font-weight: 500; }
.transfer-success .ts-to {
  font-size: 14px; color: var(--ink-500); margin-bottom: 4px;
}
.transfer-success .ts-to b { color: var(--ink-900); }
.transfer-success .ts-balance {
  font-size: 13px; color: var(--ink-400);
  margin-top: 8px;
  padding: 8px 16px;
  background: var(--ink-50);
  border-radius: 8px;
  display: inline-block;
}
.transfer-success .ts-balance b { color: var(--green-700); }
.transfer-success .ts-actions {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  justify-content: center;
}
.transfer-success .ts-actions button {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  transition: all .2s;
}
.transfer-success .ts-btn-done {
  background: var(--green-600);
  color: #fff;
}
.transfer-success .ts-btn-done:hover { background: var(--green-700); }

/* selected user box in transfer */
.transfer-body .selected-user-box {
  padding: 10px 14px;
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: 10px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.transfer-body .selected-user-box .clear-sel {
  margin-left: auto;
  color: var(--ink-400);
  cursor: pointer;
  font-size: 18px;
}
.transfer-body .selected-user-box .clear-sel:hover { color: var(--ink-700); }

/* user search results in transfer */
.transfer-body .user-search-results {
  max-height: 180px;
  overflow-y: auto;
  margin-bottom: 14px;
  border-radius: 10px;
}


/* ========== 聊天头部可点击元素 & 关注/拉黑 ========== */
/* 头像和名字可点击跳转 */
.chat-header .chat-user-link {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  padding: 4px 8px;
  margin: -4px -8px;
  border-radius: 10px;
  transition: background .2s;
}
.chat-header .chat-user-link:hover {
  background: var(--green-50);
}
.chat-header .chat-user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 14px;
  flex-shrink: 0;
  transition: transform .2s;
}
.chat-header .chat-user-link:hover .chat-user-avatar {
  transform: scale(1.08);
}
.chat-header .chat-user-name {
  font-size: 15px; font-weight: 700;
  color: var(--ink-900);
  transition: color .2s;
}
.chat-header .chat-user-link:hover .chat-user-name {
  color: var(--green-700);
}
/* 小箭头提示 */
.chat-header .chat-user-link::after {
  content: "";
  width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M7 17l9.2-9.2M17 17V8H8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: 0;
  transition: opacity .2s;
}
.chat-header .chat-user-link:hover::after {
  opacity: .7;
}

/* 私信对话框备注按钮 */
.chat-remark-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--ink-200);
  border-radius: 8px;
  background: var(--ink-50);
  color: var(--ink-500);
  cursor: pointer;
  transition: all .2s;
  flex-shrink: 0;
  margin-left: 2px;
}
.chat-remark-btn svg { width: 15px; height: 15px; }
.chat-remark-btn:hover {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}
.chat-remark-btn.has-remark {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}
.chat-remark-btn.has-remark:hover {
  background: #fef3c7;
}

/* 关注/拉黑按钮 */
.chat-header .chat-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}
.chat-action-btn {
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 8px;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  border: none;
}
.chat-action-btn svg { width: 14px; height: 14px; }
.chat-action-btn.transfer {
  background: var(--amber-500);
  color: #fff;
}
.chat-action-btn.transfer:hover { background: #d97706; }
.chat-action-btn.follow {
  background: var(--green-600);
  color: #fff;
}
.chat-action-btn.follow:hover { background: var(--green-700); }
.chat-action-btn.following {
  background: var(--green-50);
  color: var(--green-700);
  border: 1px solid var(--green-200);
}
.chat-action-btn.following:hover {
  background: var(--rose-50);
  color: var(--rose-500);
  border-color: var(--rose-200);
}
.chat-action-btn.following:hover .btn-label::after {
  content: " 取关";
}
.chat-action-btn.block {
  background: var(--ink-100);
  color: var(--ink-500);
  border: 1px solid var(--ink-200);
}
.chat-action-btn.block:hover {
  background: var(--rose-50);
  color: var(--rose-500);
  border-color: var(--rose-200);
}
.chat-action-btn.blocked {
  background: var(--rose-50);
  color: var(--rose-500);
  border: 1px solid var(--rose-200);
}
.chat-action-btn.blocked:hover {
  background: var(--green-50);
  color: var(--green-700);
  border-color: var(--green-200);
}

/* 会话列表头像和名字 hover */
.conv-item .conv-avatar,
.conv-item .conv-name {
  cursor: pointer;
  transition: opacity .2s;
}
.conv-item:hover .conv-avatar {
  opacity: .85;
}
.conv-item:hover .conv-name {
  color: var(--green-700);
}

/* 拉黑提示横幅 */
.blocked-banner {
  background: var(--rose-50);
  border: 1px solid var(--rose-200);
  color: var(--rose-500);
  font-size: 12.5px;
  font-weight: 500;
  padding: 10px 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.blocked-banner svg { width: 15px; height: 15px; flex-shrink: 0; }
.blocked-banner button {
  color: var(--green-600);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 12.5px;
  padding: 0;
}


/* ========== 聊天头部可点击元素 & 关注/拉黑 ========== */
/* 头像和名字可点击跳转 */
.chat-header .chat-user-link {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  padding: 4px 8px;
  margin: -4px -8px;
  border-radius: 10px;
  transition: background .2s;
}
.chat-header .chat-user-link:hover {
  background: var(--green-50);
}
.chat-header .chat-user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 14px;
  flex-shrink: 0;
  transition: transform .2s;
}
.chat-header .chat-user-link:hover .chat-user-avatar {
  transform: scale(1.08);
}
.chat-header .chat-user-name {
  font-size: 15px; font-weight: 700;
  color: var(--ink-900);
  transition: color .2s;
}
.chat-header .chat-user-link:hover .chat-user-name {
  color: var(--green-700);
}
/* 小箭头提示 */
.chat-header .chat-user-link::after {
  content: "";
  width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M7 17l9.2-9.2M17 17V8H8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: 0;
  transition: opacity .2s;
}
.chat-header .chat-user-link:hover::after {
  opacity: .7;
}

/* 关注/拉黑按钮 */
.chat-header .chat-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}
.chat-action-btn {
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 8px;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  border: none;
}
.chat-action-btn svg { width: 14px; height: 14px; }
.chat-action-btn.transfer {
  background: var(--amber-500);
  color: #fff;
}
.chat-action-btn.transfer:hover { background: #d97706; }
.chat-action-btn.follow {
  background: var(--green-600);
  color: #fff;
}
.chat-action-btn.follow:hover { background: var(--green-700); }
.chat-action-btn.following {
  background: var(--green-50);
  color: var(--green-700);
  border: 1px solid var(--green-200);
}
.chat-action-btn.following:hover {
  background: var(--rose-50);
  color: var(--rose-500);
  border-color: var(--rose-200);
}
.chat-action-btn.following:hover .btn-label::after {
  content: " 取关";
}
.chat-action-btn.block {
  background: var(--ink-100);
  color: var(--ink-500);
  border: 1px solid var(--ink-200);
}
.chat-action-btn.block:hover {
  background: var(--rose-50);
  color: var(--rose-500);
  border-color: var(--rose-200);
}
.chat-action-btn.blocked {
  background: var(--rose-50);
  color: var(--rose-500);
  border: 1px solid var(--rose-200);
}
.chat-action-btn.blocked:hover {
  background: var(--green-50);
  color: var(--green-700);
  border-color: var(--green-200);
}

/* 会话列表头像和名字 hover */
.conv-item .conv-avatar,
.conv-item .conv-name {
  cursor: pointer;
  transition: opacity .2s;
}
.conv-item:hover .conv-avatar {
  opacity: .85;
}
.conv-item:hover .conv-name {
  color: var(--green-700);
}

/* 拉黑提示横幅 */
.blocked-banner {
  background: var(--rose-50);
  border: 1px solid var(--rose-200);
  color: var(--rose-500);
  font-size: 12.5px;
  font-weight: 500;
  padding: 10px 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.blocked-banner svg { width: 15px; height: 15px; flex-shrink: 0; }
.blocked-banner button {
  color: var(--green-600);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 12.5px;
  padding: 0;
}



/* ========== 聊天头部可点击元素 & 关注/拉黑 ========== */
/* 头像和名字可点击跳转 */
.chat-header .chat-user-link {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  padding: 4px 8px;
  margin: -4px -8px;
  border-radius: 10px;
  transition: background .2s;
}
.chat-header .chat-user-link:hover {
  background: var(--green-50);
}
.chat-header .chat-user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 14px;
  flex-shrink: 0;
  transition: transform .2s;
}
.chat-header .chat-user-link:hover .chat-user-avatar {
  transform: scale(1.08);
}
.chat-header .chat-user-name {
  font-size: 15px; font-weight: 700;
  color: var(--ink-900);
  transition: color .2s;
}
.chat-header .chat-user-link:hover .chat-user-name {
  color: var(--green-700);
}
/* 小箭头提示 */
.chat-header .chat-user-link::after {
  content: "";
  width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M7 17l9.2-9.2M17 17V8H8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: 0;
  transition: opacity .2s;
}
.chat-header .chat-user-link:hover::after {
  opacity: .7;
}

/* 关注/拉黑按钮 */
.chat-header .chat-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}
.chat-action-btn {
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 8px;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  border: none;
}
.chat-action-btn svg { width: 14px; height: 14px; }
.chat-action-btn.transfer {
  background: var(--amber-500);
  color: #fff;
}
.chat-action-btn.transfer:hover { background: #d97706; }
.chat-action-btn.follow {
  background: var(--green-600);
  color: #fff;
}
.chat-action-btn.follow:hover { background: var(--green-700); }
.chat-action-btn.following {
  background: var(--green-50);
  color: var(--green-700);
  border: 1px solid var(--green-200);
}
.chat-action-btn.following:hover {
  background: var(--rose-50);
  color: var(--rose-500);
  border-color: var(--rose-200);
}
.chat-action-btn.following:hover .btn-label::after {
  content: " 取关";
}
.chat-action-btn.block {
  background: var(--ink-100);
  color: var(--ink-500);
  border: 1px solid var(--ink-200);
}
.chat-action-btn.block:hover {
  background: var(--rose-50);
  color: var(--rose-500);
  border-color: var(--rose-200);
}
.chat-action-btn.blocked {
  background: var(--rose-50);
  color: var(--rose-500);
  border: 1px solid var(--rose-200);
}
.chat-action-btn.blocked:hover {
  background: var(--green-50);
  color: var(--green-700);
  border-color: var(--green-200);
}

/* 会话列表头像和名字 hover */
.conv-item .conv-avatar,
.conv-item .conv-name {
  cursor: pointer;
  transition: opacity .2s;
}
.conv-item:hover .conv-avatar {
  opacity: .85;
}
.conv-item:hover .conv-name {
  color: var(--green-700);
}

/* 拉黑提示横幅 */
.blocked-banner {
  background: var(--rose-50);
  border: 1px solid var(--rose-200);
  color: var(--rose-500);
  font-size: 12.5px;
  font-weight: 500;
  padding: 10px 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.blocked-banner svg { width: 15px; height: 15px; flex-shrink: 0; }
.blocked-banner button {
  color: var(--green-600);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 12.5px;
  padding: 0;
}


/* ========== 个人主页关注/拉黑按钮 ========== */
.profile-action-btns {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-left: auto;
  gap: 8px;
}
.profile-action-btns .pf-btn-row {
  display: flex;
  gap: 6px;
  align-items: center;
}
.profile-action-btns .pf-btn-row + .pf-btn-row { padding-left: 8px; border-left: 1px solid rgba(0,0,0,0.1); }
.profile-action-btns .btn-msg,
.profile-action-btns .btn-transfer {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 5px;
  text-decoration: none;
  transition: all .2s;
  cursor: pointer; white-space: nowrap;
}
.profile-action-btns .btn-msg svg,
.profile-action-btns .btn-transfer svg,
.profile-action-btns .pf-btn svg {
  width: 12px;
  height: 12px;
}
.profile-action-btns .btn-msg {
  background: var(--green-600);
  color: #fff;
}
.profile-action-btns .btn-msg:hover { background: var(--green-700); }
.profile-action-btns .btn-transfer {
  background: var(--amber-500);
  color: #fff;
}
.profile-action-btns .btn-transfer:hover { background: #d97706; }
.profile-edit-btn { margin-left: auto; }
.pp-wrap, .eb-wrap { display: contents; }

/* 关注/拉黑按钮 */
.pf-btn {
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 5px;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  border: none; white-space: nowrap;
}
.pf-btn.pf-follow {
  background: var(--green-600);
  color: #fff;
}
.pf-btn.pf-follow:hover { background: var(--green-700); }
.pf-btn.pf-following {
  background: var(--green-50);
  color: var(--green-700);
  border: 1px solid var(--green-200);
}
.pf-btn.pf-following:hover {
  background: var(--rose-50);
  color: var(--rose-500);
  border-color: var(--rose-200);
}
.pf-btn.pf-following:hover .pf-btn-label::after {
  content: " 取关";
}
.pf-btn.pf-block {
  background: var(--ink-100);
  color: var(--ink-500);
  border: 1px solid var(--ink-200);
}
.pf-btn.pf-block:hover {
  background: var(--rose-50);
  color: var(--rose-500);
  border-color: var(--rose-200);
}
.pf-btn.pf-blocked {
  background: var(--rose-50);
  color: var(--rose-500);
  border: 1px solid var(--rose-200);
}
.pf-btn.pf-blocked:hover {
  background: var(--green-50);
  color: var(--green-700);
  border-color: var(--green-200);
}
/* 备注按钮 */
.pf-btn.pf-remark {
  background: var(--ink-50);
  color: var(--ink-600);
  border: 1px solid var(--ink-200);
}
.pf-btn.pf-remark:hover {
  background: var(--amber-50, #fffbeb);
  color: #b45309;
  border-color: #fde68a;
}
.pf-btn.pf-remark-active {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}
.pf-btn.pf-remark-active:hover {
  background: #fef3c7;
}
/* 备注原名标签 */
.remark-orig-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-400);
  background: var(--ink-50);
  border: 1px solid var(--ink-200);
  padding: 1px 8px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
  cursor: help;
  white-space: nowrap;
}

/* 粉丝统计项 */
.profile-stats .stat-item {
  cursor: default;
}

/* ========== 用户列表（关注/粉丝） ========== */
.user-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.user-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--ink-50);
  border-radius: 10px;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}
.user-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.user-card-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.user-card-info {
  flex: 1;
  min-width: 0;
}
.user-card-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 3px;
  color: var(--ink-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-card-name:hover {
  color: var(--green-700);
}
.user-card-bio {
  font-size: 12.5px;
  color: var(--ink-500);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.user-list-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-400);
  font-size: 14px;
}
/* ========== 申请修改/编辑资料 字段网格 ========== */
.propose-modal {
  width: 680px;
  max-width: 94vw;
  max-height: 88vh;
  overflow-y: auto;
}
.propose-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}
.propose-field {
  display: flex;
  flex-direction: column;
}
.propose-field.full {
  grid-column: 1 / -1;
}
.propose-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
  margin-bottom: 5px;
}
.propose-field input,
.propose-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--ink-200);
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink-700);
  outline: none;
  background: var(--green-50);
  transition: all 0.2s;
  font-family: inherit;
}
.propose-field input:focus,
.propose-field textarea:focus {
  border-color: var(--green-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}
.propose-field textarea {
  resize: vertical;
  line-height: 1.6;
}
/* ========== 人名链接样式 ========== */
.person-link { color: var(--green-600); text-decoration: none; transition: all .2s; cursor: pointer; }
.person-link:hover { color: var(--green-800); text-decoration: underline; opacity: .8; }
.info-grid .row .v .person-link { color: #7ee9c4; }
.info-grid .row .v .person-link:hover { color: #a3f7d4; }

/* ==========================================================================
   移动端全面适配
   ========================================================================== */

/* ---- 移动端汉堡菜单 ---- */
.nav-mobile-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  padding: 0;
  margin-left: auto;
}
.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--ink-700);
  border-radius: 2px;
  transition: all .3s;
}
.nav-mobile-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-mobile-toggle.open span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* 移动端顶栏快捷按钮（未登录：登录/注册；已登录：发布影片/求源） */
.nav-mobile-quick { display: none; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-mobile-quick .mq-btn {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
  white-space: nowrap;
  text-decoration: none;
  transition: all .2s;
}
.nav-mobile-quick .mq-btn-outline {
  color: var(--green-700);
  border: 1.5px solid var(--green-200);
  background: #fff;
}
.nav-mobile-quick .mq-btn-outline:hover { border-color: var(--green-500); color: var(--green-600); }
.nav-mobile-quick .mq-btn-solid {
  color: #fff;
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  box-shadow: 0 2px 6px rgba(5,150,105,.28);
}
.nav-mobile-quick .mq-btn-solid:hover { filter: brightness(1.05); }
/* 用户名胶囊：超长省略号截断 */
.nav-mobile-quick .mq-btn-user {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  vertical-align: middle;
}

/* 移动端下拉菜单 */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(16px);
  z-index: 99;
  flex-direction: column;
  padding: 12px 16px 24px;
  gap: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  border-bottom: 1px solid var(--border);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.nav-mobile-menu.show { display: flex; }
.nav-mobile-menu .mm-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ink-100);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 16px;
  margin-bottom: 10px;
}
.nav-mobile-menu .mm-search svg { width: 18px; height: 18px; color: var(--ink-400); flex: none; }
.nav-mobile-menu .mm-search input {
  border: none; background: none; outline: none;
  font-size: 15px; width: 100%; color: var(--ink-900);
}
.nav-mobile-menu .mm-search .mm-search-btn {
  border: none;
  background: var(--green-600);
  color: #fff;
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  flex: none;
}
.nav-mobile-menu .mm-search .mm-search-btn:active { transform: translateY(1px); }
.nav-mobile-menu a.mm-link {
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-700);
  border-radius: 12px;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-mobile-menu a.mm-link:hover { background: var(--green-50); color: var(--green-700); }
.nav-mobile-menu a.mm-link.active { background: var(--green-600); color: #fff; }
.nav-mobile-menu .mm-divider { height: 1px; background: var(--ink-100); margin: 8px 0; }
.nav-mobile-menu .mm-auth-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}
.nav-mobile-menu .mm-auth-row a { font-size: 15px; font-weight: 600; }
.nav-mobile-menu .mm-username { color: var(--ink-800); font-weight: 700; }
.nav-mobile-menu .mm-points { font-size: 13px; color: var(--green-700); background: var(--green-50); padding: 3px 10px; border-radius: 8px; }

/* ---- 全局移动端容器 ---- */
@media (max-width: 768px) {
  .container { padding: 0 14px; }

  /* 导航栏 */
  .nav { gap: 8px; }
  .brand { font-size: 17px; gap: 6px; }
  .brand .cat-logo { width: 32px; height: 32px; }
  .nav-links { display: none; }
  .nav-search { display: none; }
  .nav-auth { display: none; }
  .nav-mobile-quick { display: flex; margin-left: auto; }
  .nav-mobile-toggle { display: flex; margin-left: 0; }

  /* 英雄区 */
  .hero-inner { grid-template-columns: 1fr; padding: 28px 14px 32px; gap: 20px; text-align: center; }
  .hero h1 { font-size: 26px; line-height: 1.25; }
  .hero p.lead { font-size: 14px; margin-top: 10px; }
  .hero-cta { justify-content: center; gap: 10px; }
  .btn { padding: 10px 20px; font-size: 14px; }
  .hero-stats { justify-content: center; gap: 18px; margin-top: 22px; flex-wrap: wrap; }
  .hero-stats .stat b { font-size: 20px; }
  .hero-stats .stat span { font-size: 12px; }
  .hero-card { width: 100%; max-width: 300px; margin: 0 auto; }

  /* 区块通用 */
  .section { padding: 28px 0; }
  .section-head { flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
  .section-head h2 { font-size: 19px; }
  .section-head h2 .bar { height: 18px; }
  .filter-bar { gap: 6px; margin-bottom: 20px; }
  .chip { padding: 6px 12px; font-size: 12.5px; }

  /* 影片网格 */
  .movie-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
  .mc-body { padding: 5px 6px 8px; }
  .mc-title { font-size: 11.5px; }
  .mc-sub { font-size: 10.5px; }
  .mc-poster .mc-score { font-size: 10px; padding: 1px 5px; top: 4px; right: 4px; }
  .mc-poster .poster-art { font-size: 12px; }

  /* 详情页 */
  .dh-inner { grid-template-columns: 1fr; padding: 24px 14px 28px; gap: 20px; text-align: left; }
  .dh-poster { max-width: 200px; margin: 0 auto; }
  .dh-poster-col { max-width: 200px; margin: 0 auto; }
  .dh-info .dh-titles { text-align: center; }
  .dh-info h1 { font-size: 24px; justify-content: center; }
  .dh-info h1 .en { font-size: 15px; }
  .dh-info .aka { text-align: center; }
  .dh-tags { justify-content: flex-start; margin: 14px 0 18px; }
  .dh-tags .tag { font-size: 11.5px; padding: 4px 10px; }
  .dh-score-row { flex-wrap: wrap; justify-content: center; gap: 16px; padding: 12px 16px; }
  .dh-score-row .big { font-size: 26px; }
  .info-grid { grid-template-columns: 1fr; gap: 0; }
  .info-grid .row { grid-template-columns: 80px 1fr; font-size: 13px; padding: 8px 0; }

  /* 详情主体 */
  .detail-body { padding: 24px 0 40px; }
  .detail-body .layout { grid-template-columns: 1fr; gap: 24px; }
  .sidebar { position: static; flex-direction: column; gap: 16px; }
  .side-card { padding: 16px 18px; }
  .side-card h3 { font-size: 15px; }
  .synopsis { padding: 16px 18px; }
  .synopsis h3 { font-size: 16px; }
  .synopsis p { font-size: 14px; line-height: 1.8; }
  .shots-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  /* 评论区 */
  .comment-box { padding: 16px 18px; }
  .comment-form textarea { min-height: 72px; font-size: 14px; }
  .comment-item { grid-template-columns: 34px 1fr; gap: 10px; padding: 14px 0; }
  .avatar { width: 34px; height: 34px; font-size: 14px; }
  .comment-item .c-body .c-text { font-size: 14px; }

  /* 认领者卡片 */
  .claimant-card-inner { flex-direction: column; align-items: flex-start; gap: 12px; padding: 14px; }
  .claimant-big-avatar { width: 44px; height: 44px; min-width: 44px; font-size: 19px; }

  /* 页脚 */
  /* 页脚移动端样式见底部 v3 */

  /* 猫单页面 */
  .catlist-page { padding: 20px 0 40px; }
  #listsContainer { grid-template-columns: 1fr !important; gap: 14px !important; }
  #catlistCards { grid-template-columns: 1fr !important; gap: 14px !important; }
  .section-head { flex-wrap: wrap; }
  .section-head > div { flex-wrap: wrap; gap: 8px; }
  .view-toggle-btn { padding: 5px 10px; font-size: 12px; }
  #detailMovies { grid-template-columns: repeat(3, 1fr) !important; gap: 10px !important; }
  .cl-list-row { flex-wrap: wrap; gap: 8px; padding: 10px; }
  .cl-row-poster { width: 44px; height: 62px; }
  .cl-row-meta { display: none; }
  .cl-row-score { padding: 0 8px; }
  .cl-row-score-val { font-size: 17px; }

  /* 个人主页 */
  .profile-header { flex-direction: column; align-items: center; text-align: center; padding: 20px 14px; }
  .profile-name-row { justify-content: center; flex-wrap: wrap; gap: 8px; }
  .profile-name-row .pp-wrap { display: flex; justify-content: center; flex-basis: 100%; margin-top: 6px; }
  .profile-name-row .eb-wrap { display: flex; justify-content: center; flex-basis: 100%; margin-top: 4px; }
  .profile-name-row .pp-wrap .points-pill { margin-left: 0 !important; }
  .profile-name-row .eb-wrap .profile-edit-btn { margin: 0 !important; }
  .profile-stats { justify-content: center; gap: 16px; flex-wrap: wrap; }
  .stat-item b { font-size: 19px; }
  .profile-meta { justify-content: center; flex-wrap: wrap; gap: 10px; }
  .profile-tabs { gap: 2px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .profile-tab { padding: 8px 14px; font-size: 13px; white-space: nowrap; }
  .profile-action-btns { margin-left: 0; align-items: center; justify-content: center; margin-top: 12px; flex-direction: column; gap: 6px; }
  .profile-action-btns .btn-msg,
  .profile-action-btns .btn-transfer { padding: 7px 14px; font-size: 12.5px; }
  .profile-action-btns .pf-btn { padding: 7px 14px; font-size: 12.5px; }
  .profile-action-btns .pf-btn-row + .pf-btn-row { border-left: none; padding-left: 0; }
  .profile-edit-btn { margin: 12px 0 0 !important; display: inline-flex; justify-content: center; }
  .profile-followers-highlight { padding: 8px 16px; margin-bottom: 12px; }
  .profile-followers-highlight .followers-info b { font-size: 20px; }
  .profile-followers-highlight .followers-icon { width: 32px; height: 32px; }

  /* 私信页面 */
  .msg-layout { grid-template-columns: 1fr; height: calc(100vh - var(--header-h) - 30px); position: relative; }
  .conv-list { display: flex; border-right: none; }
  .chat-area { display: none; }
  .msg-layout.chat-open .conv-list { display: none; }
  .msg-layout.chat-open .chat-area { display: flex; }
  .chat-back-btn { display: inline-flex; }
  .msg-bubble { max-width: 85%; font-size: 14px; }
  .chat-header { padding: 12px 14px; font-size: 14px; }
  .chat-header .chat-actions { gap: 6px; }
  .chat-action-btn { padding: 5px 10px; font-size: 11.5px; }
  .chat-messages { padding: 14px; gap: 10px; }
  .chat-input-area { padding: 10px 14px; gap: 8px; }
  .chat-input-area textarea { padding: 8px 12px; font-size: 14px; }
  .chat-input-area button { padding: 8px 16px; font-size: 13px; }

  /* 模态框 */
  .modal-box { width: 94%; padding: 22px 20px; }
  .msg-box { width: 94%; padding: 22px 20px; }
  .msg-box.transfer-box { width: 94%; }

  /* Toast 通知 */
  .toast-container { right: 12px; left: 12px; top: 72px; }
  .toast { min-width: auto; max-width: 100%; font-size: 13.5px; padding: 12px 16px; }

  /* 灯箱 */
  .lightbox { padding: 16px; }
  .lightbox .lb-close { top: 14px; right: 16px; width: 38px; height: 38px; font-size: 20px; }
  .lightbox .lb-nav { width: 40px; height: 40px; font-size: 18px; }
  .lightbox .lb-prev { left: 10px; }
  .lightbox .lb-next { right: 10px; }

  /* 返回顶部 */
  .to-top { right: 16px; bottom: 16px; width: 40px; height: 40px; }

  /* 分页 */
  .pagination { gap: 5px; margin-top: 24px; padding: 14px 0; }
  .pagination .page-btn { min-width: 34px; height: 34px; font-size: 12.5px; padding: 0 8px; }
  .pagination .page-info { width: 100%; text-align: center; margin-left: 0; margin-top: 8px; }

  /* 登录/注册页面 */
  .auth-card { padding: 28px 22px; max-width: 380px; }
  .auth-card .brand { font-size: 20px; }
  .auth-card h2 { font-size: 18px; }
  .auth-form input { padding: 11px 12px; font-size: 15px; }

  /* 影人页面 */
  .person-info-grid { grid-template-columns: 1fr !important; }
  .person-header { flex-direction: column; align-items: center; text-align: center; }

  /* 猫咖页面 */
  .cafe-page { padding: 16px 0 40px; }
  .cafe-layout { grid-template-columns: 1fr !important; gap: 16px; }
  .cafe-editor { position: static !important; padding: 16px; }
  .cafe-editor h3 { font-size: 15px; }
  .cafe-head h2 { font-size: 19px; }
  .cafe-head .cafe-sub { font-size: 12px; }
  .cafe-type-tabs button { padding: 8px; font-size: 13px; }
  .cafe-editor textarea { min-height: 80px; font-size: 14px; padding: 12px; }
  .cafe-editor textarea.expanded { min-height: 280px; }
  .post-card { padding: 14px; margin-bottom: 10px; }
  .post-head .avatar { width: 32px; height: 32px; font-size: 13px; }
  .post-head .meta .name { font-size: 13.5px; }
  .post-body { font-size: 13.5px; }
  .post-images .img-cell { width: 56px; height: 56px; }
  .post-actions { gap: 14px; }
  .post-actions .act { font-size: 11.5px; }
  .post-actions .act svg { width: 14px; height: 14px; }
  .post-movie img { width: 26px; height: 36px; }
  .post-movie .info .t { font-size: 12.5px; }
  .post-movie .info .y { font-size: 10.5px; }
  .cafe-pagination button { padding: 6px 10px; font-size: 12px; }
  .cafe-img-prep .prep-item { width: 48px; height: 48px; }
  .cafe-img-preview .img-item { width: 48px; height: 48px; }
}

/* ---- 超小屏 (480px以下) ---- */
@media (max-width: 480px) {
  .container { padding: 0 12px; }

  /* 导航栏 */
  .brand { font-size: 16px; }
  .brand .cat-logo { width: 28px; height: 28px; }
  .brand .brand-name { font-size: 16px; }

  /* 英雄区 */
  .hero-inner { padding: 22px 12px 26px; }
  .hero h1 { font-size: 22px; }
  .hero p.lead { font-size: 13px; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 8px; }
  .hero-cta .btn { justify-content: center; }
  .hero-stats { gap: 14px; }
  .hero-stats .stat b { font-size: 18px; }
  .hero-card { padding: 14px; }

  /* 影片网格 - 3列 */
  .movie-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  body.has-home-search-results #movieGrid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  body.has-home-search-results #movieGrid .mc-body { padding: 4px 5px 7px; }
  body.has-home-search-results #movieGrid .mc-title { font-size: 11px; }
  body.has-home-search-results #movieGrid .mc-sub { font-size: 10px; }
  .movie-grid .mc-body { padding: 4px 5px 7px; }
  .movie-grid .mc-title { font-size: 11px; }
  .movie-grid .mc-sub { font-size: 10px; }
  #detailMovies { grid-template-columns: repeat(3, 1fr) !important; gap: 8px !important; }
  .mc-poster .mc-score { font-size: 10px; padding: 1px 4px; }
  .mc-poster .poster-art { font-size: 11px; }
  .mc-title { font-size: 12px; }
  .mc-sub { font-size: 10.5px; }

  /* 详情页 */
  .dh-info h1 { font-size: 21px; }
  .dh-info h1 .en { font-size: 13px; }
  .dh-score-row .big { font-size: 24px; }
  .info-grid .row { font-size: 12.5px; grid-template-columns: 72px 1fr; }

  /* 剧照 */
  .shots-grid { grid-template-columns: 1fr; }

  /* 页脚 */
  /* footer-grid mobile - handled by v3 */

  /* 猫单 */
  .catlist-page .section-head h2 { font-size: 17px; }
  .section-head > div { flex-direction: column; align-items: flex-start; gap: 6px; }

  /* 个人主页 */
  .profile-tabs { gap: 1px; }
  .profile-tab { padding: 7px 10px; font-size: 12px; }
  .stat-item b { font-size: 17px; }
  .stat-item span { font-size: 11px; }

  /* 私信 */
  .msg-bubble { max-width: 90%; font-size: 13.5px; padding: 8px 12px; }

  /* 模态框 */
  .modal-box { padding: 18px 16px; border-radius: 14px; }
  .msg-box { padding: 18px 16px; border-radius: 14px; }

  /* Toast */
  .toast { font-size: 13px; padding: 10px 14px; min-width: auto; }

  /* 登录/注册 */
  .auth-card { padding: 24px 18px; }
  .auth-card .brand { font-size: 18px; margin-bottom: 20px; }
  .auth-card h2 { font-size: 17px; }
  .auth-card p.sub { font-size: 12.5px; margin-bottom: 20px; }

  /* 认领者 */
  .claimant-card-inner { padding: 12px; }

  /* 分页 */
  .pagination .page-btn { min-width: 32px; height: 32px; font-size: 12px; padding: 0 6px; }
}

/* ---- 超极小屏 (360px以下) ---- */
@media (max-width: 360px) {
  .hero h1 { font-size: 19px; }
  .hero-stats { gap: 10px; }
  .hero-stats .stat b { font-size: 16px; }
  .hero-stats .stat span { font-size: 11px; }
  .movie-grid { gap: 8px; }
  .dh-info h1 { font-size: 19px; }
  .dh-info h1 .en { font-size: 12px; }
  .profile-tab { padding: 6px 8px; font-size: 11.5px; }
  .brand { font-size: 15px; }
  .brand .cat-logo { width: 26px; height: 26px; }
}

/* ---- 移动端点击优化 ---- */
@media (max-width: 768px) {
  .movie-card:hover { transform: none; }
  .side-link-list a:hover { background: var(--ink-50); }
  .chip { -webkit-tap-highlight-color: transparent; }
  a, button { -webkit-tap-highlight-color: transparent; }
  /* 防止移动端文字过小 */
  html { -webkit-text-size-adjust: 100%; }
}

/* ---- 平板适配 (769px-1024px) ---- */
@media (max-width: 1024px) and (min-width: 769px) {
  .movie-grid { grid-template-columns: repeat(5, 1fr); }
  #detailMovies { grid-template-columns: repeat(4, 1fr); }
  .nav { gap: 12px; }
  .nav-auth .nav-username { max-width: 70px; }
}


/* ============================== 移动端详情页修复 v2 ============================== */

/* 防止水平溢出 */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  /* 详情页顶部区域 */
  .detail-hero { overflow: hidden; }
  .dh-inner {
    grid-template-columns: 1fr !important;
    padding: 20px 14px 24px !important;
    gap: 16px !important;
    text-align: left !important;
  }
  
  /* 海报列：不限制宽度，让加入猫单卡片可以全宽显示 */
  .dh-poster-col {
    max-width: 100% !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .dh-poster {
    max-width: 160px !important;
    width: 100% !important;
    margin: 0 auto !important;
  }
  
  /* 加入猫单卡片：全宽显示 */
  .dh-side-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px !important;
  }
  .dh-side-card h3 {
    font-size: 14px !important;
    margin-bottom: 10px !important;
  }
  .ws-catlist-select {
    width: 100% !important;
    font-size: 14px !important;
    padding: 10px 12px !important;
  }
  .ws-catlist-add-btn {
    width: 100% !important;
    padding: 10px !important;
    font-size: 14px !important;
  }
  
  /* 标题区域 */
  .dh-info {
    width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-align: left !important;
  }
  .dh-info .dh-titles { text-align: center !important; }
  .dh-info h1 {
    font-size: 22px !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    word-break: break-word !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .dh-info h1 .en {
    font-size: 14px !important;
    word-break: break-word !important;
    flex-basis: 100% !important;
    text-align: center !important;
  }
  .dh-info .aka {
    font-size: 12.5px !important;
    word-break: break-all !important;
    text-align: center !important;
  }
  
  /* 标签 */
  .dh-tags {
    justify-content: flex-start !important;
    gap: 6px !important;
    margin: 12px 0 16px !important;
  }
  .dh-tags .tag {
    font-size: 11.5px !important;
    padding: 4px 10px !important;
  }
  
  /* 评分行 */
  .dh-score-row {
    padding: 12px 14px !important;
    margin: 12px 0 14px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  .dh-score-left {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }
  .dh-score-right {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .dh-score-divider { display: none !important; }
  .dh-score-item .big { font-size: 22px !important; }
  .dh-score-item .label { font-size: 11px !important; }
  .dh-score-item .sub-label { font-size: 10px !important; }
  .vs-btn {
    padding: 7px 12px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }
  .vs-btn .vs-count {
    min-width: 16px !important;
    height: 16px !important;
    line-height: 16px !important;
    font-size: 10px !important;
  }
  .vs-rating-display {
    margin: 8px 0 14px !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
  }
  
  /* 认领者卡片 */
  .dh-claimant-card { margin: 10px 0 4px !important; }
  .claimant-card-inner {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 14px !important;
  }
  .claimant-left {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 10px !important;
  }
  .claimant-big-avatar {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    font-size: 19px !important;
  }
  .claimant-name-row {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }
  .claimant-username { font-size: 15px !important; }
  .claimant-bio {
    text-align: center !important;
    -webkit-line-clamp: 3 !important;
  }
  .claimant-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: center !important;
  }
  .claim-edit-btn {
    padding: 8px 14px !important;
    font-size: 12.5px !important;
    white-space: nowrap !important;
  }
  .bid-btn {
    font-size: 13px !important;
    padding: 8px 16px !important;
  }
  
  /* 字段信息表 */
  .info-grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .info-grid .row {
    grid-template-columns: 72px 1fr !important;
    font-size: 13px !important;
    padding: 7px 0 !important;
    gap: 8px !important;
  }
  .info-grid .row .k { font-size: 12px !important; }
  .info-grid .row .v { font-size: 13px !important; word-break: break-word !important; }
  
  /* 详情主体布局 */
  .detail-body { padding: 20px 0 40px !important; }
  .detail-body .layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .sidebar {
    position: static !important;
    flex-direction: column !important;
    gap: 16px !important;
  }
  .side-card {
    padding: 16px !important;
    flex: 1 1 100% !important;
  }
  
  /* 剧照 */
  .shots-section { margin-bottom: 24px !important; }
  .shots-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  
  /* 简介 */
  .synopsis {
    padding: 16px !important;
  }
  .synopsis h3 { font-size: 16px !important; }
  .synopsis p { font-size: 14px !important; line-height: 1.8 !important; }
  
  /* 评论区 */
  .comments-section { margin-top: 24px !important; }
  .comment-box { padding: 16px !important; }
  .comment-form textarea {
    min-height: 80px !important;
    font-size: 14px !important;
  }
  .cf-foot { flex-wrap: wrap; gap: 8px; }
  
  /* 弹框 */
  .vs-modal {
    width: 94vw !important;
    max-width: 94vw !important;
    max-height: 88vh !important;
  }
  .vs-modal-header { padding: 16px 18px 12px !important; }
  .vs-modal-header h3 { font-size: 16px !important; }
  .vs-modal-body { padding: 16px 18px !important; }
  .vs-modal-footer { padding: 12px 18px 16px !important; gap: 8px !important; }
  .vs-rate-stars { font-size: 24px !important; gap: 2px !important; }
  
  .bid-modal {
    width: 94vw !important;
    max-width: 94vw !important;
  }
  .bid-modal-header { padding: 16px 18px !important; }
  .bid-modal-body { padding: 14px 18px !important; }
  .bid-modal-footer { padding: 12px 18px 16px !important; }
  
  .propose-modal {
    width: 94vw !important;
    max-width: 94vw !important;
  }
  .propose-field-grid {
    grid-template-columns: 1fr !important;
  }
  
  .pay-confirm-box, .vs-confirm-box {
    width: 90vw !important;
    max-width: 90vw !important;
    padding: 24px 20px !important;
  }
}

/* 超小屏幕 (<=480px) */
@media (max-width: 480px) {
  .dh-info h1 { font-size: 19px !important; }
  .dh-info h1 .en { font-size: 13px !important; }
  .dh-poster { max-width: 140px !important; }
  .dh-score-item .big { font-size: 19px !important; }
  .dh-score-item .big small { font-size: 10px !important; }
  .dh-score-item .label { font-size: 10.5px !important; }
  .dh-score-item .stars { font-size: 12px !important; letter-spacing: 1px !important; }
  .vs-btn {
    padding: 6px 10px !important;
    font-size: 11.5px !important;
    gap: 3px !important;
  }
  .info-grid .row {
    grid-template-columns: 64px 1fr !important;
    font-size: 12.5px !important;
  }
  .claim-edit-btn {
    padding: 7px 12px !important;
    font-size: 12px !important;
  }
  .shots-grid { gap: 6px !important; }
  .dh-side-card { padding: 12px !important; }
  .comment-box { padding: 14px !important; }
  .synopsis { padding: 14px !important; }
  .side-card { padding: 14px !important; }
}

/* 超超小屏幕 (<=360px) */
@media (max-width: 360px) {
  .dh-info h1 { font-size: 17px !important; }
  .dh-poster { max-width: 120px !important; }
  .dh-score-left { gap: 6px !important; }
  .dh-score-item .big { font-size: 17px !important; }
  .vs-btn {
    padding: 5px 8px !important;
    font-size: 11px !important;
  }
  .info-grid .row {
    grid-template-columns: 56px 1fr !important;
    font-size: 12px !important;
  }
}




/* ============================== 移动端页脚优化 v3 ============================== */
@media (max-width: 768px) {
  .site-footer {
    padding: 28px 0 18px !important;
    margin-top: 24px !important;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px 20px !important;
    padding-bottom: 16px !important;
  }
  .footer-grid > div:first-child {
    grid-column: 1 / -1 !important;
    text-align: center !important;
    margin-bottom: 4px !important;
  }
  .footer-grid .f-brand {
    font-size: 16px !important;
    margin-bottom: 6px !important;
    justify-content: center !important;
  }
  .footer-grid .f-brand svg {
    width: 22px !important;
    height: 22px !important;
  }
  .footer-grid p {
    font-size: 12px !important;
    line-height: 1.65 !important;
    max-width: 100% !important;
    text-align: center !important;
    margin: 0 auto !important;
  }
  .footer-grid h4 {
    font-size: 12.5px !important;
    margin-bottom: 8px !important;
    color: rgba(255,255,255,.85) !important;
  }
  .footer-grid ul li {
    margin-bottom: 5px !important;
  }
  .footer-grid ul li a {
    font-size: 12px !important;
    color: var(--ink-400) !important;
  }
  .footer-grid ul li a:hover {
    color: var(--green-400) !important;
  }
  .footer-bottom {
    padding-top: 14px !important;
    font-size: 11px !important;
    line-height: 1.6 !important;
    color: var(--ink-400) !important;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding: 22px 0 14px !important;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 14px 16px !important;
    padding-bottom: 12px !important;
  }
  .footer-grid > div:first-child {
    grid-column: 1 / -1 !important;
  }
  .footer-grid .f-brand {
    font-size: 15px !important;
  }
  .footer-grid p {
    font-size: 11.5px !important;
    line-height: 1.6 !important;
  }
  .footer-grid h4 {
    font-size: 12px !important;
    margin-bottom: 6px !important;
  }
  .footer-grid ul li a {
    font-size: 11.5px !important;
  }
  .footer-bottom {
    font-size: 10.5px !important;
    padding: 0 8px !important;
  }
}

/* 超小屏幕 */
@media (max-width: 360px) {
  .footer-grid {
    gap: 12px !important;
  }
  .footer-grid p {
    font-size: 11px !important;
  }
  .footer-bottom {
    font-size: 10px !important;
  }
}


/* ============================== Footer 数字徽标 ============================== */
.footer-grid ul li a {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px;
}
.footer-stat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 9px;
  background: rgba(16, 185, 129, .15);
  color: var(--green-400) !important;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  transition: all .2s;
}
.footer-grid ul li a:hover .footer-stat-badge {
  background: rgba(16, 185, 129, .3);
  color: #fff !important;
}

@media (max-width: 768px) {
  .footer-stat-badge {
    min-width: 18px;
    height: 16px;
    font-size: 10px;
    padding: 0 5px;
  }
}

@media (max-width: 480px) {
  .footer-stat-badge {
    min-width: 16px;
    height: 14px;
    font-size: 9.5px;
    padding: 0 4px;
  }
}


/* ============================== Section 标题数字徽标 ============================== */
.section-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 20px;
  padding: 0 7px;
  border-radius: 10px;
  background: var(--green-50);
  color: var(--green-600);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  margin-left: 4px;
  border: 1px solid var(--green-200);
  transition: all .2s;
}
.section-head h2:hover .section-count-badge {
  background: var(--green-100);
  border-color: var(--green-400);
}

@media (max-width: 768px) {
  .section-count-badge {
    min-width: 22px;
    height: 18px;
    font-size: 11px;
    padding: 0 6px;
  }
}

@media (max-width: 480px) {
  .section-count-badge {
    min-width: 20px;
    height: 16px;
    font-size: 10.5px;
    padding: 0 5px;
  }
}
/* cache-bust-1786099828 */

/* cache-bust-pseudofix-1786107855 */


/* 分类维度切换 (按类型/按国家) */
.dim-toggle { display: inline-flex; background: var(--ink-100, #eef0f3); border-radius: 999px; padding: 3px; gap: 2px; margin-bottom: 14px; }
.dim-btn { border: none; background: transparent; padding: 6px 18px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-500, #6b7280); cursor: pointer; transition: all .2s; }
.dim-btn.active { background: #fff; color: var(--green-700, #15803d); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.dim-btn:hover:not(.active) { color: var(--green-600, #16a34a); }

/* ========== 猫榜：专属称号徽章（6 套主题色） ========== */
.champ-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: .5px;
  padding: 2px 10px; border-radius: 999px; color: #fff;
  white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,.2);
  text-decoration: none; vertical-align: middle;
}
a.champ-badge:hover { filter: brightness(1.08); }
.champ-t1 { background: linear-gradient(135deg,#0b3d2e,#1a5c44 55%,#8a6d1d); }
.champ-t2 { background: linear-gradient(135deg,#a8791a,#c9a227 60%,#e0b93f); }
.champ-t3 { background: linear-gradient(135deg,#4c1d95,#7c3aed); }
.champ-t4 { background: linear-gradient(135deg,#0369a1,#0ea5e9); }
.champ-t5 { background: linear-gradient(135deg,#9f1239,#e11d48); }
.champ-t6 { background: linear-gradient(135deg,#ea580c,#f59e0b); }

/* ========== 猫榜：个人主页专属背景板（6 套华丽主题） ========== */
.profile-header[class*="pf-banner-"] {
  position: relative; overflow: hidden;
  border: none;
  box-shadow: 0 10px 34px rgba(0,0,0,.22);
}
.profile-header[class*="pf-banner-"]::before {
  content: ''; position: absolute; right: -70px; top: -90px;
  width: 250px; height: 250px; border-radius: 50%;
  background: rgba(255,255,255,.13); pointer-events: none;
}
.profile-header[class*="pf-banner-"]::after {
  content: ''; position: absolute; right: 90px; bottom: -120px;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255,255,255,.09); pointer-events: none;
}
.pf-banner-t1 { background: linear-gradient(135deg,#0b3d2e,#14532d 45%,#8a6d1d) !important; }
.pf-banner-t2 { background: linear-gradient(135deg,#7c5a10,#c9a227 55%,#e8c766) !important; }
.pf-banner-t3 { background: linear-gradient(135deg,#1e1b4b,#4c1d95 55%,#7c3aed) !important; }
.pf-banner-t4 { background: linear-gradient(135deg,#0c4a6e,#0369a1 55%,#0ea5e9) !important; }
.pf-banner-t5 { background: linear-gradient(135deg,#6b0f2a,#9f1239 55%,#e11d48) !important; }
.pf-banner-t6 { background: linear-gradient(135deg,#7c2d12,#ea580c 55%,#f59e0b) !important; }

/* 背景板下文字反白 */
.profile-header[class*="pf-banner-"] .profile-name-row h1 { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.25); }
.profile-header[class*="pf-banner-"] .profile-bio { color: rgba(255,255,255,.92); }
.profile-header[class*="pf-banner-"] .profile-meta { color: rgba(255,255,255,.78); }
.profile-header[class*="pf-banner-"] .profile-points-pill {
  background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.35); color: #fff;
}
.profile-header[class*="pf-banner-"] .role-badge { background: rgba(255,255,255,.2); color: #fff; }
.profile-header[class*="pf-banner-"] .stat-item b { color: #fff; }
.profile-header[class*="pf-banner-"] .stat-item span { color: rgba(255,255,255,.8); }
.profile-header[class*="pf-banner-"] .stat-item { border-color: rgba(255,255,255,.25); }
.profile-header[class*="pf-banner-"] .profile-avatar { box-shadow: 0 4px 16px rgba(0,0,0,.35); }

/* ========== 用户搜索结果卡片 ========== */
.user-result-wrap { margin: -4px 0 18px; }
.user-result-head {
  font-size: 14px; font-weight: 700; color: var(--ink-700, #374151);
  margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}
.user-result-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.home-claim-item,
.home-claim-item .movie-card { cursor: grab; }
.home-claim-item:active,
.home-claim-item:active .movie-card { cursor: grabbing; }
.ur-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--card, #fff); border: 1px solid var(--border, #e5e7eb);
  border-radius: 14px; padding: 14px 16px;
  text-decoration: none; color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.ur-card:hover {
  border-color: var(--green-500, #22c55e);
  box-shadow: 0 6px 18px rgba(16,185,129,.12);
  transform: translateY(-2px);
}
.ur-avatar {
  width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: var(--green-100, #dcfce7);
  display: flex; align-items: center; justify-content: center;
}
.ur-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ur-avatar-fallback {
  font-size: 22px; font-weight: 700; color: var(--green-700, #15803d);
}
.ur-info { flex: 1; min-width: 0; }
.ur-name-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-size: 15px; color: var(--ink-900, #111827); margin-bottom: 3px;
}
.ur-bio {
  font-size: 12.5px; color: var(--ink-400, #9ca3af);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 5px;
}
.ur-meta {
  display: flex; flex-wrap: wrap; gap: 4px 14px;
  font-size: 12px; color: var(--ink-500, #6b7280);
}
.ur-meta b { color: var(--green-700, #15803d); font-weight: 700; }
@media (max-width: 768px) {
  .user-result-wrap,
  .user-result-grid,
  #movieGrid { overflow: visible; }
  .user-result-wrap {
    padding-bottom: 22px;
    margin-bottom: 28px;
  }
  .user-result-grid { grid-template-columns: 1fr; }
  .ur-card {
    padding: 14px 14px 28px;
    gap: 12px;
    align-items: flex-start;
    overflow: visible !important;
    height: auto !important;
    min-height: 116px;
    margin-bottom: 20px;
    box-sizing: border-box;
  }
  .ur-card:hover { transform: none; }
  .ur-avatar { width: 44px; height: 44px; }
  .ur-avatar-fallback { font-size: 18px; }
  .ur-info { overflow: visible; min-height: 0; padding-bottom: 2px; }
  .ur-name-row { line-height: 1.35; }
  .ur-bio {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.35;
    margin-bottom: 7px;
  }
  .ur-meta { line-height: 1.5; padding-bottom: 2px; }
  .exact-entity-card {
    overflow: visible !important;
    height: auto !important;
    min-height: 106px !important;
    padding-top: 14px !important;
    padding-bottom: 30px !important;
    margin-bottom: 24px !important;
    box-sizing: border-box !important;
    transform: none !important;
  }
}

/* ============================== 巴巴官方私信气泡：未读绿 / 已读黄 ============================== */
.msg-bubble.system.unread {
  background: var(--green-500);
  color: #fff;
}
.msg-bubble.system.unread .msg-time { color: rgba(255, 255, 255, .78); }
.msg-bubble.system.read {
  background: var(--amber-400);
  color: #422006;
}
.msg-bubble.system.read .msg-time { color: rgba(66, 32, 6, .55); }

/* ============================== 移动端导航私信入口与未读角标 ============================== */
.nav-mobile-quick .mq-btn-msg {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
  padding: 0;
  border-radius: 50%;
  background: var(--green-50);
  border: 1.5px solid var(--green-200);
  flex-shrink: 0;
}
.nav-mobile-quick .mq-btn-msg svg { width: 16px; height: 16px; color: var(--green-700); }
.nav-mobile-quick .mq-btn-msg:active { background: var(--green-100); }
.nav-mobile-quick .mq-msg-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--rose-500);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 15px;
  height: 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 2px solid #fff;
  pointer-events: none;
  box-sizing: border-box;
}
.mm-link .mm-badge {
  margin-left: 7px;
  background: var(--rose-500);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  vertical-align: 1px;
  box-sizing: border-box;
}

/* 移动端私信：聊天区返回列表按钮（桌面隐藏，移动端媒体查询内显示） */
.chat-back-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: none;
  background: var(--green-50);
  color: var(--green-700);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.chat-back-btn svg { width: 17px; height: 17px; }
.chat-back-btn:active { background: var(--green-100); }

/* 须在基础样式之后声明，确保移动端覆盖 display:none */
@media (max-width: 768px) {
  .chat-back-btn { display: inline-flex; }
}

/* 移动端影片详情页：仅片名和又名按手机屏幕居中 */
@media (max-width: 768px) {
  .detail-hero .dh-inner {
    text-align: left !important;
  }
  .detail-hero .dh-info {
    text-align: left !important;
  }
  .detail-hero .dh-info .dh-titles {
    display: block !important;
    width: 100vw !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 0 18px !important;
    text-align: center !important;
  }
  .detail-hero .dh-info .dh-titles h1,
  .detail-hero .dh-info h1 {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
  }
  .detail-hero .dh-info .dh-titles h1 .en,
  .detail-hero .dh-info h1 .en {
    flex-basis: 100% !important;
    width: 100% !important;
    text-align: center !important;
  }
  .detail-hero .dh-info .dh-titles .aka,
  .detail-hero .dh-info .aka {
    display: block !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }
  .detail-hero .dh-tags,
  .detail-hero .dh-score-row,
  .detail-hero .info-grid,
  .detail-hero .claim-owner-card {
    text-align: left !important;
  }
}

/* ========== 导航修复：#rank 最低高度 ========== */
#rank { min-height: 320px; }
#rank .movie-grid:empty::after {
  content: '加载中...';
  display: block;
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-400);
  font-size: 14px;
}

/* ========== 移动端查看全部按钮修复 v20260817w ========== */
@media (max-width: 768px) {
  #rank { padding-bottom: 40px; overflow: visible; }
  #all { padding-bottom: 56px; overflow: visible; }
  .home-claim-more { margin-bottom: 16px; padding: 20px 0 10px !important; position: relative; z-index: 2; }
  #movieGrid > div:last-child { padding-bottom: 10px !important; }
  #rank .movie-grid > div:last-child { padding-bottom: 10px !important; }
  .profile-tab-content { padding-bottom: 20px; }
  .view-all-link { display: inline-block; padding: 4px 0; }
  .home-view-all { position: relative; z-index: 2; }
}

/* 求源累积上榜时间显示 */
.qy-acctime { font-size: 11.5px; color: var(--green-600); margin-top: 4px; font-weight: 500; }
/* 标签三排折叠 */
.filter-bar-wrap {
  position: relative;
  margin-bottom: 24px;
}
.filter-bar {
  margin-bottom: 0;
  max-height: 120px;
  overflow: hidden;
  transition: max-height .3s ease;
}
.filter-bar.expanded {
  max-height: 2000px;
}
.filter-more-btn {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: var(--ink-50);
  border: 1px solid var(--border);
  color: var(--ink-600);
  cursor: pointer;
  transition: all .18s;
}
.filter-more-btn:hover {
  border-color: var(--green-400);
  color: var(--green-700);
  background: var(--green-50);
}
.filter-more-btn .arrow {
  display: inline-block;
  transition: transform .2s;
  font-size: 10px;
}
.filter-more-btn.expanded .arrow {
  transform: rotate(180deg);
}
.filter-more-btn.hidden {
  display: none;
}
/* 折叠渐变遮罩 */
.filter-bar-mask {
  display: none;
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.filter-bar-wrap.collapsed .filter-bar-mask {
  display: block;
}

/* ========== 统一页面头部样式 ========== */
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.page-head h2 { font-size: 22px; display: flex; align-items: center; gap: 8px; margin: 0; }
.page-head h2 .bar { width: 4px; height: 22px; background: var(--green-500); border-radius: 2px; flex-shrink: 0; }
.page-head .page-sub { font-size: 13px; color: var(--ink-400); margin-top: 4px; }
@media (max-width: 768px) {
  .page-head h2 { font-size: 19px; }
  .page-head .page-sub { font-size: 12px; }
}

.shop-move-btns { display: flex; flex-direction: column; gap: 3px; margin-right: 4px; }
.shop-move-btn { display: flex; align-items: center; justify-content: center; width: 28px; height: 22px; border: none; background: var(--green-500); border-radius: 6px; cursor: pointer; padding: 0; color: #fff; transition: all .2s; box-shadow: 0 1px 3px rgba(16,185,129,.3); }
.shop-move-btn:hover:not(:disabled) { background: var(--green-600); transform: scale(1.08); box-shadow: 0 2px 6px rgba(16,185,129,.4); }
.shop-move-btn:active:not(:disabled) { transform: scale(.95); }
.shop-move-btn:disabled { background: #d1d5db; cursor: not-allowed; box-shadow: none; }
.shop-list-item { transition: transform .3s ease, opacity .2s ease; }
.shop-list-item.moving-up { animation: shopSlideUp .35s ease; }
.shop-list-item.moving-down { animation: shopSlideDown .35s ease; }
@keyframes shopSlideUp { 0% { transform: translateY(0); opacity: 1; } 40% { transform: translateY(-8px); opacity: .6; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes shopSlideDown { 0% { transform: translateY(0); opacity: 1; } 40% { transform: translateY(8px); opacity: .6; } 100% { transform: translateY(0); opacity: 1; } }

.shop-cover { position: relative; width: 100%; height: 160px; border-radius: 14px; overflow: hidden; margin-bottom: 16px; background: linear-gradient(135deg, #1a1a2e, #16213e); }
.shop-cover-bg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; }
.shop-cover-bg img { width: 100%; height: 100%; object-fit: cover; }
.shop-cover-overlay { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.3) 50%, rgba(0,0,0,.1) 100%); }
.shop-cover-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 14px 18px; display: flex; align-items: center; gap: 10px; }
.shop-cover-badge { flex-shrink: 0; padding: 3px 10px; background: var(--green-500); color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; box-shadow: 0 2px 6px rgba(16,185,129,.4); }
.shop-cover-title { color: #fff; font-size: 16px; font-weight: 700; text-shadow: 0 2px 8px rgba(0,0,0,.6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-cover-tag { display: inline-block; padding: 2px 8px; background: var(--green-500); color: #fff; font-size: 11px; font-weight: 700; border-radius: 4px; margin-left: 6px; vertical-align: middle; }
@media (max-width: 768px) { .shop-cover { height: 130px; } .shop-cover-title { font-size: 14px; } }

/* 跳页输入框 */
.page-jump { display: inline-flex; align-items: center; gap: 4px; margin-left: 12px; font-size: 13px; color: var(--ink-400); }
.page-jump-input { width: 48px; height: 34px; border: 1px solid var(--border); border-radius: 6px; text-align: center; font-size: 13px; outline: none; }
.page-jump-input:focus { border-color: var(--green-500); }
.page-jump-btn { height: 34px; padding: 0 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--card); color: var(--ink-600); font-size: 13px; cursor: pointer; transition: all .2s; }
.page-jump-btn:hover { border-color: var(--green-500); color: var(--green-600); background: var(--green-50); }
@media (max-width: 768px) { .page-jump-input { width: 40px; height: 30px; } .page-jump-btn { height: 30px; padding: 0 8px; } }

/* === 360浏览器/旧版浏览器兼容性降级 === */
/* aspect-ratio 不支持时使用 padding-top hack 模拟 */
@supports not (aspect-ratio: 2/3) {
  .hero-card .hc-poster { height: 0; padding: 0; padding-top: 150%; }
  .mc-poster { height: 0; padding-top: 150%; }
  .dh-poster { height: 0; padding: 0; padding-top: 150%; }
}
@supports not (aspect-ratio: 16/9) {
  .shot { height: 0; padding-top: 56.25%; }
  .lightbox .lb-content .lb-art { height: 0; padding: 0; padding-top: 56.25%; }
}
